记录详情

Compile Error

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)提供评测服务

信息

递交者
类型
递交
题目
1-4 最大值的个数
比赛
2022年迎新赛(第一场)
语言
C
递交时间
2022-08-15 15:08:58
评测时间
2022-08-15 15:08:58
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes