Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
96073 | 张运衡 | 08比较三个数的大小 | C++ | Compile Error | 0 MS | 0 KB | 230 | 2024-11-02 20:21:10 |
#include<bits/stdc++.h> using namespace std; int main(){ int a,b,c,max; cin>>a>>b>>c; if(a>b){ cout<<a; } else(b>c){ cout<<b; } else(a<c){ cout<<c; } return 0; }
Main.cc: In function 'int main()': Main.cc:9:14: error: expected ';' before '{' token else(b>c){ ^ Main.cc:12:5: error: 'else' without a previous 'if' else(a