Problem rarwall
User shoryu386
Submission Time 2023-06-06 02:56:29
Score 0
Max Time N/A
Max Memory N/A

Compile Error

rarwall.cpp:8:15: error: expected ‘)’ before ‘,’ token
8 | node(int_S, int _E) { s=_S; e=_E; val=lzaddL=lzaddR=0; l=NULL; r=NULL; }
| ~ ^
| )
rarwall.cpp: In member function ‘void node::createL()’:
rarwall.cpp:14:19: error: no matching function for call to ‘node::node(int&, int)’
14 | l = new node(s, m);
| ^
rarwall.cpp:9:5: note: candidate: ‘node::node(node*)’
9 | node(node *u) {
| ^~~~
rarwall.cpp:9:5: note: candidate expects 1 argument, 2 provided
rarwall.cpp:4:8: note: candidate: ‘constexpr node::node(const node&)’
4 | struct node {
| ^~~~
rarwall.cpp:4:8: note: candidate expects 1 argument, 2 provided
rarwall.cpp:4:8: note: candidate: ‘constexpr node::node(node&&)’
rarwall.cpp:4:8: note: candidate expects 1 argument, 2 provided
rarwall.cpp: In member function ‘void node::createR()’:
rarwall.cpp:18:21: error: no