Sir it's not printing the possibile path

My codehttps://ide.codingblocks.com/s/137658

@harshkumar.877587
Corrections required in main( )

  1. Change your recursive call i.e. Line No. 48
    bool y=rat_in_maze(maze,sol,0,0,m-1,n-1);
  2. Your input loops are running longer than they should. Change the conditions to run till less than , not less than and equal to .
    for(int i=0;i<m;i++)
    {
    for(int j=0;j<n;j++)
    {
    . . .
    }
    }

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.