poklon.cpp: In function 'int main()':
poklon.cpp:7:11: error: 'class std::map<int, int>' has no member named 'second'
7 | #define Y second
| ^~~~~~
poklon.cpp:50:11: note: in expansion of macro 'Y'
50 | m.Y = cc++;
| ^
poklon.cpp:49:15: warning: unused variable 'x' [-Wunused-variable]
49 | for(auto &x : m)
| ^
poklon.cpp:42:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
42 | scanf("%d %d", &n, &q);
| ~~~~~^~~~~~~~~~~~~~~~~
poklon.cpp:45:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
45 | scanf("%d", &a[i]);
| ~~~~~^~~~~~~~~~~~~
poklon.cpp:56:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
56 | scanf("%d %d", &l, &r);
| ~~~~~^~~~~~~~~~~~~~~~~