记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:10:10: warning: right-hand operand of comma expression has no effect [-Wunused-value]
   for(i=3,i<=n;i++)
          ^
/in/foo.c:10:19: error: expected ';' before ')' token
   for(i=3,i<=n;i++)
                   ^
/in/foo.c:15:4: error: 's' undeclared (first use in this function)
    s=s+c;
    ^
/in/foo.c:15:4: note: each undeclared identifier is reported only once for each function it appears in

信息

递交者
类型
自测
题目
A2-3 循环结构入门:斐波拉契数列的和
语言
C
递交时间
2019-03-31 21:41:44
评测时间
2019-03-31 21:41:44
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes