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

Compile Error

burgers.cpp: In function ‘int main()’:
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 = false;
| ^
burgers.cpp:36:20: error: ‘X’ was not declared in this scope
36 | if(A[i]*mid <= X[i]) continue;
| ^
burgers.cpp:38:23: error: ‘X’ was not declared in t