Problem segmenttree
User maximushartanto
Submission Time 2025-09-20 16:31:04
Score 0
Max Time N/A
Max Memory N/A

Compile Error

segmenttree.cpp: In member function ‘int node::query(int, int)’:
segmenttree.cpp:31:12: error: base operand of ‘->’ is not a pointer
31 | return r->query(tm+1,r);
| ^~
segmenttree.cpp:34:12: error: base operand of ‘->’ is not a pointer
34 | return l->query(l, tm);
| ^~
segmenttree.cpp:37:16: error: base operand of ‘->’ is not a pointer
37 | return min(l->query(l, tm), r->query(tm+1, r));
| ^~
segmenttree.cpp:37:33: error: base operand of ‘->’ is not a pointer
37 | return min(l->query(l, tm), r->query(tm+1, r));
| ^~