Compile Error
/in/foo.cc: In function 'int main()':
/in/foo.cc:5:9: error: expected initializer before 'c'
5 | int a,b c;
| ^
/in/foo.cc:6:11: error: 'b' was not declared in this scope
6 | cin >>a >>b;
| ^
/in/foo.cc:7:1: error: 'c' was not declared in this scope
7 | c = a+b;
| ^
/in/foo.cc:9:10: error: expected '}' at end of input
9 | return 0;
| ^
/in/foo.cc:4:1: note: to match this '{'
4 | {
| ^
信息
- 递交者
- 类型
- 递交
- 题目
- P1000 A+B Problem
- 语言
- C++
- 递交时间
- 2026-11-20 09:21:59
- 评测时间
- 2026-11-20 09:21:59
- 评测机
- 分数
- 0
- 总耗时
- 0ms
- 峰值内存
- 0 Bytes