| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 143723 | 张锦程 | 比较三个数大小II | C++ | Compile Error | 0 MS | 0 KB | 320 | 2026-01-17 15:52:19 |
#include<iostream> using namespace std; int main() { int x,y,z,t; cin>>x>>y>>z; if(a>b){ t=a; a=b; b=t; }if(c>a){ t=c; c=a; a=t; }if(b>c){ t=b; b=c; c=t; }cout<<a<<" "<<b<<" "<<c<<endl; return 0; }
Main.cc: In function 'int main()':
Main.cc:6:8: error: 'a' was not declared in this scope
if(a>b){
^
Main.cc:6:10: error: 'b' was not declared in this scope
if(a>b){
^
Main.cc:10:9: error: 'c' was not declared in this scope
}if(c>a){
^
Main.cc:10:11: error: 'a' was not declared in this scope
}if(c>a){
^
Main.cc:14:9: error: 'b' was not declared in this scope
}if(b>c){
^
Main.cc:14:11: error: 'c' was not declared in this scope
}if(b>c){
^
Main.cc:18:12: error: 'a' was not declared in this scope
}cout<