joi2019_ho_t2.cpp: In function 'int main()':
joi2019_ho_t2.cpp:5:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf ("%d %d",&n,&m);
~~~~~~^~~~~~~~~~~~~~~
joi2019_ho_t2.cpp:7:27: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
for (auto &au : a) scanf ("%d %d",&au.first,&au.second);
~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
joi2019_ho_t2.cpp:9:27: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
for (auto &au : b) scanf ("%d",&au);
~~~~~~^~~~~~~~~~