记录详情

Compile Error

foo.c: In function 'main':
foo.c:8:13: error: 'i' undeclared (first use in this function)
    8 |         for(i=0;i<n;i++)
      |             ^
foo.c:8:13: note: each undeclared identifier is reported only once for each function it appears in
foo.c:13:13: error: 'number' undeclared (first use in this function); did you mean 'Number'?
   13 |         for(number=0;number<Number;number++)
      |             ^~~~~~
      |             Number
foo.c:12:21: warning: variable 'c' set but not used [-Wunused-but-set-variable]
   12 |         int a=0,b=1,c=0;
      |                     ^
foo.c:7:13: warning: variable 'a' set but not used [-Wunused-but-set-variable]
    7 |         int a[n];
      |             ^
foo.c:5:11: warning: unused variable 'temp' [-Wunused-variable]
    5 |     int n,temp;
      |           ^~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
自测
题目
P1364 6A 斐波那契数列
语言
C
递交时间
2023-08-24 12:57:26
评测时间
2023-08-24 12:57:26
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes