RAT IN MAZE: INCORRECT OUTPUT

hello @mverma_be19 why are you not taking the user defines input otherwise you will not be able to pass the test cases .because in every test case the grid can be different .

@mverma_be19 i have made some corretions in your code https://ide.codingblocks.com/s/340116
go through the code and try to understand them if you still have doubt then please ask here .
Happy Learning !!