Rat In Maze under recursion

Rat maze under recursion topic

my code is giving run time error .I have written in the same way I was tought in the video.
have a look at my code and do necessary changes and remove the run time error…

at line 10 instead of for(int p=0;i<=n;p++) it should be for(int p=0;p<=n;p++)

ohh soo silly mistake
thanks…
I was checking rest of the code…never thought there could be a mistake in that part…

In case of any doubt feel free to ask :slight_smile:
If u got the answer mark the doubt as resolved