why am I getting WA for this code of DECSTR?

Please help!

http://www.codechef.com/viewsolution/4376629

//