building.cpp: In function 'int main()':
building.cpp:11:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
11 | scanf("%d", &n);
| ~~~~~^~~~~~~~~~
building.cpp:12:35: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
12 | for(int i = 1; i <= n; i++) scanf("%lld", &h[i]);
| ~~~~~^~~~~~~~~~~~~~~
building.cpp:14:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
14 | scanf("%lld", &w[i]), w[i] += w[i - 1];
| ~~~~~^~~~~~~~~~~~~~~