we have to calculate a^(m-2),in this problem ,what is m here.is it 1000000007.
if yes then why this code is giving wrong answer
#include<bits/stdc++.h>
using namespace std;
#define ll long long
//#define mod 1000000005
ll pow(ll a,ll b)
{ ll res=1;
while(b>0)
{
if(b&1)
{
res=resa;
}
a=aa;
b=b>>1;
}
return res;
}
int main()
{
ll n;
cin>>n;
ll mod =1000000007;
ll x;
x=pow(n,mod-2);
cout<<x<<endl;
return 0;
}