| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 145566 | 王一德 | 比较三个数大小II | C++ | Compile Error | 0 MS | 0 KB | 528 | 2026-01-25 16:32:33 |
#include<iostream> using namespace std; int main(){ int a,b,c,d; cin>>a; cin>>b; cin>>c; if(a>b&&a>c){ cout<<a<<" "; if(b>c){ cout<<b<<" "<<c; }else{ cout<<c<<" "<<b; } if(b>a&&b>c){ cout<<b<<" "; if(a>c){ cout<<a<<" "<<c; }else{ cout<<c<<" "<<a; } if(c>b&&c>a){ cout<<c<<" "; if(b>a){ cout<<b<<" "<<a; }else{ cout<<a<<" "<<b; } return 0; }
Main.cc: In function 'int main()':
Main.cc:30:1: error: expected '}' at end of input
}
^
Main.cc:30:1: error: expected '}' at end of input
Main.cc:4:15: warning: unused variable 'd' [-Wunused-variable]
int a,b,c,d;
^
Main.cc:30:1: error: expected '}' at end of input
}
^