Not getting output

Can you please find out what i am missing/any errors.
link to my code-https://ide.codingblocks.com/s/236561

@pulkit_pandey09 when you are checking the down path you should pass i+1 as row you are paasing i-1 there. correct this in your code at line 54 it will work fine.