Accepted
/in/foo.cc: In function 'int main()':
/in/foo.cc:21:3: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for(int i=1;i<=n;i++)cin>>a[i]; bool flag=false;
^~~
/in/foo.cc:21:35: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
for(int i=1;i<=n;i++)cin>>a[i]; bool flag=false;
^~~~
/in/foo.cc:16:6: warning: unused variable 'x' [-Wunused-variable]
int x;
^