chameleon.cpp: In function 'void Solve(int)':
chameleon.cpp:13:23: warning: declaration of 'auto chk(int, int)' has 'extern' and is initialized
13 | auto chk(int x, int y) = [&] {
| ^
chameleon.cpp:13:28: error: invalid pure specifier (only '= 0' is allowed) before '&' token
13 | auto chk(int x, int y) = [&] {
| ^
chameleon.cpp:13:7: error: function 'auto chk(int, int)' is initialized like a variable
13 | auto chk(int x, int y) = [&] {
| ^~~
chameleon.cpp:27:60: error: use of 'auto chk(int, int)' before deduction of 'auto'
27 | for (int i=1; i<=n; i++) for (auto &j:adj[i]) if (chk(i, j)) {
| ^