building.cpp: In function 'int main()':
building.cpp:8:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
8 | scanf("%d", &n);
| ~~~~~^~~~~~~~~~
building.cpp:10:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
10 | scanf("%lld", &h[i]);
| ~~~~~^~~~~~~~~~~~~~~
building.cpp:15:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
15 | scanf("%d", &a);
| ~~~~~^~~~~~~~~~