game.cpp: In function 'int main()':
game.cpp:45:8: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
45 | scanf("%d", &a[i]);
| ~~~~~^~~~~~~~~~~~~
game.cpp:55:11: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
55 | scanf("%d", &tip);
| ~~~~~^~~~~~~~~~~~
game.cpp:59:12: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
59 | scanf("%d%d", &pos, &h);
| ~~~~~^~~~~~~~~~~~~~~~~~
game.cpp:67:12: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
67 | scanf("%d", &h);
| ~~~~~^~~~~~~~~~