blocking game getting wa

hey guys this is my code and im getting WA … can anybody help me >???

problem : http://www.codechef.com/problems/BLOCKING

my code http://codepad.org/xkTAiJIK

thnx in advance