Problem ancestor
User YH
Submission Time 2024-11-15 21:33:21
Score 0
Max Time N/A
Max Memory N/A

Compile Error

ancestor.cpp: In function ‘int main()’:
ancestor.cpp:64:12: error: cannot convert ‘bool*’ to ‘int*’ in assignment
64 | visited = new bool[n];
| ^~~~~~~~~~~
| |
| bool*