0_0_17743253_25713.cpp: In function 'int main()':
0_0_17743253_25713.cpp:5:13: error: invalid operands of types '__gnu_cxx::__promote_2<long long int, int, double, double>::__type {aka double}' and 'int' to binary 'operator%'
#define Mod 1000000007
^
0_0_17743253_25713.cpp:162:61: note: in expansion of macro 'Mod'
ans = (ans + look_sum(x[i].ra,n-1,1)*pow(3LL,x[i].b))%Mod;
^
|