/in/foo.cc: In function 'int main()':
/in/foo.cc:14:18: error: 'FindiMax' was not declared in this scope
cout<<FindiMax(a)<<endl;
^
/in/foo.cc: In function 'void FindiMax(int*)':
/in/foo.cc:18:12: error: 'n' was not declared in this scope
int max=a[n-1];
^
/in/foo.cc:21:6: error: expected '(' before 'a'
if a[i]>max
^
/in/foo.cc:24:9: error: 'i' was not declared in this scope
return i;
^
/in/foo.cc:24:9: error: return-statement with a value, in function returning 'void' [-fpermissive]
/in/foo.cc:18:6: warning: unused variable 'max' [-Wunused-variable]
int max=a[n-1];
^~~