Problem | index |
---|---|
User | shoryu386 |
Submission Time | 2023-02-14 08:28:36 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
index.cpp: In function ‘void update(int, int, int, int)’:
index.cpp:57:5: error: ‘root’ was not declared in this scope
57 | root[version]->update(l, r, v);
| ^~~~
index.cpp: In function ‘int query(int, int, int)’:
index.cpp:62:12: error: ‘root’ was not declared in this scope
62 | return root[version]->query(l, r);
| ^~~~
index.cpp: In function ‘void copy(int)’:
index.cpp:67:5: error: ‘root’ was not declared in this scope
67 | root[++version_no] = new node(root[version]);
| ^~~~
index.cpp: At global scope:
index.cpp:68:13: error: expected constructor, destructor, or type conversion before ‘;’ token
68 | } *root[mxN];
| ^
index.cpp: In function ‘int main()’:
index.cpp:82:3: error: ‘root’ was not declared in this scope
82 | root[0] = new node(0, n-1);
| ^~~~