0_0_36701452_11237.cpp: In function 'long long int inv(long long int)':
0_0_36701452_11237.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_36701452_11237.cpp: In function 'long long int polya(long long int, int)':
0_0_36701452_11237.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;
^
|