0_0_14541987_1244.cpp: In function 'void solve()':
0_0_14541987_1244.cpp:78:44: error: invalid operands of types '__gnu_cxx::__promote_2<int, int, double, double>::__type {aka double}' and 'const LL {aka const long long int}' to binary 'operator%'
res = res * pow(prime[i],cnt[i]) % mod;
^
|