0_0_29549079_25479.cpp: In function 'long long int inv(long long int)':
0_0_29549079_25479.cpp:52:28: error: invalid operands of types '__gnu_cxx::__promote_2<long long int, int, double, double>::__type {aka double}' and 'const int' to binary 'operator%'
return pow( n, P - 2 )%P;
^
0_0_29549079_25479.cpp: In function 'long long int polya(long long int, int)':
0_0_29549079_25479.cpp:58:37: error: invalid operands of types '__gnu_cxx::__promote_2<long long int, long long int, double, double>::__type {aka double}' and 'const int' to binary 'operator%'
ans = (ans+pow(c,GCD(n,i)))%P;
^
|