spoj-WA in STREETR

The link to my code is 4Iv8pE - Online C Compiler & Debugging Tool - Ideone.com
I am unable to understand why it is showing wrong answer