/in/foo.cc: In function 'int FindMax(int, int*, int)':
/in/foo.cc:10:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
if(a[i]>max)
^~
/in/foo.cc:12:9: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
x=i;
^
/in/foo.cc:14:9: warning: 'x' may be used uninitialized in this function [-Wmaybe-uninitialized]
return x;
^
/in/foo.cc: In function 'int main()':
/in/foo.cc:25:23: warning: 'x' may be used uninitialized in this function [-Wmaybe-uninitialized]
cout<<FindMax(max,a,n)<<endl;
^