Rat in Maze: Why my solution is not printing all possible paths

Even though I’m using backtracking to undo my move, but still it’s only printing just one path. Please help!!
Code: https://ide.codingblocks.com/s/106001

provide custom input and output…