game.cpp: In function 'int main()':
game.cpp:65:47: warning: suggest parentheses around '-' in operand of '&' [-Wparentheses]
65 | printf("%d\n", query(h) - query(h - h&-h));
| ~~^~~
game.cpp:36:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
36 | scanf("%d %d", &n, &m);
| ~~~~~^~~~~~~~~~~~~~~~~
game.cpp:40:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
40 | scanf("%d", &height[i]);
| ~~~~~^~~~~~~~~~~~~~~~~~
game.cpp:48:24: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
48 | int type; scanf("%d", &type);
| ~~~~~^~~~~~~~~~~~~
game.cpp:52:32: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
52 | int pos, val; scanf("%d %d", &pos, &val);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~
game.cpp:63:25: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
63 | int h; scanf("%d", &h);
| ~~~~~^~~~~~~~~~