hottercolder.cpp: In function 'int sub3(int)':
hottercolder.cpp:8:19: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
int m = l + r >> 1;
~~^~~
hottercolder.cpp:11:36: warning: suggest parentheses around '-' inside '>>' [-Wparentheses]
else if(b == -1) r = l + r - 1 >> 1;
~~~~~~^~~
hottercolder.cpp:9:13: warning: unused variable 'a' [-Wunused-variable]
int a = Guess(l), b = Guess(r);
^
hottercolder.cpp: In function 'int HC(int)':
hottercolder.cpp:26:48: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
if(prv < now) l = max(l, prv + now + 1 >> 1);
~~~~~~~~~~^~~
hottercolder.cpp:27:33: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
else r = min(r, prv + now >> 1);
~~~~^~~~~
hottercolder.cpp:29:42: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
if(prv < now) r = min(r, prv + now >> 1);
~~~~^~~~~
hottercolder.cpp:30:39: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
else l = max(l, prv + now + 1 >> 1);
~~~~~~~~~~^~~
hottercolder.cpp:31:27: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
}else return (prv + now >> 1);
~~~~^~~~~
hottercolder.cpp:24:28: warning: 'qry' may be used uninitialized in this function [-Wmaybe-uninitialized]
int qry = Guess(qry);
^