Problem runaway
User jerrielchangjiebin
Submission Time 2024-12-16 20:07:55
Score 0
Max Time N/A
Max Memory N/A

Compile Error

runaway.cpp: In function ‘std::vector<int> runaway(int, int, int, std::vector<int>&, std::vector<int>&)’:
runaway.cpp:19:60: error: ‘INT_MAX’ was not declared in this scope
19 | int left_cat_dist = (right_it == clones.begin()) ? INT_MAX : ket_pos - *(right_it - 1);
| ^~~~~~~
runaway.cpp:4:1: note: ‘INT_MAX’ is defined in header ‘<climits>’; did you forget to ‘#include <climits>’?
3 | #include <algorithm>
+++ |+#include <climits>
4 | using namespace std;