Wrong Answer
foo.cc: In function ‘int main()’: foo.cc:15:10: warning: statement has no effect [-Wunused-value] 15 | for (k1; k1<=k2; k1++) | ^~ foo.cc:17:16: warning: ‘sum’ may be used uninitialized [-Wmaybe-uninitialized] 17 | sum+=k1; | ~~~^~~~ foo.cc:13:16: note: ‘sum’ was declared here 13 | int k1, k2,sum; | ^~~
信息
- 递交者
- 类型
- 自测
- 题目
- 1-2 斐波那契数列的和
- 语言
- C++
- 递交时间
- 2024-08-20 03:28:43
- 评测时间
- 2024-08-20 03:28:43
- 评测机
- 分数
- 0
- 总耗时
- 2ms
- 峰值内存
- 536.0 KiB