Problem | segmenttree |
---|---|
User | Arwanthugshakerbutbetter |
Submission Time | 2023-08-16 16:39:27 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
segmenttree.cpp:104:1: error: ‘root’ does not name a type
104 | root = new node(0, 100001);
| ^~~~
segmenttree.cpp: In function ‘int main()’:
segmenttree.cpp:114:20: error: no matching function for call to ‘node::set(int&, int&)’
114 | root->set(a,b);
| ^
segmenttree.cpp:62:10: note: candidate: ‘void node::set(int, int, ll)’
62 | void set(int x, int y, ll v) {
| ^~~
segmenttree.cpp:62:10: note: candidate expects 3 arguments, 2 provided