0_0_19373039_2377.cpp: In function 'void work(int)':
0_0_19373039_2377.cpp:41:35: error: invalid operands of types '__gnu_cxx::__promote_2<int, int, double, double>::__type {aka double}' and 'const long long int' to binary 'operator%'
ans=(pow(2,n)-1LL-n-n*(n-1)/2LL)%mod;
^
|