Language: C++

/**
	???????????? Author : Avi J Patel ????????????
	???????????? University : DA-IICT ????????????
**/
#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define ld long double
#define pb push_back
#define pf push_front
#define mp make_pair 
#define mt make_tuple
#define ff first
#define ss second
#define si size()
//#define MOD 1000000007
#define Mod 998244353
//#define N 200001
#define large 10000000000000001
 
#define For(i,m,n) for(long long i=m;i<n;i++)
#define st(x) sort(x.begin(),x.end())
#define re(x,i) reverse(x.begin()+i,x.end())
#define FAST ios_base::sync_with_stdio(false),cin.tie(0),cout.tie(0);srand(time(NULL));
 
bool sortbysec(const pair<int,int> &a, 
              const pair<int,int> &b) 
{ 
    return (a.second < b.second); 
}
bool sortbyboth(const pair<int,int> &a, const pair<int,int> &b)
{
	if(a.first<b.first) return true;
	else if(a.first==b.first) return a.second<b.second;
	else return false;
}
int main()
{
	int x1,y1,x2,y2;
	cin>>x1>>y1>>x2>>y2;
	int x3,y3,x4,y4;
	cin>>x3>>y3>>x4>>y4;
	int x5,y5,x6,y6;
	cin>>x5>>y5>>x6>>y6;
	int temp=0;
	if((x1+x2)%==0)
	{
		int r=(x1+x2)/2;
		int temp1=0,temp2=0;
		if(( r>=x3 && y1>=y3 && r<=x4 && y1<=y4 ) || ( r>=x5 && y1>=y5 && r<=x6 && y1<=y6 ))
		{
			temp1=1;
		}
		if(( r>=x3 && y2>=y3 && r<=x4 && y2<=y4 ) || ( r>=x5 && y2>=y5 && r<=x6 && y2<=y6 ))
		{
			temp2=1;
		}
		if(temp1==0 || temp2==0)
		{
			cout<<"NO";
			return 0;
		}
	}
	else
	{
		int r1=(x1+x2)/2,r2=(x1+x2)/2+1;
		int temp1=0,temp2=0,temp3=0,temp4=0;
		if(( r1>=x3 && y1>=y3 && r1<=x4 && y1<=y4 ) || ( r1>=x5 && y1>=y5 && r1<=x6 && y1<=y6 ))
		{
			temp1=1;
		}
		if(( r1>=x3 && y2>=y3 && r1<=x4 && y2<=y4 ) || ( r1>=x5 && y2>=y5 && r1<=x6 && y2<=y6 ))
		{
			temp2=1;
		}
		if(( r2>=x3 && y1>=y3 && r2<=x4 && y1<=y4 ) || ( r2>=x5 && y1>=y5 && r2<=x6 && y1<=y6 ))
		{
			temp3=1;
		}
		if(( r2>=x3 && y2>=y3 && r2<=x4 && y2<=y4 ) || ( r1>=x5 && y2>=y5 && r2<=x6 && y2<=y6 ))
		{
			temp4=1;
		}
		if(temp1==0 || temp2==0 || temp3==0 || temp4==0)
		{
			cout<<"NO";
			return 0;
		}
	}
	if((y1+y2)%==0)
	{
		int r=(y1+y2)/2;
		int temp1=0,temp2=0;
		if(( x1>=x3 && r>=y3 && x1<=x4 && r<=y4 ) || ( x1>=x5 && r>=y5 && x1<=x6 && r<=y6 ))
		{
			temp1=1;
		}
		if(( x2>=x3 && r>=y3 && x2<=x4 && r<=y4 ) || ( x2>=x5 && r>=y5 && x2<=x6 && r<=y6 ))
		{
			temp2=1;
		}
		if(temp1==0 || temp2==0)
		{
			cout<<"NO";
			return 0;
		}
	}
	else
	{
		int r1=(x1+x2)/2,r2=(x1+x2)/2+1;
		int temp1=0,temp2=0,temp3=0,temp4=0;
		if(( x1>=x3 && r1>=y3 && x1<=x4 && r1<=y4 ) || ( x1>=x5 && r1>=y5 && x1<=x6 && r1<=y6 ))
		{
			temp1=1;
		}
		if(( x2>=x3 && r1>=y3 && x2<=x4 && r1<=y4 ) || ( x2>=x5 && r1>=y5 && x2<=x6 && r1<=y6 ))
		{
			temp2=1;
		}
		if(( x1>=x3 && r2>=y3 && x1<=x4 && r2<=y4 ) || ( x1>=x5 && r2>=y5 && x1<=x6 && r2<=y6 ))
		{
			temp3=1;
		}
		if(( x2>=x3 && r2>=y3 && x2<=x4 && r2<=y4 ) || ( x2>=x5 && r2>=y5 && x2<=x6 && r2<=y6 ))
		{
			temp4=1;
		}
		if(temp1==0 || temp2==0 || temp3==0 || temp4==0)
		{
			cout<<"NO";
			return 0;
		}
		
	}
	cout<<"YES";
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:46:21: error: expected primary-expression before '=' token
   46 |         if((x1+x2)%==0)
      |                     ^
a.cc:90:21: error: expected primary-expression before '=' token
   90 |         if((y1+y2)%==0)
      |                     ^