joi2019_ho_t2.cpp: In function 'int main()':
joi2019_ho_t2.cpp:9:18: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
9 | int n,m;scanf("%i%i",&n,&m);
| ~~~~~^~~~~~~~~~~~~~
joi2019_ho_t2.cpp:10:53: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
10 | pair<int,int>a[n+10];for(int i=1;i<=n;i++) scanf("%i%i",&a[i].fi,&a[i].se);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
joi2019_ho_t2.cpp:11:48: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
11 | int b[m+10]={0};for(int i=1;i<=m;i++) scanf("%i",&b[i]);
| ~~~~~^~~~~~~~~~~~