Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
98705 | 黄梓皓 | 07交换数据II | C++ | Compile Error | 0 MS | 0 KB | 219 | 2024-11-23 13:21:33 |
include<bits/stdc++.h> using namespace std; int main(){ int a,b,c; cin>>a>>b; if(a>b){ c=a; a=b; b=c; cout<<a<<""<<b; } endl; else{ cout<<a<<""<<b; } return 0; }
Main.cc:1:2: error: 'include' does not name a type include ^ Main.cc: In function 'int main()': Main.cc:5:3: error: 'cin' was not declared in this scope cin>>a>>b; ^ Main.cc:10:10: error: 'cout' was not declared in this scope cout<