furniture.cpp:27:1: error: expected initializer before 'bool'
27 | bool v[MEM][MEM];
| ^~~~
furniture.cpp: In function 'bool bfs()':
furniture.cpp:30:12: error: 'v' was not declared in this scope
30 | memset(v, 0, sizeof(v));
| ^
furniture.cpp:38:35: error: 'a' was not declared in this scope
38 | if(!v[cur.x+1][cur.y] && !a[cur.x+1][cur.y] && (cur.x+1<n && cur.y<m)){
| ^
furniture.cpp:42:35: error: 'a' was not declared in this scope
42 | if(!v[cur.x][cur.y+1] && !a[cur.x][cur.y+1] && (cur.x<n && cur.y+1<m)){
| ^
furniture.cpp: In function 'int main()':
furniture.cpp:54:29: error: 'a' was not declared in this scope
54 | scanf("%lld ", &a[i][j]);
| ^
furniture.cpp:59:12: error: 'a' was not declared in this scope
59 | if(a[q1-1][q2-1]){
| ^
furniture.cpp:63:9: error: 'a' was not declared in this scope
63 | a[q1-1][q2-1] = 1;
| ^
furniture.cpp:51:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
51 | scanf("%lld %lld ", &n, &m);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~
furniture.cpp:55:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
55 | scanf("%lld ", &t);
| ~~~~~^~~~~~~~~~~~~
furniture.cpp:58:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
58 | scanf("%lld %lld ", &q1, &q2);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~