0_0_30467002_29975.cpp: In function 'int main()': 0_0_30467002_29975.cpp:49:7: error: 'n' was not declared in this scope if((n+1-ans)%2==1)ans++; ^