QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#125132#4964. Easy-to-Solve Expressions Amys4nCompile Error//C++14302b2023-07-16 02:52:562023-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]
  • 评测
  • [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){
      |        ~~~~~~~~~~~~~~~~~~~^~~~~~