Problem segmenttree
User Yichen
Submission Time 2025-12-05 09:51:38
Score 0
Max Time N/A
Max Memory N/A

Compile Error

segmenttree.cpp: In member function ‘int node::qry(int, int)’:
segmenttree.cpp:22:35: error: ‘INT_MAX’ was not declared in this scope
22 | if(a > E || b < S) return INT_MAX;
| ^~~~~~~
segmenttree.cpp:3:1: note: ‘INT_MAX’ is defined in header ‘<climits>’; did you forget to ‘#include <climits>’?
2 | #include <algorithm>
+++ |+#include <climits>
3 | using namespace std;