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