Language: C++

#include<bits/stdc++.h>
#define me(a,x) memset(a,x,sizeof a)
using namespace std;
typedef long long LL;
const int N=2e6+5,mod=1e9+7;
char O[1<<14],*S=O,*T=O;
#define gc (S==T&&(T=(S=O)+fread(O,1,1<<14,stdin),S==T)?-1:*S++)
inline int read(){
	int x=0,f=1; char ch=gc;
	while(ch<'0' || ch>'9'){if(ch=='-')f=-1; ch=gc;}
	while(ch>='0' && ch<='9'){x=(x<<1)+(x<<3)+(ch^48); ch=gc;}
	return x*f;
}
int x[7],y[7],jc[N],jn[N],ans;
inline int C(int x,int y){return 1ll*jc[x+y]*jn[x]%mod*jn[y]%mod;}
inline int F(int x1,int y1,int x2,int y2){
	return (1ll*C(x2+1,y2+1)+C(x1,y1)-C(x2+1,y1)-C(x1,y2+1)+mod+mod)%mod;
}
int main(){
	freopen("a.in","r",stdin);
	freopen("a.out","w",stdout);
	for(int i=1;i<7;++i) x[i]=read();
	for(int i=1;i<7;++i) y[i]=read();
	jc[0]=jn[0]=jc[1]=jn[1]=1;
	for(int i=2;i<=N-5;++i) jc[i]=1ll*jc[i-1]*i%mod,jn[i]=1ll*(mod-mod/i)*jn[mod%i]%mod;
	for(int i=2;i<=N-5;++i) jn[i]=1ll*jn[i-1]*jn[i]%mod;
	
	for(int i=x[3];i<=x[4];++i)
		ans=(1ll*(mod-y[3]-i)*F(i-x[2],y[3]-1-y[2],i-x[1],y[3]-1-y[1])%mod*F(x[5]-i,y[5]-y[3],x[6]-i,y[6]-y[3])+ans)%mod;
	for(int i=x[3];i<=x[4];++i)
		ans=(1ll*(y[4]+i+1)*F(i-x[2],y[4]-y[2],i-x[1],y[4]-y[1])%mod*F(x[5]-i,y[5]-1-y[4],x[6]-i,y[6]-1-y[4])+ans)%mod;
	for(int i=y[3];i<=y[4];++i)
		ans=(1ll*(mod-x[3]-i)*F(x[3]-1-x[2],i-y[2],x[3]-1-x[1],i-y[1])%mod*F(x[5]-x[3],y[5]-i,x[6]-x[3],y[6]-i)+ans)%mod;
	for(int i=y[3];i<=y[4];++i)
		ans=(1ll*(x[4]+i+1)*F(x[4]-x[2],i-y[2],x[4]-x[1],i-y[1])%mod*F(x[5]-1-x[4],y[5]-i,x[6]-1-x[4],y[6]-i)+ans)%mod;
	printf("%d\n",ans);
	return 0;
}

Compiler output:
a.cc:14:25: error: 'int jn [2000005]' redeclared as different kind of entity
   14 | int x[7],y[7],jc[N],jn[N],ans;
      |                         ^
In file included from /usr/include/features.h:523,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/os_defines.h:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/c++config.h:683,
                 from /usr/include/c++/14/cassert:43,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:33,
                 from a.cc:1:
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:255:1: note: previous declaration 'double jn(int, double)'
  255 | __MATHCALL (jn,, (int, _Mdouble_));
      | ^~~~~~~~~~
a.cc: In function 'int C(int, int)':
a.cc:15:50: warning: pointer to a function used in arithmetic [-Wpointer-arith]
   15 | inline int C(int x,int y){return 1ll*jc[x+y]*jn[x]%mod*jn[y]%mod;}
      |                                                  ^
a.cc:15:45: error: invalid operands of types 'long long int' and 'double(int, double) noexcept' to binary 'operator*'
   15 | inline int C(int x,int y){return 1ll*jc[x+y]*jn[x]%mod*jn[y]%mod;}
      |                                  ~~~~~~~~~~~^~~~~~
      |                                     |            |
      |                                     |            double(int, double) noexcept
      |                                     long long int
a.cc:15:60: warning: pointer to a function used in arithmetic [-Wpointer-arith]
   15 | inline int C(int x,int y){return 1ll*jc[x+y]*jn[x]%mod*jn[y]%mod;}
      |                                                            ^
a.cc: In function 'int main()':
a.cc:24:19: warning: pointer to a function used in arithmetic [-Wpointer-arith]
   24 |         jc[0]=jn[0]=jc[1]=jn[1]=1;
      |                   ^
a.cc:24:31: warning: pointer to a function used in arithmetic [-Wpointer-arith]
   24 |         jc[0]=jn[0]=jc[1]=jn[1]=1;
      |                               ^
a.cc:24:32: error: assignment of read-only location '*(jn + 1)'
   24 |         jc[0]=jn[0]=jc[1]=jn[1]=1;
      |                           ~~~~~^~
a.cc:25:61: warning: pointer to a function used in arithmetic [-Wpointer-arith]
   25 |         for(int i=2;i<=N-5;++i) jc[i]=1ll*jc[i-1]*i%mod,jn[i]=1ll*(mod-mod/i)*jn[mod%i]%mod;
      |                                                             ^
a.cc:25:87: warning: pointer to a function used in arithmetic [-Wpointer-arith]
   25 |         for(int i=2;i<=N-5;++i) jc[i]=1ll*jc[i-1]*i%mod,jn[i]=1ll*(mod-mod/i)*jn[mod%i]%mod;
      |                                                                                       ^
a.cc:25:78: error: invalid operands of types 'long long int' and 'double(int, double) noexcept' to binary 'operator*'
   25 |         for(int i=2;i<=N-5;++i) jc[i]=1ll*jc[i-1]*i%mod,jn[i]=1ll*(mod-mod/i)*jn[mod%i]%mod;
      |                                                               ~~~~~~~~~~~~~~~^~~~~~~~~~
      |                                                                  |                    |
      |                                                                  long long int        double(int, double) noexcept
a.cc:26:37: warning: pointer to a function used in arithmetic [-Wpointer-arith]
   26 |         for(int i=2;i<=N-5;++i) jn[i]=1ll*jn[i-1]*jn[i]%mod;
      |                                     ^
a.cc:26:49: warning: pointer to a function used in arithmetic [-Wpointer-arith]
   26 |         for(int i=2;i<=N-5;++i) jn[i]=1ll*jn[i-1]*jn[i]%mod;
      |                                                 ^
cc1plus: warning: pointer to a function used in arithmetic [-Wpointer-arith]
a.cc:26:42: error: invalid operands of types 'long long int' and 'double(int, double) noexcept' to binary 'operator*'
   26 |         for(int i=2;i<=N-5;++i) jn[i]=1ll*jn[i-1]*jn[i]%mod;
      |                                       ~~~^~~~~~~~
      |                                       |         |
      |                                       |         double(int, double) noexcept
      |                                       long long int
a.cc:26:55: warning: pointer to a function used in arithmetic [-Wpointer-arith]
   26 |         for(int i=2;i<=N-5;++i) jn[i]=1ll*jn[i-1]*jn[i]%mod;
      |                                                       ^