| Problem | burgers |
|---|---|
| User | tuongphat2505 |
| Submission Time | 2025-02-12 15:42:48 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
burgers.cpp: In function ‘int main()’:
burgers.cpp:33:23: error: expected ‘;’ before ‘long’
33 | bool ok = 1; 6
| ^
| ;
burgers.cpp:45:17: error: ‘mink’ was not declared in this scope
45 | mink = max(mink, k - (x[i] - a[i] * k) / (b[i] - a[i]));
| ^~~~
burgers.cpp:51:17: error: ‘maxk’ was not declared in this scope; did you mean ‘maxn’?
51 | maxk = min(maxk, (x[i] - b[i] * k) / (a[i] - b[i]));
| ^~~~
| maxn
burgers.cpp:54:18: error: ‘mink’ was not declared in this scope
54 | if(ok && mink < maxk) l = k;
| ^~~~
burgers.cpp:54:25: error: ‘maxk’ was not declared in this scope; did you mean ‘maxn’?
54 | if(ok && mink < maxk) l = k;
| ^~~~
| maxn