Problem colouring
User haydendoo
Submission Time 2023-01-15 12:50:21
Score 0
Max Time N/A
Max Memory N/A

Compile Error

colouring.cpp: In function ‘void solve()’:
colouring.cpp:239:6: error: ‘d’ was not declared in this scope
239 | if(d==0) continue;
| ^
colouring.cpp:244:9: error: cannot decompose non-array non-class type ‘long long int’
244 | auto [x, d] = q.front(); q.pop();
| ^~~~~~
colouring.cpp:246:31: error: expected ‘;’ before ‘:’ token
246 | if(dist[it]<=d+1) continue:
| ^
| ;
colouring.cpp:246:31: error: expected primary-expression before ‘:’ token