0_0_14536697_30954.cpp: In function 'int main()':
0_0_14536697_30954.cpp:58:49: error: invalid operands of types '__gnu_cxx::__promote_2<int, int, double, double>::__type {aka double}' and 'const unsigned int' to binary 'operator%'
for(i=2;i<=n;++i) ans=ans*pow(i,num[i])%mod;
^
|