| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 144926 | 张法森 | 比较三个数大小II | C++ | Compile Error | 0 MS | 0 KB | 510 | 2026-01-24 19:38:17 |
#include<iostream> #include<cstdio> using namespace std; int main() { int a,b,c; cin>>a>>b>>c; if(a>b && a>c && b>c){ cout<<a<<" "<<b<<" "<<c; }else{ if(a>b && a>c && c>b) cout<<a<<" "<<c<<" "<<b;} if(b>a && b>c && a>c) cout<<b<<" "<<a<<" "<<c; }else{ if(b>a && b>c && c>a) cout<<b<<" "<<a<<" "<<c;} if(c>a && c>b && a>b) cout<<c<<" "<<a<<" "<<b; }else{ if(c>a && c>b && b>a) cout<<c<<" "<<b<<" "<<b;} } return 0; }
Main.cc:15:6: error: expected unqualified-id before 'else'
}else{
^
Main.cc:19:5: error: expected unqualified-id before 'if'
if(c>a && c>b && a>b)
^
Main.cc:21:5: error: expected declaration before '}' token
}else{
^