Problem burgers
User yoshiokalili
Submission Time 2026-02-20 19:17:30
Score 0
Max Time N/A
Max Memory N/A

Compile Error

burgers.cpp: In function ‘int main()’:
burgers.cpp:25:7: error: ‘A’ was not declared in this scope
25 | if(A[i] == B[i]){
| ^
burgers.cpp:25:15: error: ‘B’ was not declared in this scope
25 | if(A[i] == B[i]){
| ^
burgers.cpp:26:19: error: ‘X’ was not declared in this scope
26 | if(A[i]*mid > X[i]) yes = false;
| ^
burgers.cpp:29:19: error: ‘X’ was not declared in this scope
29 | if(A[i]*mid > X[i]) yes = false;
| ^
burgers.cpp:30:20: error: ‘X’ was not declared in this scope
30 | if(B[i]*mid <= X[i]) continue;
| ^
burgers.cpp:32:29: error: ‘X’ was not declared in this scope
32 | minA = max(minA, mid - (X[i] - A[i]*mid) / (B[i] - A[i]));
| ^
burgers.cpp:35:19: error: ‘X’ was not declared in this scope
35 | if(B[i]*mid > X[i]) yes =