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

Compile Error

rarwall.cpp:51:9: error: ‘mxN’ was not declared in this scope
51 | } *root[mxN];
| ^~~
rarwall.cpp: In function ‘void update(int, int, int, int)’:
rarwall.cpp:57:5: error: ‘root’ was not declared in this scope
57 | root[version]->update(l, r, v);
| ^~~~
rarwall.cpp: In function ‘int query(int, int, int)’:
rarwall.cpp:62:12: error: ‘root’ was not declared in this scope
62 | return root[version]->query(l, r);
| ^~~~
rarwall.cpp: In function ‘void copy(int, int)’:
rarwall.cpp:66:5: error: ‘root’ was not declared in this scope
66 | root[newVer] = new node(root[version]);
| ^~~~
rarwall.cpp: In function ‘void init(int, int, int)’:
rarwall.cpp:72:2: error: ‘root’ was not declared in this scope
72 | root[++version_no]=new node(0,n-1);
| ^~~~
rarwall.cpp:72:32: error: ‘n’ was not declared in this scope
72 | root[++version_no]=new node(0,n-1