Problem segmenttree
User dzuizz
Submission Time 2026-02-13 17:39:44
Score 0
Max Time N/A
Max Memory N/A

Compile Error

segmenttree.cpp:26:8: error: cannot convert ‘node’ to ‘node*’ in initialization
26 | }*root=node(0,100010);
| ^~~~~~~~~~~~~~
| |
| node
segmenttree.cpp: In function ‘int main()’:
segmenttree.cpp:33:20: error: request for member ‘upd’ in ‘root’, which is of pointer type ‘node*’ (maybe you meant to use ‘->’ ?)
33 | if (t == 1) root.upd(a,b);
| ^~~
segmenttree.cpp:34:23: error: request for member ‘qry’ in ‘root’, which is of pointer type ‘node*’ (maybe you meant to use ‘->’ ?)
34 | else cout << root.qry(a,b) << '\n';
| ^~~