something wrong with the C++ codeforces compiler

Revision en1, by cultered_man, 2021-12-18 20:38:16

Why I am I getting a infinite loop for the below code

#include<bits/stdc++.h>

using namespace std;

#define int long long
#define ar array
#define nl '\n'





void solve(){

	vector<int> a(1);
	
	for (int i=a.size()-2;i>=0;i--){
	    cout<<i<<nl;
	}

}

int32_t main(){
	

	int tt{1};

	for(int i=1;i<=tt;++i){
		solve();
		cout<<nl;
	}
}

It is working fine with other online compilers could someone please help me on this. Am I missing something?

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English cultered_man 2021-12-18 20:38:16 553 Initial revision (published)