hottercolder.cpp: In function 'int cal(int)':
hottercolder.cpp:5:25: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
return n < 5 ? 1 : (n + 1 >> 1) - cal(n >> 1);
~~^~~
hottercolder.cpp: In function 'int HC(int)':
hottercolder.cpp:15:23: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
int cut = (2 << W - 2) / 3 + 1;
~~^~~
hottercolder.cpp:20:32: warning: suggest parentheses around '-' inside '>>' [-Wparentheses]
if (t == -1) R = prv + nxt - 1 >> 1;
~~~~~~~~~~^~~
hottercolder.cpp:21:28: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
if (t == 0) return prv + nxt >> 1;
~~~~^~~~~
hottercolder.cpp:23:21: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
L = prv + nxt + 2 >> 1;
~~~~~~~~~~^~~
hottercolder.cpp:26:18: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
nxt = (L + R >> 1 << 1) - prv;
~~^~~
hottercolder.cpp:32:40: warning: suggest parentheses around '-' inside '>>' [-Wparentheses]
if (prv < nxt) R = nxt + prv - 1 >> 1;
~~~~~~~~~~^~~
hottercolder.cpp:33:30: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
else L = nxt + prv + 2 >> 1;
~~~~~~~~~~^~~
hottercolder.cpp:35:32: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
if (t == 0) return nxt + prv >> 1;
~~~~^~~~~
hottercolder.cpp:37:40: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
if (prv < nxt) L = nxt + prv + 2 >> 1;
~~~~~~~~~~^~~
hottercolder.cpp:38:30: warning: suggest parentheses around '-' inside '>>' [-Wparentheses]
else R = nxt + prv - 1 >> 1;
~~~~~~~~~~^~~