building.cpp: In function 'int main()':
building.cpp:15:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
15 | scanf("%d", &n);
| ~~~~~^~~~~~~~~~
building.cpp:18:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
18 | scanf("%lld", &xs[i]);
| ~~~~~^~~~~~~~~~~~~~~~
building.cpp:21:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
21 | scanf("%lld", &wpref[i]);
| ~~~~~^~~~~~~~~~~~~~~~~~~