Kth root Problem, 2nd testcase not passed

my ques : https://hack.codingblocks.com/contests/c/133/274
my code : https://ide.codingblocks.com/s/64584

Hey Sonam,
your logic and code is correct, you have made just a small mistake in printing.
update your code’s
line: 44 as cout<<X<<endl;
and
line:17 as cout<<Num<<endl;