Problem smurfpaths
User Reverberate
Submission Time 2024-02-14 17:27:06
Score 0
Max Time N/A
Max Memory N/A

Compile Error

smurfpaths.cpp: In function ‘void upd()’:
smurfpaths.cpp:186:29: error: ‘root’ was not declared in this scope
186 | pair<int,int>curr = root->query();
| ^~~~
smurfpaths.cpp: In function ‘int main()’:
smurfpaths.cpp:201:5: error: ‘root’ was not declared in this scope
201 | root = new SEG(1,n);
| ^~~~