criyle/codenet-compile-errors huggingface dataset:
Language: C++

#include <bits/stdc++.h>
#include <cstdlib>
#include <cmath>
#define rep(i,n) for (long long i=0; i < (n); ++i)
#define rep2(i,n,m) for(long long i=n;i<=m;i++)
using namespace std;
using ll = long long;
using P = pair<int,int>;
const ll INF=1e18 ;
inline void chmax(ll& a,ll b){a=max(a,b);}
inline void chmin(ll& a,ll b){a=min(a,b);}
int main(){
 ll n ;
 cin>> n ;
 vector<ll> a(n) ;
 rep(i,n) cin>> a[i] ;
 vector<ll> b(n) ;
 rep(i,n) cin>> b[i] ;
 sort(a.begin(),a.end()) ;
 sort(b.begin(),b.end()) ;
 int ans= 0;
 rep(i,n){
  if(a[i]>b[i])
  ans= 1 ;
 }
 if(ans==1)
 cout <<"No"<<endl ;
  else 
   cout<<"Yes<<endl; 
    return 0;
}

Compiler output:
a.cc:29:10: warning: missing terminating " character
   29 |    cout<<"Yes<<endl;
      |          ^
a.cc:29:10: error: missing terminating " character
   29 |    cout<<"Yes<<endl;
      |          ^~~~~~~~~~~ 
a.cc: In function 'int main()':
a.cc:30:5: error: expected primary-expression before 'return'
   30 |     return 0;
      |     ^~~~~~
Language: C++

#include <bits/stdc++.h>
#include <cstdlib>
#include <cmath>
#define rep(i,n) for (long long i=0; i < (n); ++i)
#define rep2(i,n,m) for(long long i=n;i<=m;i++)
using namespace std;
using ll = long long;
using P = pair<int,int>;
const ll INF=1e18 ;
inline void chmax(ll& a,ll b){a=max(a,b);}
inline void chmin(ll& a,ll b){a=min(a,b);}
int main(){
 ll n ;
 cin>> n ;
 vector<ll> a(n) ;
 rep(i,n) cin>> a[i] ;
 vector<ll> b(n) ;
 rep(i,n) cin>> b[i] ;
 sort(a.begin(),a.end()) ;
 sort(b.begin(),b.end()) ;
 int ans= 0;
 rep(i,n){
  if(a[i]>b[i])
  ans= 1 ;
 }
 if(ans=1)
 cout <<"No"<<endl ;
  else 
   cout <<"Yes<<endl; 
    return 0;
}

Compiler output:
a.cc:29:11: warning: missing terminating " character
   29 |    cout <<"Yes<<endl;
      |           ^
a.cc:29:11: error: missing terminating " character
   29 |    cout <<"Yes<<endl;
      |           ^~~~~~~~~~~ 
a.cc: In function 'int main()':
a.cc:30:5: error: expected primary-expression before 'return'
   30 |     return 0;
      |     ^~~~~~
Language: C++

#include <bits/stdc++.h>
#include <cstdlib>
#include <cmath>
#define rep(i,n) for (long long i=0; i < (n); ++i)
#define rep2(i,n,m) for(long long i=n;i<=m;i++)
using namespace std;
using ll = long long;
using P = pair<int,int>;
const ll INF=1e18 ;
inline void chmax(ll& a,ll b){a=max(a,b);}
inline void chmin(ll& a,ll b){a=min(a,b);}
int main(){
 ll n ;
 cin>> n ;
 vector<ll> a(n) ;
 rep(i,n) cin>> a[i] ;
 vector<ll> b(n) ;
 rep(i,n) cin>> b[i] ;
 sort(a.begin(),a.end()) ;
 sort(b.begin(),b.end()) ;
 if ans= 0;
 rep(i,n){
  if(a[i]>b[i])
  ans= 1 ;
 }
 if(ans=1)
 cout <<"No"<<endl ;
  else 
   cout <<"Yes<<endl; 
    return 0;
}

Compiler output:
a.cc:29:11: warning: missing terminating " character
   29 |    cout <<"Yes<<endl;
      |           ^
a.cc:29:11: error: missing terminating " character
   29 |    cout <<"Yes<<endl;
      |           ^~~~~~~~~~~ 
a.cc: In function 'int main()':
a.cc:21:5: error: expected '(' before 'ans'
   21 |  if ans= 0;
      |     ^~~
      |     (
a.cc:24:3: error: 'ans' was not declared in this scope; did you mean 'abs'?
   24 |   ans= 1 ;
      |   ^~~
      |   abs
a.cc:26:5: error: 'ans' was not declared in this scope; did you mean 'abs'?
   26 |  if(ans=1)
      |     ^~~
      |     abs
a.cc:30:5: error: expected primary-expression before 'return'
   30 |     return 0;
      |     ^~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
using Graph = vector<vector<int>>;
#define rep(i,b) for (int i = 0; i < (b); i++ )

typedef pair<int,int> P;
typedef long long ll;

const int INF = 100000000;
const double PI=3.14159265358979323846;

int main () {
    ll N;
    cin >> N;

    ll a[N], b[N];

    rep(i,N) {
        cin >> a[i];
    }
    rep(i,N) {
        cin >> b[i];
    }

    ll p,n;

    p=n=0;
    ll tmp = 0;
    rep(i,N) {
        if (a[i]-b[i]>0) {
            tmp+=(a[i]-b[i])*2;
        }
        else {
            tmp +=(b[i]-a[i]);
        }
    }

    if (tmp<=) {
        cout << "Yes" << endl;
    }
    else {
        cout << "No" << endl;
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:38:14: error: expected primary-expression before ')' token
   38 |     if (tmp<=) {
      |              ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
using Graph = vector<vector<int>>;
#define rep(i,b) for (int i = 0; i < (b); i++ )

typedef pair<int,int> P;
typedef long long ll;

const int INF = 100000000;
const double PI=3.14159265358979323846;

int main () {
    ll N;
    cin >> N;

    ll a[N], b[N];

    rep(i,N) {
        cin >> a[i];
    }
    rep(i,N) {
        cin >> b[i];
    }

    ll p,n;

    p=n=0;
    int tmp = 0;
    rep(i,N) {
        if (a[i]-b[i]>0) {
            tmp+=(a[i]-b[i])*2;
        }
        else {
            tmp +=(b[i]-a[i]);
        }
    }

    if (tmp<=) {
        cout << "Yes" << endl;
    }
    else {
        cout << "No" << endl;
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:38:14: error: expected primary-expression before ')' token
   38 |     if (tmp<=) {
      |              ^
Language: C++

#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); i++)
using namespace std;
using P = pair<int, int>;
typedef long long ll;

int main() {
  int n;
  cin >> n;
  vector<ll> A(n), B(n);
  ll biga = 0, bigb = 0;
  rep(i, n) cin >> A[i] >> B[i];
  rep(i,n){
    if(a[i] > b[i]) biga += a[i] - b[i];
    if(b[i] > a[i]) bigb += (b[i] - a[i])/2;
  }
  if(bigb >= biga) cout << "Yes" << endl;
  else cout << "No" <<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:8: error: 'a' was not declared in this scope
   14 |     if(a[i] > b[i]) biga += a[i] - b[i];
      |        ^
a.cc:14:15: error: 'b' was not declared in this scope
   14 |     if(a[i] > b[i]) biga += a[i] - b[i];
      |               ^
a.cc:15:8: error: 'b' was not declared in this scope
   15 |     if(b[i] > a[i]) bigb += (b[i] - a[i])/2;
      |        ^
a.cc:15:15: error: 'a' was not declared in this scope
   15 |     if(b[i] > a[i]) bigb += (b[i] - a[i])/2;
      |               ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (n); i++)
#define rep2(i, x, n) for (int i = x; i < (n); i++)
#define all(n) begin(n), end(n)
struct cww
{
    cww()
    {
        ios::sync_with_stdio(false);
        cin.tie(0);
    }
} star;
const long long INF = numeric_limits<long long>::max();
typedef long long ll;
typedef vector<int> vint;
typedef vector<char> vchar;
typedef vector<vector<int>> vvint;
typedef vector<ll> vll;
typedef vector<vector<ll>> vvll;
typedef unsigned long long ull;
template <class T>
bool chmax(T &a, const T &b)
{
    if (a < b)
    {
        a = b;
        return 1;
    }
    return 0;
}
template <class T>
bool chmin(T &a, const T &b)
{
    if (b < a)
    {
        a = b;
        return 1;
    }
    return 0;
}
template <typename T>
vector<T> make_v(size_t a) { return vector<T>(a); }

template <typename T, typename... Ts>
auto make_v(size_t a, Ts... ts)
{
    return vector<decltype(make_v<T>(ts...))>(a, make_v<T>(ts...));
}
template <typename T, typename V>
typename enable_if<is_class<T>::value == 0>::type
fill_v(T &t, const V &v) { t = v; }

template <typename T, typename V>
typename enable_if<is_class<T>::value != 0>::type
fill_v(T &t, const V &v)
{
    for (auto &e : t)
        fill_v(e, v);
}
int main()
{
    int N;
    cin >> N;
    vll a(N), b(N);
    for (size_t i = 0; i < N; i++)
    {
        cin >> a[i];
    }
    for (size_t i = 0; i < N; i++)
    {
        cin >> b[i];
    }

    ll sumA = accumulate(all(a), 0LL), sumB = accumulate(all(b), 0LL);
    ll op = sumB - sumA,n1=0,n2=0;
    if (num < 0)
    {
        cout << "No";
        return 0;
    }
    for (size_t i = 0; i < N; i++)
    {
        ll K = b[i] - a[i];
        if (a[i] < b[i])
        {

            //           a[i] += ((K+1)/2) * 2;
            n1 -= ((K + 1) / 2);
        }
        else
        {
            n1 += K;
        }
    }
    cout << ((max(n1,n2) <= op) ? "Yes" : "No");
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:77:9: error: 'num' was not declared in this scope; did you mean 'enum'?
   77 |     if (num < 0)
      |         ^~~
      |         enum
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
int N;
  cin>>N;
  vector<int64_t>A(N);
  for(int i=0;i<N;i++)
    cin>>A.at(i);
  vector<int64_t>B(N);
  for(int i=0;i<N;i++)
    cin>>B.at(i);
  vector<int64_t>C(N);
  for(int i=0;i<N;i++)
    C.at(i)=B.at(i)-A.at(i);
  int64_t sum=0;
  for(int i=0;i<N;i++)
    sum+=C.at(i);
  int64_t need1=0;
  for(int i=0;i<N;i++){
  if(0<C.at(i)){
  need1+=(1+C.at(i))/2;
  }
  }if(nee1<=sum)
    cout<<"Yes"<<endl;
  else
    cout<<"No"<<endl;
  
   return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:23:7: error: 'nee1' was not declared in this scope; did you mean 'need1'?
   23 |   }if(nee1<=sum)
      |       ^~~~
      |       need1
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define int long long
deque < int > a;
deque < int > b;
int main()
{
	int n,a2,b2;
	cin>>n;
	for(int i=0;i<n;i++)
	{
		cin>>a2;
		a.push_back(a2);
	}
	for(int i=0;i<n;i++)
	{
		cin>>b2;
		b.push_back(b2);
	}
	int k=0;
	for(int i=0;i<n;i++)
		k+=b[i]-a[i];
	for(int i=0;i<n;i++)
	{
		if(b[i]-a[i]>0)
			k-=(b[i]-a[i]+1)/2;
	}
	if(k<0) cout<<"No"<<endl;
	else cout<<"Yes"<<endl;
}

Compiler output:
cc1plus: error: '::main' must return 'int'
Language: C++

#include <bits/stdc++.h>
using namespace std;
using lint = long long;

signed main(){
  lint N, suma = 0, sumb = 0; cin >> N;
  vector<lint> a(N), b(N);
  for(lint i = 0; i < N; i++) cin >> a[i], suma += a[i];
  for(lint i = 0; i < N; i++) cin >> b[i], sumb += b[i];
  lint counts1 = 0, counts1 = 0;
  for(lint i = 0; i < N; i++){
    if(a[i] < b[i]) counts1 += ceil(double(b[i] - a[i]) / double(2));
    if(a[i] > b[i]) counts2 += (a[i] - b[i]);
  }
  if(max(counts1, counts2) <= (sumb - suma)) cout << "Yes" << endl;
  else cout << "No" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:21: error: redeclaration of 'lint counts1'
   10 |   lint counts1 = 0, counts1 = 0;
      |                     ^~~~~~~
a.cc:10:8: note: 'lint counts1' previously declared here
   10 |   lint counts1 = 0, counts1 = 0;
      |        ^~~~~~~
a.cc:13:21: error: 'counts2' was not declared in this scope; did you mean 'counts1'?
   13 |     if(a[i] > b[i]) counts2 += (a[i] - b[i]);
      |                     ^~~~~~~
      |                     counts1
a.cc:15:19: error: 'counts2' was not declared in this scope; did you mean 'counts1'?
   15 |   if(max(counts1, counts2) <= (sumb - suma)) cout << "Yes" << endl;
      |                   ^~~~~~~
      |                   counts1
Language: C++

#include <iostream>
//#include <iomanip>
//#include <string>
#include <vector>
#include <algorithm>
#include <utility>
//#include <set>
//#include <map>
//#include <queue>
//#include <deque>
//#include <bitset>
//#include <math.h>
using namespace std ;
using ll = long long ;
//using ld = long double ;
using vll = vector<ll> ;
//using vvll = vector<vll> ;
//using vc = vector<char> ;
//using vvc = vector<vc> ;
//using vb = vector<bool> ;
//using vvb = vector<vb> ;
//using pll = pair<ll,ll> ;
#define all(v) (v).begin(),(v).end()

//ll mod = 1000000007 ;
//long double pie = acos(-1) ;
//ll INF = 10000000000 ;

void yorn(bool a){if(a) cout << "Yes" << endl ; else cout << "No" << endl ;}
//void YorN(bool a){if(a) cout << "YES" << endl ; else cout << "NO" << endl ;}
//ll gcd(long long a,long long b){if(b==0) return a ; if(b<0) b *= -1 ; return gcd(b,a%b) ;}
//ll lcm(long long a,long long b){return a/gcd(a,b)*b ;}
//ll sa(long long a,long long b){if(a>b) return a-b ; return b-a ;}
//void mysort(vector<long long> &a){sort(a.begin(),a.end()) ;}
//void myrev(vector<long long> &a){reverse(a.begin(),a.end()) ;}

int main(){
	ll n ; cin >> n ;
	vector<ll> a(n),b(n) ;
	for(auto &i:a) cin >> i ;
	for(auto &i:b) cin >> i ;
	bool ok = true ;
	sort(all(a)) ; reverse(all(v)) ;
	sort(all(b)) ; reverse(all(v)) ;
	ll cnt = 0 ;
	for(int i=0;i<n;i++){
		if(a.at(i)<=b.at(i)) cnt += (b.at(i)-a.at(i))/2 ;
		else{
			if(a.at(i)<=b.at(i)+cnt){
				cnt -= a.at(i)-b.at(i) ;
			}else{
				ok = false ;
			}
		}
	}
	yorn(ok) ;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:43:36: error: 'v' was not declared in this scope
   43 |         sort(all(a)) ; reverse(all(v)) ;
      |                                    ^
a.cc:23:17: note: in definition of macro 'all'
   23 | #define all(v) (v).begin(),(v).end()
      |                 ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define fs first
#define sc second
#define pb push_back
#define mp make_pair
#define eb emplace_back
#define ALL(A) A.begin(),A.end()
#define RALL(A) A.rbegin(),A.rend()
typedef long long ll;
typedef pair<ll,ll> P;
const ll mod=1000000007;
const ll LINF=1LL<<60;
const int INF=1<<30;
 
int main() {
  int n;
  cin >> n;
  vint A(n);
  vint B(n);
  rep(i,n) cin >> A[i];
  rep(i,n) cin >> B[i];
  sort(A.begin(),A.end());
  sort(B.begin(),B.end());
  bool flag = true;
  rep(i,n){
    if(A[i] > B[i]){
      flag = false;
      break;
    }
  }
  if(flag) cout << "Yes" << endl;
  else cout << "No" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:3: error: 'vint' was not declared in this scope; did you mean 'uint'?
   19 |   vint A(n);
      |   ^~~~
      |   uint
a.cc:20:7: error: expected ';' before 'B'
   20 |   vint B(n);
      |       ^~
      |       ;
a.cc:21:7: error: 'i' was not declared in this scope
   21 |   rep(i,n) cin >> A[i];
      |       ^
a.cc:21:3: error: 'rep' was not declared in this scope
   21 |   rep(i,n) cin >> A[i];
      |   ^~~
a.cc:23:8: error: 'A' was not declared in this scope
   23 |   sort(A.begin(),A.end());
      |        ^
a.cc:24:8: error: 'B' was not declared in this scope
   24 |   sort(B.begin(),B.end());
      |        ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int n;
  cin >> n;
  vint A(n);
  vint B(n);
  rep(i,n) cin >> A[i];
  rep(i,n) cin >> B[i];
  sort(A.begin(),A.end());
  sort(B.begin(),B.end());
  bool flag = true;
  rep(i,n){
    if(A[i] > B[i]){
      flag = false;
      break;
    }
  }
  if(flag) cout << "Yes" << endl;
  else cout << "No" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'vint' was not declared in this scope; did you mean 'uint'?
    7 |   vint A(n);
      |   ^~~~
      |   uint
a.cc:8:7: error: expected ';' before 'B'
    8 |   vint B(n);
      |       ^~
      |       ;
a.cc:9:7: error: 'i' was not declared in this scope
    9 |   rep(i,n) cin >> A[i];
      |       ^
a.cc:9:3: error: 'rep' was not declared in this scope
    9 |   rep(i,n) cin >> A[i];
      |   ^~~
a.cc:11:8: error: 'A' was not declared in this scope
   11 |   sort(A.begin(),A.end());
      |        ^
a.cc:12:8: error: 'B' was not declared in this scope
   12 |   sort(B.begin(),B.end());
      |        ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int n;
  vint A(n);
  vint B(n);
  rep(i,n) cin >> A[i];
  rep(i,n) cin >> B[i];
  sort(A.begin(),A.end());
  sort(B.begin(),B.end());
  bool flag = true;
  rep(i,n){
    if(A[i] > B[i]){
      flag = false;
      break;
    }
  }
  if(flag) cout << "Yes" << endl;
  else cout << "No" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'vint' was not declared in this scope; did you mean 'uint'?
    6 |   vint A(n);
      |   ^~~~
      |   uint
a.cc:7:7: error: expected ';' before 'B'
    7 |   vint B(n);
      |       ^~
      |       ;
a.cc:8:7: error: 'i' was not declared in this scope
    8 |   rep(i,n) cin >> A[i];
      |       ^
a.cc:8:3: error: 'rep' was not declared in this scope
    8 |   rep(i,n) cin >> A[i];
      |   ^~~
a.cc:10:8: error: 'A' was not declared in this scope
   10 |   sort(A.begin(),A.end());
      |        ^
a.cc:11:8: error: 'B' was not declared in this scope
   11 |   sort(B.begin(),B.end());
      |        ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
const int N = 2e5+5;
ll a[N],b[N];
int n;
ll sum1,sum2;
int main(int argc, char **argv){
    cin>>n;
    for(int i=1;i<=n;i++) scanf("%lld",a+i);
    for(int i=1;i<=n;i++) scanf("%lld",b+i);
    for(int i=1;i<=n;i++) {
        if(a[i] > b[i]) sum1 += (a[i] - b[i]);
        if(a[i] < b[i]) sum2 += (b[i] - a[i])/2;
    }
    if(sum1 <= sum2) puts("Yes\r");
    else puts("No");
}

Compiler output:
a.cc:4:1: error: 'll' does not name a type
    4 | ll a[N],b[N];
      | ^~
a.cc:6:1: error: 'll' does not name a type
    6 | ll sum1,sum2;
      | ^~
a.cc: In function 'int main(int, char**)':
a.cc:9:40: error: 'a' was not declared in this scope
    9 |     for(int i=1;i<=n;i++) scanf("%lld",a+i);
      |                                        ^
a.cc:10:40: error: 'b' was not declared in this scope
   10 |     for(int i=1;i<=n;i++) scanf("%lld",b+i);
      |                                        ^
a.cc:12:12: error: 'a' was not declared in this scope
   12 |         if(a[i] > b[i]) sum1 += (a[i] - b[i]);
      |            ^
a.cc:12:19: error: 'b' was not declared in this scope
   12 |         if(a[i] > b[i]) sum1 += (a[i] - b[i]);
      |                   ^
a.cc:12:25: error: 'sum1' was not declared in this scope
   12 |         if(a[i] > b[i]) sum1 += (a[i] - b[i]);
      |                         ^~~~
a.cc:13:12: error: 'a' was not declared in this scope
   13 |         if(a[i] < b[i]) sum2 += (b[i] - a[i])/2;
      |            ^
a.cc:13:19: error: 'b' was not declared in this scope
   13 |         if(a[i] < b[i]) sum2 += (b[i] - a[i])/2;
      |                   ^
a.cc:13:25: error: 'sum2' was not declared in this scope
   13 |         if(a[i] < b[i]) sum2 += (b[i] - a[i])/2;
      |                         ^~~~
a.cc:15:8: error: 'sum1' was not declared in this scope
   15 |     if(sum1 <= sum2) puts("Yes\r");
      |        ^~~~
a.cc:15:16: error: 'sum2' was not declared in this scope
   15 |     if(sum1 <= sum2) puts("Yes\r");
      |                ^~~~
Language: C++

#include<bits/stdc++.h>
#define inf ((1<<30)-1)
#define linf ((1<<62)ll-1)
#define LL long long
#define F(i,a,b,c) for(register int i=(a);(b);i=(c))
#define Fu(i,a,b) for(register int i=(a);i<=(b);++i)
#define Fd(i,a,b) for(register int i=(a);i>=(b);--i)
#define Fn(i,a) for(register int i=las[(a)];i;i=nex[i])
#define COND(c) (isprint(c))
int Fl,Pn,SI=100;char mch=' ',ch,Bf[21];
void chin(char&c){while(!COND(c=getchar()));}
template<typename t>void in(t&a){a=0;ch=getchar();Fl=1;while(((ch<'0')||(ch>'9'))&&ch!=EOF)Fl=(ch=='-')?-Fl:Fl,ch=getchar();while((ch>='0')&&(ch<='9'))a=a*10+ch-'0',ch=getchar();a*=Fl;}template<typename t>void out(t a){if(a<0)putchar('-'),a=-a;if(a==0)putchar('0');while(a)Bf[++Pn]=a%10+'0',a/=10;while(Pn)putchar(Bf[Pn]),--Pn;putchar(mch);}
template<typename t,typename ...ARGS>void in(t&a,ARGS&...args){in(a);in(args...);}
template<typename t,typename ...ARGS>void out(t a,ARGS... args){out(a);out(args...);}
using namespace std;
int a[10001],b,n;LL s1,s2;
int main()
{
	in(n);
	Fu(i,1,n)in(a[i]);
	Fu(i,1,n)
	{
		in(b);
		if(a>b)s1+=(a-b);
		else s2+=(b-a)/2; 
	}
	if(s1<=s2)cout<<"Yes\n";
	else cout<<"No\n";
	return 0;
}
//BY Segment_Tree_Juruo (2020严誉沣)


Compiler output:
a.cc: In function 'int main()':
a.cc:20:12: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
   20 |         Fu(i,1,n)in(a[i]);
      |            ^
a.cc:6:36: note: in definition of macro 'Fu'
    6 | #define Fu(i,a,b) for(register int i=(a);i<=(b);++i)
      |                                    ^
a.cc:21:12: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
   21 |         Fu(i,1,n)
      |            ^
a.cc:6:36: note: in definition of macro 'Fu'
    6 | #define Fu(i,a,b) for(register int i=(a);i<=(b);++i)
      |                                    ^
a.cc:24:21: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   24 |                 if(a>b)s1+=(a-b);
      |                    ~^~
a.cc:24:26: error: invalid conversion from 'int*' to 'long long int' [-fpermissive]
   24 |                 if(a>b)s1+=(a-b);
      |                        ~~^~~~~~~
      |                          |
      |                          int*
a.cc:25:28: error: invalid operands of types 'int' and 'int [10001]' to binary 'operator-'
   25 |                 else s2+=(b-a)/2;
      |                           ~^~
      |                           | |
      |                           | int [10001]
      |                           int
Language: C++

#define _GLIBCXX_DEBUG
#include <bits/stdc++.h>
using namespace std;
template<class T> inline bool chmax(T& a,T b){if(a<b){a=b;return 1;} return 0;}
template<class T> inline bool chmin(T& a,T b){if(a>b){a=b;return 1;} return 0;}
#define rep(i,n) for(int i=0;i<(int)(n);i++)
#define all(vec) vec.begin(),vec.end()
typedef long long ll;
typedef pair<ll,ll> pll;
typedef pair<int,int> pii;
const ll mod=1e9+7;
const int inf=1<<30;

int main(){
  int n; cin >> n;
  vector<ll> a(n);
  rep(i,n) cin >> a[i];
  vector<ll> b(n);
  rep(i,n) cin >> b[i];
  vector<ll> a2(0);
  vector<ll> b2(0);
  rep(i,n){
    if(a[i]>b[i]) b2.push_back(a[i]-b[i]);
    if(a[i]<b[i]){
      if((b[i]-a[i])%2==1) a2.push_back(b[i]-a[i]-1);
      else a2.push_back(b[i]-a[i]);
  }
  bool f=1;
  ll suma=0;
  rep(i,a2.size()){
    suma+=a2[i];
  }
  ll sumb=0;
  rep(i,b2.size()){
    sumb+=b2[i];
  }
  if(suma>=sumb*2){
    cout << "Yes" << endl;
    return 0;
  }
  cout << "No" << endl;
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:43:2: error: expected '}' at end of input
   43 | }
      |  ^
a.cc:14:11: note: to match this '{'
   14 | int main(){
      |           ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define rep(i,j,n) for(int i=(int)(j);i<(int)(n);i++)
#define REP(i,j,n) for(int i=(int)(j);i<=(int)(n);i++)
#define MOD 1000000007
#define int long long
#define ALL(a) (a).begin(),(a).end()
#define vi vector<int>
#define vii vector<vi>
#define pii pair<int,int>
#define priq priority_queue<int>
#define disup(A,key) distance(A.begin(),upper_bound(ALL(A),(int)(key)))
#define dislow(A,key) distance(A.begin(),lower_bound(ALL(A),(int)(key)))
#define tii tuple<int,int,int>
#define Priq priority_queue<int,vi,greater<int>>
#define pb push_back
#define mp make_pair
#define INF (1ll<<60)
signed main(){
  int N; cin>>N;
  vi A(N),B(N);
  rep(i,0,N) cin>>A[i];
  rep(i,0,N) cin>>B[i];
  int sum=0,sum2=0;
  rep(i,0,N){
    if(A[i]>B[i]){
      sum1+=A[i]-B[i];
    }
    else{
      sum2+=(B[i]-A[i])/2*2;
    }
  }
  string ans="No";
  if(sum1<=sum2/2) ans="Yes";
  cout<<ans<<endl;
  }


Compiler output:
a.cc: In function 'int main()':
a.cc:27:7: error: 'sum1' was not declared in this scope; did you mean 'sum2'?
   27 |       sum1+=A[i]-B[i];
      |       ^~~~
      |       sum2
a.cc:34:6: error: 'sum1' was not declared in this scope; did you mean 'sum2'?
   34 |   if(sum1<=sum2/2) ans="Yes";
      |      ^~~~
      |      sum2
Language: C++

#include <iostream>
using namespace std; typedef long long ll
int main() {
  int n; cin>>n;
  ll a[n],b[n];
  for(int i=0;i<n;i++) cin>>a[i];
  for(int i=0;i<n;i++) cin>>b[i];
  ll c=0,d=0;
  for(int i=0;i<n;i++) c+=max(0LL,(b[i]-a[i])/2);
  for(int i=0;i<n;i++) d+=max(0LL,a[i]-b[i]);
  if (c-d>=0) cout<<"Yes"<<endl;
  else cout<<"No"<<endl;
}

Compiler output:
a.cc:3:1: error: expected initializer before 'int'
    3 | int main() {
      | ^~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define rep(i,j,n) for(int i=(int)(j);i<(int)(n);i++)
#define REP(i,j,n) for(int i=(int)(j);i<=(int)(n);i++)
#define MOD 1000000007
#define int long long
#define ALL(a) (a).begin(),(a).end()
#define vi vector<int>
#define vii vector<vi>
#define pii pair<int,int>
#define priq priority_queue<int>
#define disup(A,key) distance(A.begin(),upper_bound(ALL(A),(int)(key)))
#define dislow(A,key) distance(A.begin(),lower_bound(ALL(A),(int)(key)))
#define tii tuple<int,int,int>
#define Priq priority_queue<int,vi,greater<int>>
#define pb push_back
#define mp make_pair
#define INF (1ll<<60)
signed main(){
  int N; cin>>N;
  vi A(N),B(N);
  rep(i,0,N) cin>>A[i];
  rep(j,0,N) cin>>B[i];
  int sum1=0,sum2=0;
  rep(i,0,N){
    sum1+=max(0ll,A[i]-B[i]);
    sum2+=max(0ll,B[i]-A[i]);
  }
  string ans="No";
  if(sum1*2>=sum2) ans="Yes";
  cout<<ans<<endl;
  }


Compiler output:
a.cc: In function 'int main()':
a.cc:23:21: error: 'i' was not declared in this scope
   23 |   rep(j,0,N) cin>>B[i];
      |                     ^
Language: C++

#include <iostream>
#include <cmath>
#include <vector>
#include <string>
#include <algorithm>

using namespace std;

#define INF 1e9
#define MAXN 10005
#define ll long long
#define vi vector<int>
#define vll vector<long long>
#define rep(i,n) for(int i=0, i##_len=(n); i<i##_len; ++i)
#define pii pair<int, int>

ll sumA = 0, sumB = 0, ans=0;
int N, A[MAXN], B[MAXN], 

void solve(){
    rep(i, N){
        if(A[i] < B[i]){
            ans += (B[i] - A[i])/2;
        } else if(A[i] > B[i]) {
            ans -= A[i] - B[i];
        }
    }

    if(ans < 0)
        cout << "No" << endl;
    else
        cout << "Yes" << endl;
}

int main(){
    cin >> N;

    rep(i, N){
        cin >> A[i];
        sumA += A[i];
    }

    rep(i, N){
        cin >> B[i];
        sumB += B[i];
    }

    solve();
}


Compiler output:
a.cc:20:1: error: expected unqualified-id before 'void'
   20 | void solve(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:48:5: error: 'solve' was not declared in this scope
   48 |     solve();
      |     ^~~~~
Language: C++

#include<bits/stdc++.h>
long long a[10005],b[10005];
long long s1,s2;
int main()
{
    int n;
    cin>>n;
    for(int i=1;i<=n;i++)
    	cin>>a[i];
    for(int i=1;i<=n;i++)
    	cin>>n[i];
    for (int i=1;i<n;i++) 
	{
        if(a[i]>b[i])s1+=a[i]-b[i];
        if(a[i]<b[i])s2+=(b[i]-a[i])>>1;
	}
    if(s1<=s2)
		cout<<"Yes";
	else
		cout<<"No";
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |     cin>>n;
      |     ^~~
      |     std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:11:15: error: invalid types 'int[int]' for array subscript
   11 |         cin>>n[i];
      |               ^
a.cc:18:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   18 |                 cout<<"Yes";
      |                 ^~~~
      |                 std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:20:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   20 |                 cout<<"No";
      |                 ^~~~
      |                 std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main () {
  int N;
  cin >> N;
  vector<pair<long, long>> data(N);
  for(inti = 0; i < N; i++){
    cin >> data.at(i).first >> data.at(i).second;
  }
  for(int i = 0; i < N; i++){
    if(data.at(i).first % 2 != data.at(i).second % 2){
      data.at(i).first += 2;
      data.at(i).second++;
    }
  }
  int count = 0;
  for(int i = 0; i < N; i++){
    if(data.at(i).first > data.at(i).second){
      count -= data.at(i).first - data.at(i).second;
    } else {
      count += (data.at(i).second - data.at(i).first) / 2;
    }
  }
  if(count == 0)cout << "Yes" << endl;
  else cout << "No" << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:7: error: 'inti' was not declared in this scope; did you mean 'int'?
    7 |   for(inti = 0; i < N; i++){
      |       ^~~~
      |       int
a.cc:7:17: error: 'i' was not declared in this scope
    7 |   for(inti = 0; i < N; i++){
      |                 ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
using ll=long long;

int main(){
  int n; cin>>n;
  ll ac=0,bc=0,suma=0,sumb=0;
  vector<ll> a(n),b(n);
  for(int i=0;i<n;i++){
    cin>>a[i];
    suma+=a[i];
  }for(int i=0;i<n;i++){
    cin>>b[i];
    sumb+=b[i];
  }
  for(int i=0;i<n;i++){
    if(a[i]!=b[i]){
      if(a[i]<b[i]) ac+=(b[i]-a[i])/2;
      else bc+=a[i]-b[i];
    }
  }
  if((sumb-suma)<max(ac + bc)){
    cout<<"No"<<endl;
  }else{
    cout<<"Yes"<<endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:22:21: error: no matching function for call to 'max(ll)'
   22 |   if((sumb-suma)<max(ac + bc)){
      |                  ~~~^~~~~~~~~
In file included from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:257:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
  257 |     max(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:257:5: note:   candidate expects 2 arguments, 1 provided
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
  303 |     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note:   candidate expects 3 arguments, 1 provided
In file included from /usr/include/c++/14/algorithm:61:
/usr/include/c++/14/bits/stl_algo.h:5706:5: note: candidate: 'template<class _Tp> constexpr _Tp std::max(initializer_list<_Tp>)'
 5706 |     max(initializer_list<_Tp> __l)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5706:5: note:   template argument deduction/substitution failed:
a.cc:22:21: note:   mismatched types 'std::initializer_list<_Tp>' and 'long long int'
   22 |   if((sumb-suma)<max(ac + bc)){
      |                  ~~~^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::max(initializer_list<_Tp>, _Compare)'
 5716 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5716:5: note:   candidate expects 2 arguments, 1 provided
Language: C++

// test
#include <bits/std++.h>
using namespace std;
int main() {
	int n;
	cin >> n;
	vector<long> A(n);
	vector<long> B(n);
	long long sumA, sumB;
	sumA = sumB = 0;
	for (int i = 0; i < n; i++) {
		cin >> A.at(i);
		sumA += A.at(i);
	}
	for (int i = 0; i < n; i++) {
		cin >> B.at(i);
		sumB += B.at(i);
	}
	long move = sumB - sumA;
	long sum = 0;
	for (int i = 0; i < n; i++) {
		if (A.at(i) < B.at(i)) {
			sum += (B.at(i) - A.at(i)) / 2;
		}
	}
	if (move >= sum) {
		cout << "Yes" << endl;
	}
	else {
		cout << "No" << endl;
	}
}




Compiler output:
a.cc:2:10: fatal error: bits/std++.h: No such file or directory
    2 | #include <bits/std++.h>
      |          ^~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include <bits/stdc++.h>
#define REP(i, n) for(ll i = 0; i < (ll)n; i++)
#define FOR(i, a, b) for(ll i = (a); i < (ll)b; i++)
#define ALL(obj) (obj).begin(), (obj).end()
#define INF (1ll << 60)
#define sz(x) int(x.size())
using namespace std;
typedef long long ll;
using vl = vector<ll>;
using vvl = vector<vl>;
typedef double db;
typedef string str;
typedef pair<ll, ll> p;
constexpr int MOD = 1000000007;
using ll = long long;
template <class T> inline bool chmin(T &a, T b) {
    if(a > b) {
        a = b;
        return true;
    }
    return false;
}
template <class T> inline bool chmax(T &a, T b) {
    if(a < b) {
        a = b;
        return true;
    }
    return false;
}

void print(const std::vector<int> &v) {
    std::for_each(v.begin(), v.end(), [](int x) { std::cout << x << " "; });
    std::cout << std::endl;
}

int main() {
    ll N;
    cin >> N;
    vector<ll> a(N), b(N);
    REP(i, N) { cin >> a[i]; }
    REP(i, N) { cin >> b[i]; }
    // https://emtubasa.hateblo.jp/entry/2019/04/26/010044
    //(1) aiに2たす
    //(2) bjに１たす
    // (a) ai<biのときはなんとかなる
    // (b) ai>biのときbiに１足してajに２を足す
    // (b)の回数が限られている
    ll c = 0;
    ll d = 0;
    REP(i，N) {
        c += max(0, a[i] - b[i]);
        d += max(0, (b[i] - a[i]) / 2);
    }
    if(c <= d) {
        cout << "Yes" << endl;
        return 0;
    }
    cout << "No" << endl;
    return 0;
}

Compiler output:
a.cc:50:13: error: macro "REP" requires 2 arguments, but only 1 given
   50 |     REP(i，N) {
      |             ^
a.cc:2:9: note: macro "REP" defined here
    2 | #define REP(i, n) for(ll i = 0; i < (ll)n; i++)
      |         ^~~
a.cc: In function 'int main()':
a.cc:50:5: error: 'REP' was not declared in this scope
   50 |     REP(i，N) {
      |     ^~~
Language: C++

#include <bits/stdc++.h>
#define REP(i, n) for(ll i = 0; i < (ll)n; i++)
#define FOR(i, a, b) for(ll i = (a); i < (ll)b; i++)
#define ALL(obj) (obj).begin(), (obj).end()
#define INF (1ll << 60)
#define sz(x) int(x.size())
using namespace std;
typedef long long ll;
using vl = vector<ll>;
using vvl = vector<vl>;
typedef double db;
typedef string str;
typedef pair<ll, ll> p;
constexpr int MOD = 1000000007;
using ll = long long;
template <class T> inline bool chmin(T &a, T b) {
    if(a > b) {
        a = b;
        return true;
    }
    return false;
}
template <class T> inline bool chmax(T &a, T b) {
    if(a < b) {
        a = b;
        return true;
    }
    return false;
}

void print(const std::vector<int> &v) {
    std::for_each(v.begin(), v.end(), [](int x) { std::cout << x << " "; });
    std::cout << std::endl;
}

int main() {
    ll N;
    cin >> N;
    vector<ll> a(N), b(N);
    REP(i, N) { cin >> a[i]; }
    REP(i, N) { cin >> b[i]; }
    // https://emtubasa.hateblo.jp/entry/2019/04/26/010044
    //(1) aiに2たす
    //(2) bjに１たす
    // (a) ai<biのときはなんとかなる
    // (b) ai>biのときbiに１足してajに２を足す
    // (b)の回数が限られている
    ll b = 0;
    ll c = 0;
    REP（i，N）｛ b += max(0, a[i] - b[i]);
    c += max(0, (b[i] - a[i]) / 2);
    ｝ if(a <= c) {
        cout << "Yes" << endl;
        return 0;
    }
    cout << "No" << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:48:8: error: conflicting declaration 'll b'
   48 |     ll b = 0;
      |        ^
a.cc:39:22: note: previous declaration as 'std::vector<long long int> b'
   39 |     vector<ll> a(N), b(N);
      |                      ^
a.cc:50:5: error: 'REP\U0000ff08i\U0000ff0cN\U0000ff09\U0000ff5b' was not declared in this scope
   50 |     REP（i，N）｛ b += max(0, a[i] - b[i]);
      |     ^~~~~~~~~~~~~
a.cc:51:20: error: 'i' was not declared in this scope
   51 |     c += max(0, (b[i] - a[i]) / 2);
      |                    ^
a.cc:52:5: error: '\U0000ff5d' was not declared in this scope
   52 |     ｝ if(a <= c) {
      |     ^~
Language: C++

#include <bits/stdc++.h>
#define REP(i, n) for(ll i = 0; i < (ll)n; i++)
#define FOR(i, a, b) for(ll i = (a); i < (ll)b; i++)
#define ALL(obj) (obj).begin(), (obj).end()
#define INF (1ll << 60)
#define sz(x) int(x.size())
using namespace std;
typedef long long ll;
using vl = vector<ll>;
using vvl = vector<vl>;
typedef double db;
typedef string str;
typedef pair<ll, ll> p;
constexpr int MOD = 1000000007;
using ll = long long;
template <class T> inline bool chmin(T &a, T b) {
    if(a > b) {
        a = b;
        return true;
    }
    return false;
}
template <class T> inline bool chmax(T &a, T b) {
    if(a < b) {
        a = b;
        return true;
    }
    return false;
}

void print(const std::vector<int> &v) {
    std::for_each(v.begin(), v.end(), [](int x) { std::cout << x << " "; });
    std::cout << std::endl;
}

int main() {
    ll N;
    cin >> N;
    vector<ll> a(N), b(N);
    REP(i, N) { cin >> a[i]; }
    REP(i, N) { cin >> b[i]; }
    // https://emtubasa.hateblo.jp/entry/2019/04/26/010044
    //(1) aiに2たす
    //(2) bjに１たす
    // (a) ai<biのときはなんとかなる
    // (b) ai>biのときbiに１足してajに２を足す
    // (b)の回数が限られている
    ll b = 0;
    ll c = 0;
    REP（i，N）｛ b += max(0, a[i] - b[i]);
    c+= max(0, (b[i]-a[i])/2;
    ｝ 
    if(a<=c){
        cout << "Yes" << endl;
        return 0;
    }
     cout << "No" << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:48:8: error: conflicting declaration 'll b'
   48 |     ll b = 0;
      |        ^
a.cc:39:22: note: previous declaration as 'std::vector<long long int> b'
   39 |     vector<ll> a(N), b(N);
      |                      ^
a.cc:50:5: error: 'REP\U0000ff08i\U0000ff0cN\U0000ff09\U0000ff5b' was not declared in this scope
   50 |     REP（i，N）｛ b += max(0, a[i] - b[i]);
      |     ^~~~~~~~~~~~~
a.cc:51:19: error: 'i' was not declared in this scope
   51 |     c+= max(0, (b[i]-a[i])/2;
      |                   ^
a.cc:52:5: error: '\U0000ff5d' was not declared in this scope
   52 |     ｝
      |     ^~
Language: C++

#include <bits/stdc++.h>
#define REP(i, n) for(ll i = 0; i < (ll)n; i++)
#define FOR(i, a, b) for(ll i = (a); i < (ll)b; i++)
#define ALL(obj) (obj).begin(), (obj).end()
#define INF (1ll << 60)
#define sz(x) int(x.size())
using namespace std;
typedef long long ll;
using vl = vector<ll>;
using vvl = vector<vl>;
typedef double db;
typedef string str;
typedef pair<ll, ll> p;
constexpr int MOD = 1000000007;
using ll = long long;
template <class T> inline bool chmin(T &a, T b) {
    if(a > b) {
        a = b;
        return true;
    }
    return false;
}
template <class T> inline bool chmax(T &a, T b) {
    if(a < b) {
        a = b;
        return true;
    }
    return false;
}

void print(const std::vector<int> &v) {
    std::for_each(v.begin(), v.end(), [](int x) { std::cout << x << " "; });
    std::cout << std::endl;
}

int main() {
    ll N;
    cin >> N;
    vector<ll> a(N), b(N);
    REP(i, N) { cin >> a[i]; }
    REP(i, N) { cin >> b[i]; }
    // https://emtubasa.hateblo.jp/entry/2019/04/26/010044
    //(1) aiに2たす
    //(2) bjに１たす
    // (a) ai<biのときはなんとかなる
    // (b) ai>biのときbiに１足してajに２を足す
    // (b)の回数が限られている
    ll b = 0;
    ll c = 0;
    REP（i，N）｛ 
    b+=max(0, a[i]-b[i];
    c+= max(0, (b[i]-a[i])/2;
    ｝ 
    if(a<=c){
        cout << "Yes" << endl;
        return 0;
    }
     cout << "No" << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:48:8: error: conflicting declaration 'll b'
   48 |     ll b = 0;
      |        ^
a.cc:39:22: note: previous declaration as 'std::vector<long long int> b'
   39 |     vector<ll> a(N), b(N);
      |                      ^
a.cc:50:5: error: 'REP\U0000ff08i\U0000ff0cN\U0000ff09\U0000ff5b' was not declared in this scope
   50 |     REP（i，N）｛
      |     ^~~~~~~~~~~~~
a.cc:52:19: error: 'i' was not declared in this scope
   52 |     c+= max(0, (b[i]-a[i])/2;
      |                   ^
a.cc:53:5: error: '\U0000ff5d' was not declared in this scope
   53 |     ｝
      |     ^~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main()
{
    int n;
    cin >> n;
    vector< int > a(n), b(n);
    for (int i = 0; i < n; i++) {
        cin >> a[i];
    }
    for (int i = 0; i < n; i++) {
        cin >> b[i];
    }

    int p_cnt = 0, n_cnt = 0;
    int cnt_zero = 0;
    vector< int > c(n);
    for (int i = 0; i < n; i++) {
        c[i] = b[i] - a[i];
        if (c[i] == 0) {
            cnt_zero++;
        } else if (c[i] > 0) {
            p_cnt += c[i];
        } else if (c[i] < 0) {
            n_cnt -= c[i];
        }
    }
    if (p_cnt % 2 != 0) {
        cout << "No" << endl;
    } else if (p_cnt / 2 - n_cnt == 0) {
        cout << "Yes" << endl;
    } else if ((p_cnt / 2 - n_cnt) < 0) {
        cout << "No" << endl;
    } else if ((p_cnt / 2 - n_cnt) > 0 && (p_cnt / 2 - n_cnt) % 2 == 1) {
        cout << (zero_exist ? "Yes" : "No") << endl;
    } else {
        cout << "No" << endl;
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:35:18: error: 'zero_exist' was not declared in this scope
   35 |         cout << (zero_exist ? "Yes" : "No") << endl;
      |                  ^~~~~~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const double PI = acos(-1);
const ll MOD = 1000000007;
using Graph = vector<vector<int>>;



int main() {
  int N; cin >> N;
  vector<ll> a(N),b(N),c(N);
  for (int i = 0; i < N; i++) cin >> a[i];
  for (int i = 0; i < N; i++) cin >> b[i];
  
  bool can = true;
  ll sum = 0;
  for (int i = 0; i < N; i++) {
    c[i] = b[i]-a[i];
    sum += c[i];
  }
  if (sum < 0) = false;
  sort(c.begin(),c.end());
  
  int k = lower_bound(c.begin(),c.end(),0) - c.begin();
  ll p = 0;
  for (int i = k; i < N; i++) p += c[i];
  
  if((p+1) / 2 > sum) can = false;

  if (can) cout << "Yes" << endl;
  else cout << "No" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:22:16: error: expected primary-expression before '=' token
   22 |   if (sum < 0) = false;
      |                ^
Language: C++

#include <bits/stdc++.h>
#define REP(i, n) for (int (i) = 0; (i) < (int)(n); i++) 
#define FOR(i, a, b) for(int (i) = a; (i) < (int)b; i++)
#define RREP(i, n) for(int (i)=((int)(n)-1); (i)>=0; i--)
#define RFOR(i, a, b) for(int (i) =((int)(b)-1); (i)>=(int)a; i--)
#define ALL(v) (v).begin(),(v).end()
#define MOD 1000000007
#define FI first
#define SE second
#define MP make_pair
#define PB push_back
#define SZ(x)  (int)x.size()
#define SP(x)  setprecision((int)x)


using namespace std ;
typedef long long ll;
typedef vector<int> vint;
typedef vector<vint> vvint;
typedef vector<string> vstr;
typedef pair<int, int> pii;
const int INF = 1e9;
const ll LINF = 1e18;
const double EPS = 1e-9;
ll gcd(ll a, ll b) {return b ? gcd(b, a % b) : a;} //最大公約数
ll lcm(ll a, ll b) {return a / gcd(a, b) * b;} //最小公倍数

//-------------------------------------------------
//コピペするとこ



//-------------------------------------------------


int main()
{
  int n ;
  cin >> n ;
  vector<ll> a(n) ;
  vector<ll> b(n) ;
  REP(i,n){
    cin >> a.at(i) ;
  }
  REP(i,n){
    cin >> b.at(i) ;
  }
  
  ll minc = 0 ;
  ll pluc = 0 ;
  
  REP(i,n){
    if(a.at(i)=>b.at(i)){
      pluc += (a.at(i)-b.at(i)) ;
    }
    else{
      minc += (b.at(i)-a.at(i)) ;
    }
  }
  
  if(minc/2>pluc){
    cout <<"Yes"<<endl ;
  }
  else{
    cout <<"No"<<endl ;
  }

  return 0 ;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:53:16: error: expected primary-expression before '>' token
   53 |     if(a.at(i)=>b.at(i)){
      |                ^
Language: C++

#include <bits/stdc++.h>
#define REP(i, n) for (int (i) = 0; (i) < (int)(n); i++) 
#define FOR(i, a, b) for(int (i) = a; (i) < (int)b; i++)
#define RREP(i, n) for(int (i)=((int)(n)-1); (i)>=0; i--)
#define RFOR(i, a, b) for(int (i) =((int)(b)-1); (i)>=(int)a; i--)
#define ALL(v) (v).begin(),(v).end()
#define MOD 1000000007
#define FI first
#define SE second
#define MP make_pair
#define PB push_back
#define SZ(x)  (int)x.size()
#define SP(x)  setprecision((int)x)


using namespace std ;
typedef long long ll;
typedef vector<int> vint;
typedef vector<vint> vvint;
typedef vector<string> vstr;
typedef pair<int, int> pii;
const int INF = 1e9;
const ll LINF = 1e18;
const double EPS = 1e-9;
ll gcd(ll a, ll b) {return b ? gcd(b, a % b) : a;} //最大公約数
ll lcm(ll a, ll b) {return a / gcd(a, b) * b;} //最小公倍数

//-------------------------------------------------
//コピペするとこ



//-------------------------------------------------


int main()
{
  int n ;
  cin >> n ;
  vector<ll> a(n) ;
  vector<l> b(n) ;
  REP(i,n){
    cin >> a.at(i) ;
  }
  REP(i,n){
    cin >> b.at(i) ;
  }
  
  ll minc = 0 ;
  ll pluc = 0 ;
  
  REP(i,n){
    if(a.at(i)=>b.at(i)){
      pluc += (a.at(i)-b.at(i)) ;
    }
    else{
      minc += (b.at(i)-a.at(i)) ;
    }
  }
  
  if(minc/2>pluc){
    cout <<"Yes"<<endl ;
  }
  else{
    cout <<"No"<<endl ;
  }

  return 0 ;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:41:10: error: 'l' was not declared in this scope
   41 |   vector<l> b(n) ;
      |          ^
a.cc:41:11: error: template argument 1 is invalid
   41 |   vector<l> b(n) ;
      |           ^
a.cc:41:11: error: template argument 2 is invalid
a.cc:46:14: error: request for member 'at' in 'b', which is of non-class type 'int'
   46 |     cin >> b.at(i) ;
      |              ^~
a.cc:53:16: error: expected primary-expression before '>' token
   53 |     if(a.at(i)=>b.at(i)){
      |                ^
a.cc:53:19: error: request for member 'at' in 'b', which is of non-class type 'int'
   53 |     if(a.at(i)=>b.at(i)){
      |                   ^~
a.cc:54:26: error: request for member 'at' in 'b', which is of non-class type 'int'
   54 |       pluc += (a.at(i)-b.at(i)) ;
      |                          ^~
a.cc:57:18: error: request for member 'at' in 'b', which is of non-class type 'int'
   57 |       minc += (b.at(i)-a.at(i)) ;
      |                  ^~
Language: C++

#include <bits/stdc++.h>
#define REP(i, n) for (int (i) = 0; (i) < (int)(n); i++) 
#define FOR(i, a, b) for(int (i) = a; (i) < (int)b; i++)
#define RREP(i, n) for(int (i)=((int)(n)-1); (i)>=0; i--)
#define RFOR(i, a, b) for(int (i) =((int)(b)-1); (i)>=(int)a; i--)
#define ALL(v) (v).begin(),(v).end()
#define MOD 1000000007
#define FI first
#define SE second
#define MP make_pair
#define PB push_back
#define SZ(x)  (int)x.size()
#define SP(x)  setprecision((int)x)


using namespace std ;
typedef long long ll;
typedef vector<int> vint;
typedef vector<vint> vvint;
typedef vector<string> vstr;
typedef pair<int, int> pii;
const int INF = 1e9;
const ll LINF = 1e18;
const double EPS = 1e-9;
ll gcd(ll a, ll b) {return b ? gcd(b, a % b) : a;} //最大公約数
ll lcm(ll a, ll b) {return a / gcd(a, b) * b;} //最小公倍数

//-------------------------------------------------
//コピペするとこ



//-------------------------------------------------


int main()
{
  int n ;
  cin >> n ;
  vectorll> a(n) ;
  vector<ll> b(n) ;
  REP(i,n){
    cin >> a.at(i) ;
  }
  REP(i,n){
    cin >> b.at(i) ;
  }
  
  ll minc = 0 ;
  ll pluc = 0 ;
  
  REP(i,n){
    if(a.at(i)>b.at(i)){
      pluc += (a.at(i)-b.at(i)) ;
    }
    else{
      minc += (b.at(i)-a.at(i)) ;
    }
  }
  
  if(2*pluc<=minc){
    cout <<"Yes"<<endl ;
  }
  else{
    cout <<"No"<<endl ;
  }

  return 0 ;
}




Compiler output:
a.cc: In function 'int main()':
a.cc:40:3: error: 'vectorll' was not declared in this scope
   40 |   vectorll> a(n) ;
      |   ^~~~~~~~
a.cc:40:13: error: 'a' was not declared in this scope
   40 |   vectorll> a(n) ;
      |             ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define long long ll;
int n;
int a[10005],b[10005];
ll sum1,sum2;
ll delta,qwq;
int main()
{
    cin>>n;
    for(int i=1;i<=n;i++) 
    {
        cin>>a[i];
        sum1+=a[i];
    }
    for(int i=1;i<=n;i++) 
    {
        cin>>b[i];
        sum2+=b[i];
    }
    if(sum1>sum2) 
    {
        cout<<"No";
        return 0;
    }
    delta=sum2-sum1;
    for(int i=1;i<=n;i++)
        if(b[i]>a[i]) qwq+=(b[i]+1-a[i])/2;
    if(qwq>delta) cout<<"No";
    else cout<<"Yes";
    return 0;
}

Compiler output:
a.cc:6:1: error: 'll' does not name a type
    6 | ll sum1,sum2;
      | ^~
a.cc:7:1: error: 'll' does not name a type
    7 | ll delta,qwq;
      | ^~
a.cc: In function 'int main()':
a.cc:14:9: error: 'sum1' was not declared in this scope
   14 |         sum1+=a[i];
      |         ^~~~
a.cc:19:9: error: 'sum2' was not declared in this scope
   19 |         sum2+=b[i];
      |         ^~~~
a.cc:21:8: error: 'sum1' was not declared in this scope
   21 |     if(sum1>sum2)
      |        ^~~~
a.cc:21:13: error: 'sum2' was not declared in this scope
   21 |     if(sum1>sum2)
      |             ^~~~
a.cc:26:5: error: 'delta' was not declared in this scope
   26 |     delta=sum2-sum1;
      |     ^~~~~
a.cc:26:11: error: 'sum2' was not declared in this scope
   26 |     delta=sum2-sum1;
      |           ^~~~
a.cc:26:16: error: 'sum1' was not declared in this scope
   26 |     delta=sum2-sum1;
      |                ^~~~
a.cc:28:23: error: 'qwq' was not declared in this scope
   28 |         if(b[i]>a[i]) qwq+=(b[i]+1-a[i])/2;
      |                       ^~~
a.cc:29:8: error: 'qwq' was not declared in this scope
   29 |     if(qwq>delta) cout<<"No";
      |        ^~~