prize.cpp: In function 'int find_best(int)':
prize.cpp:19:23: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
int mid=ub+lb>>1;
~~^~~
prize.cpp:21:32: error: expected primary-expression before ';' token
while((!crd[mid])?(;):(ans=ask(mid)),crd[mid] || ans[0]+ans[1]!=loli){
^
prize.cpp:21:32: error: expected ')' before ';' token
prize.cpp:21:32: error: expected ':' before ';' token
prize.cpp:21:32: error: expected primary-expression before ';' token
prize.cpp:21:32: error: expected ')' before ';' token
prize.cpp:21:13: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
while((!crd[mid])?(;):(ans=ask(mid)),crd[mid] || ans[0]+ans[1]!=loli){
^~~~~
prize.cpp:21:33: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'while'
while((!crd[mid])?(;):(ans=ask(mid)),crd[mid] || ans[0]+ans[1]!=loli){
^
prize.cpp:21:33: error: expected primary-expression before ')' token
prize.cpp:33:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^