Problem segmenttree
User PlayVoltz
Submission Time 2023-10-26 16:13:31
Score 0
Max Time N/A
Max Memory N/A

Compile Error

segmenttree.cpp: In function ‘int main()’:
segmenttree.cpp:47:11: error: no matching function for call to ‘node::node()’
47 | new node st = new node(0, n-1);
| ^~
segmenttree.cpp:20:2: note: candidate: ‘node::node(int, int)’
20 | node(int S, int E){
| ^~~~
segmenttree.cpp:20:2: note: candidate expects 2 arguments, 0 provided
segmenttree.cpp:16:8: note: candidate: ‘constexpr node::node(const node&)’
16 | struct node{
| ^~~~
segmenttree.cpp:16:8: note: candidate expects 1 argument, 0 provided
segmenttree.cpp:16:8: note: candidate: ‘constexpr node::node(node&&)’
segmenttree.cpp:16:8: note: candidate expects 1 argument, 0 provided
segmenttree.cpp:51:4: error: ‘st’ was not declared in this scope; did you mean ‘std’?
51 | st.up(b, c);
| ^~
| std
segmenttree.cpp:54:10: error: ‘st’ was not declared in this scope; did you mean ‘std’?
54 | cout<<st.que