shooting: corner test case

Please tell me the test case i am missing OR
any possible error in my code
http://www.codechef.com/viewsolution/4620655