Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
875 | 伊隽诚 | 07比较大小 | C++ | Compile Error | 0 MS | 0 KB | 183 | 2023-05-13 15:14:18 |
#include<iostream> using namespace std; int main() { int a,b; cin>>a>>b; if a>b { cout<<a; } else { cout<<b; } return 0; }
Main.cc: In function 'int main()': Main.cc:7:8: error: expected '(' before 'a' if a>b ^ Main.cc:11:5: error: 'else' without a previous 'if' else ^