Compile Error
foo.c: In function ‘main’:
foo.c:12:25: warning: format ‘%s’ expects argument of type ‘char *’, but argument 2 has type ‘char * (*)[20]’ [-Wformat=]
12 | scanf("%s %d %d %c %c %d",&xingming,&qimo,&banji,&ganbu,&xibu,&lunwen);
| ~^ ~~~~~~~~~
| | |
| char * char * (*)[20]
foo.c:18:33: error: invalid suffix ‘;’ on integer constant
18 | singal+=2000;}
| ^~~~~~
foo.c:18:39: error: expected ‘;’ before ‘}’ token
18 | singal+=2000;}
| ^
| ;
foo.c:25:27: error: assignment to expression with array type
25 | p1=xingming;
| ^
信息
- 递交者
- 类型
- 递交
- 题目
- P1001 谁拿了最多奖学金
- 语言
- C
- 递交时间
- 2026-07-17 23:29:03
- 评测时间
- 2026-07-17 23:29:03
- 评测机
- 分数
- 0
- 总耗时
- 0ms
- 峰值内存
- 0 Bytes