运行 ID | 作者 | 题号 | 测评结果 | 分数 | 时间 | 内存 | 语言 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|---|
616858 | Canaan | 1000 - A+B 问题 | 编译错误 | 0 | 0 MS | 0 KB | C++ | 87 | 4个月前 |
Main.cc:3:5: error: cannot declare '::main' to be a global variable
3 | int main{
| ^~~~
Main.cc:4:6: error: expected primary-expression before 'int'
4 | cin>>int a>>int b;
| ^~~
Main.cc:4:6: error: expected '}' before 'int'
Main.cc:3:9: note: to match this '{'
3 | int main{
| ^
Main.cc:5:1: error: 'cout' does not name a type
5 | cout<<a+b;
| ^~~~
Main.cc:6:1: error: expected declaration before '}' token
6 | }
| ^