记录详情

Compile Error

foo.c: In function 'main':
foo.c:16:25: error: expected expression before 'int'
   16 |                         int i=2;
      |                         ^~~
foo.c:15:17: warning: this 'else' clause does not guard... [-Wmisleading-indentation]
   15 |                 else
      |                 ^~~~
foo.c:17:25: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else'
   17 |                         printf("1 1 ");
      |                         ^~~~~~
foo.c:24:33: error: 'i' undeclared (first use in this function)
   24 |                                 i++;
      |                                 ^
foo.c:24:33: note: each undeclared identifier is reported only once for each function it appears in
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
A2-2 循环结构入门:斐波拉契数列
语言
C
递交时间
2022-10-08 19:14:53
评测时间
2022-10-08 19:14:53
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes