Rat in a maze test cases

4 out of 6 cases are showing run time error.
code link : https://ide.codingblocks.com/s/88185

can plzz someone check my code.

Hi I have the required changes in your code.you have made sol array of size 10X10 but you have to make that of size mXn .there was only that change.