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