https://ide.geeksforgeeks.org/pHgrd0cS1X----what i m doing wrong in getting the input of the maze and displaying it (the code is only for getting input and displaying it till now), please point out errors in that.
Rat chases cheese problem
https://ide.codingblocks.com/s/258521 corrected approach.
Since there is no space between chars we cannot use cin.next().charAt(0).
Instead, we can see that there are N rows, hence we take input of N strings which have a length of M. And assign ch[i][j] = str.charAt(j);