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