The code is not working on only Test case 1 and had passed all remaining test cases. Can someone help me
#include <bits/stdc++.h>
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
int rem=1e9+7;
int x;cin>>x;
int arr[x];
long long divisors =1;
for(int i=0;i<x;i++){
cin>>arr[i];
divisors = (divisors*(arr[i]+1))%rem;
}
long long int temp;
long long int ans=1;
for(int i=0;i<x;i++){
temp = (divisors*arr[i]/2+1)%rem;
ans = (ans*temp)%rem;
}
cout<<ans;
return 0;
}