记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:11:2: error: variable-sized object may not be initialized
  int a[N]={0};
  ^~~
/in/foo.c:11:12: warning: excess elements in array initializer
  int a[N]={0};
            ^
/in/foo.c:11:12: note: (near initialization for 'a')
/in/foo.c:18:10: error: subscripted value is neither array nor pointer nor vector
    i=(i+m[l]-1)%n;
          ^
/in/foo.c:18:17: error: 'n' undeclared (first use in this function)
    i=(i+m[l]-1)%n;
                 ^
/in/foo.c:18:17: note: each undeclared identifier is reported only once for each function it appears in

信息

递交者
类型
递交
题目
2-2 约瑟夫问题
比赛
南师大2018年蓝桥杯热身赛
语言
C
递交时间
2018-12-12 14:25:32
评测时间
2018-12-12 14:25:32
评测机
分数
0
总耗时
15ms
峰值内存
3.164 MiB