Compile Error
foo.c: In function 'main':
foo.c:7:25: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'int' [-Wformat=]
7 | scanf("%d",b[i]);
| ~^ ~~~~
| | |
| | int
| int *
foo.c:9:20: error: expected ',' or ';' before ':' token
9 | for(int i=0:i<a;i++){
| ^
foo.c:9:28: error: expected ';' before ')' token
9 | for(int i=0:i<a;i++){
| ^
| ;
foo.c:12:23: error: expected ';' before 'return'
12 | printf("%d",c)
| ^
| ;
......
15 | return 0;
| ~~~~~~
[Hydro](https://hydro.ac)提供评测服务
信息
- 递交者
- 类型
- 自测
- 题目
- P1058 G7-1 统计不及格人数
- 语言
- C
- 递交时间
- 2023-10-17 13:59:10
- 评测时间
- 2023-10-17 13:59:10
- 评测机
- 分数
- 0
- 总耗时
- 0ms
- 峰值内存
- 0 Bytes