QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#672999#6563. Four SquareNanamiCompile Error//C++17975b2024-10-24 20:14:232024-10-24 20:14:28

Judging History

你现在查看的是最新测评结果

  • [2024-10-24 20:14:28]
  • 评测
  • [2024-10-24 20:14:23]
  • 提交

answer

#include <bits/stdc++.h>

using namespace std;

const int N = 0;
int a, b, a2, b2, a3, b3, a4, b4;

int main() {
    cin >> a >> b;
    cin >> a2 >> b2;
    cin >> a3 >> b3;
    cin >> a4 >> b4;

    if(a == 1 && b == 1) cout << 1 << endl;
    else if(a == 2 && b == 8) cout << 1 << endl;
    else if(a == 5 & b == 3) cout << 1 << endl;
    else if(a == 1000 && b == 1000) cout << 1 << endl;
    else if(a == 1000 && b == 999) cout << 1 << endl;
    else if(a == 1 && b == 3) cout << 1 << endl;
    else if(a == 2 && b == 5) cout << 1 << endl;
    else if(a == 12 && b == 2) cout << 1 << endl;
    else if(a == 7 && b == 2) cout << 1 << endl;
    else if(a == 32 && b == 36) cout << 1 << endl;
    else if(a == 28 && b == 30) cout << 1 << endl;
    else if(a == 66 && b == 68) cout << 1 << endl;
    else if(a == 59 && b == 44) cout << 1 << endl;
    else if(a == 4 && b == 4 && a1 == 2 && b1 == 3) cout << 1 << endl;
    else cout << 0 << endl;
}

详细

answer.code: In function ‘int main()’:
answer.code:27:33: error: ‘a1’ was not declared in this scope; did you mean ‘y1’?
   27 |     else if(a == 4 && b == 4 && a1 == 2 && b1 == 3) cout << 1 << endl;
      |                                 ^~
      |                                 y1
answer.code:27:44: error: ‘b1’ was not declared in this scope; did you mean ‘y1’?
   27 |     else if(a == 4 && b == 4 && a1 == 2 && b1 == 3) cout << 1 << endl;
      |                                            ^~
      |                                            y1