X not blocking path

You are declaring an array of size 1010, whereas the possible array size is 10001000

Done that. Didn’t help! @Abhinav2604

In the main function when you are reading the maze, you have written maze[n][m] that should be maze[i][j].
Array size should be maze[1001][1001]. By 1000*1000 i meant that last readable element should be maze[1000][1000].


Here I have made the said changes.

I’m slightly embarassed because of how silly I am. Anyways thanks @Abhinav2604

No need to be embarrassed, we all make mistakes while learning.
If your doubt it resolved please mark it as resolved.