Problem | segmenttree |
---|---|
User | Pan |
Submission Time | 2023-11-03 14:21:54 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
segmenttree.cpp: In function ‘int query(int, int)’:
segmenttree.cpp:24:18: error: ‘INT_MAX’ was not declared in this scope
24 | int result = INT_MAX; // Initialize result with a large value
| ^~~~~~~
segmenttree.cpp:3:1: note: ‘INT_MAX’ is defined in header ‘<climits>’; did you forget to ‘#include <climits>’?
2 | #include <vector>
+++ |+#include <climits>
3 | using namespace std;