library.cpp: In function 'void Solve(int)':
library.cpp:17:12: error: 'Query' was not declared in this scope
if(Query(ask) == 1){
^~~~~
library.cpp:25:6: error: 'Answer' was not declared in this scope
Answer(res);
^~~~~~
library.cpp:32:25: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
int mid = l + h >> 1;
~~^~~
library.cpp:34:24: error: 'Query' was not declared in this scope
int last = Query(ask);
^~~~~
library.cpp:44:2: error: 'Answer' was not declared in this scope
Answer(res);
^~~~~~