Problem flappyrabbit
User PanGD
Submission Time 2023-02-23 20:21:16
Score 0
Max Time N/A
Max Memory N/A

Compile Error

flappyrabbit.cpp: In function ‘int query_up(int, int, int, int, int)’:
flappyrabbit.cpp:13:29: error: ‘query’ was not declared in this scope; did you mean ‘query_up’?
13 | if (l<=mid) ret=max(ret,query(tree_pos<<1,cl,mid,l,r));
| ^~~~~
| query_up
flappyrabbit.cpp:14:28: error: ‘query’ was not declared in this scope; did you mean ‘query_up’?
14 | if (r>mid) ret=max(ret,query(tree_pos<<1|1,mid+1,cr,l,r));
| ^~~~~
| query_up
flappyrabbit.cpp: In function ‘void build_up(int, int, int, std::vector<int>)’:
flappyrabbit.cpp:25:9: error: ‘build’ was not declared in this scope
25 | build(2*node, start, mid, arr);
| ^~~~~
flappyrabbit.cpp: In function ‘int query_down(int, int, int, int, int)’:
flappyrabbit.cpp:37:29: error: ‘query’ was not declared in this scop