Kth root binary search

my code is correct and for one of the given input my output is correct and for the second input my output is wrong i cant figure it out
here is my code https://ide.codingblocks.com/s/267893

hi @jatinupadhyay786 use long long int to store large values, here’s your corrected code https://ide.codingblocks.com/s/267905
Please mark the doubt as resolved in case of no further queries :slight_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.