garage.cpp: In function 'int main()':
garage.cpp:14:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
14 | scanf("%d%d", &n, &m);
| ~~~~~^~~~~~~~~~~~~~~~
garage.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("%d", &r[i]);
| ~~~~~^~~~~~~~~~~~~
garage.cpp:16:36: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
16 | for (int i = 0; i < m; ++i) scanf("%d", &w[i]);
| ~~~~~^~~~~~~~~~~~~
garage.cpp:25:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
25 | scanf("%d", &x);
| ~~~~~^~~~~~~~~~