0_0_31847571_8404.cpp: In function 'LL C(LL, LL, LL)':
0_0_31847571_8404.cpp:29:30: error: invalid operands of types '__gnu_cxx::__promote_2<long long int, long long int, double, double>::__type {aka double}' and 'LL {aka long long int}' to binary 'operator%'
LL temp = x*pow(y, p - 2) % p;
^
|