PHOTOGRAPH (2 test case pass and 2 shows wrong answer)

please check the code::::::::::::
#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define MOD 1000000007
ll gcd(ll a, ll b)
{
if(b==0)
return a;

return gcd(b,a%b);

}

ll lcm1(ll a, ll b)
{
return (a*b)/gcd(a,b) ;
}

ll lcm(vectorv,ll n)
{
ll ans = v[0];

for(ll i=1;i<n;i++)
{
    ans = lcm1(ans,v[i]);
    
}

return ans%MOD;

}

int main() {

ll n; cin>>n;
vector<ll>v;
for(ll i=1;i<=n;i++)
 {
    ll m; cin>>m;
    v.push_back(m);
 }
 
 cout<<lcm(v,n)%MOD<<endl;




return 0;

}

bhai I have same doubts .
Are you solve this problem?