Compile Error
foo.cc: In function ‘int main()’: foo.cc:15:27: warning: pointer to a function used in arithmetic [-Wpointer-arith] 15 | sum+=fib[i]; | ^ foo.cc:15:20: warning: pointer to a function used in arithmetic [-Wpointer-arith] 15 | sum+=fib[i]; | ~~~^~~~~~~~ foo.cc:15:20: error: invalid conversion from ‘int (*)(int)’ to ‘int’ [-fpermissive] 15 | sum+=fib[i]; | ~~~^~~~~~~~ | | | int (*)(int)
信息
- 递交者
- 类型
- 递交
- 题目
- P1081 1-2 斐波那契数列的和
- 语言
- C++
- 递交时间
- 2025-07-26 08:57:50
- 评测时间
- 2025-07-26 08:57:50
- 评测机
- 分数
- 0
- 总耗时
- 0ms
- 峰值内存
- 0 Bytes