0_0_15003347_27218.cpp: In function 'int main()':
0_0_15003347_27218.cpp:42:53: error: invalid operands of types '__gnu_cxx::__promote_2<int, long long int, double, double>::__type {aka double}' and 'const long long int' to binary 'operator%'
ans=( ans+ (a[i].x*((cnt*(pow(2,n-a[i].pos-1)))%MOD)%MOD)%MOD )%MOD;
^
0_0_15003347_27218.cpp:48:53: error: invalid operands of types '__gnu_cxx::__promote_2<int, long long int, double, double>::__type {aka double}' and 'const long long int' to binary 'operator%'
ans=( ans+ (a[i].x*((cnt*(pow(2,n-a[i].pos-1)))%MOD)%MOD)%MOD )%MOD;
^
|