Problem | ancestor |
---|---|
User | Sealions |
Submission Time | 2022-12-29 10:38:38 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
ancestor.cpp:3:22: error: ‘p’ has not been declared
3 | int fp(int x, int k, p) { // kth parent of x
| ^
ancestor.cpp: In function ‘int fp(int, int, int)’:
ancestor.cpp:7:17: error: ‘p’ was not declared in this scope
7 | x = p[x][i];
| ^