Problem segmenttree
User gsayson
Submission Time 2025-10-22 16:05:30
Score 0
Max Time N/A
Max Memory N/A

Compile Error

segmenttree.cpp: In member function ‘int SegmentTree::queryUtil(int, int, int, int, int)’:
segmenttree.cpp:40:36: error: ‘INT_MAX’ was not declared in this scope
40 | if (R < l || r < L) return INT_MAX;
| ^~~~~~~
segmenttree.cpp:7:1: note: ‘INT_MAX’ is defined in header ‘<climits>’; did you forget to ‘#include <climits>’?
6 | #include <unordered_set>
+++ |+#include <climits>
7 |