foo.c: In function 'FindSecondMax':
foo.c:21:37: warning: unused variable 'imax1' [-Wunused-variable]
21 | int i,j;int max1, max2; int imax1, imax2;
| ^~~~~
foo.c: In function 'main':
foo.c:51:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
51 | for(int i=0;i<n2;i++)
| ^~~
foo.c:53:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
53 | int amax=FindSecondMax(a,n1);
| ^~~
foo.c: In function 'FindSecondMax':
foo.c:21:44: warning: 'imax2' may be used uninitialized [-Wmaybe-uninitialized]
21 | int i,j;int max1, max2; int imax1, imax2;
| ^~~~~
[Hydro](https://hydro.ac)提供评测服务