Language: C++

#include <iostream>
#include<cstdlib>
#include<queue>
#include<set>
#include<vector>
#include<string>
#include<algorithm>
#include<stack>
#include<map>
#include<deque>
#include<cstdio>
using namespace std;
#define rep(i,a) for(int i=0;i<a;i++)
#define mp make_pair
#define pb push_back
#define ll __int64
//#define ll long long
#define P pair<ll,ll>
const ll mod=1000000007;
int n,m;
ll x[111111],y[111111];
ll rx[111111],ry[111111];
ll a1,a2;

int main(){
	cin>>n>>m;
	rep(i,n)cin>>x[i];
	rep(i,m)cin>>y[i];
	rep(i,n)rx[i]=(i-(n-1))+i;
	rep(i,m)ry[i]=(i-(m-1))+i;
	rep(i,n)a1=(a1%mod+(rx[i]*x[i])%mod)%mod;
	rep(i,m)a2=(a2%mod+(ry[i]*y[i])%mod)%mod;
	cout<<(a1*a2)%mod<<endl;
}	


Compiler output:
a.cc:16:12: error: '__int64' does not name a type; did you mean '__int64_t'?
   16 | #define ll __int64
      |            ^~~~~~~
a.cc:19:7: note: in expansion of macro 'll'
   19 | const ll mod=1000000007;
      |       ^~
a.cc:16:12: error: '__int64' does not name a type; did you mean '__int64_t'?
   16 | #define ll __int64
      |            ^~~~~~~
a.cc:21:1: note: in expansion of macro 'll'
   21 | ll x[111111],y[111111];
      | ^~
a.cc:16:12: error: '__int64' does not name a type; did you mean '__int64_t'?
   16 | #define ll __int64
      |            ^~~~~~~
a.cc:22:1: note: in expansion of macro 'll'
   22 | ll rx[111111],ry[111111];
      | ^~
a.cc:16:12: error: '__int64' does not name a type; did you mean '__int64_t'?
   16 | #define ll __int64
      |            ^~~~~~~
a.cc:23:1: note: in expansion of macro 'll'
   23 | ll a1,a2;
      | ^~
a.cc: In function 'int main()':
a.cc:27:22: error: 'x' was not declared in this scope
   27 |         rep(i,n)cin>>x[i];
      |                      ^
a.cc:28:22: error: 'y' was not declared in this scope
   28 |         rep(i,m)cin>>y[i];
      |                      ^
a.cc:29:17: error: 'rx' was not declared in this scope
   29 |         rep(i,n)rx[i]=(i-(n-1))+i;
      |                 ^~
a.cc:30:17: error: 'ry' was not declared in this scope
   30 |         rep(i,m)ry[i]=(i-(m-1))+i;
      |                 ^~
a.cc:31:17: error: 'a1' was not declared in this scope
   31 |         rep(i,n)a1=(a1%mod+(rx[i]*x[i])%mod)%mod;
      |                 ^~
a.cc:31:24: error: 'mod' was not declared in this scope
   31 |         rep(i,n)a1=(a1%mod+(rx[i]*x[i])%mod)%mod;
      |                        ^~~
a.cc:31:29: error: 'rx' was not declared in this scope
   31 |         rep(i,n)a1=(a1%mod+(rx[i]*x[i])%mod)%mod;
      |                             ^~
a.cc:31:35: error: 'x' was not declared in this scope
   31 |         rep(i,n)a1=(a1%mod+(rx[i]*x[i])%mod)%mod;
      |                                   ^
a.cc:32:17: error: 'a2' was not declared in this scope
   32 |         rep(i,m)a2=(a2%mod+(ry[i]*y[i])%mod)%mod;
      |                 ^~
a.cc:32:24: error: 'mod' was not declared in this scope
   32 |         rep(i,m)a2=(a2%mod+(ry[i]*y[i])%mod)%mod;
      |                        ^~~
a.cc:32:29: error: 'ry' was not declared in this scope
   32 |         rep(i,m)a2=(a2%mod+(ry[i]*y[i])%mod)%mod;
      |                             ^~
a.cc:32:35: error: 'y' was not declared in this scope
   32 |         rep(i,m)a2=(a2%mod+(ry[i]*y[i])%mod)%mod;
      |                                   ^
a.cc:33:16: error: 'a1' was not declared in this scope
   33 |         cout<<(a1*a2)%mod<<endl;
      |                ^~
a.cc:33:19: error: 'a2' was not declared in this scope
   33 |         cout<<(a1*a2)%mod<<endl;
      |                   ^~
a.cc:33:23: error: 'mod' was not declared in this scope
   33 |         cout<<(a1*a2)%mod<<endl;
      |                       ^~~