walls.cpp: In function 'int main()':
walls.cpp:12:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
12 | scanf("%d%d", &n, &m);
| ~~~~~^~~~~~~~~~~~~~~~
walls.cpp:14:27: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
14 | for (auto &i: v) scanf("%d%d", &i.first, &i.second);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
walls.cpp:17:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
17 | scanf("%d", &x);
| ~~~~~^~~~~~~~~~