Square root till given precision in C++

Question Link : CodeChef: Practical coding for everyone

My solution : Coding Blocks IDE
But it is accepting this solution. Can anyone can debug this.

Can anyone can solve this problem in C++.Please.