foo.c: In function 'main':
foo.c:6:15: error: 'n' undeclared (first use in this function)
6 | int a[n];
| ^
foo.c:6:15: note: each undeclared identifier is reported only once for each function it appears in
foo.c:15:6: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
15 | else if (a[i]==max);
| ^~
foo.c:16:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
16 | c++;
| ^
foo.c:18:16: error: 'maxCount' undeclared (first use in this function)
18 | printf("%d\n", maxCount);
| ^~~~~~~~
foo.c:6:13: warning: unused variable 'a' [-Wunused-variable]
6 | int a[n];
| ^
[Hydro](https://hydro.ac)提供评测服务