Rat in a maze- wa

Ques :https://hack.codingblocks.com/contests/c/457/398
My code : https://ide.codingblocks.com/#/s/16886
All test cases are getting passed except for one which is showing WA. Kindly help

you haven’t initialized sol (matrix) to zero
in line 53 just change char maze[1000][1000]; --> char maze[1000][1000]={0};
and u r ready to go

1 Like

i have modified check it
https://ide.codingblocks.com/#/s/17696