| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 133103 | 左锶焜 | 08比较三个数的大小 | C++ | Compile Error | 0 MS | 0 KB | 423 | 2025-10-14 19:23:50 |
#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int a,b,c; cin>>a>>b>>c; if(a>b>c){ cout<<a; } else(b>a>c)&&(b>c>a) cout<<b; else(c>a>b)&&c>b>a) cout<<c; return 0; }
Main.cc: In function 'int main()':
Main.cc:10:9: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
if(a>b>c){
^
Main.cc:13:11: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
else(b>a>c)&&(b>c>a)
^
Main.cc:13:20: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
else(b>a>c)&&(b>c>a)
^
Main.cc:14:5: error: expected ';' before 'cout'
cout<a>c)&&(b>c>a)
^
Main.cc:15:5: error: 'else' without a previous 'if'
else(c>a>b)&&c>b>a)
^
Main.cc:15:11: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
else(c>a>b)&&c>b>a)
^
Main.cc:15:19: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
else(c>a>b)&&c>b>a)
^
Main.cc:15:23: error: expected ';' before ')' token
else(c>a>b)&&c>b>a)
^
Main.cc:15:16: warning: statement has no effect [-Wunused-value]
else(c>a>b)&&c>b>a)
^