Problem | segmenttree |
---|---|
User | asbx |
Submission Time | 2023-12-06 11:28:37 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
segmenttree.cpp: In constructor ‘node::node(int, int)’:
segmenttree.cpp:9:8: error: ‘a’ was not declared in this scope
9 | val=a[S];
| ^
segmenttree.cpp: In function ‘int query(int, int)’:
segmenttree.cpp:19:7: error: ‘E’ was not declared in this scope
19 | if(l>E||r<S){
| ^
segmenttree.cpp:19:12: error: ‘S’ was not declared in this scope
19 | if(l>E||r<S){
| ^
segmenttree.cpp:23:10: error: ‘val’ was not declared in this scope
23 | return val;
| ^~~
segmenttree.cpp:25:15: error: request for member ‘qry’ in ‘* std::left’, which is of non-class type ‘std::ios_base&(std::ios_base&)’
25 | return left->qry(l, r) + right->qry(l, r);
| ^~~
segmenttree.cpp:25:34: error: request for member ‘qry’ in ‘* std::right’, which is of non-class type ‘std::ios_base&(std::ios_base&)’
25 | return left->qry(l, r) + right->qry(l