| Problem | rangerangequery |
|---|---|
| User | CKCodeBreaker55 |
| Submission Time | 2025-10-11 11:59:32 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
rangerangequery.cpp: In function ‘int queryMin(int, int, int, int, int)’:
rangerangequery.cpp:3:34: error: ‘INT_MAX’ was not declared in this scope
3 | if (qr < l || ql > r) return INT_MAX; // no overlap
| ^~~~~~~
rangerangequery.cpp:1:1: note: ‘INT_MAX’ is defined in header ‘<climits>’; did you forget to ‘#include <climits>’?
+++ |+#include <climits>
1 | // Query min in range [ql, qr]
rangerangequery.cpp:4:36: error: ‘segMin’ was not declared in this scope
4 | if (ql <= l && r <= qr) return segMin[idx]; // total overlap
| ^~~~~~
rangerangequery.cpp:6:12: error: ‘min’ was not declared in this scope; did you mean ‘mid’?
6 | return min(queryMin(2 * idx, l, mid, ql, qr),
| ^~~
| mid
rangerangequery.cpp: In function ‘int queryMax(int, int, int, int, int)’:
rangerangequery.cp