Compile Error
foo.cc: In function ‘int main()’: foo.cc:14:17: error: ‘c’ was not declared in this scope 14 | c=a+b, | ^ foo.cc:17:17: error: ‘d’ was not declared in this scope 17 | d+=c; | ^ foo.cc:18:15: error: ‘d’ was not declared in this scope 18 | cout<<d<<endl; | ^ foo.cc:6:23: warning: unused variable ‘c,d’ [-Wunused-variable] 6 | int n,a=1,b=1,c,d; | ^~~~
信息
- 递交者
- 类型
- 自测
- 题目
- A2-3 循环结构入门:斐波拉契数列的和
- 语言
- C++
- 递交时间
- 2025-08-13 17:44:12
- 评测时间
- 2025-08-13 17:44:12
- 评测机
- 分数
- 0
- 总耗时
- 0ms
- 峰值内存
- 0 Bytes