QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#731379 | #5577. Alchemy | jkliao# | Compile Error | / | / | C++14 | 334b | 2024-11-10 02:51:19 | 2024-11-10 02:51:19 |
Judging History
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; | ^~~~