Problem in KTH Root

Why my code is not giving correct value for larger values?

Code: https://ide.codingblocks.com/s/210649

Hi @princeky4
in myfunction, take parameters as long long as b can be greater than 10^9.
moreover , u will get tle when u submit.
here u r supposed to use binary search.
Hope dis helps.