记录详情

Compile Error

foo.c: In function ‘main’:
foo.c:7:11: warning: right-hand operand of comma expression has no effect [-Wunused-value]
    7 |    for(i=2,i<20,i++)
      |           ^
foo.c:7:20: error: expected ‘;’ before ‘)’ token
    7 |    for(i=2,i<20,i++)
      |                    ^
      |                    ;
foo.c:7:20: error: expected expression before ‘)’ token
foo.c:8:24: error: expected expression before ‘[’ token
    8 |            f[i]=f[i-1]+[i-2];
      |                        ^
foo.c:9:11: warning: right-hand operand of comma expression has no effect [-Wunused-value]
    9 |    for(i=0,i<20,i++)
      |           ^
foo.c:9:20: error: expected ‘;’ before ‘)’ token
    9 |    for(i=0,i<20,i++)
      |                    ^
      |                    ;
foo.c:9:20: error: expected expression before ‘)’ token

信息

递交者
类型
递交
题目
P1013 兔子数列
语言
C
递交时间
2024-08-18 15:55:22
评测时间
2024-08-18 15:55:22
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes