/ Vijos /

记录详情

Compile Error

foo.c: In function 'main':
foo.c:6:10: error: expected identifier or '(' before '=' token
    6 |     int  = 0;
      |          ^
foo.c:7:22: error: 'sumNum' undeclared (first use in this function)
    7 |         scanf("%d", &sumNum);
      |                      ^~~~~~
foo.c:7:22: note: each undeclared identifier is reported only once for each function it appears in
foo.c:10:30: error: expected ':', ',', ';', '}' or '__attribute__' before '=' token
   10 |         char name[20]        = {'\0'};
      |                              ^
foo.c:53:32: error: expected expression before ')' token
   53 |                 if(mostAward > )
      |                                ^
foo.c:17:10: warning: unused variable 'STUDENT' [-Wunused-variable]
   17 |         }STUDENT[sumNum];
      |          ^~~~~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1001 谁拿了最多奖学金
语言
C
递交时间
2022-09-16 10:27:13
评测时间
2022-09-16 10:27:13
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes