Compiler message -output truncated

#include<bits/stdc++.h>
using namespace std;
int main(){
int t;
cin>>t;
while(t–){
long long int n,k;
cin>>n>>k;
double p=1.0/k;
long long int ans=pow(n,p);
cout<<ans<<endl;
}

}
Fails for one test case, compiler displays message output truncated. I cannot figure out what it is failing on.
Thank You

Actually the constraints are very large so the power function simply won’t work.It may work for some but not all. This question can be done using binary search.

Yes leave this question for now till binary search is covered in the class