Problem ancestor
User dacashew
Submission Time 2023-07-11 14:02:31
Score 0
Max Time N/A
Max Memory N/A

Compile Error

ancestor.cpp: In function ‘void dfs(long long int, long long int)’:
ancestor.cpp:23:28: error: ‘k’ was not declared in this scope
23 | mem[cur][i+1]=mem[h_par][k];
| ^
ancestor.cpp: In function ‘long long int query(long long int, long long int)’:
ancestor.cpp:33:14: error: ‘h’ was not declared in this scope
33 | if(((1<<i)&h)==0){
| ^