Problem candymountain_ex
User elesis
Submission Time 2023-11-23 00:25:49
Score 0
Max Time N/A
Max Memory N/A

Compile Error

candymountain_ex.cpp: In function ‘int max_candies_route(int, int, std::vector<int>&)’:
candymountain_ex.cpp:7:23: error: ‘INT_MAX’ was not declared in this scope
7 | int max_candies = INT_MAX;
| ^~~~~~~
candymountain_ex.cpp:3:1: note: ‘INT_MAX’ is defined in header ‘<climits>’; did you forget to ‘#include <climits>’?
2 | #include <vector>
+++ |+#include <climits>
3 |
candymountain_ex.cpp:10:33: error: ‘INT_MIN’ was not declared in this scope
10 | int route_max_candies = INT_MIN;
| ^~~~~~~
candymountain_ex.cpp:10:33: note: ‘INT_MIN’ is defined in header ‘<climits>’; did you forget to ‘#include <climits>’?