/in/foo.cc: In function 'int FindMaxIndex(int*, int)':
/in/foo.cc:7:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
if(a[i]>max)
^~
/in/foo.cc:9:3: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
imax=i;
^~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:17:11: warning: right operand of comma operator has no effect [-Wunused-value]
for(i=0,i<n;i++)
~^~
/in/foo.cc:17:17: error: expected ';' before ')' token
for(i=0,i<n;i++)
^