Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
93320 | 陈铎文 | [在线测评解答教程] A+B Problem | C++ | Compile Error | 0 MS | 0 KB | 106 | 2024-10-13 11:11:58 |
#include<bits/stdc++.h> using namepsce std; int main(){ int a,b; cin>>a>>b; cout<<a+b; }
Main.cc:2:7: error: expected nested-name-specifier before 'namepsce' using namepsce std; ^ Main.cc: In function 'int main()': Main.cc:5:5: error: 'cin' was not declared in this scope cin>>a>>b; ^ Main.cc:5:5: note: suggested alternative: In file included from /usr/include/x86_64-linux-gnu/c++/5/bits/stdc++.h:74:0, from Main.cc:1: /usr/include/c++/5/iostream:60:18: note: 'std::cin' extern istream cin; /// Linked to standard input ^ Main.cc:6:5: error: 'cout' was not declared in this scope cout<