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

#include<bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0;i<n;i++)
typedef vector<long long> vll;
int main(){
  int n;cin >> n;
  vll a(n),b(n);
  rep(i,n)cin>>a[i];
  rep(i,n)cin>>bi];
  rep(i,n){
	int x = b[i] - a[i];
    if(x < 0) continue;
    else if(x % 2 == 1){
      puts("No");
      return 0;
    }
  }
  puts("Yes");
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:16: error: 'bi' was not declared in this scope; did you mean 'i'?
    9 |   rep(i,n)cin>>bi];
      |                ^~
      |                i
Language: Java

import java.util.Scanner;

public class APC001B {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int[] a = new int[N];
		int[] b = new int[N];
		long asum = 0;
		long bsum = 0;
		for(int i = 0;i < N;i++) {
			a[i] = sc.nextInt();
			asum += a[i];
		}
		for(int i = 0;i < N;i++) {
			b[i] = sc.nextInt();
			bsum += b[i];
		}
		sc.close();
		System.out.println(Math.abs(asum - bsum) == N ? "Yes" : "No");
	}
}

Compiler output:
Main.java:3: error: class APC001B is public, should be declared in a file named APC001B.java
public class APC001B {
       ^
1 error
Language: C++

#include <iostream>
#include <sstream>
#include <vector>
#include <string>
#include <cmath>
#include <algorithm>
#include <map>
#include <iomanip>
#include <stdio.h>

using namespace std;

//typedefリスト
typedef vector<long long int> vint;
typedef vector<vector<long long int>> vvint;
typedef vector<string> vstr;
typedef long long int llint;

llint gcd(llint x, llint y) {
	while (y != 0) {
		if (x > y) {
			llint r = x % y;
			x = y;
			y = r;
		}
		else {
			llint r = y % x;
			y = r;
		}
	}
	return x;
}

int main(void) {
	llint N, cou, timesA, timesB;
	cin >> N;
	vint a(N), b(N);
	for (int i = 0; i < N; i++){
		cin >> a[i];
		timesA += a[i];
	}
	for (int i = 0; i < N; i++){
		cin >> b[i];
		timesB += b[i];
	}
	timesA -= timesB;
	for (int i = 0; i < N; i++){
		if (a[i]>b[i]){
			cou += (a[i] - b[i]);
		}
		else{
			cou += (b[i] - a[i]) / 2;
	}
		if (timesA >= cou)cout << "Yes" << endl;
		else cout << "No" << endl;
 }




Compiler output:
a.cc: In function 'int main()':
a.cc:56:3: error: expected '}' at end of input
   56 |  }
      |   ^
a.cc:34:16: note: to match this '{'
   34 | int main(void) {
      |                ^
Language: C++

#include <iostream>
#include <sstream>
#include <vector>
#include <string>
#include <cmath>
#include <algorithm>
#include <map>
#include <iomanip>
#include <stdio.h>

using namespace std;

//typedefリスト
typedef vector<long long int> vint;
typedef vector<vector<long long int>> vvint;
typedef vector<string> vstr;
typedef long long int llint;

llint gcd(llint x, llint y) {
	while (y != 0) {
		if (x > y) {
			llint r = x % y;
			x = y;
			y = r;
		}
		else {
			llint r = y % x;
			y = r;
		}
	}
	return x;
}

int main(void) {
	llint N, cou, timesA, timesB;
	cin >> N;
	vint a(N), b(N);
	for (int i = 0; i < N; i++){
		cin >> a[i];
		timesA += a[i];
	}
	for (int i = 0; i < N; i++){
		cin >> b[i];
		timesB += b[i];
	}
	timesA -= timesB;
	for (int i = 0; i < N; i++){
		if (a[i]>b[i]){
			cou += (a[i] - b[i]);
		else{
			cou += (b[i] - a[i]) / 2;
	}
		if (timesA >= cou)cout << "Yes" << endl;
		else cout << "No" << endl;
 }




Compiler output:
a.cc: In function 'int main()':
a.cc:50:17: error: expected '}' before 'else'
   50 |                 else{
      |                 ^~~~
a.cc:48:31: note: to match this '{'
   48 |                 if (a[i]>b[i]){
      |                               ^
a.cc:55:3: error: expected '}' at end of input
   55 |  }
      |   ^
a.cc:34:16: note: to match this '{'
   34 | int main(void) {
      |                ^
Language: C

#include<stdio.h>
int main(){
    int N;                  //宣言
    int i;
    int a[N],b[N];
    int Sa,Sb;
    int Sm,Sn;

    scanf("%d",&N);         //入力
    for(i=0;i<N;i++){
        scanf("%d",&a[i]);
        Sa=Sa+a[i];
    }
    for(i=0;i<N;i++){
        scanf("%d",&b[i]);
        Sb=Sb+b[i];
    }

    Sm=Sb-Sa;               //操作できる回数

    for(i=0;i<N;i++){       //実際に操作が必要な回数
        if(a[i]>b[i]){
            Sn=Sn+a[i]-b[i];
        }else{
            Sn=Sn+(b[i]-a[i])/2
        }
    }

    if(Sm>=Sn){             //可否判定
        printf("YES");
    }else{
        printf("NO");
    }

    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:25:32: error: expected ';' before '}' token
   25 |             Sn=Sn+(b[i]-a[i])/2
      |                                ^
      |                                ;
   26 |         }
      |         ~
Language: C++

#include<bits/stdc++.h>
using namespace std;
main(){
  long n,k=0;
  cin>>n;
  vector<int> a(n),b(n);
  for(auto &i:a)cin>>i,k-=i;
  for(auto &i:b)cin>>i,k+=i;
  for(int i=;i<n;++i)if(a[i]<b[i])k-=(b[i]-a[i]+1)/2;
  cout<<(k<0?"No":"Yes");
}

Compiler output:
a.cc:3:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    3 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:9:13: error: expected primary-expression before ';' token
    9 |   for(int i=;i<n;++i)if(a[i]<b[i])k-=(b[i]-a[i]+1)/2;
      |             ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
main(){
  long n,k=0;
  cin>>n;
  vector<int> a(n),b(n);
  for(auto &i:a)cin>>i,k-=i;
  for(auto &i:b)cin>>i,k+=i;
  for(int i=;i<n;++i)if(a[i]<b[i])k-=(b[i]-a[i]+1)/2;
  cout<<(s<0?"No":"Yes");
}

Compiler output:
a.cc:3:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    3 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:9:13: error: expected primary-expression before ';' token
    9 |   for(int i=;i<n;++i)if(a[i]<b[i])k-=(b[i]-a[i]+1)/2;
      |             ^
a.cc:10:10: error: 's' was not declared in this scope
   10 |   cout<<(s<0?"No":"Yes");
      |          ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
main(){
  int n,k=0;
  cin>>n;
  vector<int> a(n),b(n);
  for(auto &i:a)cin>>i,k-=i;
  for(auto &i:b)cin>>i,k+=i;
  for(int i=;i<n;++i)if(a[i]<b[i])k-=(b[i]-a[i]+1)/2;
  cout<<(s<0?"No":"Yes");
}

Compiler output:
a.cc:3:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    3 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:9:13: error: expected primary-expression before ';' token
    9 |   for(int i=;i<n;++i)if(a[i]<b[i])k-=(b[i]-a[i]+1)/2;
      |             ^
a.cc:10:10: error: 's' was not declared in this scope
   10 |   cout<<(s<0?"No":"Yes");
      |          ^
Language: C++

#include<iostream>
#include<algorithm>
#include<cmath>
#include<iomanip>
#include<map>
using namespace std;
int main() {
  long long n,a[10000]={},b[100000]={},cnta=0,cntb=0;
  cin >> n;
  for(int i=0; i<n; i++) {
    cin >> a[i];
  }
  for(int i=0; i<n; i++) {
    cin >> b[i];
    if(a[i]>b[i]) {
      cntb++;
    }
    else {
      cnta+=(b[i]-a[i])/2;
    }
  }
  if(cnta>=cntb) {
    cout << "Yes" << endl;
  }
  else {
    cout "No" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:26:9: error: expected ';' before string constant
   26 |     cout "No" << endl;
      |         ^~~~~
      |         ;
Language: C++

#include <iostream>
using namespace std;

#define rep(i,n) for(int i=0;i<(n);++i)
#define in(v) if (scanf("%d", &v)<1);

int main() {
  int N; in(N);

  int A[N];
  rep(i, N)
    in(A[i]);

  ll diff = 0;
  rep(i, N) {
    int b; in(b);
    if (b-A[i] < 0)
      diff -= 2 * (A[i]-b);
    else
      diff += b-A[i];
  }
  if (diff < 0)
    printf("No\n");
  else
    printf("Yes\n");

  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:3: error: 'll' was not declared in this scope
   14 |   ll diff = 0;
      |   ^~
a.cc:18:7: error: 'diff' was not declared in this scope
   18 |       diff -= 2 * (A[i]-b);
      |       ^~~~
a.cc:20:7: error: 'diff' was not declared in this scope
   20 |       diff += b-A[i];
      |       ^~~~
a.cc:22:7: error: 'diff' was not declared in this scope
   22 |   if (diff < 0)
      |       ^~~~
Language: C++

#include <iostream>
#include <vector>
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];
	while(true) {
		sort(a.begin(), a.end());
		sort(b.begin(), b.end());
		if (a == b) {
			cout << "Yes" << endl;
			return 0;
		}
		if (a[0] < b[n-1]) {
			a[0] += 2;
			b[n-1]++;
		} else if (a[0] >= b[n-1]) {
			cout << "No" << endl;
		}
	}
	
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:17: error: 'sort' was not declared in this scope; did you mean 'short'?
   12 |                 sort(a.begin(), a.end());
      |                 ^~~~
      |                 short
Language: C++

int N, A[10101], B[10101];
//---------------------------------------------------------------------------------------------------
#define yes "Yes"
#define no "No"
string solve() {
    ll cnt = 0;
    rep(i, 0, N) {
        if (A[i] < B[i]) {
            cnt += (B[i] - A[i]) / 2;
        } else {
            cnt -= A[i] - B[i];
        }
    }
 
    if (cnt < 0) return no;
    return yes;
}
//---------------------------------------------------------------------------------------------------
void _main() {
    cin >> N;
    rep(i, 0, N) cin >> A[i];
    rep(i, 0, N) cin >> B[i];
    cout << solve() << endl;
}

Compiler output:
a.cc:5:1: error: 'string' does not name a type
    5 | string solve() {
      | ^~~~~~
a.cc: In function 'void _main()':
a.cc:20:5: error: 'cin' was not declared in this scope
   20 |     cin >> N;
      |     ^~~
a.cc:21:9: error: 'i' was not declared in this scope
   21 |     rep(i, 0, N) cin >> A[i];
      |         ^
a.cc:21:5: error: 'rep' was not declared in this scope
   21 |     rep(i, 0, N) cin >> A[i];
      |     ^~~
a.cc:23:5: error: 'cout' was not declared in this scope
   23 |     cout << solve() << endl;
      |     ^~~~
a.cc:23:13: error: 'solve' was not declared in this scope
   23 |     cout << solve() << endl;
      |             ^~~~~
a.cc:23:24: error: 'endl' was not declared in this scope
   23 |     cout << solve() << endl;
      |                        ^~~~
Language: C++

#include <iostream>
#include <vector>
using namespace std;
int main(void){
  int n;
  cin >> n;
  
  vector<int>a(n);
  for(int i=0;i<n;i++){
    cin >> a[i];
  }
  vector<int>b(n);
  for(int i=0;i<n;i++){
    cin >> b[i];
  }
  
  bool can = true;
  
  int sum = 0;
  for(int i=0;i<n;i++){
    sum += b[i];
    sum -= a[i];
  }
  if(sum < 0) can = false;
  else{
    int t = 0;
    for(int i=0;i<n;i++){
      if(a[i] > b[i]){
        t += (a[i] - b[i] + 1) / 2;
      }
    }
    if(sum < t) can = false;
    
    if(can) cout << "Yes" << endl;
    else cout << "No" << endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:37:2: error: expected '}' at end of input
   37 | }
      |  ^
a.cc:4:15: note: to match this '{'
    4 | int main(void){
      |               ^
Language: C

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

#define int long long
#define fi first
#define se second
#define rep(i,n) for(int i=0;i<(int)(n);++i)
#define rep1(i,n) for(int i=1;i<=(int)(n);++i)
#define rep11(i,n) for(int i=1;i<(int)(n);++i)
#define repo(i,o,n) for(int i=o;i<(int)(n);++i)
#define repm(i,n) for(int i=(int)(n)-1;i>=0;--i)
#define all(v) (v).begin(),(v).end()
#define rall(v) (v).rbegin(),(v).rend()
#define sperase(v,n) (v).erase(remove(all(v), n), (v).end())
#define vdelete(v) (v).erase(unique(all(v)), (v).end())
#define pb(n) push_back(n)
#define mp make_pair
#define MOD 1000000007
#define INF LONG_LONG_MAX

int n,a[10000],b[10000],sum;

signed main() {
    cin >> n;
    rep(i,n) cin >> a[i];
    rep(i,n) cin >> b[i];
    rep(i,n) {
        if (a[i] < b[i]) sum += (b[i]-a[i])/2;
        else sum -= (a[i]-b[i]);
    }
    if (sum < 0) cout << "No" << endl;
    else cout << "Yes" << endl;
}


Compiler output:
main.c:1:10: fatal error: bits/stdc++.h: No such file or directory
    1 | #include <bits/stdc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include<bits/stdc++.h>
#define ll long long;
const int N=1e4+5;
ll a[N],b[N];
signed main(){
    int n;scanf("%d",&n);
    for(int i=1;i<=n;i++)scanf("%lld",&a[i]);
    for(int i=1;i<=n;i++)scanf("%lld",&b[i]);
    ll s1=0,s2=0;
    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;}
    puts(s1<=s2?"Yes":"No");
    return 0;
}

Compiler output:
a.cc:2:17: error: declaration does not declare anything [-fpermissive]
    2 | #define ll long long;
      |                 ^~~~
a.cc:4:1: note: in expansion of macro 'll'
    4 | ll a[N],b[N];
      | ^~
a.cc:4:4: error: 'a' does not name a type
    4 | ll a[N],b[N];
      |    ^
a.cc: In function 'int main()':
a.cc:7:40: error: 'a' was not declared in this scope
    7 |     for(int i=1;i<=n;i++)scanf("%lld",&a[i]);
      |                                        ^
a.cc:8:40: error: 'b' was not declared in this scope
    8 |     for(int i=1;i<=n;i++)scanf("%lld",&b[i]);
      |                                        ^
a.cc:2:17: error: declaration does not declare anything [-fpermissive]
    2 | #define ll long long;
      |                 ^~~~
a.cc:9:5: note: in expansion of macro 'll'
    9 |     ll s1=0,s2=0;
      |     ^~
a.cc:9:8: error: 's1' was not declared in this scope; did you mean 'y1'?
    9 |     ll s1=0,s2=0;
      |        ^~
      |        y1
a.cc:9:13: error: 's2' was not declared in this scope
    9 |     ll s1=0,s2=0;
      |             ^~
a.cc:11:12: error: 'a' was not declared in this scope
   11 |         if(a[i]>b[i])s1+=a[i]-b[i];
      |            ^
a.cc:11:17: error: 'b' was not declared in this scope
   11 |         if(a[i]>b[i])s1+=a[i]-b[i];
      |                 ^
a.cc:12:12: error: 'a' was not declared in this scope
   12 |         if(a[i]<b[i])s2+=(b[i]-a[i])>>1;}
      |            ^
a.cc:12:17: error: 'b' was not declared in this scope
   12 |         if(a[i]<b[i])s2+=(b[i]-a[i])>>1;}
      |                 ^
Language: C++

#include <iostream>
using namespace std;
int main(){
  int n;
  cin >> n;
  long a,b;
  long sum = 0;
  long ch = 0;
  for(int i = 0;i<n;i++){
    cin >> a >> b;
    sum += (b-a);
      if(a<b){
        ch+=(b-a)%2+(b-a+1)/2;
      }else{
        ch+=(a-b);
      }
  }
  if(sum==ch){
    cout << "Yes" << endl;
  }else{
    cout <, "No" << endl;
  }
}
  


Compiler output:
a.cc: In function 'int main()':
a.cc:21:11: error: expected primary-expression before ',' token
   21 |     cout <, "No" << endl;
      |           ^
a.cc:21:18: error: invalid operands of types 'const char [3]' and '<unresolved overloaded function type>' to binary 'operator<<'
   21 |     cout <, "No" << endl;
      |             ~~~~~^~~~~~~
Language: C++

#include <iostream>
using namespace std;
int main(){
  int n;
  cin >> n;
  long a,b;
  long sum = 0;
  long ch = 0;
  for(int i = 0;i<n;i++){
    cin >> a >> b;
    sum += (b-a)
      if(a<b){
        ch+=(b-a)%2+(b-a+1)/2;
      }else{
        ch+=(a-b);
      }
  }
  if(sum==ch){
    cout << "Yes" << endl;
  }else{
    cout <, "No" << endl;
  }
}
  


Compiler output:
a.cc: In function 'int main()':
a.cc:11:17: error: expected ';' before 'if'
   11 |     sum += (b-a)
      |                 ^
      |                 ;
   12 |       if(a<b){
      |       ~~         
a.cc:14:8: error: 'else' without a previous 'if'
   14 |       }else{
      |        ^~~~
a.cc:21:11: error: expected primary-expression before ',' token
   21 |     cout <, "No" << endl;
      |           ^
a.cc:21:18: error: invalid operands of types 'const char [3]' and '<unresolved overloaded function type>' to binary 'operator<<'
   21 |     cout <, "No" << endl;
      |             ~~~~~^~~~~~~
Language: C++

n = int(input())
a = list(map(int,input().split()))
b = list(map(int,input().split()))
s,t = 0,0
for i in range(n):
    if a[i]>b[i]:
        s+=a[i]-b[i]
    else:
        t+=(b[i]-a[i])//2
if s+t > sum(b)-sum(a):
    print('No')
else:
    print('Yes')


Compiler output:
a.cc:11:11: warning: multi-character character constant [-Wmultichar]
   11 |     print('No')
      |           ^~~~
a.cc:13:11: warning: multi-character character constant [-Wmultichar]
   13 |     print('Yes')
      |           ^~~~~
a.cc:1:1: error: 'n' does not name a type
    1 | n = int(input())
      | ^
Language: C++

#include <bits/stdc++.h> 

using namespace std;

#define YES cout << "YES" << endl;
#define NO  cout << "NO"  << endl;
#define Yes cout << "Yes" << endl;
#define No  cout << "No"  << endl;
 
#define INF INT_MAX
#define MOD 1000000007
#define PI  acos(-1)

using ll  = long long;
using ull = unsigned long long;
using Pii = pair<int, int>;
using Pll = pair<ll, ll>;

#define rep(i, n) for (ll i = 0; i < n; i++)

int main(int argc, char *argv[])
{
    cin.tie(0);
    ios::sync_with_stdio(false);

    ll N;
    cin >> N;

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

    ll sum = 0;
    ll msum = 0;
    rep (i, n) {
        if (abs(b[i] - a[i]) >= 0) {
            sum += abs(b[i] - a[i]);
        } else {
            msum += abs(b[i] - a[i]);
        }
    }
    ll nsum = 0;
    ll psum = 0;
    rep (i, N) {
        if (b[i] - a[i] > 0) {
            psum += abs(b[i] - a[i]);
        } else if (b[i] - a[i] < 0) {
            nsum += abs(b[i] - a[i]);
        }
    }

    if (2*nsum >= psum || sum < msum) {
        No
    } else {
        Yes
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main(int, char**)':
a.cc:39:13: error: 'n' was not declared in this scope
   39 |     rep (i, n) {
      |             ^
a.cc:19:38: note: in definition of macro 'rep'
   19 | #define rep(i, n) for (ll i = 0; i < n; i++)
      |                                      ^
Language: C++

//测试......
#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
int n;
int a[10005],b[10005];
ll sum1,sum2;
ll delta,qwq;
int main() {
	cin>>n;
	for(int i=1; iq<=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: In function 'int main()':
a.cc:11:22: error: 'iq' was not declared in this scope; did you mean 'i'?
   11 |         for(int i=1; iq<=n; i++) cin>>a[i],sum1+=a[i];
      |                      ^~
      |                      i
Language: C++

#include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define fi first
#define se second
int main(){
    ll n,vsum=0,usum=0,a=0,b=0;
    cin >> n;
    vector<ll> v(n),u(n);
    for(ll i=0;i < n;i++)
    {
        cin >> v.at(i);
        vsum+=v.at(i);
    }
    for(ll i=0;i < n;i++)
    {
        cin >> u.at(i);
        usum+=u.at(i);
    }

    for(ll i=0;i < n;i++)
    {
        if(v.at(i)-u.at(i)>0){
            a += v.at(i)-u.at(i);
        }else{
             b += (u.at(i)-v.at(i)+1)/2;
        }
    }

    if(min(a,b)+2*(max(a,b)-min(a,b)))>usum-vsum){
        cout << "No" << endl;
    }else{
        cout << "Yes" << endl;
    }//koko
}
/*条件を詰め切れなかった*/

Compiler output:
a.cc: In function 'int main()':
a.cc:30:39: error: expected primary-expression before '>' token
   30 |     if(min(a,b)+2*(max(a,b)-min(a,b)))>usum-vsum){
      |                                       ^
Language: Java

import java.util.*;

public class Main2 {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int a[] = new int[n];
		int b[] = new int[n];
		for(int i = 0; i < n; ++i) 
			a[i] = sc.nextInt();
		for(int i = 0; i < n; ++i)
			b[i] = sc.nextInt();
		sc.close();
		String ans[] = {"Yes", "No"};
		int an = 0;
		long tmp = 0, tmp3 = 0;
		for(int i = 0; i < n; ++i) {
			int tmp2 = b[i] - a[i];
			tmp += (long)tmp2;
			if(tmp2 < 0)tmp2 = 0;
			tmp3 += (long)((tmp2 + 1)/ 2);
		}
		if(tmp < 0)an = 1;
		else {
			if(tmp < tmp3)an = 1;
		}
		System.out.println(ans[an]);
	}

}


Compiler output:
Main.java:3: error: class Main2 is public, should be declared in a file named Main2.java
public class Main2 {
       ^
1 error
Language: Java

import java.util.*;

public class Main2 {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int a[] = new int[n];
		int b[] = new int[n];
		for(int i = 0; i < n; ++i) 
			a[i] = sc.nextInt();
		for(int i = 0; i < n; ++i)
			b[i] = sc.nextInt();
		sc.close();
		String ans[] = {"Yes", "No"};
		int an = 0;
		long tmp = 0;
		for(int i = 0; i < n; ++i) {
			tmp += b[i] - a[i];
		}
		if(tmp < 0)an = 1;
		System.out.println(ans[an]);
	}

}


Compiler output:
Main.java:3: error: class Main2 is public, should be declared in a file named Main2.java
public class Main2 {
       ^
1 error
Language: C++

#include <iostream>

using namespace std;
long long s1 = 0,s2 = 0,a[10010],b[10010],cnt = 0;
int main(){
	for(i=0;i<n;i++){
		cin >> a[i]; s1 += a[i];
	}
	for(i=0;i<n;i++){
		cin >> b[i]; s2 += b[i];
		if(a[i]!=b[i]){
			cnt++;
		}
	}
	if(s1>s2){
		cout << "No" << endl;
		return 0;
	}
	if(s2 - s1 <=cnt){
		cout << "Yes" << endl;
	}else{
		cout << "No" << endl;
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:13: error: 'i' was not declared in this scope
    6 |         for(i=0;i<n;i++){
      |             ^
a.cc:6:19: error: 'n' was not declared in this scope
    6 |         for(i=0;i<n;i++){
      |                   ^
a.cc:9:13: error: 'i' was not declared in this scope
    9 |         for(i=0;i<n;i++){
      |             ^
a.cc:9:19: error: 'n' was not declared in this scope
    9 |         for(i=0;i<n;i++){
      |                   ^
Language: C++

#include <iostream>
#include <vector>
#include <string>
#include <utility>
#include <queue>
#include <algorithm>
#include <map>
#include <set>
#include <cmath>
//#include "h.h"
using namespace std;

#define MOD 1000000007

#define ll long long
#define pint pair<int, int>
#define pll pair<ll, ll>
#define pb push_back
#define mp make_pair
#define pm(first), (second) pb(mp(first), (second))
#define SPACE " "
#define fpf first.first
#define fps first.second
#define spf second.first
#define sps second.second

#define all(X) (X).begin(), (X).end()

int main(){

	int N;
	cin >> N;
	vector<int> A(N);
	for(int i = 0; i < N; i ++){
		cin >> A[i];
	}
	int b;
	for(int i = 0; i < N; i ++){
		cin >> b;
		A[i] -= b;
	}
	int plusNum = 0, minusNum = 0;
	for(int i = 0; i < N; i ++){
		if(A[i] =< 0){
			plusNum += (-A[i]) / 2;
		}
		else minusNum += A[i];
	}
	if(plusNum < minusNum)cout << "No" << endl;
	else cout << "Yes" << endl;

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:44:26: error: expected primary-expression before '<' token
   44 |                 if(A[i] =< 0){
      |                          ^
Language: C++

#include<iostream>
#include<algorithm>
#define MIN1 1         
#define MAX1 2
#include<ctime>
#include<cstdio>
#include<windows.h>
#include<iostream>
#include   <stdlib.h>      
#include   <time.h>   
#include<fstream>
#include<conio.h>
using namespace std;
long long n,r;
int a[1000000],b[1000000];
int main()
{
	ios::sync_with_stdio(false);
	cin>>n;
	for(int i=1; i<=n; i++) cin>>a[i];
	for(int i=1; i<=n; i++) cin>>b[i];
	r=MIN1 + rand() % (MAX1 + MIN1 - 1);
	if(r==1) cout<<"Yes"<<endl;
	else cout<<"No"<<endl;
	return 0;
}

Compiler output:
a.cc:7:9: fatal error: windows.h: No such file or directory
    7 | #include<windows.h>
      |         ^~~~~~~~~~~
compilation terminated.
Language: C++

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

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

#define FOR(i, n, m) for (ll(i) = (m); (i) < (n); ++(i))
#define REP(i, n) FOR(i, n, 0)
#define OF64 std::setprecision(10)

const ll MOD = 1000000007;
const ll INF = (ll)1e15;

pll X[100005];

int main()
{
    ll N;
    cin >> N;
    REP(i, N)
    {
        cin >> X[i].first;
    }
    REP(i, N)
    {
        cin >> X[i].second;
    }
    sort(X, X + N, [](pll a, pll b) { return a.second - a.first < b.second - b.first; });

    ll s = 0;
    REP(i, N)
    {
        X[i].first += 2 * abs(s);
        s = X[i].second - X[i].first;
        if (s >= 0)
        {
            cout << "Yes" << endl;
            return 0;
        }
    }
    cout << "No" << endl;
    return 0;
}#include <bits/stdc++.h>
using namespace std;

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

#define FOR(i, n, m) for (ll(i) = (m); (i) < (n); ++(i))
#define REP(i, n) FOR(i, n, 0)
#define OF64 std::setprecision(10)

const ll MOD = 1000000007;
const ll INF = (ll)1e15;

pll X[100005];

int main()
{
    ll N;
    cin >> N;
    REP(i, N)
    {
        cin >> X[i].first;
    }
    REP(i, N)
    {
        cin >> X[i].second;
    }
    sort(X, X + N, [](pll a, pll b) { return a.second - a.first < b.second - b.first; });

    ll s = 0;
    REP(i, N)
    {
        X[i].first += 2 * abs(s);
        s = X[i].second - X[i].first;
        if (s >= 0)
        {
            cout << "Yes" << endl;
            return 0;
        }
    }
    cout << "No" << endl;
    return 0;
}

Compiler output:
a.cc:43:2: error: stray '#' in program
   43 | }#include <bits/stdc++.h>
      |  ^
a.cc:43:3: error: 'include' does not name a type
   43 | }#include <bits/stdc++.h>
      |   ^~~~~~~
a.cc:53:10: error: redefinition of 'const ll MOD'
   53 | const ll MOD = 1000000007;
      |          ^~~
a.cc:11:10: note: 'const ll MOD' previously defined here
   11 | const ll MOD = 1000000007;
      |          ^~~
a.cc:54:10: error: redefinition of 'const ll INF'
   54 | const ll INF = (ll)1e15;
      |          ^~~
a.cc:12:10: note: 'const ll INF' previously defined here
   12 | const ll INF = (ll)1e15;
      |          ^~~
a.cc:56:5: error: redefinition of 'pll X [100005]'
   56 | pll X[100005];
      |     ^
a.cc:14:5: note: 'pll X [100005]' previously defined here
   14 | pll X[100005];
      |     ^
a.cc:58:5: error: redefinition of 'int main()'
   58 | int main()
      |     ^~~~
a.cc:16:5: note: 'int main()' previously defined here
   16 | int main()
      |     ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define a b b b b b b b
#define b c c c c c c c
#define c d d d d d d d
#define d e e e e e e e
#define e f f f f f f f 
#define f g g g g g g g
#define g h h h h h h h
#define h i i i i i i i
#define i j j j j j j j
#define j puts("!!!!!!!!!");
int main(){
    a;
}

Compiler output:
g++: fatal error: Killed signal terminated program cc1plus
compilation terminated.
Language: C++

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
int main(){
  ll n;cin>>n;
  ll a[n],b[n];
  ll sa=0,sb=0;
  ll d=0;
  for(ll i=0;i<n;i++){
    cin>>a[i]>>b[i]
    sa+=a[i];
    sb+=b[i];
    d+=max((ll)0,a[i]-b[i]);
  }
  if(sa>sb){
    cout<<"No"<<endl;
    return 0;
  }
  if(sb-sa>=d){
    cout<<"Yes"<<endl;
    return 0;
  }
  cout<<"No"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:20: error: expected ';' before 'sa'
   10 |     cin>>a[i]>>b[i]
      |                    ^
      |                    ;
   11 |     sa+=a[i];
      |     ~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
long long n,k[10005],l[10005],sumk,suml;
int main(){
  cin>>n;
  for(int i=0;i<n;++i){
    cin>>k[i];
  }
  for(int i=0;i<n;++i){
    cin>>l[i];
    if(k[i]>l[i]){mon-=k[i]-l[i];}
    else if(l[i]>k[i]){mon+=(l[i]-k[i])/2;}
  }
  string ans="Yes";
  if(mon<0){ans="No";}
  cout<<ans<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:19: error: 'mon' was not declared in this scope
   11 |     if(k[i]>l[i]){mon-=k[i]-l[i];}
      |                   ^~~
a.cc:12:24: error: 'mon' was not declared in this scope
   12 |     else if(l[i]>k[i]){mon+=(l[i]-k[i])/2;}
      |                        ^~~
a.cc:15:6: error: 'mon' was not declared in this scope
   15 |   if(mon<0){ans="No";}
      |      ^~~
Language: C++

#include<iostream>
using namespace std;
int main(){
  int n;
  cin>>n;
  int a[n],b[n];
  for(int i=0i<n;i++)cin>>a[i];
  for(int i=0i<n;i++)cin>>b[i];
  int asum = accumulate(a,a+n,0);
  int bsum = accumulate(b,b+n,0);
  int dif = bsum-asum;
  if(dif<0)cout<<"No"<<endl;
  else if(dif%3==0)cout<<"Yes"<<endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:15: error: invalid operands of types '__complex__ int' and 'int' to binary 'operator<'
    7 |   for(int i=0i<n;i++)cin>>a[i];
a.cc:7:21: error: expected ';' before ')' token
    7 |   for(int i=0i<n;i++)cin>>a[i];
      |                     ^
      |                     ;
a.cc:8:15: error: invalid operands of types '__complex__ int' and 'int' to binary 'operator<'
    8 |   for(int i=0i<n;i++)cin>>b[i];
a.cc:8:21: error: expected ';' before ')' token
    8 |   for(int i=0i<n;i++)cin>>b[i];
      |                     ^
      |                     ;
a.cc:9:14: error: 'accumulate' was not declared in this scope
    9 |   int asum = accumulate(a,a+n,0);
      |              ^~~~~~~~~~
Language: C++

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

int main(){
  cin.tie(0);
  ios::sync_with_stdio(false);
  ll 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 d, sum = 0, res = 0;
  
  for(int i = 0; i < n; i++){
    d = b[i] - a[i];
    sum += d;
    if(a[i] < b[i]) res += (d + 1) / 2;
  }
  if(sum >= res) cout << "Yes" << endl;
  else cout << "No" << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'll' was not declared in this scope
    7 |   ll n;
      |   ^~
a.cc:8:10: error: 'n' was not declared in this scope; did you mean 'yn'?
    8 |   cin >> n;
      |          ^
      |          yn
a.cc:9:5: error: expected ';' before 'a'
    9 |   ll a[n], b[n];
      |     ^~
      |     ;
a.cc:10:37: error: 'a' was not declared in this scope
   10 |   for(int i = 0; i < n; i++) cin >> a[i];
      |                                     ^
a.cc:11:37: error: 'b' was not declared in this scope
   11 |   for(int i = 0; i < n; i++) cin >> b[i];
      |                                     ^
a.cc:13:5: error: expected ';' before 'd'
   13 |   ll d, sum = 0, res = 0;
      |     ^~
      |     ;
a.cc:16:5: error: 'd' was not declared in this scope
   16 |     d = b[i] - a[i];
      |     ^
a.cc:16:9: error: 'b' was not declared in this scope
   16 |     d = b[i] - a[i];
      |         ^
a.cc:16:16: error: 'a' was not declared in this scope
   16 |     d = b[i] - a[i];
      |                ^
a.cc:17:5: error: 'sum' was not declared in this scope
   17 |     sum += d;
      |     ^~~
a.cc:18:21: error: 'res' was not declared in this scope
   18 |     if(a[i] < b[i]) res += (d + 1) / 2;
      |                     ^~~
a.cc:20:6: error: 'sum' was not declared in this scope
   20 |   if(sum >= res) cout << "Yes" << endl;
      |      ^~~
a.cc:20:13: error: 'res' was not declared in this scope
   20 |   if(sum >= res) cout << "Yes" << endl;
      |             ^~~
Language: C++

#include <iostream>
#include <vector>
#include <queue>
#include <map>
#include <set>
#include <list>
#include <deque>
#include <string>
#include <algorithm>
#include <cmath>
#include <ctype.h>
using namespace std;
#define dump(a) cout << (a) << '\n';
typedef long long Int;
Int mod = 1e9+7;
Int MOD = 998244353;

int main() {
    ios::sync_with_stdio(false);
    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 x = accumulate(a.begin(), a.end(), 0LL);
    Int y = accumulate(b.begin(), b.end(), 0LL);
    dump(x <= y ? "Yes" : "No");
    return 0;  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:25:13: error: 'accumulate' was not declared in this scope
   25 |     Int x = accumulate(a.begin(), a.end(), 0LL);
      |             ^~~~~~~~~~
Language: C++

#include <iostream>
#include <vector>
#include <queue>
#include <map>
#include <set>
#include <list>
#include <deque>
#include <string>
#include <algorithm>
#include <cmath>
#include <ctype.h>
using namespace std;
#define dump(a) cout << (a) << '\n';
typedef long long Int;
Int mod = 1e9+7;
Int MOD = 998244353;

int main() {
    ios::sync_with_stdio(false);
    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 x = 0; accumulate(a.begin(), a.end(), x);
    Int y = 0; accumulate(b.begin(), b.end(), y);
    dump(x <= y ? "Yes" : "No");
    return 0;  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:25:16: error: 'accumulate' was not declared in this scope
   25 |     Int x = 0; accumulate(a.begin(), a.end(), x);
      |                ^~~~~~~~~~
Language: C++

#include <iostream>
#include <vector>
#include <queue>
#include <map>
#include <set>
#include <list>
#include <deque>
#include <string>
#include <algorithm>
#include <cmath>
#include <ctype.h>
using namespace std;
#define dump(a) cout << (a) << '\n';
typedef long long Int;
Int mod = 1e9+7;
Int MOD = 998244353;

int main() {
    ios::sync_with_stdio(false);
    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 x = accumulate(a.begin(), a.end());
    Int y = accumulate(b.begin(), b.end());
    dump(x <= y ? "Yes" : "No");
    return 0;  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:25:13: error: 'accumulate' was not declared in this scope
   25 |     Int x = accumulate(a.begin(), a.end());
      |             ^~~~~~~~~~
Language: C++

#include <bits/stdc++.h>
#define ll long long

using namespace std;

ll n,a[10005],b[10005],s;

int main()
{
    cin >> n;
    for (int i = 1; i <= n; i++)
        cin >> a[i];
    for (int i = 1; i <= n; i++)
    {
        cin >> b[i];
        s+=b[i]-a[i];
    }
    for (int i = 1; i <= n; i++)
        if (a[i]<b[i]) ans+=(b[i]-a[i]+1)/2;
    if (ans<=s) cout << "Yes";
    else cout << "No";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:24: error: 'ans' was not declared in this scope; did you mean 'abs'?
   19 |         if (a[i]<b[i]) ans+=(b[i]-a[i]+1)/2;
      |                        ^~~
      |                        abs
a.cc:20:9: error: 'ans' was not declared in this scope; did you mean 'abs'?
   20 |     if (ans<=s) cout << "Yes";
      |         ^~~
      |         abs
Language: C++

#include <bits.stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0;i<n;i++)
int n, a[10001], b[10001], sum = 0, A, B;
int main() {
	cin >> n;
	rep(i, n) {
		cin >> a[i];
		sum -= a[i];
	}
	rep(i, n) {
		cin >> b[i];
		sum += b[i];
	}
	if (sum < 0) {
		puts("No");
		return 0;
	}
	A = sum, B = sum;
	rep(i, n) {
		if (a[i] < b[i]) {
			if ((b[i] - a[i]) % 2)A -= (b[i] - a[i]) / 2 + 1, B--;
			else A -= (b[i] - a[i]) / 2;
		}
		else B -= a[i] - b[i];
	}
	if (A * 2 == B && A >= 0 && B >= 0)puts("Yes");
	else puts("No");
	return 0;
}

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

#include<bits/stdc++.h>
using namespace std;
int main(){
    cout<<"YES"
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:16: error: expected ';' before '}' token
    4 |     cout<<"YES"
      |                ^
      |                ;
    5 | }
      | ~
Language: C++

#include <cstdio>
2.#include <cstring>
3.#include <iostream>
4.#include <string>
5.#include <vector>
6.#include <queue>
7.#include <stack>
8.#include <algorithm>
9.#include <map>
10.#include <set>
11.#include <cmath>
12.#include <stdlib.h>
13.#include <functional>
14.#define ll long long
15.#define llu unsigned long long
16.#define INF 0x3f3f3f3f
17.#define LINF 0x3f3f3f3f3f3f3f3f
18.using namespace std;
19.const int N = 1e5 + 10;
20.int n;
21.ll a[10010], b[10010];
22. 
23.int main() {
24.	int i;
25.	scanf("%d", &n);
26.	ll keep;
27. 
28.	keep = 0;
29.	for (i = 0; i < n; ++i) {
30.		scanf("%lld", &a[i]);
31.	}
32.	for (i = 0; i < n; ++i) {
33.		scanf("%lld", &b[i]);
34.	}
35.	for (i = 0; i < n; ++i) {
36.		if (a[i] == b[i]) continue;
37.		if (a[i] > b[i]) {
38.			keep += (a[i] - b[i]);
39.		}
40.		else {
41.			keep -= (b[i] - a[i])/2;
42.		}
43.	}
44.	
45.	if (keep >= 0) printf("No\n");
46.	else printf("Yes\n");
47.	
48. 
49.}


Compiler output:
a.cc:2:3: error: stray '#' in program
    2 | 2.#include <cstring>
      |   ^
a.cc:3:3: error: stray '#' in program
    3 | 3.#include <iostream>
      |   ^
a.cc:4:3: error: stray '#' in program
    4 | 4.#include <string>
      |   ^
a.cc:5:3: error: stray '#' in program
    5 | 5.#include <vector>
      |   ^
a.cc:6:3: error: stray '#' in program
    6 | 6.#include <queue>
      |   ^
a.cc:7:3: error: stray '#' in program
    7 | 7.#include <stack>
      |   ^
a.cc:8:3: error: stray '#' in program
    8 | 8.#include <algorithm>
      |   ^
a.cc:9:3: error: stray '#' in program
    9 | 9.#include <map>
      |   ^
a.cc:10:4: error: stray '#' in program
   10 | 10.#include <set>
      |    ^
a.cc:11:4: error: stray '#' in program
   11 | 11.#include <cmath>
      |    ^
a.cc:12:4: error: stray '#' in program
   12 | 12.#include <stdlib.h>
      |    ^
a.cc:13:4: error: stray '#' in program
   13 | 13.#include <functional>
      |    ^
a.cc:14:4: error: stray '#' in program
   14 | 14.#define ll long long
      |    ^
a.cc:15:4: error: stray '#' in program
   15 | 15.#define llu unsigned long long
      |    ^
a.cc:16:4: error: stray '#' in program
   16 | 16.#define INF 0x3f3f3f3f
      |    ^
a.cc:17:4: error: stray '#' in program
   17 | 17.#define LINF 0x3f3f3f3f3f3f3f3f
      |    ^
a.cc:2:1: error: expected unqualified-id before numeric constant
    2 | 2.#include <cstring>
      | ^~
a.cc:19:1: error: expected unqualified-id before numeric constant
   19 | 19.const int N = 1e5 + 10;
      | ^~~~~~~~
a.cc:20:1: error: expected unqualified-id before numeric constant
   20 | 20.int n;
      | ^~~~~~
a.cc:21:1: error: expected unqualified-id before numeric constant
   21 | 21.ll a[10010], b[10010];
      | ^~~~~
a.cc:22:1: error: expected unqualified-id before numeric constant
   22 | 22.
      | ^~~
Language: C++

#include <cstdio>
2.#include <cstring>
3.#include <iostream>
4.#include <string>
5.#include <vector>
6.#include <queue>
7.#include <stack>
8.#include <algorithm>
9.#include <map>
10.#include <set>
11.#include <cmath>
12.#include <stdlib.h>
13.#include <functional>
14.#define ll long long
15.#define llu unsigned long long
16.#define INF 0x3f3f3f3f
17.#define LINF 0x3f3f3f3f3f3f3f3f
18.using namespace std;
19.const int N = 1e5 + 10;
20.int n;
21.ll a[10010], b[10010];
22. 
23.int main() {
24.	int i;
25.	scanf("%d", &n);
26.	ll keep;
27. 
28.	keep = 0;
29.	for (i = 0; i < n; ++i) {
30.		scanf("%lld", &a[i]);
31.	}
32.	for (i = 0; i < n; ++i) {
33.		scanf("%lld", &b[i]);
34.	}
35.	for (i = 0; i < n; ++i) {
36.		if (a[i] == b[i]) continue;
37.		if (a[i] > b[i]) {
38.			keep += (a[i] - b[i]);
39.		}
40.		else {
41.			keep -= (b[i] - a[i])/2;
42.		}
43.	}
44.	
45.	if (keep != 0) printf("No\n");
46.	else printf("Yes\n");
47.	
48. 
49.}


Compiler output:
a.cc:2:3: error: stray '#' in program
    2 | 2.#include <cstring>
      |   ^
a.cc:3:3: error: stray '#' in program
    3 | 3.#include <iostream>
      |   ^
a.cc:4:3: error: stray '#' in program
    4 | 4.#include <string>
      |   ^
a.cc:5:3: error: stray '#' in program
    5 | 5.#include <vector>
      |   ^
a.cc:6:3: error: stray '#' in program
    6 | 6.#include <queue>
      |   ^
a.cc:7:3: error: stray '#' in program
    7 | 7.#include <stack>
      |   ^
a.cc:8:3: error: stray '#' in program
    8 | 8.#include <algorithm>
      |   ^
a.cc:9:3: error: stray '#' in program
    9 | 9.#include <map>
      |   ^
a.cc:10:4: error: stray '#' in program
   10 | 10.#include <set>
      |    ^
a.cc:11:4: error: stray '#' in program
   11 | 11.#include <cmath>
      |    ^
a.cc:12:4: error: stray '#' in program
   12 | 12.#include <stdlib.h>
      |    ^
a.cc:13:4: error: stray '#' in program
   13 | 13.#include <functional>
      |    ^
a.cc:14:4: error: stray '#' in program
   14 | 14.#define ll long long
      |    ^
a.cc:15:4: error: stray '#' in program
   15 | 15.#define llu unsigned long long
      |    ^
a.cc:16:4: error: stray '#' in program
   16 | 16.#define INF 0x3f3f3f3f
      |    ^
a.cc:17:4: error: stray '#' in program
   17 | 17.#define LINF 0x3f3f3f3f3f3f3f3f
      |    ^
a.cc:2:1: error: expected unqualified-id before numeric constant
    2 | 2.#include <cstring>
      | ^~
a.cc:19:1: error: expected unqualified-id before numeric constant
   19 | 19.const int N = 1e5 + 10;
      | ^~~~~~~~
a.cc:20:1: error: expected unqualified-id before numeric constant
   20 | 20.int n;
      | ^~~~~~
a.cc:21:1: error: expected unqualified-id before numeric constant
   21 | 21.ll a[10010], b[10010];
      | ^~~~~
a.cc:22:1: error: expected unqualified-id before numeric constant
   22 | 22.
      | ^~~
Language: C++

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

#define rep(i,n) for(ll i=0,i##_cond=(n);i<i##_cond;++i)
#define SUM(a) accumulate(all(a),0)

typedef long long ll;
typedef vector<ll> vi;

int main(){
#define int ll
  int n; cin >> n;
  vi a(n); rep(i,n) cin >> a[i];
  vi b(n); rep(i,n) cin >> b[i];
  int k = SUM(b) - SUM(a);
  if(k < 0){
    cout << "No\n";
    return 0;
  }

  int ca = 0, cb = 0;
  rep(i,n){
    if(a[i] >= b[i]) cb += a[i] - b[i];
    else{
      ca += (b[i] - a[i] + 1) / 2;
      cb += (b[i] - a[i]) & 1;
    }
  }
  //cout << (k - ca) << endl << (k - cb) << endl;
  if(ca <= k and cb <= k and (k - ca) * 2 == (k - cb)) cout << "Yes\n";
  else cout << "No\n";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:27: error: 'all' was not declared in this scope; did you mean 'std::filesystem::perms::all'?
    5 | #define SUM(a) accumulate(all(a),0)
      |                           ^~~
a.cc:15:11: note: in expansion of macro 'SUM'
   15 |   int k = SUM(b) - SUM(a);
      |           ^~~
In file included from /usr/include/c++/14/filesystem:51,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:200,
                 from a.cc:1:
/usr/include/c++/14/bits/fs_fwd.h:158:7: note: 'std::filesystem::perms::all' declared here
  158 |       all               =  0777,
      |       ^~~
Language: C++

#include<iostream>
#include<string>
#include<vector>
#include<algorithm>
using namespace std;
#define rep(i,a,n)	for(int i=a;i<n;i++)
int main(){
	int n;
	int a[10010],b[10010];
	int sumA=0;
	int sumB=0;
	cin>>n;
	rep(i,0,n){
		cin>>a[i];
		sumA+=a[i];
	}
	rep(i,0,n){
		cin>>b[i];
		sumB+=b[i];
	}
	int sum=0;
	rep(i,0,n){
		if(b[i]-a[i]>0){
			sum+=(b[i]-a[i])/2;
		}
		else{
			sum-=a[i]-b[i]
		}
	}
	if(sum>=0){
		cout<<"Yes"<<endl;
	}
	else{
		cout<<"No"<<endl;
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:27:39: error: expected ';' before '}' token
   27 |                         sum-=a[i]-b[i]
      |                                       ^
      |                                       ;
   28 |                 }
      |                 ~
Language: C++

#include<bits/stdc++.h>
typedef long long ll;
using namespace std;
int INF = 1LL << 30;
int MOD = 1e9+7;
main(){
    int N,A;
    cin >> N;
    ll sum = 0;
    for(int i = 0;i < N;i++){
        cin >> A;
        sum += A;
    }
    for(int i = 0;i < N;i++){
        cout << A[i] << " " << B[i] << endl;
        
        if(A[i] > B[i]){
            cout << "No" << endl;
            return 0;
        }
        
    }
    cout << "Yes" << endl;
}

Compiler output:
a.cc:6:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    6 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:15:18: error: invalid types 'int[int]' for array subscript
   15 |         cout << A[i] << " " << B[i] << endl;
      |                  ^
a.cc:15:32: error: 'B' was not declared in this scope
   15 |         cout << A[i] << " " << B[i] << endl;
      |                                ^
a.cc:17:13: error: invalid types 'int[int]' for array subscript
   17 |         if(A[i] > B[i]){
      |             ^
Language: Java

import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

public class Main {

    private static Scanner scan;

    private static void start() {
        scan = new Scanner(java.lang.System.in);

        scan = Input.getScanner();
        System.init();
    }

    private static void finish() {
        System.close();
    }


    public static void main(String[] args) {
        start();

        int n = scan.nextInt();
        int[] a = new int[n];
        int[] b = new int[n];
        for (int i = 0; i < n; i++) {
            a[i] = scan.nextInt();
        }
        for (int i = 0; i < n; i++) {
            b[i] = scan.nextInt();
        }

        int sumA = 0;
        int sumB = 0;
        for (int i = 0; i < n; i++) {
            if (b[i] - a[i] > 0) {
                sumA += b[i] - a[i];
            }
            if (a[i] - b[i] > 0) {
                sumB += a[i] - b[i];
            }
        }
        if (sumA % sumB == 0) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
        finish();
    }
}


Compiler output:
Main.java:12: error: cannot find symbol
        scan = Input.getScanner();
               ^
  symbol:   variable Input
  location: class Main
Main.java:13: error: cannot find symbol
        System.init();
              ^
  symbol:   method init()
  location: class System
Main.java:17: error: cannot find symbol
        System.close();
              ^
  symbol:   method close()
  location: class System
3 errors
Language: C

#include<cstdio>
#include<cstdlib>
#include<cstring>
#include<algorithm>
#include<iostream>
using namespace std;
long long a[10010],b[10010],cnt;
int N;
int read()
{
	static int x;
	static char ch;
	x = 0;
	for(ch=getchar();ch>'9'||ch<'0';ch=getchar());
	for(;ch>='0'&&ch<='9';ch=getchar()) x = x * 10 + ch - '0';
	return x;
}
int main()
{
	N = read();
	for (int i = 1;i<=N;++i) a[i] = read();
	for (int i = 1;i<=N;++i) b[i] = read();
	for (int i = 1;i<=N;++i) 
		if  (a[i]>=b[i]) cnt-=a[i]-b[i];
		else cnt += (b[i] - a[i])>>1;
	if (cnt<0) puts("No");else puts("Yes");
	return 0;
}

Compiler output:
main.c:1:9: fatal error: cstdio: No such file or directory
    1 | #include<cstdio>
      |         ^~~~~~~~
compilation terminated.
Language: C++

#include<iostream>
#include<algorithm>
#include<vector>
#include<cmath>
#include<string>
using namespace std;
int main(){
    long long int s=0,n;
    cin >> n;
    vector<long long int> a(n),b(n);
    for(long long int i=0;i<n;i++){
        cin >> a[i];
    }
    for(long long int i=0;i<n;i++){
        cin >> b[i];
        if(s>(b[i]-a[i])    s++;
    }
    if(s>=(n-s)*2)   cout << "Yes\n";
    else    cout << "No\n";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:25: error: expected ';' before 's'
   16 |         if(s>(b[i]-a[i])    s++;
      |                         ^   ~
      |                         ;
a.cc:17:5: error: expected primary-expression before '}' token
   17 |     }
      |     ^
a.cc:16:33: error: expected ')' before '}' token
   16 |         if(s>(b[i]-a[i])    s++;
      |           ~                     ^
      |                                 )
   17 |     }
      |     ~                            
a.cc:17:5: error: expected primary-expression before '}' token
   17 |     }
      |     ^
Language: C++

#include<iostream>
#include<algorithm>
#include<vector>
#include<cmath>
#include<string>
using namespace std;
int main(){
    long long int s=0,n;
    cin >> n;
    vector<long long int> a(n),b(n);
    for(long long int i=0;i<n;i++){
        cin >> a[i];
    }
    for(long long int i=0;i<n;i++){
        cin >> b[i];
        if(s>(b[i]-a[i])    s++;
    }
    if(s*2<=(n-s))   cout << "Yes\n";
    else    cout << "No\n";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:25: error: expected ';' before 's'
   16 |         if(s>(b[i]-a[i])    s++;
      |                         ^   ~
      |                         ;
a.cc:17:5: error: expected primary-expression before '}' token
   17 |     }
      |     ^
a.cc:16:33: error: expected ')' before '}' token
   16 |         if(s>(b[i]-a[i])    s++;
      |           ~                     ^
      |                                 )
   17 |     }
      |     ~                            
a.cc:17:5: error: expected primary-expression before '}' token
   17 |     }
      |     ^