garage.cpp: In function 'void solve()':
garage.cpp:29:7: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
29 | scanf("%d %d", &n, &m);
| ~~~~~^~~~~~~~~~~~~~~~~
garage.cpp:24:42: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
24 | #define readL(v) for (auto& it : v) scanf("%lld", &it);
| ~~~~~^~~~~~~~~~~~~
garage.cpp:32:2: note: in expansion of macro 'readL'
32 | readL(v);
| ^~~~~
garage.cpp:24:42: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
24 | #define readL(v) for (auto& it : v) scanf("%lld", &it);
| ~~~~~^~~~~~~~~~~~~
garage.cpp:33:2: note: in expansion of macro 'readL'
33 | readL(w);
| ^~~~~
garage.cpp:38:8: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
38 | scanf("%d", &x);
| ~~~~~^~~~~~~~~~
garage.cpp: In function 'int main()':
garage.cpp:63:9: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
63 | freopen("input.txt", "r", stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~