Problem | segmenttree |
---|---|
User | asbx |
Submission Time | 2023-12-06 11:26:02 |
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 member function ‘int node::query(int, int)’:
segmenttree.cpp:24:15: error: ‘struct node’ has no member named ‘qry’; did you mean ‘query’?
24 | return left->qry(l, r) + right->qry(l, r);
| ^~~
| query
segmenttree.cpp:24:34: error: ‘struct node’ has no member named ‘qry’; did you mean ‘query’?
24 | return left->qry(l, r) + right->qry(l, r);
| ^~~
| query
segmenttree.cpp: In function ‘int main()’:
segmenttree.cpp:49:12: error: ‘update’ was not declared in this scope
49 | if(a==1) update(b,c);
| ^~~~~~
segmenttree.cpp:50:14: error: ‘query’ was not declared in this scope
50 | else cout<<query(b,c