0_0_29497534_14172.cpp: In function 'void solve(int, int)':
0_0_29497534_14172.cpp:8:13: error: invalid operands of types '__gnu_cxx::__promote_2<int, int, double, double>::__type {aka double}' and 'int' to binary 'operator%'
#define mod 1000000007
^
0_0_29497534_14172.cpp:30:40: note: in expansion of macro 'mod'
ans=(ans+1ll*phi(p)*pow(m,n/p)%mod)%mod;
^
0_0_29497534_14172.cpp:8:13: error: invalid operands of types '__gnu_cxx::__promote_2<int, int, double, double>::__type {aka double}' and 'int' to binary 'operator%'
#define mod 1000000007
^
0_0_29497534_14172.cpp:31:51: note: in expansion of macro 'mod'
if(p*p!=n) ans=(ans+1ll*phi(n/p)*pow(m,p)%mod)%mod;
^
|