consul.cpp: In function 'void solve(int)':
consul.cpp:8:17: error: 'rand' was not declared in this scope
8 | int x = rand() % n + 1;
| ^~~~
consul.cpp:9:13: error: 'kth' was not declared in this scope
9 | x = kth(x);
| ^~~
consul.cpp:10:17: error: 'cnt' was not declared in this scope; did you mean 'int'?
10 | int c = cnt(x);
| ^~~
| int
consul.cpp:18:11: error: 'say_answer' was not declared in this scope
18 | if(w) say_answer(w);
| ^~~~~~~~~~
consul.cpp:19:10: error: 'say_answer' was not declared in this scope
19 | else say_answer(-1);
| ^~~~~~~~~~