0_0_26299355_3789.cpp: In function 'int main()':
0_0_26299355_3789.cpp:60:62: error: invalid operands of types '__gnu_cxx::__promote_2<int, long long int, double, double>::__type {aka double}' and 'int' to binary 'operator%'
printf("%lld\n", pow(a, am) * pow(b, bm) % (mod+1));
^
|