Problem segmenttree
User justin271828
Submission Time 2024-09-30 16:25:34
Score 0
Max Time N/A
Max Memory N/A

Compile Error

segmenttree.cpp: In function ‘int main()’:
segmenttree.cpp:38:17: error: request for member ‘update’ in ‘n’, which is of pointer type ‘node*’ (maybe you meant to use ‘->’ ?)
38 | if (a == 1) n.update(b, c);
| ^~~~~~
segmenttree.cpp:39:18: error: request for member ‘rmq’ in ‘n’, which is of pointer type ‘node*’ (maybe you meant to use ‘->’ ?)
39 | else cout << n.rmq(b, c);
| ^~~