0_0_38820257_4587.cpp:5:1: error: 'string' does not name a type; did you mean 'stdin'?
5 | string arr[10];
| ^~~~~~
| stdin
0_0_38820257_4587.cpp: In function 'void dfs(int, int, int)':
0_0_38820257_4587.cpp:30:15: error: 'arr' was not declared in this scope
30 | if(bs==t&&arr[x][y]=='D')
| ^~~
0_0_38820257_4587.cpp:39:26: error: 'arr' was not declared in this scope
39 | if(check(nx,ny)&&arr[nx][ny]!='X')
| ^~~
0_0_38820257_4587.cpp:48:1: error: a function-definition is not allowed here before '{' token
48 | {
| ^
0_0_38820257_4587.cpp:113:2: error: expected '}' at end of input
113 | }
| ^
0_0_38820257_4587.cpp:24:1: note: to match this '{'
24 | {
| ^
|