while solving a question on hackerearth i got this error , i tried to find solution but everywhere this error occurs when 2 different datatypes are used as operands but in my case both the operands of sama data type, here is my full code
#include <iostream>
#include <math.h>
using namespace std;
int main()
{
int arr[1000];
int n;
cin>>n;
double ans=1;
for(int i =0; i<n ;i++)
{
cin >> arr[i];
ans=(ans*arr[i])%(pow(10,9)+7);
}
cout << ans;
return 0;
}