foo.c: In function 'main':
foo.c:15:24: error: 'maxCount' undeclared (first use in this function)
15 | int maxNum=list[0];maxCount=1;
| ^~~~~~~~
foo.c:15:24: note: each undeclared identifier is reported only once for each function it appears in
foo.c:16:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
16 | for (int i=1;i<n;i++);
| ^~~
foo.c:17:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
17 | {
| ^
[Hydro](https://hydro.ac)提供评测服务