Problem print maze path

Why am i getting 2 wrong answers for 2 cases my code is perfectly fine acc. to me
my code
https://ide.codingblocks.com/s/35256

question link
https://hack.codingblocks.com/contests/c/512/382

Hey bro the link to code is not correct!!!

You have pasted this wrong link to code everywhere.
Please check before posting here.