Problem burgers
User NuggetsAreNice
Submission Time 2024-02-13 16:10:44
Score 0
Max Time N/A
Max Memory N/A

Compile Error

burgers.cpp: In function ‘int main()’:
burgers.cpp:27:14: error: ‘INT_MAX’ was not declared in this scope
27 | int la = INT_MAX, lb = INT_MAX;
| ^~~~~~~
burgers.cpp:4:1: note: ‘INT_MAX’ is defined in header ‘<climits>’; did you forget to ‘#include <climits>’?
3 | #include <algorithm>
+++ |+#include <climits>
4 |
burgers.cpp:31:9: error: ‘lb’ was not declared in this scope; did you mean ‘la’?
31 | lb = min(lb, ingredients[i] / ab[i].second);
| ^~
| la
burgers.cpp:34:19: error: ‘lb’ was not declared in this scope; did you mean ‘la’?
34 | max = min(la, lb);
| ^~
| la