0_0_39304573_31666.cpp: In function 'int main()':
0_0_39304573_31666.cpp:3:336: error: 'print' was not declared in this scope; did you mean 'rint'?
3 | using namespace std;list<int>a;list<int>::iterator it;int main(){int T,n;cin>>T;while(T--){cin>>n;a.clear();int k=2;for(int i=1;i<=n;i++){a.push_back(i);}while(a.size()>3){int cnt=1;for(it=a.begin();it!=a.end();){if(cnt++%k==0){it=a.erase(it);}else{it++;}}k=(k==2?3:2);}for(it=a.begin();it!=a.end();it++){if(it!=a.begin()) printf(" ");print("%d",*it);}printf("\n");}return 0;}
| ^~~~~
| rint
|