skyscraper.cpp: In function 'int main()':
skyscraper.cpp:37:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
37 | scanf("%d", &n); scanf("%d", &m);
| ~~~~~^~~~~~~~~~
skyscraper.cpp:37:24: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
37 | scanf("%d", &n); scanf("%d", &m);
| ~~~~~^~~~~~~~~~
skyscraper.cpp:40:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
40 | scanf("%d", b+i); scanf("%d", p+i);
| ~~~~~^~~~~~~~~~~
skyscraper.cpp:40:26: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
40 | scanf("%d", b+i); scanf("%d", p+i);
| ~~~~~^~~~~~~~~~~