Problem segmenttree
User YEethui
Submission Time 2023-11-30 19:23:58
Score 0
Max Time N/A
Max Memory N/A

Compile Error

segmenttree.cpp: In member function ‘int SegmentTree::query(int, int, int, int, int)’:
segmenttree.cpp:28:48: error: ‘INT_MAX’ was not declared in this scope
28 | if(end < left || start > right) return INT_MAX;
| ^~~~~~~
segmenttree.cpp:4:1: note: ‘INT_MAX’ is defined in header ‘<climits>’; did you forget to ‘#include <climits>’?
3 | #include <vector>
+++ |+#include <climits>
4 | using namespace std;