@Admni check my code

http://www.codechef.com/viewsolution/4311693
i so tired .why my code give Runtime error
all test case r clear bt when i hv to submitting .it giving RuntmEr