0_0_30076524_11271.cpp: In function 'int main()': 0_0_30076524_11271.cpp:21:48: error: invalid operands of types 'long long int' and 'double' to binary 'operator%' cout<<((n+1)*(powmod(a,1e9+5,1e9+7)))%(1e9+7)<<endl; ^