Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
105394 | 李朋秦 | 08比较三个数的大小 | C++ | Compile Error | 0 MS | 0 KB | 457 | 2025-01-13 14:51:51 |
#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>>year; if((a>b>c)||(a>c>b){ cout<<a; } else{ if((b>a>c)||(b>c<a){ cout<<b; } else{ if((c>a>b)||(c>b>a)){ } } return 0; }
Main.cc: In function 'int main()': Main.cc:9:10: error: 'year' was not declared in this scope cin>>year; ^ Main.cc:10:10: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] if((a>b>c)||(a>c>b){ ^ Main.cc:10:19: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] if((a>b>c)||(a>c>b){ ^ Main.cc:10:24: error: expected ')' before '{' token if((a>b>c)||(a>c>b){ ^ Main.cc:22:1: error: expected statement at end of input } ^ Main.cc:22:1: error: expected '}' at end of input