Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
98097 | 杨政翰 | 07交换数据II | C++ | Compile Error | 0 MS | 0 KB | 240 | 2024-11-17 12:32:49 |
#include<iostream> using namespace std; int main() { inta,b,c; cin>>a>>b; if(a>b) { c=a; a=b; b=c; } cout<<a<<""<<b<<endl; retur0; }
Main.cc: In function 'int main()': Main.cc:5:8: error: 'inta' was not declared in this scope inta,b,c; ^ Main.cc:5:13: error: 'b' was not declared in this scope inta,b,c; ^ Main.cc:5:15: error: 'c' was not declared in this scope inta,b,c; ^ Main.cc:6:13: error: 'a' was not declared in this scope cin>>a>>b; ^ Main.cc:14:8: error: 'retur0' was not declared in this scope retur0; ^