fancyfence.cpp: In function 'int main()':
fancyfence.cpp:20:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
20 | scanf("%lld", &n);
| ~~~~~^~~~~~~~~~~~
fancyfence.cpp:21:31: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
21 | for (i=1; i<=n; i++) scanf("%lld", &h);
| ~~~~~^~~~~~~~~~~~
fancyfence.cpp:24:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
24 | scanf("%lld", &w);
| ~~~~~^~~~~~~~~~~~