long_mansion.cpp: In function 'void dfs(int)':
long_mansion.cpp:56:20: warning: statement has no effect [-Wunused-value]
56 | #define debug(...) 42
| ^~
long_mansion.cpp:94:3: note: in expansion of macro 'debug'
94 | debug(u);
| ^~~~~
long_mansion.cpp:56:20: warning: statement has no effect [-Wunused-value]
56 | #define debug(...) 42
| ^~
long_mansion.cpp:98:5: note: in expansion of macro 'debug'
98 | debug("ho");
| ^~~~~
long_mansion.cpp:56:20: warning: statement has no effect [-Wunused-value]
56 | #define debug(...) 42
| ^~
long_mansion.cpp:102:7: note: in expansion of macro 'debug'
102 | debug(r);
| ^~~~~
long_mansion.cpp:56:20: warning: statement has no effect [-Wunused-value]
56 | #define debug(...) 42
| ^~
long_mansion.cpp:119:7: note: in expansion of macro 'debug'
119 | debug(r);
| ^~~~~
long_mansion.cpp: In function 'int main(int, const char**)':
long_mansion.cpp:146:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
146 | scanf("%d", &n);
| ~~~~~^~~~~~~~~~
long_mansion.cpp:148:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
148 | scanf("%d", &C[i]);
| ~~~~~^~~~~~~~~~~~~
long_mansion.cpp:153:17: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
153 | int B; scanf("%d", &B);
| ~~~~~^~~~~~~~~~
long_mansion.cpp:155:19: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
155 | int x; scanf("%d", &x);
| ~~~~~^~~~~~~~~~
long_mansion.cpp:168:15: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
168 | int q; scanf("%d", &q);
| ~~~~~^~~~~~~~~~
long_mansion.cpp:171:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
171 | scanf("%d %d", &x, &y);
| ~~~~~^~~~~~~~~~~~~~~~~