记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:8:17: error: unknown type name 'student'; use 'struct' keyword to refer to the type
    int n,k,temp;student ss[100];
                 ^~~~~~~
                 struct 
/in/foo.c:11:20: error: request for member 'id' in something not a structure or union
  {scanf("%d",&ss[i].id);
                    ^
/in/foo.c:12:18: error: request for member 'score' in something not a structure or union
  scanf("%d",ss[i].score);
                  ^
/in/foo.c:15:11: error: request for member 'score' in something not a structure or union
  p=ss[100].score;
           ^
/in/foo.c:16:11: error: request for member 'score' in something not a structure or union
  q=ss[100].score;
           ^

信息

递交者
类型
递交
题目
2-1 比赛榜单
比赛
南师大2018年蓝桥杯热身赛
语言
C
递交时间
2018-12-12 16:13:31
评测时间
2018-12-12 16:13:36
评测机
分数
0
总耗时
11ms
峰值内存
2.91 MiB