Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
155890 鸡哥 08三个数排序 C++ Compile Error 0 MS 0 KB 461 2026-06-14 13:46:34

Tests(0/0):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ if(a > b and a > c){ cout<<a<<" "; if(b < c){ cout<<c<<" "<<b; }else{ cout<<b<<" "<<c; } }else{ if(c > b and c > a){ cout<<c<<" "; if(b < a ){ cout<<a<<" "<<b; }else{ cout<<b<<" "<<a; } } }else{ if(b > c and b > a){ cout<<b<<" "; if(c < a ){ cout<<a<<" "<<c; }else{ cout<<c<<" "<<a; } } } return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:4:5: error: 'a' was not declared in this scope
  if(a > b and a > c){
     ^
Main.cc:4:9: error: 'b' was not declared in this scope
  if(a > b and a > c){
         ^
Main.cc:4:19: error: 'c' was not declared in this scope
  if(a > b and a > c){
                   ^
Main.cc:20:3: error: 'else' without a previous 'if'
  }else{
   ^
Main.cc:21:6: error: 'b' was not declared in this scope
   if(b > c and b > a){
      ^
Main.cc:21:10: error: 'c' was not declared in this scope
   if(b > c and b > a){
          ^
Main.cc:21:20: error: 'a' was not declared in this scope
   if(b > c and b > a){
                    ^