记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:11:2: error: unknown type name 'T'
  T T[100];
  ^
/in/foo.c:11:2: note: use 'struct' keyword to refer to the type
/in/foo.c:15:19: error: request for member 'n' in something not a structure or union
   scanf("%d",&T[i].n);
                   ^
/in/foo.c:16:19: error: request for member 'x' in something not a structure or union
   scanf("%d",&T[i].x);
                   ^
/in/foo.c:17:21: error: request for member 'n' in something not a structure or union
   for(int j=0;j<T[i].n;j++)
                     ^
/in/foo.c:18:20: error: request for member 'a' in something not a structure or union
    scanf("%d",&T[i].a[i]);
                    ^
/in/foo.c:11:4: warning: variable 'T' set but not used [-Wunused-but-set-variable]
  T T[100];
    ^

信息

递交者
类型
递交
题目
P1307 D. 蚂蚁竞走I
比赛
2021年互联网创新创业科技节程序设计大赛
语言
C
递交时间
2021-12-23 18:55:17
评测时间
2021-12-23 18:55:17
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes