Problem ancestor
User ethantanaki
Submission Time 2026-11-25 10:36:25
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:10:34: error: ‘hpar’ was not declared in this scope; did you mean ‘hpa’?
10 | if (hpa!=-1) mem[cur][i+1]=mem[hpar][i];
| ^~~~
| hpa
At global scope:
cc1plus: error: ‘::main’ must return ‘int’