Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
1771 | 邓程允 | 05交换数据 | C++ | Compile Error | 0 MS | 0 KB | 160 | 2023-11-05 11:00:10 |
# include<cstdio> using namespace std; int main(){ int a,b,c; cin>>a>>b; c=a; a=b; b=c; cout<<a<<" "<<b<<endl; return 0; }
Main.cc: In function 'int main()': Main.cc:5:5: error: 'cin' was not declared in this scope cin>>a>>b; ^ Main.cc:9:5: error: 'cout' was not declared in this scope cout<a<<" "<<b<<endl; ^ Main.cc:9:22: error: 'endl' was not declared in this scope cout<<a<<" "<<b<<endl; ^