记录详情

Compile Error

foo.c: In function 'main':
foo.c:13:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
   13 |         if (num[i]>=max_num);
      |         ^~
foo.c:14:13: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
   14 |             max_num = num[i];
      |             ^~~~~~~
foo.c:18:28: error: expected '(' before 'num'
   18 |                         if num[i]==max_num;
      |                            ^~~
      |                            (
foo.c:18:31: warning: statement with no effect [-Wunused-value]
   18 |                         if num[i]==max_num;
      |                            ~~~^~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
1-4 最大值的个数
比赛
2023 程序设计与基础(单个的数组)
语言
C
递交时间
2023-11-21 15:09:56
评测时间
2023-11-21 15:09:56
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes