QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#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;
}
}
}
Details
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; | ^~~~