furniture.cpp: In function 'void go_stupid(int, int)':
furniture.cpp:10:24: error: 'n' was not declared in this scope
10 | if (x >= 1 && x <= n && y >= 1 && y <= m) {
| ^
furniture.cpp:10:44: error: 'm' was not declared in this scope
10 | if (x >= 1 && x <= n && y >= 1 && y <= m) {
| ^
furniture.cpp:13:13: error: 'diag' was not declared in this scope
13 | diag[x + y]--;
| ^~~~
furniture.cpp: In function 'int main()':
furniture.cpp:35:17: error: 'diag' was not declared in this scope
35 | diag[i + j]++;
| ^~~~
furniture.cpp:46:18: error: 'diag' was not declared in this scope
46 | else if (diag[x][y] == 1)
| ^~~~