Problem | segmenttree |
---|---|
User | boaznumberd5555 |
Submission Time | 2024-12-04 11:44:20 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
segmenttree.cpp: In member function ‘void node::update(int, int)’:
segmenttree.cpp:23:15: error: ‘n’ was not declared in this scope; did you mean ‘yn’?
23 | if(p<=n) l->update(p,v);
| ^
| yn
segmenttree.cpp: In member function ‘int node::query(int, int)’:
segmenttree.cpp:29:38: error: expected unqualified-id before ‘(’ token
29 | return min(l->query(x,y), r->(x,y)); //this is why int max so it gets the stuff in range
| ^
segmenttree.cpp: In function ‘int main()’:
segmenttree.cpp:35:30: error: ‘N’ was not declared in this scope
35 | node *root = new node(0, N-1);
| ^
segmenttree.cpp:38:12: error: ‘t’ was not declared in this scope
38 | if(t){
| ^
segmenttree.cpp:40:26: error: ‘p’ was not declared in this scope
40 | root->update(p,v);