QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#125132 | #4964. Easy-to-Solve Expressions | Amys4n | Compile Error | / | / | C++14 | 302b | 2023-07-16 02:52:56 | 2023-07-16 02:52:59 |
Judging History
你现在查看的是最新测评结果
- [2023-08-10 23:21:45]
- System Update: QOJ starts to keep a history of the judgings of all the submissions.
- [2023-07-16 02:52:59]
- 评测
- 测评结果:Compile Error
- 用时:0ms
- 内存:0kb
- [2023-07-16 02:52:56]
- 提交
answer
#include <bits/stdc++.h>
using namespace std;
int main(){
int a, b, c;
cin >> a >> b >> c;
if(a+b == c or a+c==b or b+c =a){
cout << 1 << endl;
} else if(a*b == c or a*c== b or b*c==a){
cout << 2 << endl;
} else{
cout << 3 << endl;
}
}
详细
answer.code: In function ‘int main()’: answer.code:9:27: error: lvalue required as left operand of assignment 9 | if(a+b == c or a+c==b or b+c =a){ | ~~~~~~~~~~~~~~~~~~~^~~~~~