QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#731379#5577. Alchemyjkliao#Compile Error//C++14334b2024-11-10 02:51:192024-11-10 02:51:19

Judging History

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

  • [2024-11-10 02:51:19]
  • 评测
  • [2024-11-10 02:51:19]
  • 提交

answer

include <bits/stdc++.h>

using namespace std;

int main(){
        int a, b, c, d;
        cin >> a >> b >> c >> d;
        int count = 0;
        a = b-a;
        c = d- c;
        for(int i =0; i < 5000; i++){
        if (i % b == a && i % d == c){
        cout << i << endl;
        break;
        }
        }

}

详细

answer.code:1:1: error: ‘include’ does not name a type
    1 | include <bits/stdc++.h>
      | ^~~~~~~
answer.code: In function ‘int main()’:
answer.code:7:9: error: ‘cin’ was not declared in this scope
    7 |         cin >> a >> b >> c >> d;
      |         ^~~
answer.code:13:9: error: ‘cout’ was not declared in this scope; did you mean ‘count’?
   13 |         cout << i << endl;
      |         ^~~~
      |         count
answer.code:13:22: error: ‘endl’ was not declared in this scope
   13 |         cout << i << endl;
      |                      ^~~~