consul.cpp: In function 'void solve(int)':
consul.cpp:11:13: error: 'kth' was not declared in this scope
int cur = kth((int)rand()%N);
^~~
consul.cpp:14:15: error: 'cnt' was not declared in this scope
int nCur = cnt(cur);
^~~
consul.cpp:14:15: note: suggested alternative: 'int'
int nCur = cnt(cur);
^~~
int
consul.cpp:16:5: error: 'say_answer' was not declared in this scope
say_answer(cur);
^~~~~~~~~~
consul.cpp:16:5: note: suggested alternative: 'sa_handler'
say_answer(cur);
^~~~~~~~~~
sa_handler
consul.cpp:23:2: error: 'say_answer' was not declared in this scope
say_answer(-1);
^~~~~~~~~~
consul.cpp:23:2: note: suggested alternative: 'sa_handler'
say_answer(-1);
^~~~~~~~~~
sa_handler