ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#211772 | #1. A+B Problem | hb3914 | Compile Error | / | / | C++ | 124b | 2024-10-01 13:45:55 | 2024-10-01 13:45:56 |
answer
#include<iostream>
using namspace std;
int main()
{
int a,b;
cin>>a>>b;
cout<<a+b<<endl;
return 0;
}
详细
answer.code:2:7: error: expected nested-name-specifier before 'namspace' using namspace std;\x0d ^ answer.code:2:7: error: 'namspace' has not been declared answer.code:2:16: error: expected ';' before 'std' using namspace std;\x0d ^ answer.code:2:16: error: 'std' does not name a type answer.code: In function 'int main()': answer.code:6:5: error: 'cin' was not declared in this scope cin>>a>>b;\x0d ^ answer.code:6:5: note: suggested alternative: In file included from answ...