Kth root problem 1

sir one test case is failing , please help me find the error
https://ide.codingblocks.com/s/59812

Hey Pritika, check your code for this case
input:
1
1000000000000 6

your code’s output:
99

but the expected output is :
100

could u please tell that what is wrong in the code

I have used pow() fucntion instead of using log.
https://ide.codingblocks.com/s/59918. You can check.