Compile Error
foo.cc: In function ‘int main()’:
foo.cc:18:19: error: expected primary-expression before ‘<’ token
18 | { cout<<<1<<" "<<1<<" "<<2;
| ^
foo.cc:18:21: error: invalid operands of types ‘int’ and ‘const char [2]’ to binary ‘operator<<’
18 | { cout<<<1<<" "<<1<<" "<<2;
| ~^~~~~
| | |
| | const char [2]
| int
foo.cc:24:28: error: unable to find numeric literal operator ‘operator"";’
24 | i+=1;
| ^~~
foo.cc:24:28: note: use ‘-fext-numeric-literals’ to enable more built-in suffixes
信息
- 递交者
- 类型
- 递交
- 题目
- A2-2 循环结构入门:斐波拉契数列
- 语言
- C++
- 递交时间
- 2025-08-09 12:05:32
- 评测时间
- 2025-08-09 12:05:32
- 评测机
- 分数
- 0
- 总耗时
- 0ms
- 峰值内存
- 0 Bytes