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