Rat in a maze problem(hb)

i am not able to modify some parts of code according to the question. can you please tell me how to do it.

https://ide.codingblocks.com/s/105848 - this is the url of the code

https://hack.codingblocks.com/contests/c/917/398 - this is the url of the question in case

hey @Ayushi21, you should take input in array with max size 1000X1000. But the code you shared has already declared array.

umm i do not understand can you explain it.

hey @Ayushi21, the code you shared to me, it is for sample testcase. Just generalised your code by reading inputs from user.

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.