Contest Code:PRACTICE Problem Code:FCTRL what is wrong with my code?

https://www.codechef.com/viewsolution/51750352