Kth root problem testcases failing

code is running perfectly fine for the custom input but 2 testcases are not working plzz help.https://ide.codingblocks.com/s/68642