Problem candymountain_ex
User pIaceholder
Submission Time 2024-01-15 11:34:24
Score 0
Max Time N/A
Max Memory N/A

Compile Error

candymountain_ex.cpp: In function ‘int solve(std::vector<int>&, int, int)’:
candymountain_ex.cpp:7:35: error: ‘INT_MAX’ was not declared in this scope
7 | if (i >= steps.size()) return INT_MAX;
| ^~~~~~~
candymountain_ex.cpp:4:1: note: ‘INT_MAX’ is defined in header ‘<climits>’; did you forget to ‘#include <climits>’?
3 | #include <vector>
+++ |+#include <climits>
4 |