furniture.cpp: In function 'int main()':
furniture.cpp:10:30: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
10 | #define fup(i,a,b,c) for(int (i)=(a);(i)<=(b);(i)+=(c))
| ^
furniture.cpp:48:2: note: in expansion of macro 'fup'
48 | fup(i,1,n,1)fup(j,1,m,1)scanf("%d",a[i]+j);
| ^~~
furniture.cpp:10:30: warning: unnecessary parentheses in declaration of 'j' [-Wparentheses]
10 | #define fup(i,a,b,c) for(int (i)=(a);(i)<=(b);(i)+=(c))
| ^
furniture.cpp:48:14: note: in expansion of macro 'fup'
48 | fup(i,1,n,1)fup(j,1,m,1)scanf("%d",a[i]+j);
| ^~~
furniture.cpp:10:30: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
10 | #define fup(i,a,b,c) for(int (i)=(a);(i)<=(b);(i)+=(c))
| ^
furniture.cpp:49:2: note: in expansion of macro 'fup'
49 | fup(i,1,m,1)a[0][i]=a[n+1][i]=1;
| ^~~
furniture.cpp:10:30: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
10 | #define fup(i,a,b,c) for(int (i)=(a);(i)<=(b);(i)+=(c))
| ^
furniture.cpp:50:2: note: in expansion of macro 'fup'
50 | fup(i,1,n,1)a[i][0]=a[i][m+1]=1;
| ^~~
furniture.cpp:10:30: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
10 | #define fup(i,a,b,c) for(int (i)=(a);(i)<=(b);(i)+=(c))
| ^
furniture.cpp:51:2: note: in expansion of macro 'fup'
51 | fup(i,1,n,1){
| ^~~
furniture.cpp:10:30: warning: unnecessary parentheses in declaration of 'j' [-Wparentheses]
10 | #define fup(i,a,b,c) for(int (i)=(a);(i)<=(b);(i)+=(c))
| ^
furniture.cpp:52:3: note: in expansion of macro 'fup'
52 | fup(j,1,m,1){
| ^~~
furniture.cpp:11:30: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
11 | #define fdn(i,a,b,c) for(int (i)=(a);(i)>=(b);(i)-=(c))
| ^
furniture.cpp:57:2: note: in expansion of macro 'fdn'
57 | fdn(i,n,1,1){
| ^~~
furniture.cpp:11:30: warning: unnecessary parentheses in declaration of 'j' [-Wparentheses]
11 | #define fdn(i,a,b,c) for(int (i)=(a);(i)>=(b);(i)-=(c))
| ^
furniture.cpp:58:3: note: in expansion of macro 'fdn'
58 | fdn(j,m,1,1){
| ^~~
furniture.cpp:10:30: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
10 | #define fup(i,a,b,c) for(int (i)=(a);(i)<=(b);(i)+=(c))
| ^
furniture.cpp:63:2: note: in expansion of macro 'fup'
63 | fup(i,1,n,1){
| ^~~
furniture.cpp:10:30: warning: unnecessary parentheses in declaration of 'j' [-Wparentheses]
10 | #define fup(i,a,b,c) for(int (i)=(a);(i)<=(b);(i)+=(c))
| ^
furniture.cpp:64:3: note: in expansion of macro 'fup'
64 | fup(j,1,m,1){
| ^~~
furniture.cpp:10:30: warning: unnecessary parentheses in declaration of 'k' [-Wparentheses]
10 | #define fup(i,a,b,c) for(int (i)=(a);(i)<=(b);(i)+=(c))
| ^
furniture.cpp:85:5: note: in expansion of macro 'fup'
85 | fup(k,0,1,1){
| ^~~
furniture.cpp:10:30: warning: unnecessary parentheses in declaration of 'k' [-Wparentheses]
10 | #define fup(i,a,b,c) for(int (i)=(a);(i)<=(b);(i)+=(c))
| ^
furniture.cpp:98:5: note: in expansion of macro 'fup'
98 | fup(k,2,3,1){
| ^~~
furniture.cpp:47:7: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
47 | scanf("%d%d",&n,&m);
| ~~~~~^~~~~~~~~~~~~~
furniture.cpp:48:31: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
48 | fup(i,1,n,1)fup(j,1,m,1)scanf("%d",a[i]+j);
| ~~~~~^~~~~~~~~~~~~
furniture.cpp:69:7: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
69 | scanf("%d",&q);
| ~~~~~^~~~~~~~~
furniture.cpp:72:8: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
72 | scanf("%d%d",&x,&y);
| ~~~~~^~~~~~~~~~~~~~