0_0_30109628_27941.cpp: In function 'int main()':
0_0_30109628_27941.cpp:98:40: error: invalid operands of types '__gnu_cxx::__promote_2<int, int, double, double>::__type {aka double}' and 'const int' to binary 'operator%'
printf("%lld\n", (mod+pow(2, n-r)-1)%mod);
^
|