why is my code saying wrong answer.it correct on all test cases.I think your compiler is giving errors

//http://www.codechef.com/AUG14/problems/PRGIFT

//LIVE CONTEST CODE DELETED

//