| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 132500 | 张咏灏 | 比较三个数大小II | C++ | Compile Error | 0 MS | 0 KB | 463 | 2025-10-08 18:45:04 |
#include<iostream> using namespace std; int main(){ int a,b,c; cin>>a>>b>>c; if(a>b>c){ if((b>c){ cout<<a<<b<<c; }else{ cout<<a<<c<<b; } }else if(b>a>c){ if(a>c){ cout<<b<<a<<c; }else{ cout<<b<<c<<a; } }else{ if(b>a){ cout<<c<<b<<a; }else{ cout<<c<<a<<b; } } return 0; }
Main.cc: In function 'int main()':
Main.cc:6:9: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
if(a>b>c){
^
Main.cc:7:14: error: expected ')' before '{' token
if((b>c){
^
Main.cc:12:5: error: expected primary-expression before '}' token
}else if(b>a>c){
^
Main.cc:12:15: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
}else if(b>a>c){
^