Problem segmenttree
User ATHY
Submission Time 2025-02-21 16:51:24
Score 0
Max Time N/A
Max Memory N/A

Compile Error

segmenttree.cpp: In function ‘int main()’:
segmenttree.cpp:283:20: error: no matching function for call to ‘node::add(int&, int&)’
283 | root -> add(y, z);
| ^
segmenttree.cpp:224:10: note: candidate: ‘void node::add(int, int, ll)’
224 | void add(int x, int y, ll v) {
| ^~~
segmenttree.cpp:224:10: note: candidate expects 3 arguments, 2 provided