adventure.cpp: In function 'void bfs01()':
adventure.cpp:15:43: warning: array subscript has type 'char' [-Wchar-subscripts]
15 | dq.pb({0,0,0,s[0][0]}); dis[0][0][s[0][0]]=0;
| ^
adventure.cpp:20:57: warning: array subscript has type 'char' [-Wchar-subscripts]
20 | if(x>=0 and y>=0 and x<n and y<m and dis[x][y][s[x][y]]>D)
| ^
adventure.cpp:21:21: warning: array subscript has type 'char' [-Wchar-subscripts]
21 | dis[x][y][s[x][y]]=D, dq.push_front({D,x,y,s[x][y]});
| ^
adventure.cpp:27:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
27 | if(ans==N*N*N) ans=-1; cout << ans;
| ^~
adventure.cpp:27:25: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
27 | if(ans==N*N*N) ans=-1; cout << ans;
| ^~~~