Problem ancestor
User YH
Submission Time 2024-11-15 22:57:38
Score 0
Max Time N/A
Max Memory N/A

Compile Error

ancestor.cpp: In function ‘int main()’:
ancestor.cpp:99:24: error: expected ‘;’ before ‘for’
99 | level[v] = curr_level
| ^
| ;
100 |
101 | for (int j = 1; j < LOG; j++) {
| ~~~
ancestor.cpp:101:19: error: ‘j’ was not declared in this scope
101 | for (int j = 1; j < LOG; j++) {
| ^