| Problem | segmenttree |
|---|---|
| User | Schoolpurposes |
| Submission Time | 2025-12-03 16:22:45 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
segmenttree.cpp: In constructor ‘node::node(int, int)’:
segmenttree.cpp:16:15: error: ‘min’ was not declared in this scope
16 | val = min(left->val, right->val); // CHANGED: min instead of sum
| ^~~
segmenttree.cpp: In member function ‘int node::qry(int, int)’:
segmenttree.cpp:20:36: error: ‘INT_MAX’ was not declared in this scope
20 | if (l > E || r < S) return INT_MAX; // CHANGED: INT_MAX for min
| ^~~~~~~
segmenttree.cpp:1:1: note: ‘INT_MAX’ is defined in header ‘<climits>’; did you forget to ‘#include <climits>’?
+++ |+#include <climits>
1 | const int MAX = 1e6;
segmenttree.cpp:22:16: error: ‘min’ was not declared in this scope
22 | return min(left->qry(l, r), right->qry(l, r)); // CHANGED: min instead of sum
| ^~~
segmenttree.cpp: In member function ‘void node::upd(int, int)’:
segme