Why is it not passing all test cases

#include <bits/stdc++.h>
using namespace std;
long long int expo(int a,int b){
int ans=1;
while(b>0){
if(b&1){
ans=ans*a;

}
a=a*a;
b=b>>1;

}
return ans;
}
int main(){
int a,b,c;cin>>a>>b>>c;
long long int f=expo(a,b);
//cout<<f & c<<endl;
cout<<(expo(a,b))%c;
}

Refer to Modular Exponentiation | Last testcase did not pass

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.