Problem segmenttree
User boaznumberd5555
Submission Time 2024-12-04 11:44:46
Score 0
Max Time N/A
Max Memory N/A

Compile Error

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);
| ^
segmenttree.cpp:40:28: error: ‘v’ was not declared in this scope
40 | root->update(p,v);
| ^