Hey What's wrong with this code Problem code-PIPSQUIK

Hey please help me with this code,
https://www.codechef.com/viewsolution/87935649