Kth root problem from Binary search

I was trying to solve Kth root and I am getting an error in this code.
Why my kth root isn’t working??

Hey @div_yanshu07 i have debugged your code here : https://ide.codingblocks.com/s/329221
you can have a look as i have pointed your mistakes with comments. Thank you :smile:

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.