Compile Error
/in/foo.cc: In function 'int main()': /in/foo.cc:15:12: warning: statement has no effect [-Wunused-value] for (k1; k1<=k2; k1++) ^ /in/foo.cc:16:9: error: 'sum' was not declared in this scope sum=k2; ^~~ /in/foo.cc:17:6: error: 'sum' was not declared in this scope sum+=k1; ^~~
信息
- 递交者
- 类型
- 自测
- 题目
- 1-2 斐波那契数列的和
- 语言
- C++
- 递交时间
- 2024-08-20 03:26:38
- 评测时间
- 2024-08-20 03:26:38
- 评测机
- 分数
- 0
- 总耗时
- 0ms
- 峰值内存
- 0 Bytes