Compile Error
foo.c: In function 'main':
foo.c:10:31: error: expected ';' before 'if'
10 | scanf("%d",&m)
| ^
| ;
11 | if(m>max)
| ~~
foo.c:14:17: error: 'else' without a previous 'if'
14 | else if(m=max)
| ^~~~
foo.c:14:25: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
14 | else if(m=max)
| ^
foo.c:15:30: error: expected ';' before '}' token
15 | s=s+1
| ^
| ;
16 |
17 | }
| ~
[Hydro](https://hydro.ac)提供评测服务
信息
- 递交者
- 类型
- 递交
- 题目
- 1-4 最大值的个数
- 比赛
- 2022年迎新赛(第一场)
- 语言
- C
- 递交时间
- 2022-08-15 19:38:53
- 评测时间
- 2022-08-15 19:38:53
- 评测机
- 分数
- 0
- 总耗时
- 0ms
- 峰值内存
- 0 Bytes