Compile Error
/in/foo.c: In function 'main':
/in/foo.c:8:17: error: variable-sized object may not be initialized
8 | int f[i]=f[i-1]+f[i-2];
| ^~~
/in/foo.c:13:17: error: 'f' undeclared (first use in this function)
13 | f[i]=f[i-1]+f[i-2];
| ^
/in/foo.c:13:17: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c:14:20: warning: implicit declaration of function 'f' [-Wimplicit-function-declaration]
14 | if(f(i)%3==0)
| ^
信息
- 递交者
- 类型
- 自测
- 语言
- C
- 递交时间
- 2025-12-23 17:19:36
- 评测时间
- 2025-12-23 17:19:36
- 评测机
- 分数
- 0
- 总耗时
- 0ms
- 峰值内存
- 0 Bytes