0_0_16961709_6286.cpp: In function 'int main()':
0_0_16961709_6286.cpp:29:49: error: invalid operands of types '__gnu_cxx::__promote_2<int, int, double, double>::__type {aka double}' and 'int' to binary 'operator%'
s += d[i] * pow(b, x - i - 1) % (b - 1);
^
|