0_0_21835382_4208.cpp: In function 'int main()':
0_0_21835382_4208.cpp:22:60: error: invalid operands of types '__gnu_cxx::__promote_2<long long int, long long int, double, double>::__type {aka double}' and 'const int' to binary 'operator%'
LL ans = (2*pow((powMod(2, n) - 1 + mod)%mod, m-1)%mod + n%2)%mod;
^
|