furniture.cpp: In function 'int ok(int, int)':
furniture.cpp:28:45: warning: left operand of comma operator has no effect [-Wunused-value]
28 | return (!dp[x-1][y] && !dp[x][y-1]) || (!dp[x+1][y], !dp[x][y+1]);
| ^~~~~~~~~~~
furniture.cpp: In function 'void solve()':
furniture.cpp:74:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
74 | scanf("%d %d", &x, &y);
| ~~~~~^~~~~~~~~~~~~~~~~
furniture.cpp: In function 'void load()':
furniture.cpp:93:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
93 | scanf("%d %d", &n, &m);
| ~~~~~^~~~~~~~~~~~~~~~~
furniture.cpp:96:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
96 | scanf("%d", &mat[i][j]);
| ~~~~~^~~~~~~~~~~~~~~~~~
furniture.cpp:100:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
100 | scanf("%d", &q);
| ~~~~~^~~~~~~~~~