Main.cc: In function ‘int main()’: Main.cc:8:18: error: expected ‘)’ before ‘;’ token for(i=1;i<=n;i++;i++) ^ Main.cc:8:2: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] for(i=1;i<=n;i++;i++) ^~~ Main.cc:8:19: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ for(i=1;i<=n;i++;i++) ^ Main.cc:8:22: error: expected ‘;’ before ‘)’ token for(i=1;i<=n;i++;i++) ^ Main.cc:5:6: warning: unused variable ‘a’ [-Wunused-variable] int a,maxn=-1,i,n,t; ^ Main.cc:5:8: warning: unused variable ‘maxn’ [-Wunused-variable] int a,maxn=-1,i,n,t; ^~~~ Main.cc:5:20: warning: unused variable ‘t’ [-Wunused-variable] int a,maxn=-1,i,n,t; ^