I was trying to solve this problem: http://codeforces.net/contest/226/problem/B
I am getting the strange error "wrong answer Participant output contains extra tokens".
But i am printing exactly q integers.
rep(st,q) { i64 k; cin>>k; if(k==1) out.pb(k1); else out.pb(solve(k)); } if(SZ(out)!=q) q/=0; rep(i,SZ(out))cout<<out[i]<<" "; puts("");
Here is the full code: http://codeforces.net/contest/226/submission/4082188
Can anyone tell me whats wrong?
I guess there are some bug in the judge. I've submitted some previously AC code's of this problem to test and they are giving same verdict. Admins please check it.