/in/foo.cc:13:4: error: stray '\303' in program
ima×2=tmp;
^
/in/foo.cc:13:5: error: stray '\227' in program
ima×2=tmp;
^
/in/foo.cc:1:19: error: expected ',' or '...' before ']' token
void output(int at], int n)
^
/in/foo.cc:1:19: error: expected ')' before ']' token
/in/foo.cc:1:19: error: expected initializer before ']' token
/in/foo.cc: In function 'int FindisecondMax(int*, int)':
/in/foo.cc:8:11: error: 'c' was not declared in this scope
int imax1=c, imax2=1;
^
/in/foo.cc:9:15: error: 'imax2' was not declared in this scope
if(a[imax1]<a[imax2])
^~~~~
/in/foo.cc:12:1: error: expected ',' or ';' before 'imax1'
imax1=imax2;
^~~~~
/in/foo.cc:13:1: error: 'ima' was not declared in this scope
ima×2=tmp;
^~~
/in/foo.cc:11:5: warning: unused variable 'tmp' [-Wunused-variable]
int tmp=imax1
^~~
/in/foo.cc:18:1: error: 'imax2' was not declared in this scope
imax2=imax1; imax1=i;
^~~~~
/in/foo.cc:17:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
if(a[i]>a[imax1])
^~
/in/foo.cc:18:14: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
imax2=imax1; imax1=i;
^~~~~
/in/foo.cc:19:1: error: 'else' without a previous 'if'
else
^~~~
/in/foo.cc:20:11: error: 'imax2' was not declared in this scope
if(a[i]>a[imax2])
^~~~~
/in/foo.cc:23:8: error: 'imax2' was not declared in this scope
return imax2;
^~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:27:20: error: 'cin' was not declared in this scope
int i, n, a[10000];cin>>n;
^~~
/in/foo.cc:32:12: error: 'Output' was not declared in this scope
Output(a, n);Output(b, m);
^
/in/foo.cc:33:1: error: 'cout' was not declared in this scope
cout<<FindisecondMax(a, n)<<" ";
^~~~
/in/foo.cc:34:26: error: 'FindiSecondMax' was not declared in this scope
cout<<FindiSecondMax(b, m)<<end1;
^
/in/foo.cc:34:29: error: 'end1' was not declared in this scope
cout<<FindiSecondMax(b, m)<<end1;
^~~~