0_0_13929272_13631.cpp: In function 'int build(int, int)':
0_0_13929272_13631.cpp:43:53: error: invalid operands of types '__gnu_cxx::__promote_2<int, long long int, double, double>::__type {aka double}' and 'const LL {aka const long long int}' to binary 'operator%'
num[p] = pow(3, a[pl].Y) * pow(2, pl - 1) % MOD;
^
0_0_13929272_13631.cpp: In function 'int main()':
0_0_13929272_13631.cpp:97:69: error: invalid operands of types '__gnu_cxx::__promote_2<int, long long int, double, double>::__type {aka double}' and 'const LL {aka const long long int}' to binary 'operator%'
ans += pow(2, a[i].X) * ( (pow(3, a[i].Y) * pow(2, j) % MOD + calc(j + 1, i - 1) ) % MOD) % MOD;
^
|