Getting Wrong ans in Adding Sqaure!

prob:https://www.codechef.com/OCT20B/problems/ADDSQURE
My solution :https://www.codechef.com/viewsolution/38843132