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

#include<bits/stdc++.h>
#define FRU freopen("out.txt","w",stdout)
#define FRO freopen("in.txt","r",stdin)
#define pb push_back
#define mp make_pair
#define ff first
#define ss second
#define mem(ara,n) memset(ara,n,sizeof ara)
#define loop(i,j,n) for(i=j;i<n;i++)
#define rloop(i,j,n) for(i=n;i>=j;i--)
#define INF 2147483647
#define ll long long
#define pii pair<int,int>
#define eps 1e-9
#define mii map<int,int>
#define vi vector<int>
#define all(n) n.begin(),n.end()
#define inf INF
#define INFLL 9223372036854775807
using namespace std;
int main()
{
    int i,j,k,tc,t,n,m,cnt=0,a;
    cin>>n
    int ara[100005];
    for(i=0;i<n;i++)
    {
        cin>>ara[i];
        if(ara[i]%2==1)cnt++;
    }
    if(cnt%2&& tc>1)cout<<"NO\n";
    else cout<<"YES\n";

}


Compiler output:
a.cc: In function 'int main()':
a.cc:24:11: error: expected ';' before 'int'
   24 |     cin>>n
      |           ^
      |           ;
   25 |     int ara[100005];
      |     ~~~    
a.cc:28:14: error: 'ara' was not declared in this scope
   28 |         cin>>ara[i];
      |              ^~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
   int N;
   cin>>N;
   for(int i = 1;i<=N;i++){
       int A;
       cin>>A;
       ans += A;
    }
   if((ans)%2==0){
       cout<<"YES"<<endl;
   }else{
       cout<<"NO"<<endl;
   }
       cout<<ans<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:8: error: 'ans' was not declared in this scope; did you mean 'abs'?
    9 |        ans += A;
      |        ^~~
      |        abs
a.cc:11:8: error: 'ans' was not declared in this scope; did you mean 'abs'?
   11 |    if((ans)%2==0){
      |        ^~~
      |        abs
a.cc:16:14: error: 'ans' was not declared in this scope; did you mean 'abs'?
   16 |        cout<<ans<<endl;
      |              ^~~
      |              abs
Language: C++

#include<iostream>
using namespace std;


int main() {
    int N, a[100000];
    cin >> N;
    REP(i, N) cin >> a[i];

    int oddNum = 0;
    REP(i, N) {
        if(a[i]%2 == 1) oddNum++;
    }
    cout << (oddNum % 2 == 0? "Yes": "No") << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: 'i' was not declared in this scope
    8 |     REP(i, N) cin >> a[i];
      |         ^
a.cc:8:5: error: 'REP' was not declared in this scope
    8 |     REP(i, N) cin >> a[i];
      |     ^~~
Language: C++


int main() {
    int N, a[100000];
    cin >> N;
    REP(i, N) cin >> a[i];

    int oddNum = 0;
    REP(i, N) {
        if(a[i]%2 == 1) oddNum++;
    }
    cout << (oddNum % 2 == 0? "Yes": "No") << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:5: error: 'cin' was not declared in this scope
    4 |     cin >> N;
      |     ^~~
a.cc:5:9: error: 'i' was not declared in this scope
    5 |     REP(i, N) cin >> a[i];
      |         ^
a.cc:5:5: error: 'REP' was not declared in this scope
    5 |     REP(i, N) cin >> a[i];
      |     ^~~
a.cc:11:5: error: 'cout' was not declared in this scope
   11 |     cout << (oddNum % 2 == 0? "Yes": "No") << endl;
      |     ^~~~
a.cc:11:47: error: 'endl' was not declared in this scope
   11 |     cout << (oddNum % 2 == 0? "Yes": "No") << endl;
      |                                               ^~~~
Language: C++



int main() {
    int N, a[100000];
    cin >> N;
    REP(i, N) cin >> a[i];

    int oddNum = 0;
    REP(i, N) {
        if(a[i]%2 == 1) oddNum++;
    }
    cout >> (oddNum%2 == 0? "Yes": "No") >> endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:5: error: 'cin' was not declared in this scope
    5 |     cin >> N;
      |     ^~~
a.cc:6:9: error: 'i' was not declared in this scope
    6 |     REP(i, N) cin >> a[i];
      |         ^
a.cc:6:5: error: 'REP' was not declared in this scope
    6 |     REP(i, N) cin >> a[i];
      |     ^~~
a.cc:12:5: error: 'cout' was not declared in this scope
   12 |     cout >> (oddNum%2 == 0? "Yes": "No") >> endl;
      |     ^~~~
a.cc:12:45: error: 'endl' was not declared in this scope
   12 |     cout >> (oddNum%2 == 0? "Yes": "No") >> endl;
      |                                             ^~~~
Language: C++

int main() {
    int N, a[100000];
    cin >> N;
    REP(i, N) cin >> a[i];

    int oddNum = 0;
    REP(i, N) {
        if(a[i]%2 == 1) oddNum++;
    }
    cout >> (oddNum%2 == 0? "Yes": "No") >> endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:5: error: 'cin' was not declared in this scope
    3 |     cin >> N;
      |     ^~~
a.cc:4:9: error: 'i' was not declared in this scope
    4 |     REP(i, N) cin >> a[i];
      |         ^
a.cc:4:5: error: 'REP' was not declared in this scope
    4 |     REP(i, N) cin >> a[i];
      |     ^~~
a.cc:10:5: error: 'cout' was not declared in this scope
   10 |     cout >> (oddNum%2 == 0? "Yes": "No") >> endl;
      |     ^~~~
a.cc:10:45: error: 'endl' was not declared in this scope
   10 |     cout >> (oddNum%2 == 0? "Yes": "No") >> endl;
      |                                             ^~~~
Language: C++

int main(){
    int n;
    cin >> n;
    int a[n]; 
    int odd = 0,even = 0;
    for(int i = 0; i < n; i++){
        cin >> a[i];
        if(a[i] % 2 == 0) even++;
        else if (a[i] % 2 == 1) odd++;
    }
    if(odd % 2 == 0){
        cout << "YES" << endl; 
    }else{ 
        cout << "NO" << endl;
    }
 
 
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:5: error: 'cin' was not declared in this scope
    3 |     cin >> n;
      |     ^~~
a.cc:12:9: error: 'cout' was not declared in this scope
   12 |         cout << "YES" << endl;
      |         ^~~~
a.cc:12:26: error: 'endl' was not declared in this scope
   12 |         cout << "YES" << endl;
      |                          ^~~~
a.cc:14:9: error: 'cout' was not declared in this scope
   14 |         cout << "NO" << endl;
      |         ^~~~
a.cc:14:25: error: 'endl' was not declared in this scope
   14 |         cout << "NO" << endl;
      |                         ^~~~
Language: C++

#include<iostream>

using namespace std;

int arr[2];

int main(){
    int >> N;
    cin >> N;
    for(int i=1 ; i<=N; i++){
        int num ;
        cin >> num;
        arr[num%2]++;
    }
    if(arr[1] % 2 == 1){
        cout << "No" << endl;
    } else{
        cout << "Yes" << endl;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: expected unqualified-id before '>>' token
    8 |     int >> N;
      |         ^~
a.cc:9:12: error: 'N' was not declared in this scope
    9 |     cin >> N;
      |            ^
Language: C++

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

    int A = 0; //偶数
    int B = 0; //奇数
    for (int i = 0; i < n; i++)
    if(a.at(i)%2==0)A++;
    else B++;
    }
    if(A%2==0||(A==1&&B==0))cout << "Yes" <<endl;
    else cout << "No" <<endl;
}


Compiler output:
a.cc:15:5: error: expected unqualified-id before 'if'
   15 |     if(A%2==0||(A==1&&B==0))cout << "Yes" <<endl;
      |     ^~
a.cc:16:5: error: expected unqualified-id before 'else'
   16 |     else cout << "No" <<endl;
      |     ^~~~
a.cc:17:1: error: expected declaration before '}' token
   17 | }
      | ^
Language: C++

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

    int a = 0; //偶数
    int b = 0; //奇数
    for (int i = 0; i < n; i++)
    if(a.at(i)%2==0)a++;
    else b++;
    }
    if(a%2==0||(a==1&&b==0))cout << "Yes" <<endl;
    else cout << "No" <<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: conflicting declaration 'int a'
    9 |     int a = 0; //偶数
      |         ^
a.cc:6:16: note: previous declaration as 'std::vector<int> a'
    6 |     vector<int>a(n);
      |                ^
a.cc:12:22: error: no 'operator++(int)' declared for postfix '++' [-fpermissive]
   12 |     if(a.at(i)%2==0)a++;
      |                     ~^~
a.cc: At global scope:
a.cc:15:5: error: expected unqualified-id before 'if'
   15 |     if(a%2==0||(a==1&&b==0))cout << "Yes" <<endl;
      |     ^~
a.cc:16:5: error: expected unqualified-id before 'else'
   16 |     else cout << "No" <<endl;
      |     ^~~~
a.cc:17:1: error: expected declaration before '}' token
   17 | }
      | ^
Language: C++

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

int main(){
  int N;
  cin >> N;
  vector<int> vec(N);
  rep(i,n){
    cin >> vec[i];
  }
  
  int count = 0;
  rep(i,n){
    if(vec[i]%2 == 1) count++;
  }
  
  if(count%2 == 0) cout << "YES" << endl;
  else cout << "NO" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: 'n' was not declared in this scope
    9 |   rep(i,n){
      |         ^
a.cc:3:33: note: in definition of macro 'rep'
    3 | #define rep(i,n) for(int i=0; i<n; i++)
      |                                 ^
a.cc:14:9: error: 'n' was not declared in this scope
   14 |   rep(i,n){
      |         ^
a.cc:3:33: note: in definition of macro 'rep'
    3 | #define rep(i,n) for(int i=0; i<n; i++)
      |                                 ^
Language: C++

#include <bits/stdc++.h>
#include <cstdlib>
#include <cmath>
#include <algorithm>
#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++)
#define ALL(a)  (a).begin(),(a).end()
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] ;
 ll ans=0 ;
 rep(i,n) if(A[i]%2==1) ans++ ;
  if(ans%2==0) cout<< "Yes"<<endl ;
  else cout <<"No<<endl ;
      return 0;
}

Compiler output:
a.cc:22:15: warning: missing terminating " character
   22 |   else cout <<"No<<endl ;
      |               ^
a.cc:22:15: error: missing terminating " character
   22 |   else cout <<"No<<endl ;
      |               ^~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:23:7: error: expected primary-expression before 'return'
   23 |       return 0;
      |       ^~~~~~
Language: C++

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

int main() {
  int N
    cin >> N
    int A;
  int sum = 0;
  
  for(int i = 0;i < N;i++){
    int A[i]
   sum += A[i];
  }
  
  if(sum % 2 == 0){
    cout << "YES" << endl;
  }
  
  else{
    cout << "NO" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: expected initializer before 'cin'
    6 |     cin >> N
      |     ^~~
a.cc:10:21: error: 'N' was not declared in this scope
   10 |   for(int i = 0;i < N;i++){
      |                     ^
a.cc:12:4: error: expected initializer before 'sum'
   12 |    sum += A[i];
      |    ^~~
Language: C++

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

int main() {
  int N
    cin >> N
    int A;
  int sum == 0;
  
  for(int i = 0;i < N;i++){
    int A[i]
   sum += A[i];
  }
  
  if(sum % 2 == 0){
    cout << "YES" << endl;
  }
  
  else{
    cout << "NO" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: expected initializer before 'cin'
    6 |     cin >> N
      |     ^~~
a.cc:8:11: error: expected initializer before '==' token
    8 |   int sum == 0;
      |           ^~
a.cc:10:21: error: 'N' was not declared in this scope
   10 |   for(int i = 0;i < N;i++){
      |                     ^
a.cc:12:4: error: expected initializer before 'sum'
   12 |    sum += A[i];
      |    ^~~
a.cc:15:6: error: 'sum' was not declared in this scope
   15 |   if(sum % 2 == 0){
      |      ^~~
Language: C++

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

int main() {
  int N
    cin >> N
    int A;
  int sum == 0;
  
  for(int i = 0;i < N;i++){
   sum += A[i];
  }
  
  if(sum % 2 == 0){
    cout << "YES" << endl;
  }
  
  else{
    cout << "NO" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: expected initializer before 'cin'
    6 |     cin >> N
      |     ^~~
a.cc:8:11: error: expected initializer before '==' token
    8 |   int sum == 0;
      |           ^~
a.cc:10:21: error: 'N' was not declared in this scope
   10 |   for(int i = 0;i < N;i++){
      |                     ^
a.cc:11:4: error: 'sum' was not declared in this scope
   11 |    sum += A[i];
      |    ^~~
a.cc:11:11: error: 'A' was not declared in this scope
   11 |    sum += A[i];
      |           ^
a.cc:14:6: error: 'sum' was not declared in this scope
   14 |   if(sum % 2 == 0){
      |      ^~~
Language: C++

//#include <tourist>
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<ll, ll> p;
const int INF = 1e9;
const ll LINF = ll(1e18);
const int MOD = 1000000007;
const int dx[4] = {0, 1, 0, -1}, dy[4] = {-1, 0, 1, 0};
const int Dx[8] = {0, 1, 1, 1, 0, -1, -1, -1}, Dy[8] = {-1, -1, 0, 1, 1, 1, 0, -1};
#define yes cout << "Yes" << endl
#define YES cout << "YES" << endl
#define no cout << "No" << endl
#define NO cout << "NO" << endl
#define rep(i, n) for (int i = 0; i < n; i++)
#define ALL(v) v.begin(), v.end()
#define debug(v)          \
    cout << #v << ":";    \
    for (auto x : v)      \
    {                     \
        cout << x << ' '; \
    }                     \
    cout << endl;
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;
}
//cout<<fixed<<setprecision(15);有効数字15桁
//-std=c++14
//-std=gnu++17
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()
{
    cin.tie(0);a
    ios::sync_with_stdio(false);
    int n;
    cin>>n;
    vector<ll>a(n);
    rep(i,n)cin>>a[i];
    int odd=0;
    rep(i,n){if(a[i]%2)odd++;}
    if(odd%2==0)YES;
    else NO;
    }


Compiler output:
a.cc: In function 'int main()':
a.cc:51:16: error: 'a' was not declared in this scope
   51 |     cin.tie(0);a
      |                ^
Language: C++

//#include <tourist>
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<ll, ll> p;
const int INF = 1e9;
const ll LINF = ll(1e18);
const int MOD = 1000000007;
const int dx[4] = {0, 1, 0, -1}, dy[4] = {-1, 0, 1, 0};
const int Dx[8] = {0, 1, 1, 1, 0, -1, -1, -1}, Dy[8] = {-1, -1, 0, 1, 1, 1, 0, -1};
#define yes cout << "Yes" << endl
#define YES cout << "YES" << endl
#define no cout << "No" << endl
#define NO cout << "NO" << endl
#define rep(i, n) for (int i = 0; i < n; i++)
#define ALL(v) v.begin(), v.end()
#define debug(v)          \
    cout << #v << ":";    \
    for (auto x : v)      \
    {                     \
        cout << x << ' '; \
    }                     \
    cout << endl;
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;
}
//cout<<fixed<<setprecision(15);有効数字15桁
//-std=c++14
//-std=gnu++17
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()
{
    cin.tie(0);a
    ios::sync_with_stdio(false);
    int n;
    cin>>n;
    vector<ll>a(n);
    rep(i,n)cin>>a[i];
    int odd=0;
    rep(i,n)if(a[i]%2)odd++;
    if(odd%2==0)YES;
    else NO;
    }


Compiler output:
a.cc: In function 'int main()':
a.cc:51:16: error: 'a' was not declared in this scope
   51 |     cin.tie(0);a
      |                ^
Language: C++

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

#define all(v) v.begin(), v.end()
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define intll int long long
const int INF = 1e9;
const int MOD = 1e9 + 7;

int main() {
  int n ; 
  cin >> n ;
  int odd = 0 ;
  
  rep(i,n){
    int c ;
    cin >> c ;
    if(c%2 == 1){
      odd++;
    }
    
  if(odd%2 == 0)  cout << "Yes" ;
  else            cout << "No"  ;  


}


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

#include<bits/stdc++.h>
using namespace std;
int n,a[100001],ans=0;
int main(){
    cin>>n;
    for(int i=1;i<=n;i++){
        cin>>a[i];
         ans+=a[i];
    }
    if(ans%2==0)cout<<"YES"<<endl;。
    else cout<<"NO"<<endl;
    return 0;
}

Compiler output:
a.cc:10:35: error: extended character 。 is not valid in an identifier
   10 |     if(ans%2==0)cout<<"YES"<<endl;。
      |                                   ^
a.cc: In function 'int main()':
a.cc:10:35: error: '\U00003002' was not declared in this scope
   10 |     if(ans%2==0)cout<<"YES"<<endl;。
      |                                   ^~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int n,a[100001],ans=0;
int main(){
    cin>>n;//读入n
    for(int i=1;i<=n;i++){
        cin>>a[i];
         ans+=a[i];
    }
    if(ans%2==0)cout<<"YES"<<endl;。
    else cout<<"NO"<<endl;
    return 0;
}

Compiler output:
a.cc:10:35: error: extended character 。 is not valid in an identifier
   10 |     if(ans%2==0)cout<<"YES"<<endl;。
      |                                   ^
a.cc: In function 'int main()':
a.cc:10:35: error: '\U00003002' was not declared in this scope
   10 |     if(ans%2==0)cout<<"YES"<<endl;。
      |                                   ^~
Language: C++

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

int main() {
  int N;
  cin >> N;
  
  odd_count = 0;
  int a;
  for (int i = 0; i < N; i++) {
    cin >> a;
    if(a % 2) odd_count++;
  }
  
  if (odd_count % 2) {
    cout << "No" << endl;
  } else {
    cout << "Yes" << endl;
  }
 
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 'odd_count' was not declared in this scope
    8 |   odd_count = 0;
      |   ^~~~~~~~~
Language: C++

using namespace std;
int main(){
     int n;
     long long a[100005];
     cin >> n;
     long long ans=0;
     for (int i=1;i<=n;i++){
        cin >> a[i];
        ans+=a[i];
     }
     if (ans%2==0) cout << "YES\n";
     else cout << "NO\n";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:6: error: 'cin' was not declared in this scope
    5 |      cin >> n;
      |      ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | using namespace std;
a.cc:11:20: error: 'cout' was not declared in this scope
   11 |      if (ans%2==0) cout << "YES\n";
      |                    ^~~~
a.cc:11:20: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:12:11: error: 'cout' was not declared in this scope
   12 |      else cout << "NO\n";
      |           ^~~~
a.cc:12:11: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

#include <iostream>
using namespace std;
int main()
{
	long int n, a, sum = 0;
	cin >> n;
	for (int i = 1; i <= n; i++)
	{
		cin >> a;
		if (a % 2 == 0)
		{
			sum++;
		}
		else
		{
			ans++;
		}
	}
	if(ans % 2 == 1)
	{
		cout << "NO" << endl;
	}
	else
	{
		cout << "YES" << endl;
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:25: error: 'ans' was not declared in this scope; did you mean 'abs'?
   16 |                         ans++;
      |                         ^~~
      |                         abs
a.cc:19:12: error: 'ans' was not declared in this scope; did you mean 'abs'?
   19 |         if(ans % 2 == 1)
      |            ^~~
      |            abs
Language: C++

#include <iostream>
using namespace std;
int main()
{
	long int n, a, sum = 0;
	cin >> n;
	for (int i = 1; i <= n; i++)
	{
		cin >> a;
		if (a % 2 == 0)
		{
			sum++;
		}
		else
		{
			ans++;
		}
	}
	if(ans % 2 == 1)
	{
		cout << "NO" << endl;
	}
	else
	{
		cout << "YES" << endl;
	}
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:25: error: 'ans' was not declared in this scope; did you mean 'abs'?
   16 |                         ans++;
      |                         ^~~
      |                         abs
a.cc:19:12: error: 'ans' was not declared in this scope; did you mean 'abs'?
   19 |         if(ans % 2 == 1)
      |            ^~~
      |            abs
Language: C++

#include<bits/stdc++.h>
using namespace std;
int a[1][100];
int mian()
{
    int n;
    cin>>n;
    int jsq=0;
    for(int i=0;i<n;i++)
    {
        cin>>a[1][i];
        jsq=jsq+a[1][i];
    }
    if(jsq%2==1)
      cout<<"NO";
    else
      cout<<"YES";
    return 0;
}

Compiler output:
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C++

#include<iostream>
using namespace std;
int main()
{
	int x,cnt=0;
	cin>>x;//直接忽略第一个数 
	while(cin>>x)cnt+=x%2;
	cout<<cnt%2?"NO":"YES"<<endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:31: error: invalid operands of types 'const char [4]' and '<unresolved overloaded function type>' to binary 'operator<<'
    8 |         cout<<cnt%2?"NO":"YES"<<endl;
      |                          ~~~~~^~~~~~
Language: C++

#include<iostream>
using namespace std;
int main()
{
	int x,cnt=0;
	cin>>x;//直接忽略第一个数 
	while(cin>>x)cnt+=x%2;
	cout<<cnt%2?"NO","YES"<<endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:31: error: invalid operands of types 'const char [4]' and '<unresolved overloaded function type>' to binary 'operator<<'
    8 |         cout<<cnt%2?"NO","YES"<<endl;
      |                          ~~~~~^~~~~~
a.cc:8:37: error: expected ':' before ';' token
    8 |         cout<<cnt%2?"NO","YES"<<endl;
      |                                     ^
      |                                     :
a.cc:8:37: error: expected primary-expression before ';' token
Language: C++

#include<iostream>
int main()
{
	int x,cnt=0;
	std::cin>>x//直接忽略第一个数 
	while(std::cin>>x)cnt+=x%2;
	std::cout<<(cnt%2?"NO","YES");
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:20: error: expected ';' before 'while'
    5 |         std::cin>>x//直接忽略第一个数
      |                    ^
      |                    ;
    6 |         while(std::cin>>x)cnt+=x%2;
      |         ~~~~~       
a.cc:7:37: error: expected ':' before ')' token
    7 |         std::cout<<(cnt%2?"NO","YES");
      |                                     ^
      |                                     :
a.cc:7:37: error: expected primary-expression before ')' token
Language: C++

#include<cstdio>
int main()
{
	int x,cnt=0;
	scanf("%d",&x);//直接忽略第一个数 
	while(~scanf("%d",&x))cnt+=x%2;
	printf("%s\n",(cnt%2?"NO","YES"));
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:40: error: expected ':' before ')' token
    7 |         printf("%s\n",(cnt%2?"NO","YES"));
      |                                        ^
      |                                        :
a.cc:7:40: error: expected primary-expression before ')' token
Language: C++

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

int main(){
  int N;
  cin >> N;
  vector<int> data(N);
  for(int i = 0; i < N; i++){
    cin >> data.at(i);
  }
  int sum = 0;
  for(int i = 0; i < n; i++){
    sum += data.at(i);
  }
  if(sum%2 == 0) cout << "YES" << endl;
  else cout << "NO" << endl;
}

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

#include<iostream>
#include<algorithm>
using namespace std;
int n,a[100001],ans=0;。
int main(){
    cin>>n;
    for(int i=1;i<=n;i++){
        cin>>a[i];
         ans+=a[i];
    }
    if(ans%2==0)cout<<"YES"<<endl;
    else cout<<"NO"<<endl;
    return 0;
}

Compiler output:
a.cc:4:23: error: extended character 。 is not valid in an identifier
    4 | int n,a[100001],ans=0;。
      |                       ^
a.cc:4:23: error: '\U00003002' does not name a type
    4 | int n,a[100001],ans=0;。
      |                       ^~
Language: C

#include <stdio.h>
#include <string.h>
#include <stdlib.h>
int main(void){
int n,a[200000];
int even=0;
scanf("%d",&n);
for(count=1;count<=n;count++){
    scanf("%d",&a[count]);
}
for(count=1;count<=n;count++){
    if(a[count]%2==1){even++;}
}
if(even%2!=0){printf("NO");}
else{printf("YES");}
}


Compiler output:
main.c: In function 'main':
main.c:8:5: error: 'count' undeclared (first use in this function)
    8 | for(count=1;count<=n;count++){
      |     ^~~~~
main.c:8:5: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

import java.util.*;
import static java.lang.Integer.*;
import static java.lang.Long.*;
import static java.lang.Math.*;
import static java.lang.System.*;

public class Main {
	public static void main(String[] args) {
		int i,j;
		Scanner sc = new Scanner(in);
		int n = parseInt(sc.next());
		int[] a = new int[n];
		int odd=0;
		int even=0;
		for (i = 0; i < a.length; i++) {
			a[i] = parseInt(sc.next());
			if(a[i]%2==0) {
				even++;
			} else {
				odd++;
			}
		}
		sc.close();
		boolean f=false;
		if(odd%2==1) {
			f=false;
		} else if((even+odd/2)%2==0) {
			f=true;
		} else {
			f=false;
		}
		out.println(f?"YES":"NO");
	}
}


Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.*;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:2:1: error: 'import' does not name a type
    2 | import static java.lang.Integer.*;
      | ^~~~~~
a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: 'import' does not name a type
    3 | import static java.lang.Long.*;
      | ^~~~~~
a.cc:3:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:4:1: error: 'import' does not name a type
    4 | import static java.lang.Math.*;
      | ^~~~~~
a.cc:4:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:5:1: error: 'import' does not name a type
    5 | import static java.lang.System.*;
      | ^~~~~~
a.cc:5:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:7:1: error: expected unqualified-id before 'public'
    7 | public class Main {
      | ^~~~~~
Language: C++

#include<bits/stdc++.h>

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

using namespace std;

int main(){
  int n;cin>>n;
  int ec=0;oc=0;
  rep(i,n){
    int t;cin>>t;
    if(t%2==0)ec++;
    else oc++;
  }

  if(oc%2 && ec>0) cout<<"NO"<<endl;
  else cout<<"YES"<<endl;

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:12: error: 'oc' was not declared in this scope; did you mean 'ec'?
   10 |   int ec=0;oc=0;
      |            ^~
      |            ec
Language: C++

#include<iostream>
#include<vector>
using  namespace std;
int main(){
  int a,d=0;
  cin>>a;
  vector<int>s(a);
  for(int i=0;i＜a;i++){
    cin>>s[i];
    if(s[i]%2==1)d++;
    }
   if(b%2==0)cout<<"YES"<<endl;
  else cout<<"NO"<<endl;
  return 0;
  }

Compiler output:
a.cc: In function 'int main()':
a.cc:8:15: error: 'i\U0000ff1ca' was not declared in this scope
    8 |   for(int i=0;i＜a;i++){
      |               ^~~~
a.cc:12:7: error: 'b' was not declared in this scope
   12 |    if(b%2==0)cout<<"YES"<<endl;
      |       ^
Language: C++

#include<iostream>
#include<vector>
using  namespace std;
int main(){
  int a,d=0;
  cin>>a;
  vector<int>s(a);
  for(int i=0;i＜a;i++)｛
    cin>>s[i];
    if(s[i]%2==1)d++;
    ｝
   if(b%2==0)cout<<"YES"<<endl;
  else cout<<"NO"<<endl;
  return 0;
  }

Compiler output:
a.cc: In function 'int main()':
a.cc:8:15: error: 'i\U0000ff1ca' was not declared in this scope
    8 |   for(int i=0;i＜a;i++)｛
      |               ^~~~
a.cc:8:24: error: '\U0000ff5b' was not declared in this scope
    8 |   for(int i=0;i＜a;i++)｛
      |                        ^~
a.cc:10:10: error: 'i' was not declared in this scope
   10 |     if(s[i]%2==1)d++;
      |          ^
a.cc:11:5: error: '\U0000ff5d' was not declared in this scope
   11 |     ｝
      |     ^~
a.cc:13:3: error: 'else' without a previous 'if'
   13 |   else cout<<"NO"<<endl;
      |   ^~~~
Language: C++

#include<iostream>
#include<vector>
using  namespace std;
int main(){
  int a,d=0;
  vector<int>s(a);
  for(int i=0;i＜a;i++)｛
    cin>>s[i];
    if(s[i]%2==1)d++;
    ｝
   if(b%2==0)cout<<"YES"<<endl;
  else cout<<"NO"<<endl;
  return 0;
  }

Compiler output:
a.cc: In function 'int main()':
a.cc:7:15: error: 'i\U0000ff1ca' was not declared in this scope
    7 |   for(int i=0;i＜a;i++)｛
      |               ^~~~
a.cc:7:24: error: '\U0000ff5b' was not declared in this scope
    7 |   for(int i=0;i＜a;i++)｛
      |                        ^~
a.cc:9:10: error: 'i' was not declared in this scope
    9 |     if(s[i]%2==1)d++;
      |          ^
a.cc:10:5: error: '\U0000ff5d' was not declared in this scope
   10 |     ｝
      |     ^~
a.cc:12:3: error: 'else' without a previous 'if'
   12 |   else cout<<"NO"<<endl;
      |   ^~~~
Language: C++

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

int main(){
  int n;
  cin >> n;
  int count = 0;
  for(int i = 0; i < n; i++){
    cin >> a;
    if(a % 2 == 1) count++;
  }
  if(count % 2 == 0){
    cout << "YES";
  }else{
    cout << "NO";
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:12: error: 'a' was not declared in this scope
    9 |     cin >> a;
      |            ^
Language: C++

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

int main(){
  int n;
  cin >> n;
  int count = 0;
  for(int i = 0; i < n; i++){
    cin >> a;
    (a % 2 == 1) count++;
  }
  if(count % 2 == 0){
    cout << "YES";
  }else{
    cout << "NO";
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:12: error: 'a' was not declared in this scope
    9 |     cin >> a;
      |            ^
Language: C++

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


int gcd(int a, int b) {
    if (b==0) return a;
   	else return gcd(b, a%b);
}
int lcm(int a, int b) {
    return a * b / gcd(a, b);
}


int main(){
	ll N;
	cin>>N;
	vector<ll> A(N);
	ll sum=0;
	REP(i,N){
		cint>>A[i];
		if((A[i])%2==1) sum++;
	}
	
	if(sum%2==0){
		cout<<"YES"<<endl;
	}
	else cout<<"NO"<<endl;
	
	
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:23:17: error: 'cint' was not declared in this scope; did you mean 'uint'?
   23 |                 cint>>A[i];
      |                 ^~~~
      |                 uint
Language: C++

#include"bits/stdc++.h"
#include"math.h"
using namespace std;
#define rep(i,n) for(int i=0;i<n;i++)
typedef long long ll;
int main(){
  int n; cin >> n;
  vector<int> a(n);
  rep(i,n) cin >> a[i];
  vector<int> b(n);
  int c=0;
  rep(i,n) b[i]=a[i]%2;c+=b[i];
  if(c%2==0)cout << "YES" << endl;
  else cout << "NO" << endl;}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:29: error: 'i' was not declared in this scope
   12 |   rep(i,n) b[i]=a[i]%2;c+=b[i];
      |                             ^
Language: C++

#include<iostream>
#include<string>
#include<vector>
#include<algorithm>
#include<map>
#include<set>
#include<cstdio>
#include<cmath>
#include<numeric>
#include<queue>
#include<stack>
#include<cstring>
#include<limits>
#include<functional>
#include<unordered_set>
#define rep(i,a) for(int i=(int)0;i<(int)a;++i)
#define pb push_back
#define eb emplace_back
using ll=long long;
constexpr ll mod = 1e9 + 7;
constexpr ll INF = 1LL << 50;
constexpr double pi=3.14159265358979;

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;
}
using namespace std;

vector< bool > prime_table(int n) {
  vector< bool > prime(n + 1, true);
  if(n >= 0) prime[0] = false;
  if(n >= 1) prime[1] = false;
  for(int i = 2; i * i <= n; i++) {
    if(!prime[i]) continue;
    for(int j = i + i; j <= n; j += i) {
      prime[j] = false;
    }
  }
  return prime;
}


void solve(){
    int n;
    cin>>n;
    int cnt=0;
    rep(i,n){
      cin>>x;
      if(x%2)++cnt;
    }
    if(cnt%2)cout<<"YES\n";
    else cout<<"NO\n";
    return;
}

signed main(){
	std::ios::sync_with_stdio(false);
    std::cin.tie(0);
	solve();
	return 0;
}


Compiler output:
a.cc: In function 'void solve()':
a.cc:59:12: error: 'x' was not declared in this scope
   59 |       cin>>x;
      |            ^
Language: C++

#include<bits/stdc++.h>
#definr rep(i,n) for(int i=0;i<(n);++i)
using namespace std;

int main(){
  int n,odd = 0,even = 0;cin >> n;
  rep(i,n){int a;cin >> a;if(a%2 == 0)even += 1;else odd += 1;}
  if(even*2 == odd)cout << "YES" << endl;
  else cout << "NO" << endl;
  return 0;
}

Compiler output:
a.cc:2:2: error: invalid preprocessing directive #definr; did you mean #define?
    2 | #definr rep(i,n) for(int i=0;i<(n);++i)
      |  ^~~~~~
      |  define
a.cc: In function 'int main()':
a.cc:7:7: error: 'i' was not declared in this scope
    7 |   rep(i,n){int a;cin >> a;if(a%2 == 0)even += 1;else odd += 1;}
      |       ^
a.cc:7:3: error: 'rep' was not declared in this scope
    7 |   rep(i,n){int a;cin >> a;if(a%2 == 0)even += 1;else odd += 1;}
      |   ^~~
Language: C++

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

int main(void){
  int n,f;
  cin >> n;
  for(int i=0;i<n;i++){
    cin >> f >> s;
    if(f%2==1) count++;
  }
  if(count%2==1){
    cout << "NO" << endl;
  }
  else{
    cout << "YES" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:17: error: 's' was not declared in this scope
    8 |     cin >> f >> s;
      |                 ^
a.cc:9:21: error: no post-increment operator for type
    9 |     if(f%2==1) count++;
      |                     ^~
a.cc:11:11: error: invalid operands of types '<unresolved overloaded function type>' and 'int' to binary 'operator%'
   11 |   if(count%2==1){
      |      ~~~~~^~
Language: C

#include<stdio.h>

int main(){
  int odd=0,even=0,tmp,N;
  scanf("%d",&N);
  for(i=0;i<N;i++){
    scanf("%d",&tmp);
    if(tmp%2 == 0)
      even++;
    else
      odd++;
  }
  if(odd%2==1){
    puts("NO");
    return 0;
  }
  even+=(odd/2);
  if(even%2==0)
    puts("YES");
  else
    puts("NO");
  return 0;
}
  

Compiler output:
main.c: In function 'main':
main.c:6:7: error: 'i' undeclared (first use in this function)
    6 |   for(i=0;i<N;i++){
      |       ^
main.c:6:7: note: each undeclared identifier is reported only once for each function it appears in
Language: C++


#define INF LLONG_MAX
#define ll  long long
#define ull unsigned long long
#define rep(i,n) for(int i=0; i<n; ++i)
#define MOD 1000000007
using namespace std;
#include<stdio.h>
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;}
inline void cinV(string &a){char buf[100000000]; scanf("%s", buf); a = buf;}
inline void cinV(int &a){scanf("%d", &a);}

int main() {
  int N; string NS; cinV(NS); N = atoi(NS.c_str());
  int odd = 0;
  rep(i, N) {
    int A; cinV(A);
    if(A%2) ++odd;
  }
  printf("%s\n", odd%2?"NO":"YES");
}


Compiler output:
a.cc:11:13: error: variable or field 'cinV' declared void
   11 | inline void cinV(string &a){char buf[100000000]; scanf("%s", buf); a = buf;}
      |             ^~~~
a.cc:11:18: error: 'string' was not declared in this scope
   11 | inline void cinV(string &a){char buf[100000000]; scanf("%s", buf); a = buf;}
      |                  ^~~~~~
a.cc:9:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
    8 | #include<stdio.h>
  +++ |+#include <string>
    9 | template<class T> inline bool chmin(T& a, T b) { if(a>b) {a=b; return true;} return false;}
a.cc:11:26: error: 'a' was not declared in this scope
   11 | inline void cinV(string &a){char buf[100000000]; scanf("%s", buf); a = buf;}
      |                          ^
a.cc: In function 'int main()':
a.cc:15:10: error: 'string' was not declared in this scope
   15 |   int N; string NS; cinV(NS); N = atoi(NS.c_str());
      |          ^~~~~~
a.cc:15:10: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
a.cc:15:26: error: 'NS' was not declared in this scope; did you mean 'N'?
   15 |   int N; string NS; cinV(NS); N = atoi(NS.c_str());
      |                          ^~
      |                          N
a.cc:15:35: error: 'atoi' was not declared in this scope
   15 |   int N; string NS; cinV(NS); N = atoi(NS.c_str());
      |                                   ^~~~
Language: C++


#define INF LLONG_MAX
#define ll  long long
#define ull unsigned long long
#define rep(i,n) for(int i=0; i<n; ++i)
#define MOD 1000000007
using namespace std;
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;}
inline void cinV(string &a){char buf[100000000]; scanf("%s", buf); a = buf;}
inline void cinV(int &a){scanf("%d", &a);}

int main() {
  int N; string NS; cinV(NS); N = atoi(NS.c_str());
  int odd = 0;
  rep(i, N) {
    int A; cinV(A);
    if(A%2) ++odd;
  }
  printf("%s\n", odd%2?"NO":"YES");
}


Compiler output:
a.cc:10:13: error: variable or field 'cinV' declared void
   10 | inline void cinV(string &a){char buf[100000000]; scanf("%s", buf); a = buf;}
      |             ^~~~
a.cc:10:18: error: 'string' was not declared in this scope
   10 | inline void cinV(string &a){char buf[100000000]; scanf("%s", buf); a = buf;}
      |                  ^~~~~~
a.cc:1:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
  +++ |+#include <string>
    1 | 
a.cc:10:26: error: 'a' was not declared in this scope
   10 | inline void cinV(string &a){char buf[100000000]; scanf("%s", buf); a = buf;}
      |                          ^
a.cc: In function 'void cinV(int&)':
a.cc:11:26: error: 'scanf' was not declared in this scope
   11 | inline void cinV(int &a){scanf("%d", &a);}
      |                          ^~~~~
a.cc: In function 'int main()':
a.cc:14:10: error: 'string' was not declared in this scope
   14 |   int N; string NS; cinV(NS); N = atoi(NS.c_str());
      |          ^~~~~~
a.cc:14:10: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
a.cc:14:26: error: 'NS' was not declared in this scope; did you mean 'N'?
   14 |   int N; string NS; cinV(NS); N = atoi(NS.c_str());
      |                          ^~
      |                          N
a.cc:14:35: error: 'atoi' was not declared in this scope
   14 |   int N; string NS; cinV(NS); N = atoi(NS.c_str());
      |                                   ^~~~
a.cc:20:3: error: 'printf' was not declared in this scope
   20 |   printf("%s\n", odd%2?"NO":"YES");
      |   ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 |
Language: C++

#include <bits/stdc++.h>
#define INF LLONG_MAX
#define ll  long long
#define ull unsigned long long
#define rep(i,n) for(int i=0; i<n; ++i)
#define MOD 1000000007
using namespace std;
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;}
inline void cinV(string &a){char buf[1E11L]; scanf("%s", buf); a = buf;}
inline void cinV(int &a){scanf("%d", &a);}

int main() {
  int N; string NS; cinV(NS); N = atoi(NS.c_str());
  int odd = 0;
  rep(i, N) {
    int A; cinV(A);
    if(A%2) ++odd;
  }
  printf("%s\n", odd%2?"NO":"YES");
}


Compiler output:
a.cc: In function 'void cinV(std::string&)':
a.cc:10:38: error: conversion from 'long double' to 'long unsigned int' in a converted constant expression
   10 | inline void cinV(string &a){char buf[1E11L]; scanf("%s", buf); a = buf;}
      |                                      ^~~~~
a.cc:10:38: error: could not convert '1.0e+11l' from 'long double' to 'long unsigned int'
   10 | inline void cinV(string &a){char buf[1E11L]; scanf("%s", buf); a = buf;}
      |                                      ^~~~~
      |                                      |
      |                                      long double
a.cc:10:38: error: size of array 'buf' has non-integral type 'long double'
Language: C++

#include <bits/stdc++.h>
#define INF LLONG_MAX
#define ll  long long
#define ull unsigned long long
#define rep(i,n) for(int i=0; i<n; ++i)
#define MOD 1000000007
using namespace std;
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;}
inline void cinV(string &a){char buf[1E11]; scanf("%s", buf); a = buf;}
inline void cinV(int &a){scanf("%d", &a);}

int main() {
  int N; string NS; cinV(NS); N = atoi(NS.c_str());
  int odd = 0;
  rep(i, N) {
    int A; cinV(A);
    if(A%2) ++odd;
  }
  printf("%s\n", odd%2?"NO":"YES");
}

Compiler output:
a.cc: In function 'void cinV(std::string&)':
a.cc:10:38: error: conversion from 'double' to 'long unsigned int' in a converted constant expression
   10 | inline void cinV(string &a){char buf[1E11]; scanf("%s", buf); a = buf;}
      |                                      ^~~~
a.cc:10:38: error: could not convert '1.0e+11' from 'double' to 'long unsigned int'
   10 | inline void cinV(string &a){char buf[1E11]; scanf("%s", buf); a = buf;}
      |                                      ^~~~
      |                                      |
      |                                      double
a.cc:10:38: error: size of array 'buf' has non-integral type 'double'
Language: C++

#include <bits/stdc++.h>

using namespace std;

typedef long long ll;
typedef unsigned long long ull;
#define REP(i, n) for(int i=0; i<n; i++)
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; }
const ll MOD = 1e9+7;

int main(){
    itn N;
    cin >> N;
    int odd, even;
    odd = even = 0;
    REP(i,N){
        ll a;
        cin >> a;
        if(a % 2)  odd++;
        else even++;
    }

    if(odd % 2){
        cout << "NO" << endl;
    }
    else{
        cout << "YES" << endl;
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:5: error: 'itn' was not declared in this scope; did you mean 'int'?
   13 |     itn N;
      |     ^~~
      |     int
a.cc:14:12: error: 'N' was not declared in this scope
   14 |     cin >> N;
      |            ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
typedef pair<ll, ll> l_l;
typedef pair<int , int> i_i;
typedef vector<ll> vel;
typedef vector<int> vei;
typedef vector<char> vec;
typedef vector<bool> veb;
typedef vector<string> ves;
typedef vector<vector<ll>> ve_vel;
typedef vector<vector<int>> ve_vei;
typedef vector<vector<char>> ve_vec;
typedef vector<vector<bool>> ve_veb;
typedef vector<vector<string>> ve_ves;
#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 rep2(i,n) for(int i=2;i<(int)(n);i++)
#define repk(i,k,n) for(int i=k;i<(int)(n);i++)
#define fs first
#define sc second
#define pub push_back
#define puf push_front
#define pob pop_back
#define all(a) a.begin(),a.end()
#define rall(a) a.rbegin(),a.rend()
#define maxel(a) *max_element(all(a))
#define minel(a) *min_element(all(a))
#define acc accumulate
#define EPS (1e-7)
#define INF (1e9)
#define PI (acos(-1))
#define mod (1000000007)
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 (a>b) { a=b; return 1; } return 0; }

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

    int N; cin >> N;
    vel A(N);

    int cnt0 = 0;
    int cnt1 = 0;

    rep(i,N) {
        cin >> A[i];
        if(A[i] % 2 == 0) cnt0++;
        else cnt1++;
    }

    if(cnt1 % 2 == 0) {
        cnt0 += cnt1/2;
        if(cnt1 % 2 == 1) {cout << "NO" << endl; return 0;}
        while(cnt0 > 0){
            cnt0 /= 2;
            if(cnt0 == 1) {cout << "YES" << endl; return 0;}
        }
        cout << "NO" << endl;
        return 0;
    }
    else {
        if(cnt0 == 0){
            while(cnt1 > 0){
                cnt1 /= 2;
                if(cnt1 == 1) {cout << "YES" << endl; return 0;}
            }
            cout << "NO" << endl; 
            return 0;
        }
        else{
            cout << "NO" << endl;
            return 0;
        }

}

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

#include<iostream>//C++头文件
#include<algorithm>//标准头文件
#include<Hatsune_Miku>//AC头文件
using namespace std;
int n,a[100001],ans=0;//根据题意定义，都在int范围内，ans用来记录和。
int main(){
    cin>>n;//读入n
    for(int i=1;i<=n;i++){
        cin>>a[i];
         ans+=a[i];//记录总数值
    }
    if(ans%2==0)cout<<"YES"<<endl;//满足题意，输出YES换行。
    else cout<<"NO"<<endl;//不行就输出NO
    //大写！大写！大写！
    return 0;//结束
}

Compiler output:
a.cc:3:9: fatal error: Hatsune_Miku: No such file or directory
    3 | #include<Hatsune_Miku>//AC头文件
      |         ^~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include<iostream>
using namespace std;

iont n,cnt;
int main(){
	ios::sync_with_stdio(0);
	cin>>n;
	for(int i=1;i<=n;i++){
		int a;
		cin>>a;
		cnt += (a&1);
	}
	puts((cnt&1)?"NO":"YES");
	return 0;
}


Compiler output:
a.cc:4:1: error: 'iont' does not name a type; did you mean 'int'?
    4 | iont n,cnt;
      | ^~~~
      | int
a.cc: In function 'int main()':
a.cc:7:14: error: 'n' was not declared in this scope
    7 |         cin>>n;
      |              ^
a.cc:11:17: error: 'cnt' was not declared in this scope; did you mean 'int'?
   11 |                 cnt += (a&1);
      |                 ^~~
      |                 int
a.cc:13:15: error: 'cnt' was not declared in this scope; did you mean 'int'?
   13 |         puts((cnt&1)?"NO":"YES");
      |               ^~~
      |               int
Language: C++

#include <bits/stdc++.h>
#define rep(i,a,b) for(ll i=ll(a);i<ll(b);i++)
#define irep(i,a,b) for(ll i=ll(a);i>=ll(b);i--)
using ll = long long;
using namespace std;

ll GCD(ll a, ll b) { return b ? GCD(b, a%b) : a; }
//sort(a, a + N, greater<ll>())   // descend
//sort(a, a+N)                    //  ascend

/* 
void comb(vector<vector <ll> > &v) {
	ll mod=1000000007;
	rep (i,0,v.size()) {
		v[i][0] = 1;
		v[i][i] = 1;
	}
	rep (k,1,v.size()) {
		rep (j,1,k) {
			v[k][j] = (v[k - 1][j - 1] + v[k - 1][j])%mod;
		}
	}
}
/*main内でnCn~nC0 生成 **
vector<vector<ll> > v(n + 1, vector<ll>(n + 1, 0));
comb(v);
*/

int main() {
	ll n;
	cin>>n;
	ll a[110000];
	rep(i,0,n)cin>>a[i];

	ll odd=0;
	ll even=0;
	rep(i,0,n){
		if(a[i]%2) even++;
		else odd++;;
	}
	if(even%2==1))cout<<"NO";
	else cout<<"YES";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:41:22: error: expected primary-expression before ')' token
   41 |         if(even%2==1))cout<<"NO";
      |                      ^
Language: C++

N = int(input())
A = list(map(int, input().split()))

for i in A:
    if i%2 == 0:
        A.remove(i)

ans = len(A)

if ans%2 == 0:
    print("YES")
else:
    print("NO")

Compiler output:
a.cc:1:1: error: 'N' does not name a type
    1 | N = int(input())
      | ^
Language: C++

#include <iostream>
using namespace std;

int main(){
	int N;
  cin >> N;
 	int j,odd=0,even=0;
  for(int k = 0; k < N; k++){
    cin >> j;
if(j % 2 = 0){
even++;
}
else{
odd++;
}
}
if(odd % 2 == 0){
    cout << "YES" << endl;
}
else {
cout << "NO"<< endl;
}
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:6: error: lvalue required as left operand of assignment
   10 | if(j % 2 = 0){
      |    ~~^~~