Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
67002 黄枳润 比较三个数大小II C++ Compile Error 0 MS 0 KB 585 2024-03-12 19:47:15

Tests(0/0):


Code:

#include<iostream> using namespace std; int main() { int a,b,c; cin>>a>>b>>c; if(a>b&&a>c){ if(b<c){ cout<<b<<' '<<c<<' '<<a<<endl; }else{ cout<<c<<' '<<b<<' '<<a<<endl; } { if(b>a&&b>c){ if(a<c){ cout<<a<<' '<<c<<' '<<b<<endl; }else{ cout<<c<<' '<<a<<' '<<b<<endl; } { if(c>a&&c>b){ if(a<b){ cout<<a<<' '<<b<<' '<<c<<endl; }else{ cout<<b<<' '<<a<<' '<<c<<endl; } } return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:29:1: error: expected '}' at end of input
 }
 ^
Main.cc:29:1: error: expected '}' at end of input
Main.cc:29:1: error: expected '}' at end of input
Main.cc:29:1: error: expected '}' at end of input