fancyfence.cpp: In function 'int main()':
fancyfence.cpp:39:15: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17'
39 | for (auto [wg, hg]:vc)
| ^
fancyfence.cpp:20:18: warning: unused variable 'j' [-Wunused-variable]
20 | long long i, j, up, dw;
| ^
fancyfence.cpp:20:21: warning: unused variable 'up' [-Wunused-variable]
20 | long long i, j, up, dw;
| ^~
fancyfence.cpp:20:25: warning: unused variable 'dw' [-Wunused-variable]
20 | long long i, j, up, dw;
| ^~
fancyfence.cpp:21:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
21 | scanf("%lld", &n);
| ~~~~~^~~~~~~~~~~~
fancyfence.cpp:24:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
24 | scanf("%lld", h+i);
| ~~~~~^~~~~~~~~~~~~
fancyfence.cpp:28:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
28 | scanf("%lld", w+i);
| ~~~~~^~~~~~~~~~~~~