Problem segmenttree
User chickengoat
Submission Time 2025-12-03 16:34:30
Score 0
Max Time N/A
Max Memory N/A

Compile Error

segmenttree.cpp: In constructor ‘node::node(ll, ll)’:
segmenttree.cpp:20:9: error: ‘L’ was not declared in this scope
20 | L = new node(S, M);
| ^
segmenttree.cpp:21:9: error: ‘R’ was not declared in this scope
21 | R = new node(M + 1, E);
| ^
segmenttree.cpp: In member function ‘void node::update(ll, ll)’:
segmenttree.cpp:31:13: error: ‘L’ was not declared in this scope
31 | L->update(pos, newval);
| ^
segmenttree.cpp:33:13: error: ‘R’ was not declared in this scope
33 | R->update(pos, newval);
| ^
segmenttree.cpp:35:19: error: ‘L’ was not declared in this scope
35 | val = min(L->val, R->val);
| ^
segmenttree.cpp:35:27: error: ‘R’ was not declared in this scope
35 | val = min(L->val, R->val);
| ^
segmenttree.cpp: In m