记录详情

Compile Error

foo.c: In function ‘main’:
foo.c:7:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
    7 |         int fibList[N]{1,1};
      |                       ^
foo.c:7:25: warning: left-hand operand of comma expression has no effect [-Wunused-value]
    7 |         int fibList[N]{1,1};
      |                         ^
foo.c:7:25: warning: statement with no effect [-Wunused-value]
foo.c:7:27: error: expected ‘;’ before ‘}’ token
    7 |         int fibList[N]{1,1};
      |                           ^
      |                           ;
foo.c:13:25: error: ‘fibList’ undeclared (first use in this function)
   13 |                         fibList[i]=fibList[i-1]+fibList[i-2];
      |                         ^~~~~~~
foo.c:13:25: note: each undeclared identifier is reported only once for each function it appears in

信息

递交者
类型
递交
比赛
南师大2025年新生赛(第一场)
语言
C
递交时间
2025-08-15 11:37:48
评测时间
2025-08-23 22:07:14
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes