Not able to pass 2d array in rat in a maze

the code is showing error that n and m are out of scope variables.I am not able to pass the question 2d array into the recursive function

hey @anishmittal could you share your code so that i can look into it.