joi2019_ho_t2.cpp: In function 'int main()':
joi2019_ho_t2.cpp:12:18: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
12 | int n,m;scanf("%i%i",&n,&m);
| ~~~~~^~~~~~~~~~~~~~
joi2019_ho_t2.cpp:13:32: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
13 | for(int i=1;i<=n;i++) scanf("%i%i",&a[i].fi,&a[i].se);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
joi2019_ho_t2.cpp:14:32: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
14 | for(int i=1;i<=m;i++) scanf("%i",&b[i]);
| ~~~~~^~~~~~~~~~~~