What is the error in my code?

I was solving the problem of rat in the maze. I’m not able to find out the error in my code.

According to me, my logic is fine, It is showing segmentation fault.

Here’s the link to my code: https://ide.codingblocks.com/s/298778

Plz help me find the error in my code.

change size of array to char maze[1001][1001];

previous size of array much more and cross limit of max

if you have more doubts regarding this feel free to ask
i hope this helps
if yes hit a like :heart:: and don’t forgot to mark doubt as resolved :grinning:

1 Like

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.