Code working fine in vs code.Here compiler message showing wrong

#include <bits/stdc++.h>
using namespace std;

int Power(long long int n,long long int k)
{
long long int l=1;
long long int h=1000000000000000;
int mid=0;
int ans=0;
while(l<=h)
{
mid=(l+h)/2;

	if(pow(mid,k)==n)
	{
        return mid;
	}
	else if(pow(mid,k)>n)
	    h=mid-1;
	else
	{
	    ans=mid;
	    l=mid+1;
	}
}
return ans;

}

int main() {

int t;
cin>>t;
long long int n;
long long int k;
while(t>0)
{
    cin>>n>>k;
    cout<<Power(n,k);
	t--;
}

}

@Mukul-Shane-1247687648773500,
print new line after each case code is correct

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.