Language: C++

#include <bits/stdc++.h>

#define rep(i,n) for(long long int (i)=0;(i)<(int)(n);(i)++)
#define rrep(i,a,b) for(long long int i=(a);i<(b);i++)
#define rrrep(i,a,b) for(long long int i=(a);i>(b);i--)
#define all(v) (v).begin(), (v).end()
#define pb(q) push_back(q)
#define P pair<int,int>
#define Abs(a,b) max(a,b)-min(a,b)
#define YES(condition) if(condition){cout << "YES" << endl;}else{cout << "NO" << endl;}
#define Yes(condition) if(condition){cout << "Yes" << endl;}else{cout << "No" << endl;}
#define Cout(x) cout<<(x)<<endl

typedef long long ll;

using namespace std;

const int INF = 1e9,MOD = 1e9 + 7;
const ll LINF = 1e18;

//while(x!=0){
            //sum+=x%10;
           // x/=10;
        //}
        //各桁の和

//pair<int,int> p[100000];
//P r[100000];
//cin >> tmp;
//p[i]=make_pair(tmp,i);
//cout << p[i].second+1 << endl;//ペアの右側つまりiを出力

//s.find(w[i])==string::npos
//findの使い方

//for(int i=0;i<n;i++){
   // b[i]=x%2;
    //x/=2;
  //}二進数

long long int n=1,cnt=0,ans=0,a[100000],b[100000],c,cmp,cmpp,data,m,h,x,y,xcmp=0,ycmp=0,sum=0,asum=0,bsum=0;

string s,w;

vector<int> z;

int main(void){
       cin.tie(0);
    ios::sync_with_stdio(false);

       cin >> n;
       rep(i,n){
           cin >> a[i];
       }
       rep(i,n){
           cin >> b[i];
       }
       rep(i,n){
           if(a[i]>b[i]){
               cmp+=a[i]-b[i];
           }
           else{
               cmpp+=(b[i]-a[i])/2;
           }
       }
       Yes(cmpp>=cmp)
return 0;
}
#include <bits/stdc++.h>

#define rep(i,n) for(long long int (i)=0;(i)<(int)(n);(i)++)
#define rrep(i,a,b) for(long long int i=(a);i<(b);i++)
#define rrrep(i,a,b) for(long long int i=(a);i>(b);i--)
#define all(v) (v).begin(), (v).end()
#define pb(q) push_back(q)
#define P pair<int,int>
#define Abs(a,b) max(a,b)-min(a,b)
#define YES(condition) if(condition){cout << "YES" << endl;}else{cout << "NO" << endl;}
#define Yes(condition) if(condition){cout << "Yes" << endl;}else{cout << "No" << endl;}
#define Cout(x) cout<<(x)<<endl

typedef long long ll;

using namespace std;

const int INF = 1e9,MOD = 1e9 + 7;
const ll LINF = 1e18;

//while(x!=0){
            //sum+=x%10;
           // x/=10;
        //}
        //各桁の和

//pair<int,int> p[100000];
//P r[100000];
//cin >> tmp;
//p[i]=make_pair(tmp,i);
//cout << p[i].second+1 << endl;//ペアの右側つまりiを出力

//s.find(w[i])==string::npos
//findの使い方

//for(int i=0;i<n;i++){
   // b[i]=x%2;
    //x/=2;
  //}二進数

long long int n=1,cnt=0,ans=0,a[100000],b[100000],c,cmp,cmpp,data,m,h,x,y,xcmp=0,ycmp=0,sum=0,asum=0,bsum=0;

string s,w;

vector<int> z;

int main(void){
       cin.tie(0);
    ios::sync_with_stdio(false);

       cin >> n;
       rep(i,n){
           cin >> a[i];
       }
       rep(i,n){
           cin >> b[i];
       }
       rep(i,n){
           if(a[i]>b[i]){
               cmp+=a[i]-b[i];
           }
           else{
               cmpp+=(b[i]-a[i])/2;
           }
       }
       Yes(cmpp>=cmp)
return 0;
}


Compiler output:
a.cc:86:11: error: redefinition of 'const int INF'
   86 | const int INF = 1e9,MOD = 1e9 + 7;
      |           ^~~
a.cc:18:11: note: 'const int INF' previously defined here
   18 | const int INF = 1e9,MOD = 1e9 + 7;
      |           ^~~
a.cc:86:21: error: redefinition of 'const int MOD'
   86 | const int INF = 1e9,MOD = 1e9 + 7;
      |                     ^~~
a.cc:18:21: note: 'const int MOD' previously defined here
   18 | const int INF = 1e9,MOD = 1e9 + 7;
      |                     ^~~
a.cc:87:10: error: redefinition of 'const ll LINF'
   87 | const ll LINF = 1e18;
      |          ^~~~
a.cc:19:10: note: 'const ll LINF' previously defined here
   19 | const ll LINF = 1e18;
      |          ^~~~
a.cc:109:15: error: redefinition of 'long long int n'
  109 | long long int n=1,cnt=0,ans=0,a[100000],b[100000],c,cmp,cmpp,data,m,h,x,y,xcmp=0,ycmp=0,sum=0,asum=0,bsum=0;
      |               ^
a.cc:41:15: note: 'long long int n' previously defined here
   41 | long long int n=1,cnt=0,ans=0,a[100000],b[100000],c,cmp,cmpp,data,m,h,x,y,xcmp=0,ycmp=0,sum=0,asum=0,bsum=0;
      |               ^
a.cc:109:19: error: redefinition of 'long long int cnt'
  109 | long long int n=1,cnt=0,ans=0,a[100000],b[100000],c,cmp,cmpp,data,m,h,x,y,xcmp=0,ycmp=0,sum=0,asum=0,bsum=0;
      |                   ^~~
a.cc:41:19: note: 'long long int cnt' previously defined here
   41 | long long int n=1,cnt=0,ans=0,a[100000],b[100000],c,cmp,cmpp,data,m,h,x,y,xcmp=0,ycmp=0,sum=0,asum=0,bsum=0;
      |                   ^~~
a.cc:109:25: error: redefinition of 'long long int ans'
  109 | long long int n=1,cnt=0,ans=0,a[100000],b[100000],c,cmp,cmpp,data,m,h,x,y,xcmp=0,ycmp=0,sum=0,asum=0,bsum=0;
      |                         ^~~
a.cc:41:25: note: 'long long int ans' previously defined here
   41 | long long int n=1,cnt=0,ans=0,a[100000],b[100000],c,cmp,cmpp,data,m,h,x,y,xcmp=0,ycmp=0,sum=0,asum=0,bsum=0;
      |                         ^~~
a.cc:109:31: error: redefinition of 'long long int a [100000]'
  109 | long long int n=1,cnt=0,ans=0,a[100000],b[100000],c,cmp,cmpp,data,m,h,x,y,xcmp=0,ycmp=0,sum=0,asum=0,bsum=0;
      |                               ^
a.cc:41:31: note: 'long long int a [100000]' previously declared here
   41 | long long int n=1,cnt=0,ans=0,a[100000],b[100000],c,cmp,cmpp,data,m,h,x,y,xcmp=0,ycmp=0,sum=0,asum=0,bsum=0;
      |                               ^
a.cc:109:41: error: redefinition of 'long long int b [100000]'
  109 | long long int n=1,cnt=0,ans=0,a[100000],b[100000],c,cmp,cmpp,data,m,h,x,y,xcmp=0,ycmp=0,sum=0,asum=0,bsum=0;
      |                                         ^
a.cc:41:41: note: 'long long int b [100000]' previously declared here
   41 | long long int n=1,cnt=0,ans=0,a[100000],b[100000],c,cmp,cmpp,data,m,h,x,y,xcmp=0,ycmp=0,sum=0,asum=0,bsum=0;
      |                                         ^
a.cc:109:51: error: redefinition of 'long long int c'
  109 | long long int n=1,cnt=0,ans=0,a[100000],b[100000],c,cmp,cmpp,data,m,h,x,y,xcmp=0,ycmp=0,sum=0,asum=0,bsum=0;
      |                                                   ^
a.cc:41:51: note: 'long long int c' previously declared here
   41 | long long int n=1,cnt=0,ans=0,a[100000],b[100000],c,cmp,cmpp,data,m,h,x,y,xcmp=0,ycmp=0,sum=0,asum=0,bsum=0;
      |                                                   ^
a.cc:109:53: error: redefinition of 'long long int cmp'
  109 | long long int n=1,cnt=0,ans=0,a[100000],b[100000],c,cmp,cmpp,data,m,h,x,y,xcmp=0,ycmp=0,sum=0,asum=0,bsum=0;
      |                                                     ^~~
a.cc:41:53: note: 'long long int cmp' previously declared here
   41 | long long int n=1,cnt=0,ans=0,a[100000],b[100000],c,cmp,cmpp,data,m,h,x,y,xcmp=0,ycmp=0,sum=0,asum=0,bsum=0;
      |                                                     ^~~
a.cc:109:57: error: redefinition of 'long long int cmpp'
  109 | long long int n=1,cnt=0,ans=0,a[100000],b[100000],c,cmp,cmpp,data,m,h,x,y,xcmp=0,ycmp=0,sum=0,asum=0,bsum=0;
      |                                                         ^~~~
a.cc:41:57: note: 'long long int cmpp' previously declared here
   41 | long long int n=1,cnt=0,ans=0,a[100000],b[100000],c,cmp,cmpp,data,m,h,x,y,xcmp=0,ycmp=0,sum=0,asum=0,bsum=0;
      |                                                         ^~~~
a.cc:109:62: error: redefinition of 'long long int data'
  109 | long long int n=1,cnt=0,ans=0,a[100000],b[100000],c,cmp,cmpp,data,m,h,x,y,xcmp=0,ycmp=0,sum=0,asum=0,bsum=0;
      |                                                              ^~~~
a.cc:41:62: note: 'long long int data' previously declared here
   41 | long long int n=1,cnt=0,ans=0,a[100000],b[100000],c,cmp,cmpp,data,m,h,x,y,xcmp=0,ycmp=0,sum=0,asum=0,bsum=0;
      |                                                              ^~~~
a.cc:109:67: error: redefinition of 'long long int m'
  109 | long long int n=1,cnt=0,ans=0,a[100000],b[100000],c,cmp,cmpp,data,m,h,x,y,xcmp=0,ycmp=0,sum=0,asum=0,bsum=0;
      |                                                                   ^
a.cc:41:67: note: 'long long int m' previously declared here
   41 | long long int n=1,cnt=0,ans=0,a[100000],b[100000],c,cmp,cmpp,data,m,h,x,y,xcmp=0,ycmp=0,sum=0,asum=0,bsum=0;
      |                                                                   ^
a.cc:109:69: error: redefinition of 'long long int h'
  109 | long long int n=1,cnt=0,ans=0,a[100000],b[100000],c,cmp,cmpp,data,m,h,x,y,xcmp=0,ycmp=0,sum=0,asum=0,bsum=0;
      |                                                                     ^
a.cc:41:69: note: 'long long int h' previously declared here
   41 | long long int n=1,cnt=0,ans=0,a[100000],b[100000],c,cmp,cmpp,data,m,h,x,y,xcmp=0,ycmp=0,sum=0,asum=0,bsum=0;
      |                                                                     ^
a.cc:109:71: error: redefinition of 'long long int x'
  109 | long long int n=1,cnt=0,ans=0,a[100000],b[100000],c,cmp,cmpp,data,m,h,x,y,xcmp=0,ycmp=0,sum=0,asum=0,bsum=0;
      |                                                                       ^
a.cc:41:71: note: 'long long int x' previously declared here
   41 | long long int n=1,cnt=0,ans=0,a[100000],b[100000],c,cmp,cmpp,data,m,h,x,y,xcmp=0,ycmp=0,sum=0,asum=0,bsum=0;
      |                                                                       ^
a.cc:109:73: error: redefinition of 'long long int y'
  109 | long long int n=1,cnt=0,ans=0,a[100000],b[100000],c,cmp,cmpp,data,m,h,x,y,xcmp=0,ycmp=0,sum=0,asum=0,bsum=0;
      |                                                                         ^
a.cc:41:73: note: 'long long int y' previously declared here
   41 | long long int n=1,cnt=0,ans=0,a[100000],b[100000],c,cmp,cmpp,data,m,h,x,y,xcmp=0,ycmp=0,sum=0,asum=0,bsum=0;
      |                                                                         ^
a.cc:109:75: error: redefinition of 'long long int xcmp'
  109 | long long int n=1,cnt=0,ans=0,a[100000],b[100000],c,cmp,cmpp,data,m,h,x,y,xcmp=0,ycmp=0,sum=0,asum=0,bsum=0;
      |                                                                           ^~~~
a.cc:41:75: note: 'long long int xcmp' previously defined here
   41 | long long int n=1,cnt=0,ans=0,a[100000],b[100000],c,cmp,cmpp,data,m,h,x,y,xcmp=0,ycmp=0,sum=0,asum=0,bsum=0;
      |                                                                           ^~~~
a.cc:109:82: error: redefinition of 'long long int ycmp'
  109 | long long int n=1,cnt=0,ans=0,a[100000],b[100000],c,cmp,cmpp,data,m,h,x,y,xcmp=0,ycmp=0,sum=0,asum=0,bsum=0;
      |                                                                                  ^~~~
a.cc:41:82: note: 'long long int ycmp' previously defined here
   41 | long long int n=1,cnt=0,ans=0,a[100000],b[100000],c,cmp,cmpp,data,m,h,x,y,xcmp=0,ycmp=0,sum=0,asum=0,bsum=0;
      |                                                                                  ^~~~
a.cc:109:89: error: redefinition of 'long long int sum'
  109 | long long int n=1,cnt=0,ans=0,a[100000],b[100000],c,cmp,cmpp,data,m,h,x,y,xcmp=0,ycmp=0,sum=0,asum=0,bsum=0;
      |                                                                                         ^~~
a.cc:41:89: note: 'long long int sum' previously defined here
   41 | long long int n=1,cnt=0,ans=0,a[100000],b[100000],c,cmp,cmpp,data,m,h,x,y,xcmp=0,ycmp=0,sum=0,asum=0,bsum=0;
      |                                                                                         ^~~
a.cc:109:95: error: redefinition of 'long long int asum'
  109 | long long int n=1,cnt=0,ans=0,a[100000],b[100000],c,cmp,cmpp,data,m,h,x,y,xcmp=0,ycmp=0,sum=0,asum=0,bsum=0;
      |                                                                                               ^~~~
a.cc:41:95: note: 'long long int asum' previously defined here
   41 | long long int n=1,cnt=0,ans=0,a[100000],b[100000],c,cmp,cmpp,data,m,h,x,y,xcmp=0,ycmp=0,sum=0,asum=0,bsum=0;
      |                                                                                               ^~~~
a.cc:109:102: error: redefinition of 'long long int bsum'
  109 | long long int n=1,cnt=0,ans=0,a[100000],b[100000],c,cmp,cmpp,data,m,h,x,y,xcmp=0,ycmp=0,sum=0,asum=0,bsum=0;
      |                                                                                                      ^~~~
a.cc:41:102: note: 'long long int bsum' previously defined here
   41 | long long int n=1,cnt=0,ans=0,a[100000],b[100000],c,cmp,cmpp,data,m,h,x,y,xcmp=0,ycmp=0,sum=0,asum=0,bsum=0;
      |                                                                                                      ^~~~
a.cc:111:8: error: redefinition of 'std::string s'
  111 | string s,w;
      |        ^
a.cc:43:8: note: 'std::string s' previously declared here
   43 | string s,w;
      |        ^
a.cc:111:10: error: redefinition of 'std::string w'
  111 | string s,w;
      |          ^
a.cc:43:10: note: 'std::string w' previously declared here
   43 | string s,w;
      |          ^
a.cc:113:13: error: redefinition of 'std::vector<int> z'
  113 | vector<int> z;
      |             ^
a.cc:45:13: note: 'std::vector<int> z' previously declared here
   45 | vector<int> z;
      |             ^
a.cc:115:5: error: redefinition of 'int main()'
  115