/in/foo.cc: In function 'int max(int*, int)':
/in/foo.cc:13:26: error: expected statement at end of input
for(int i=1; i<n; i++)
^
/in/foo.cc:13:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for(int i=1; i<n; i++)
^~~
cc1plus: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
/in/foo.cc:11:9: warning: unused variable 'maxValue' [-Wunused-variable]
int maxValue = arr[0];
^~~~~~~~
/in/foo.cc:13:26: error: expected '}' at end of input
for(int i=1; i<n; i++)
^
/in/foo.cc:13:26: warning: no return statement in function returning non-void [-Wreturn-type]