0_0_25814664_16390.cpp: In function 'int main()':
0_0_25814664_16390.cpp:49:42: error: invalid operands of types '__gnu_cxx::__promote_2<int, long long int, double, double>::__type {aka double}' and 'const ll {aka const long long int}' to binary 'operator%'
ans=(ans+f[i]*(pow(2,fib[d[i]])-1)) % mod;
^
|