Problem manycolours
User haydendoo
Submission Time 2023-02-14 19:49:26
Score 0
Max Time N/A
Max Memory N/A

Compile Error

manycolours.cpp: In function ‘void dfs(long long int, long long int)’:
manycolours.cpp:239:10: error: invalid types ‘long long int[long long int]’ for array subscript
239 | if (p[k][x] == -1) break;
| ^
manycolours.cpp:239:12: error: ‘x’ was not declared in this scope
239 | if (p[k][x] == -1) break;
| ^
manycolours.cpp:240:8: error: invalid types ‘long long int[long long int]’ for array subscript
240 | p[k+1][x] = p[k][p[k][x]];
| ^
manycolours.cpp:240:10: error: ‘x’ was not declared in this scope
240 | p[k+1][x] = p[k][p[k][x]];
| ^
manycolours.cpp:240:18: error: invalid types ‘long long int[long long int]’ for array subscript
240 | p[k+1][x] = p[k][p[k][x]];
| ^
manycolours.cpp:240:23: error: invalid types ‘long long int[long long int]’ for array subscript
240 | p[k+1][x] = p[k][p[k][x]];
| ^
ma