0_0_13929715_3921.cpp: In function 'int build(int, int)':
0_0_13929715_3921.cpp:43:61: error: invalid operands of types '__gnu_cxx::__promote_2<long long int, int, double, double>::__type {aka double}' and 'LL {aka long long int}' to binary 'operator%'
num[p] = pow((LL)3, a[pl].Y) * pow((LL)2, pl - 1) % MOD;
^
0_0_13929715_3921.cpp: In function 'int main()':
0_0_13929715_3921.cpp:97:70: error: invalid operands of types '__gnu_cxx::__promote_2<int, long long int, double, double>::__type {aka double}' and 'LL {aka 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) %= MOD;
^
|