Rat in a maze error


Can you pls tell why my code is showing error and how do I rectify it?

@urvigoel26
I understand that you named your previous doubt as N-Queen even though it was for Rat in a Maze. But I have already responded to that. Please keep only one thread open and mark the other one as resolved as there is no point in discussing the same doubt over two threads.

Hii
I am still getting the same error. https://ide.codingblocks.com/s/100232

@urvigoel26
I have made slight changes in your array allocation and in the function definitions where the arrays are being passed as parameters.
Please refer to this code - https://ide.codingblocks.com/s/100240
Note that I have made the arrays of size 1005. This is simply because it is mentioned in the question that n and m can be as large as 1000. Since it is better to safe , I just took 5 more and made the array of size 1005.

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.

1 Like