Problem manycolours
User haydendoo
Submission Time 2023-02-14 19:50:04
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][idx] == -1) break;
| ^
manycolours.cpp:240:8: error: invalid types ‘long long int[long long int]’ for array subscript
240 | p[k+1][idx] = p[k][p[k][idx]];
| ^
manycolours.cpp:240:20: error: invalid types ‘long long int[long long int]’ for array subscript
240 | p[k+1][idx] = p[k][p[k][idx]];
| ^
manycolours.cpp:240:25: error: invalid types ‘long long int[long long int]’ for array subscript
240 | p[k+1][idx] = p[k][p[k][idx]];
| ^
manycolours.cpp:245:6: error: invalid types ‘long long int[int]’ for array subscript
245 | p[0][x] = idx;
| ^
manycolours.cpp: In function ‘void solve()’:
manycolours.cpp:383:6: error: ‘inc’ was not declared in this scop