game.cpp: In function 'int get(int)':
game.cpp:10:41: error: 'coor' was not declared in this scope
int get(int x) { return upper_bound(all(coor), x) - coor.begin(); }
^~~~
game.cpp:10:41: note: suggested alternative: 'floor'
int get(int x) { return upper_bound(all(coor), x) - coor.begin(); }
^~~~
floor
game.cpp:10:37: error: 'all' was not declared in this scope
int get(int x) { return upper_bound(all(coor), x) - coor.begin(); }
^~~
game.cpp:10:37: note: suggested alternative: 'kill'
int get(int x) { return upper_bound(all(coor), x) - coor.begin(); }
^~~
kill
game.cpp: In function 'int main()':
game.cpp:23:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d", &n, &m);
~~~~~^~~~~~~~~~~~~~~~~
game.cpp:24:38: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
for(int i = 1; i <= n; ++i) scanf("%d", A+i);
~~~~~^~~~~~~~~~~
game.cpp:30:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d", &a, &b);
~~~~~^~~~~~~~~~~~~~~~~
game.cpp:32:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &c);
~~~~~^~~~~~~~~~