Kth root problem code help

https://ide.codingblocks.com/s/68067
here is link to my code plz help me with code having correct search space