event2.cpp: In function 'int main()':
event2.cpp:31:70: warning: narrowing conversion of '((std::lower_bound<int*, int>(((int*)(& all)), (((int*)(& all)) + ((sizetype)(((long unsigned int)alln) * 4))), a[i].xy::x) - ((int*)(& all))) <unknown operator> 4)' from 'long int' to 'int' [-Wnarrowing]
31 | for (i = 0; i < n; i++) a[i] = { lower_bound(all,all + alln,a[i].x) - all,lower_bound(all,all + alln,a[i].y) - all };
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
event2.cpp:31:111: warning: narrowing conversion of '((std::lower_bound<int*, int>(((int*)(& all)), (((int*)(& all)) + ((sizetype)(((long unsigned int)alln) * 4))), a[i].xy::y) - ((int*)(& all))) <unknown operator> 4)' from 'long int' to 'int' [-Wnarrowing]
31 | for (i = 0; i < n; i++) a[i] = { lower_bound(all,all + alln,a[i].x) - all,lower_bound(all,all + alln,a[i].y) - all };
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
event2.cpp:22:17: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
22 | int n, k; scanf("%d%d", &n, &k);
| ~~~~~^~~~~~~~~~~~~~~~
event2.cpp:25:8: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
25 | scanf("%d%d", &a[i].x, &a[i].y);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~