building.cpp: In function 'int main()':
building.cpp:14:11: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
14 | scanf("%d", &h[i]);
| ~^ ~~~~~
| | |
| | long long int*
| int*
| %lld
building.cpp:25:11: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
25 | printf("%d\n", dp[n]);
| ~^ ~~~~~
| | |
| int long long int
| %lld
building.cpp:12:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
12 | scanf("%d", &n);
| ~~~~~^~~~~~~~~~
building.cpp:14:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
14 | scanf("%d", &h[i]);
| ~~~~~^~~~~~~~~~~~~
building.cpp:17:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
17 | scanf("%d", &aux);
| ~~~~~^~~~~~~~~~~~