Problem lllontree
User Pan
Submission Time 2024-12-30 23:05:07
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lllontree.cpp: In function ‘void dfs(long long int, long long int, std::vector<long long int>&)’:
lllontree.cpp:16:9: error: ‘else’ without a previous ‘if’
16 | else{
| ^~~~
lllontree.cpp:17:13: error: ‘original’ was not declared in this scope
17 | original= curr[pos];
| ^~~~~~~~
lllontree.cpp:17:28: error: ‘pos’ was not declared in this scope; did you mean ‘pow’?
17 | original= curr[pos];
| ^~~
| pow
lllontree.cpp:18:29: error: ‘v’ was not declared in this scope
18 | curr[pos] = arr[v];
| ^
lllontree.cpp:21:13: error: ‘v’ was not declared in this scope
21 | ans[v]=curr.size();
| ^
lllontree.cpp:24:12: error: ‘original’ was not declared in this scope
24 | if(original==-1) curr.pop_back();
|