Kth root problem

I’m getting wrong answers for bigger value like N=10^15,
what modification do I need to make.

kth root problem : https://hack.codingblocks.com/app/contests/2780/43/problem
my code : https://ide.codingblocks.com/s/651494

Hi @sk1

Please use the slack channel to post your doubts for the Live batch.