chameleon.cpp: In function 'bool check(std::vector<int>, int)':
chameleon.cpp:8:12: error: 'Query' was not declared in this scope
8 | return Query(v) != v.size();
| ^~~~~
chameleon.cpp: In function 'void Solve(int)':
chameleon.cpp:47:38: error: 'l' was not declared in this scope
47 | adj[i].push_back(half[j][l - 1]);
| ^
chameleon.cpp:48:17: error: 'hafl' was not declared in this scope; did you mean 'half'?
48 | adj[hafl[j][l - 1]].push_back(i);
| ^~~~
| half
chameleon.cpp:49:18: error: request for member 'erase' in 'half', which is of non-class type 'std::vector<int> [2]'
49 | half.erase(half[j].begin,
| ^~~~~
chameleon.cpp:50:31: error: 'm' was not declared in this scope
50 | half[j].begin() + m);
| ^
chameleon.cpp:55:16: error: 'Query' was not declared in this scope
55 | while (Query({i, adj[i][0], adj[i][1]}) != 1)
| ^~~~~
chameleon.cpp:62:25: error: 'Answer' was not declared in this scope
62 | if (ans[i] > i) Answer(i, ans[i]);
| ^~~~~~