#include <bits/stdc++.h>
using namespace std;
#pragma GCC optimize("O3,unroll-loops")
#pragma GCC target("avx2,bmi,bmi2,lzcnt,popcnt")
typedef long long ll;
#define fi first
#define se second
#define pll pair<ll,ll>
#define pb push_back
#define debug(x) cerr<<#x<<"="<<x<<endl;
#define MP make_pair
#define rep(i,a,b) for(ll i=a;i<b;i++)
#define SZ(x) (ll)x.size()
#define ALL(x) x.begin(),x.end()
#define endl "\n"
const ll inf=1e18;
ll lowbit(ll x){return x&(-x);}
const ll mod=1e9+7;
const ll maxn=1e5+5;
ll h[maxn],w[maxn];
int main(){
ios::sync_with_stdio(0);
cin.tie(0);
ll n;cin>>n;
ll wid=0;
rep(i,1,n+1)cin>>h[i];
rep(i,1,n+1)cin>>w[i],wid+=w[i],wid%=mod;
ht=h[1]%m;
cout<<((wid*(wid+1)/2)%mod*(ht*(ht+1)/2)%mod)%mod<<endl;
return 0;
}
Compilation message
fancyfence.cpp: In function 'int main()':
fancyfence.cpp:34:2: error: 'ht' was not declared in this scope; did you mean 'h'?
34 | ht=h[1]%m;
| ^~
| h
fancyfence.cpp:34:10: error: 'm' was not declared in this scope
34 | ht=h[1]%m;
| ^