Wrong Answer
/in/foo.cc: In function 'void solve()': /in/foo.cc:45:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation] for(int i=0;i<n;i++) ^~~ /in/foo.cc:54:3: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for' cout<<ans; ^~~~