Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
145143 于墨轩 比较三个数大小II C++ Compile Error 0 MS 0 KB 570 2026-01-25 09:02:56

Tests(0/0):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ int a,b>>c; cin>>a>>b>>c; if(a>b && b>c){ cout<<c<<b<<a<<endl; if(a<b && b<c){ cout<<a<<b<<c; if(a<b && b>c && c>a){ cout<<a<<c<<b; if(a<b && b>c && c<a){ cout<<c<<a<<b; if(a>b && b<c ){ cout<<b<<c<<a; if(a>b && b>c && c<a){ cout<<c<<b<<a; } } } } } } return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:5:11: error: expected initializer before '>>' token
    int a,b>>c;
           ^
Main.cc:6:13: error: 'b' was not declared in this scope
     cin>>a>>b>>c;
             ^
Main.cc:6:16: error: 'c' was not declared in this scope
     cin>>a>>b>>c;
                ^