Rat in a maze problem

https://ide.codingblocks.com/s/36018
not giving any output

you haven’t passed any parameters while calling isSafe() and you have to apply backtracking after printing the grid. You can refer this link https://github.com/prateek27/launchpad-aug-18-pitampura/blob/master/Lecture-10/rat_in_maze.cpp