Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
139662 lmh 比较三个数大小II C++ Compile Error 0 MS 0 KB 196 2025-12-08 16:40:36

Tests(0/0):


Code:

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


Run Info:

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:9:6: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
  if(b>a>c){
      ^
Main.cc:12:6: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
  if(c>a>b){
      ^
Main.cc:15:10: error: expected '}' at end of input
  return 0;
          ^