0_0_36701450_21197.cpp: In function 'long long int inv(long long int)':
0_0_36701450_21197.cpp:52:24: 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_36701450_21197.cpp: In function 'long long int polya(long long int, int)':
0_0_36701450_21197.cpp:58:29: 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;
^
|