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

#include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
typedef unsigned int uint;
typedef unsigned char uchar;
typedef unsigned long long ull;
typedef pair<int, int> pii;
typedef pair<ll, ll> pll;
typedef vector<int> vi;

#define REP(i,x) for(int i=0;i<(int)(x);i++)
#define REPS(i,x) for(int i=1;i<=(int)(x);i++)
#define RREP(i,x) for(int i=((int)(x)-1);i>=0;i--)
#define RREPS(i,x) for(int i=((int)(x));i>0;i--)
#define FOR(i,c) for(__typeof((c).begin())i=(c).begin();i!=(c).end();i++)
#define RFOR(i,c) for(__typeof((c).rbegin())i=(c).rbegin();i!=(c).rend();i++)
#define ALL(container) (container).begin(), (container).end()
#define RALL(container) (container).rbegin(), (container).rend()
#define SZ(container) ((int)container.size())
#define mp(a,b) make_pair(a, b)
#define pb push_back
#define eb emplace_back
#define UNIQUE(v) v.erase( unique(v.begin(), v.end()), v.end() );
#define __builtin_popcount __builtin_popcountll
#define endl '\n'

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; }
template<class T> ostream& operator<<(ostream &os, const vector<T> &t) {
    os<<"["; FOR(it,t) {if(it!=t.begin()) os<<","; os<<*it;} os<<"]"; return os;
}
template<class T> ostream& operator<<(ostream &os, const set<T> &t) {
    os<<"{"; FOR(it,t) {if(it!=t.begin()) os<<","; os<<*it;} os<<"}"; return os;
}
template<class S, class T> ostream& operator<<(ostream &os, const map<S, T> &t) {
    os<<"{"; FOR(it,t) {if(it!=t.begin()) os<<","; os<<*it;} os<<"}"; return os;
}
template<class S, class T> ostream& operator<<(ostream &os, const pair<S,T> &t) { return os<<"("<<t.first<<","<<t.second<<")";}
template<class S, class T> pair<S,T> operator+(const pair<S,T> &s, const pair<S,T> &t){ return pair<S,T>(s.first+t.first, s.second+t.second);}
template<class S, class T> pair<S,T> operator-(const pair<S,T> &s, const pair<S,T> &t){ return pair<S,T>(s.first-t.first, s.second-t.second);}

const int INF = 1<<28;
const double EPS = 1e-8;
const int MOD = 1000000007;


int T, n, m;

int main(int argc, char *argv[]){
    ios::sync_with_stdio(false);
    cin.tie(0);
    cout.tie(0);
    while(cin >> n >> m){
        cout << ((N + 1) / 2 >= K ? "YES" : "NO") << endl;
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main(int, char**)':
a.cc:54:19: error: 'N' was not declared in this scope
   54 |         cout << ((N + 1) / 2 >= K ? "YES" : "NO") << endl;
      |                   ^
a.cc:54:33: error: 'K' was not declared in this scope
   54 |         cout << ((N + 1) / 2 >= K ? "YES" : "NO") << endl;
      |                                 ^
Language: C++

#include<stdio.h>
#include<iostream>
#include<iomanip>
#include<math.h>
#include<algorithm>
#include<utility>
#include<queue>
#include<string.h>
#include<string>
#include<set>
#include<functional>
using namespace std;
typedef long long LL;
typedef pair<int, int> P;
typedef queue<P> Q;

int main(){
    int a,b;
    cin>>a>>b;
    if(a>=b*2){
        cout<<"YES";
    }else{
        cout<<"NO"
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:23:19: error: expected ';' before '}' token
   23 |         cout<<"NO"
      |                   ^
      |                   ;
   24 |     }
      |     ~
Language: Java

import java.util.*;

public class Main {
	public static void main(String[] args) throws Exception{
		Scanner scn = new Scanner(System.in);
		int[] a = new int[6];
		for(int i=0; i<a.length; i++){
			a[i] = scn.nextInt();
		}
      	String ans = "YES";
      	for(int i=0; i<a.length; i++){
			if(a[i]==1){
              count1++;
              if(count1>=3) ans = "NO";
            }
          	if(a[i]==2){
              count2++;
              if(count2>=3) ans = "NO";
            }
          	if(a[i]==3){
              count3++;
              if(count3>=3) ans = "NO";
            }
          	if(a[i]==4){
              count4++;
              if(count4>=3) ans = "NO";
            }
		}
      	System.out.println(ans); 	
	}
}

Compiler output:
Main.java:13: error: cannot find symbol
              count1++;
              ^
  symbol:   variable count1
  location: class Main
Main.java:14: error: cannot find symbol
              if(count1>=3) ans = "NO";
                 ^
  symbol:   variable count1
  location: class Main
Main.java:17: error: cannot find symbol
              count2++;
              ^
  symbol:   variable count2
  location: class Main
Main.java:18: error: cannot find symbol
              if(count2>=3) ans = "NO";
                 ^
  symbol:   variable count2
  location: class Main
Main.java:21: error: cannot find symbol
              count3++;
              ^
  symbol:   variable count3
  location: class Main
Main.java:22: error: cannot find symbol
              if(count3>=3) ans = "NO";
                 ^
  symbol:   variable count3
  location: class Main
Main.java:25: error: cannot find symbol
              count4++;
              ^
  symbol:   variable count4
  location: class Main
Main.java:26: error: cannot find symbol
              if(count4>=3) ans = "NO";
                 ^
  symbol:   variable count4
  location: class Main
8 errors
Language: C++

vector<int> cnt(4);
  for ( int i=0; i<3; i++ ) {
    int a,b;
    cin >> a >> b;
    --a; --b;
    cnt[a]++;
    cnt[b]++;
  }
  sort(cnt.begin(),cnt.end());
  if ( cnt[0]==1&&cnt[2]==2&&cnt[0]==cnt[1]&&cnt[2]==cnt[3] ) {
    puts("YES");
  } else {
    puts("NO");
  }

Compiler output:
a.cc:1:1: error: 'vector' does not name a type
    1 | vector<int> cnt(4);
      | ^~~~~~
a.cc:2:3: error: expected unqualified-id before 'for'
    2 |   for ( int i=0; i<3; i++ ) {
      |   ^~~
a.cc:2:18: error: 'i' does not name a type
    2 |   for ( int i=0; i<3; i++ ) {
      |                  ^
a.cc:2:23: error: 'i' does not name a type
    2 |   for ( int i=0; i<3; i++ ) {
      |                       ^
a.cc:9:7: error: expected constructor, destructor, or type conversion before '(' token
    9 |   sort(cnt.begin(),cnt.end());
      |       ^
a.cc:10:3: error: expected unqualified-id before 'if'
   10 |   if ( cnt[0]==1&&cnt[2]==2&&cnt[0]==cnt[1]&&cnt[2]==cnt[3] ) {
      |   ^~
a.cc:12:5: error: expected unqualified-id before 'else'
   12 |   } else {
      |     ^~~~
Language: C++

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

int main() {
  // a b c d
  // 1 2 2 1
  vector<int> cnt(4);
  for ( int i=0; i<3; i++ ) {
    int a,b;
    cin >> a >> b;
    --a; --b;
    cnt[a]++;
    cnt[b]++;
  }
  sort(cnt.begin(),cnt.end());
  if ( cnt[0]]==1&&cnt[2]==2&&cnt[0]==cnt[1]&&cnt[2]==cnt[3] ) {
    puts("YES");
  } else {
    puts("NO");
  }
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:14: error: expected ')' before ']' token
   16 |   if ( cnt[0]]==1&&cnt[2]==2&&cnt[0]==cnt[1]&&cnt[2]==cnt[3] ) {
      |      ~       ^
      |              )
a.cc:16:14: error: expected primary-expression before ']' token
Language: C++

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

int main() {
  // a b c d
  // 1 2 2 1
  vector<int> cnt(4);
  for ( int i=0; i<3; i++ ) {
    int a,b;
    cin >> a >> b;
    cnt[a]++;
    cnt[b]++;
  }
  sort(cnt.begin(),cnt.end());
  if ( cnt[0]]==1&&cnt[2]==2&&cnt[0]==cnt[1]&&cnt[2]==cnt[3] ) {
    puts("YES");
  } else {
    puts("NO");
  }
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:14: error: expected ')' before ']' token
   15 |   if ( cnt[0]]==1&&cnt[2]==2&&cnt[0]==cnt[1]&&cnt[2]==cnt[3] ) {
      |      ~       ^
      |              )
a.cc:15:14: error: expected primary-expression before ']' token
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  vector<int>v(4);
  for(int i = 0; i < 6; ++i){
    int x; cin >> x;--x;
    v[x]++;
  }
  sort(v.begin(),b.end());
  if(v[0] == 1 && v[1] == 1 && v[2] == 2 && v[3] == 2)
    cout << "YES" << endl;
  else 
    cout << "NO" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:18: error: 'b' was not declared in this scope
    9 |   sort(v.begin(),b.end());
      |                  ^
Language: C++

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

int main(){
  int A;
  set<int> S;
  for(int i=0; i<6; i++){
    cin >> A;
    S.insert(A);
  }
  if(S=={1, 2, 3, 4}){
    cout << "YES" << endl;
  }
  else{
    cout << "NO" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:9: error: expected primary-expression before '{' token
   11 |   if(S=={1, 2, 3, 4}){
      |         ^
a.cc:11:9: error: expected ')' before '{' token
   11 |   if(S=={1, 2, 3, 4}){
      |     ~   ^
      |         )
Language: C++

//#define _GLIBCXX_DEBUG
#include<bits/stdc++.h>
#define PI 3.14159265359
using namespace std;
#define rep(i, n) for (ll i = 0; i < (ll)(n); i++)
const long long INF= 1e+18+1;
typedef long long ll;
typedef vector<ll> vl;
typedef vector<vector<ll> >vvl;
typedef pair<ll,ll> P;
typedef tuple<ll,ll,ll> T;
const ll MOD=1000000007LL;
string abc="abcdefghijklmnopqrstuvwxyz";
string ABC="ABCDEFGHIJKLMNOPQRSTUVWXYZ";
int main(){
  map<ll,ll>M;
  ll two=0,one=0;
  rep(i,3){
    ll a,b;cin>>a>>b;
    M[a]++;M[b]++;
  }
  for(auto p:M){
    if(p.second==2)two++;
    if(p.second==1)one++;
  }
  if(one==2&two==2)coout<<"YES"<<endl;
  else cout<<"NO"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:26:20: error: 'coout' was not declared in this scope
   26 |   if(one==2&two==2)coout<<"YES"<<endl;
      |                    ^~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef vector<ll> vll;
#define all(x) (x).begin(), (x).end()
#define endl '\n'
#define fsp(x) cout << fixed << setprecision(x)
const ll inf = LLONG_MAX;
const long double pi = M_PI;
void Yes() {cout << "Yes" << endl;}
void No() {cout << "No" << endl;}
void YES() {cout << "YES" << endl;}
void NO() {cout << "NO" << endl;}

int main() {
  vll v(4, 0);
  for (ll i = 0; i < n; i++) {
    ll a;
    cin >> a;
    v[a - 1]++;
  }
  ll cnt = 0;
  for (ll i = 0; i < 4; i++) {
    if (v[i] == 2) cnt++;
  }
  if (cnt == 2) YES();
  else NO();
}

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

#include<bits/stdc++.h>
using namespace std;
using ll = long long;
int main(){
    int path[4][4]= {0};
    for(int i = 0; i < 3; i++){
        int a,b;
        cin >> a >> b;
        path[a - 1][b - 1] = path[b - 1][a - 1] = 1;
    }
        for(int i = 0; i < 4; i++){
            int cnt = 0;
            for(int j = 0; j < 4; i++){
                if(a[i][j] == 1)
                    cnt++;
            }
            if(cnt == 3){
                cout << "NO" << endl;
            }
        }
        cout << "YES" << endl;
    }

Compiler output:
a.cc: In function 'int main()':
a.cc:14:20: error: 'a' was not declared in this scope
   14 |                 if(a[i][j] == 1)
      |                    ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
using lint = long;
using ll = long long;
#define rep(i,n) for(lint (i) = 0;(i) < (lint)(n);(i)++)
#define out1(x) cout << (x) << '\n';
void Main() {
	vl a(4,0);
	rep(i,3) {
		lint x,y;
		cin >> x >> y;
		++a[x-1];++a[y-1];
	}
	if (a[0] == 3 || a[1] == 3 || a[2] == 3 || a[3] == 3) {
		out1("NO");
		return;
	}
	out1("YES");
}

signed main() {
	Main();
}

Compiler output:
a.cc: In function 'void Main()':
a.cc:8:9: error: 'vl' was not declared in this scope; did you mean 'll'?
    8 |         vl a(4,0);
      |         ^~
      |         ll
a.cc:12:19: error: 'a' was not declared in this scope
   12 |                 ++a[x-1];++a[y-1];
      |                   ^
a.cc:14:13: error: 'a' was not declared in this scope
   14 |         if (a[0] == 3 || a[1] == 3 || a[2] == 3 || a[3] == 3) {
      |             ^
Language: C++

#include<iostream>
using namespace std;
int main(){
  int s[4] = {},a,b;
  cin >> a >> b;s[a-1]++;s[b-1]++;
  cin >> a >> b;s[a-1]++;s[b-1]++;
  cin >> a >> b;s[a-1]++;s[b-1]++;
  if(a[0]!=3 && a[1]!=3 && a[2]!=3 && a[3]!=3) cout << "YES" << endl;
  else cout << "NO" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:7: error: invalid types 'int[int]' for array subscript
    8 |   if(a[0]!=3 && a[1]!=3 && a[2]!=3 && a[3]!=3) cout << "YES" << endl;
      |       ^
a.cc:8:18: error: invalid types 'int[int]' for array subscript
    8 |   if(a[0]!=3 && a[1]!=3 && a[2]!=3 && a[3]!=3) cout << "YES" << endl;
      |                  ^
a.cc:8:29: error: invalid types 'int[int]' for array subscript
    8 |   if(a[0]!=3 && a[1]!=3 && a[2]!=3 && a[3]!=3) cout << "YES" << endl;
      |                             ^
a.cc:8:40: error: invalid types 'int[int]' for array subscript
    8 |   if(a[0]!=3 && a[1]!=3 && a[2]!=3 && a[3]!=3) cout << "YES" << endl;
      |                                        ^
Language: C++

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

int main(){
int a,count_1,count_2,count_3,count_4;
bool A == true;
  count_1=0;
  count_2=0;
  count_3=0;
  count_4=0;
  for(int i =0; i<6;i++){
  cin >>a;
  if(a==1){
  count_1++;
  }
  else if(a==2){
  count_2++;
  }
  else if(a==3){
  count_3++;
  }
  else if(a==4){
  count_4++;
  }
  }
  
 if(count_1==3 || count_2==3 || count_3==3 || count_4==3){
 A = false;
 }
 if(A==true){
 cout << "YES" <<endl
 }
 if(A==false){
 cout << "NO"<<endl;
 }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:8: error: expected initializer before '==' token
    6 | bool A == true;
      |        ^~
a.cc:28:2: error: 'A' was not declared in this scope
   28 |  A = false;
      |  ^
a.cc:30:5: error: 'A' was not declared in this scope
   30 |  if(A==true){
      |     ^
a.cc:31:22: error: expected ';' before '}' token
   31 |  cout << "YES" <<endl
      |                      ^
      |                      ;
   32 |  }
      |  ~                    
a.cc:33:5: error: 'A' was not declared in this scope
   33 |  if(A==false){
      |     ^
Language: C++

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

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

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

int main(){
	int a,b,c,d ; a = b = c = d = 0 ;
	for(int i=0;i<6;i++){
		int x ; cin >> x ;
		if(x==1) a++ ;
		else if(x==2) b++ ;
		else if(x==3) c+; ;
		else d++ ;
	}
	cout << YorN(a!=3&&b!=3&&c!=3&&d!=3) << endl ;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:40:33: error: expected primary-expression before ';' token
   40 |                 else if(x==3) c+; ;
      |                                 ^
a.cc:41:17: error: 'else' without a previous 'if'
   41 |                 else d++ ;
      |                 ^~~~
Language: C++

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

int main() {
int a,b,c,d,e,f,g,h,i,j;
  cin>>a>>b; cin>>c>>d;cin>>e>>f;
  if(a==1)
    g++;
  if(a==2)
    h++;
  if(a==3)
    i++;
  if(a==4)
    j++;
  if(b==1)
    g++;
  if(b==2)
    h++;
  if(b==3)
    i++;
  if(b==4)
    j++;
  
  if(c==1)
    g++;
  if(c==2)
    h++;
  if(c==3)
    i++;
  if(c==4)
    j++;
  if(d==1)
    g++;
  if(d==2)
    h++;
  if(d==3)
    i++;
  if(d==4)
    j++;
    
if(e==1)
    g++;
  if(e==2)
    h++;
  if(e==3)
    i++;
  if(e==4)
    j++;
  if(f==1)
    g++;
  if(f==2)
    h++;
  if(f==3)
    i++;
  if(f==4)
    j++;
  if(g>2||h>2||j>2||k>2)
    cout<<"NO"<<endl;
  else cout <<"YES"<<endl ;
  }

Compiler output:
a.cc: In function 'int main()':
a.cc:57:21: error: 'k' was not declared in this scope
   57 |   if(g>2||h>2||j>2||k>2)
      |                     ^
Language: C++

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

int main() {
int a,b,c,d,e,f,g,h,i,j,k,l=0;    
  cin >>a>>b;
  cin>>c>>d;
    cin>>f>>g;
  vector <int> z;
  z={a,b,c,d,e,f,g};
for(int i=0;i<6;i++){
if (z.at(i)==1)  
  h++
  if (z.at(i)==2)  
  i++
  if (z.at(i)==3)  
  j++
  if (z.at(i)==4)  
  k++  
    }
if (h==3)  
  l++
 if (i==3)  
  l++
   
    if (j==3)  
  l++
      
   if (k==3)  
  l++
     
  if (l==1)  
  cout<<"No"<<endl;
     else
     cout<<"Yes"<<endl;
     }


Compiler output:
a.cc: In function 'int main()':
a.cc:13:6: error: expected ';' before 'if'
   13 |   h++
      |      ^
      |      ;
   14 |   if (z.at(i)==2)
      |   ~~  
a.cc:22:6: error: expected ';' before 'if'
   22 |   l++
      |      ^
      |      ;
   23 |  if (i==3)
      |  ~~
Language: C++

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

int main() {
int a,b,c,d,e,f,g,h,i,j,k,l=0;    
  cin >>a>>b;
  cin>>c>>d;
    cin>>f>>g;
  vector <int> z;
  z={a,b,c,d,e,f,g}
for(int i=0;i<6;i++){
if (z.at(i)==1)  
  h++
  if (z.at(i)==2)  
  i++
  if (z.at(i)==3)  
  j++
  if (z.at(i)==4)  
  k++  
if (h==3)  
  l++
 if (i==3)  
  l++
   
    if (j==3)  
  l++
      
   if (k==3)  
  l++
     
  if (l==1)  
  cout<<"No"<<endl;
     else
     cout<<"Yes"<<endl;
     }


Compiler output:
a.cc: In function 'int main()':
a.cc:10:20: error: expected ';' before 'for'
   10 |   z={a,b,c,d,e,f,g}
      |                    ^
      |                    ;
   11 | for(int i=0;i<6;i++){
      | ~~~                 
a.cc:11:20: error: expected ';' before ')' token
   11 | for(int i=0;i<6;i++){
      |                    ^
      |                    ;
a.cc:35:7: error: expected '}' at end of input
   35 |      }
      |       ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

#include<bits/stdc++.h>
#define ll long long
using namespace std;
int main(){

    int a = 0 , b = 0 , c = 0 , d = 0 , e = 6 ;
    for(int i = 0 ; i < n ; i ++ ){
        int h ;
        cin >> h ;
        if(h==1){
            a++;
        }
        if(h==2){
            b++;
        }
        if(h==3){
            c++;
        }
        if(h==4){
            d++;
        }
    }
    if(a>2 || b > 2 || c > 2 || d >2 ){
        cout<<"NO"<<endl;
        return 0 ;
    }
    cout<<"YES"<<endl;
    return 0;

}


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

#include<bits/stdc++.h>
#define ll long long
using namespace std;
int main(){

    int q = 2;
    int u = 0 ;
    int a , b ,c , d ,e ,f ;
    cin >>a>>b>>c>>d>>e>>f;
    if(( c == b && d == e ) || ( c == b && d == f ) || ( e == b && f == c ) || ( e == b && f == b ) ){
        cout<<"YES"<<endl;
        return 0;
    }
    else if (( c == a && d == e ) ( c == a && d == f ) || ( e == a && f == c ) ||(  e == a && f == b  )){
        cout<<"YES"<<endl;
        return 0;
    }
    else{
        cout<<"NO"<<endl;
        return 0;
    }

}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:35: error: expression cannot be used as a function
   14 |     else if (( c == a && d == e ) ( c == a && d == f ) || ( e == a && f == c ) ||(  e == a && f == b  )){
      |              ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define int long long 
bool vis[4];
int level[4];
vector<int> v[4];
void dfs( int s, int l){
    vis[s]=true;
    level[s]=l;
    for(int i=0;i<(int)v[s].size();++i){
        if(!vis[s][i])
        dfs(vis[s][i],l+1);
    }
}
int32_t main()
{
    for(int i=0;i<3;++i){
        int a,b;
        cin>>a>>b;
        a--;b--;
        v[a].push_back(b);
        v[b].push_back(a);
    }
    for(int i=0;i<=3;++i){
        for(int j=0;j<=3;++j)
        vis[j]=false;
        dfs(i,0);
        for(int i=0;i<=3;++i)
        if(level[i]==3){
            cout<<"YES";
            return 0;
        }
    }
    cout<<"NO";
    return 0;
}


Compiler output:
a.cc: In function 'void dfs(long long int, long long int)':
a.cc:11:19: error: invalid types 'bool[long long int]' for array subscript
   11 |         if(!vis[s][i])
      |                   ^
a.cc:12:19: error: invalid types 'bool[long long int]' for array subscript
   12 |         dfs(vis[s][i],l+1);
      |                   ^
Language: C++

#include <iostream>
using namespace std;

int main()
{
    int c[4] {0};
    for(int i = 0; i < n; i++){
        int a, b;
        cin >> a >> b;
        c[a - 1]++;
        c[b - 1]++;
    }
    int r = 0;
    for(int i = 0; i < n; i++) r += c[i] % 2;
    if(r == 2) cout << "YES" << endl;
    else cout << "NO" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:24: error: 'n' was not declared in this scope
    7 |     for(int i = 0; i < n; i++){
      |                        ^
a.cc:14:24: error: 'n' was not declared in this scope
   14 |     for(int i = 0; i < n; i++) r += c[i] % 2;
      |                        ^
Language: C++

#include<bits/stdc++.h>
#include<cstdio.h>
using namespace std;
int main(){
  int d[10];
  for (int i = 1; i <= 4; i++) d[i] = 0;
  for (int i = 0; i < 6; i++){
    int z;
    scanf ("%d", &z);
    d[z]++;
  }
  if (d[1] == 3 || d[2] == 3 || d[3] == 3 || d[4] == 3) printf("YES\n");
  else printf("NO\n");
}


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

#include<bits/stdc++.h>
using namespace std;
int main(){
  int d[10];
  for (int i = 1; i <= 4; i++) d[i] = 0;
  for (int i = 0; i < 6; i++){
    int z;
    scanf (”%d”, &z);
    d[z]++;
  }
  if (d[1] == 3 || d[2] == 3 || d[3] == 3 || d[4] == 3) printf("YES\n");
  else printf("NO\n");
}


Compiler output:
a.cc:8:12: error: extended character ” is not valid in an identifier
    8 |     scanf (”%d”, &z);
      |            ^
a.cc:8:14: error: extended character ” is not valid in an identifier
    8 |     scanf (”%d”, &z);
      |              ^
a.cc: In function 'int main()':
a.cc:8:12: error: '\U0000201d' was not declared in this scope
    8 |     scanf (”%d”, &z);
      |            ^
a.cc:8:14: error: 'd\U0000201d' was not declared in this scope
    8 |     scanf (”%d”, &z);
      |              ^~
Language: C++

/*Function Template*/
#include<bits/stdc++.h>
using namespace std;
typedef long long int ll;
const int mod = 1000000007;
#define rep(i, n) for(ll i = 0; i < (n); i++)
#define ALL(a)  (a).begin(),(a).end()
#define IOS ios::sync_with_stdio(0); cin.tie(0); cout.tie(0);


ll Len(ll n) {
  ll s=0;
  while(n!=0) s++, n/=10;
  return s;
}


ll Sint(ll n) {
  ll m=0,s=0,a=n;
  while(a!=0) s++, a/=10;
  for(ll i=s-1;i>=0;i--) m+=n/((ll)pow(10,i))-(n/((ll)pow(10,i+1)))*10;
  return m;
}


ll Svec(vector<ll> v){
  ll n=0;
  for(ll i=0;i<v.size();i++) n+=v[i];
  return n;
}


ll GCD(ll a,ll b){
  ll r,tmp;
/*自然数 a > b を確認・入替*/
  if(a<b){
    tmp=a,a=b,b=tmp;
  }
/*ユークリッドの互除法*/
  r=a%b;
  while(r!=0){
    a=b,b=r,r=a%b;
  }
  return b;
}


ll LCM(ll a,ll b){
  ll c=a,d=b,r,tmp;
/*自然数 a > b を確認・入替*/
  if(a<b){
    tmp=a,a=b,b=tmp;
  }
/*ユークリッドの互除法*/
  r=a%b;
  while(r!=0){
    a=b,b=r,r=a%b;
  }
  return c/b*d;
}


ll Factorial(ll n){
  ll m=1;
  while(n>=1) m*=n,n--;
  return m;
}

vector<pair<char,ll>> runlength(string s,vector<pair<char,ll>> p){
  ll x=1;
  if(s.size()==1){
    p.push_back(pair<char,ll>(s[0],1));
    return p;
  }
  for(ll i=0;i<s.size()-1;i++){
    if(s[i]==s[i+1]){
      x++;
      if(i==s.size()-2){
        p.push_back(pair<char,ll>(s[i],x));
      }
    }else{
      p.push_back(pair<char,ll>(s[i],x));
      x=1;
      if(i==s.size()-2){
        p.push_back(pair<char,ll>(s[s.size()-1],x));
      }
    }
  }
  return p;
}



/*↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓*/
int main() {
  IOS;
  map<int,int> mp;
  rep(i,6){
    ll a;
    cin>>a;
    mp[a]++;
  }
  vector<ll> v;
  for(auto c:mp){
    v,push_back(c.second);
  }
  sort(ALL(v));
  if(v[0]==1 && v[1]==1 && v[2]==2 && v[3]==2){
    cout<<"YES"<<endl;
  }else{
    cout<<"NO"<<endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:105:7: error: 'push_back' was not declared in this scope
  105 |     v,push_back(c.second);
      |       ^~~~~~~~~
Language: C++

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

using ll = long long int;
using ld = long double;
using pii = pair<int, int>;
using pll = pair<ll, ll>;
const double PI = acos(-1.0);
#define YES(n) cout << ((n) ? "YES" : "NO") << endl;
#define Yes(n) cout << ((n) ? "Yes" : "No") << endl;
#define all(v) v.begin(), v.end()

inline void finish() {
	cout << -1 << endl;
	exit(0);
}

template <typename T>
inline void debug(vector<T> v) {
	cout << "[";
	for (ll i = 0; i < v.size() - 1; ++i) {
		cout << v[i] << ", ";
	}
	cout << v[v.size() - 1] << "]" << endl;
}

void Main();
inline void DebugMain() {
	while (true) {
		Main();
	}
}

int main() {
	bool debug = false;
	cin.tie(nullptr);
	ios_base::sync_with_stdio(false);
	cout << fixed << setprecision(15);
	if (debug) {
		#include "a.h";
	}
	(debug) ? DebugMain() : Main();
	return 0;
}

inline void Main() {
	cout << "hoge";
}

Compiler output:
a.cc:40:31: warning: extra tokens at end of #include directive
   40 |                 #include "a.h";
      |                               ^
a.cc:40:26: fatal error: a.h: No such file or directory
   40 |                 #include "a.h";
      |                          ^~~~~
compilation terminated.
Language: C++

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

using ll = long long int;
using ld = long double;
using pii = pair<int, int>;
using pll = pair<ll, ll>;
const double PI = acos(-1.0);
#define YES(n) cout << ((n) ? "YES" : "NO") << endl;
#define Yes(n) cout << ((n) ? "Yes" : "No") << endl;
#define all(v) v.begin(), v.end()

inline void finish() {
	cout << -1 << endl;
	exit(0);
}

template <typename T>
inline void debug(vector<T> v) {
	cout << "[";
	for (ll i = 0; i < v.size() - 1; ++i) {
		cout << v[i] << ", ";
	}
	cout << v[v.size() - 1] << "]" << endl;
}

void Main();
inline void DebugMain() {
	while (true) {
		Main();
	}
}

int main() {
	bool debug = true;
	cin.tie(nullptr);
	ios_base::sync_with_stdio(false);
	cout << fixed << setprecision(15);
	if (debug) {
		#include "a.h";
	}
	(debug) ? DebugMain() : Main();
	return 0;
}

inline void Main() {
	cout << "hoge";
}

Compiler output:
a.cc:40:31: warning: extra tokens at end of #include directive
   40 |                 #include "a.h";
      |                               ^
a.cc:40:26: fatal error: a.h: No such file or directory
   40 |                 #include "a.h";
      |                          ^~~~~
compilation terminated.
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int x=0,y=0,z=0,w=0;
  for(int i=0;i<6;i++){
    int n;cin>>n;
    if(n==1)x++;
    else if(n==2)y++;
    else if(n==3)z++;
    else w++;
  }
  if(x*y*z*w==4)cout<<"YES"<<endl;
  else cout<<"NO"<<endl;
  ]
  

Compiler output:
a.cc: In function 'int main()':
a.cc:14:3: error: expected primary-expression before ']' token
   14 |   ]
      |   ^
a.cc:14:4: error: expected '}' at end of input
   14 |   ]
      |    ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  vector<int> a(3),b(3),c(4);
  for(int i=0;i<3;i++){
    cin >> a[i] >> b[i];
    c[a[i]-1]++;
    c[b[i]-1]++;
  }
  bool b=true;
  for(int i=0;i<4;i++){
    if(c[i]==3){
      b=false;
    }
  }
  if(b){
    cout << "YES" << endl;
  }
  else{
    cout << "NO" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:8: error: conflicting declaration 'bool b'
   10 |   bool b=true;
      |        ^
a.cc:4:20: note: previous declaration as 'std::vector<int> b'
    4 |   vector<int> a(3),b(3),c(4);
      |                    ^
a.cc:13:9: error: no match for 'operator=' (operand types are 'std::vector<int>' and 'bool')
   13 |       b=false;
      |         ^~~~~
In file included from /usr/include/c++/14/vector:72,
                 from /usr/include/c++/14/functional:64,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:53,
                 from a.cc:1:
/usr/include/c++/14/bits/vector.tcc:210:5: note: candidate: 'std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(const std::vector<_Tp, _Alloc>&) [with _Tp = int; _Alloc = std::allocator<int>]'
  210 |     vector<_Tp, _Alloc>::
      |     ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/vector.tcc:211:42: note:   no known conversion for argument 1 from 'bool' to 'const std::vector<int>&'
  211 |     operator=(const vector<_Tp, _Alloc>& __x)
      |               ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
In file included from /usr/include/c++/14/vector:66:
/usr/include/c++/14/bits/stl_vector.h:766:7: note: candidate: 'std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(std::vector<_Tp, _Alloc>&&) [with _Tp = int; _Alloc = std::allocator<int>]'
  766 |       operator=(vector&& __x) noexcept(_Alloc_traits::_S_nothrow_move())
      |       ^~~~~~~~
/usr/include/c++/14/bits/stl_vector.h:766:26: note:   no known conversion for argument 1 from 'bool' to 'std::vector<int>&&'
  766 |       operator=(vector&& __x) noexcept(_Alloc_traits::_S_nothrow_move())
      |                 ~~~~~~~~~^~~
/usr/include/c++/14/bits/stl_vector.h:788:7: note: candidate: 'std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(std::initializer_list<_Tp>) [with _Tp = int; _Alloc = std::allocator<int>]'
  788 |       operator=(initializer_list<value_type> __l)
      |       ^~~~~~~~
/usr/include/c++/14/bits/stl_vector.h:788:46: note:   no known conversion for argument 1 from 'bool' to 'std::initializer_list<int>'
  788 |       operator=(initializer_list<value_type> __l)
      |                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
a.cc:16:6: error: could not convert 'b' from 'std::vector<int>' to 'bool'
   16 |   if(b){
      |      ^
      |      |
      |      std::vector<int>
Language: C++

#include <iostream>
using namespace std;
int main(void){
  int a = b = c = d = 0;
  int p;
  for(int i=0;i<6;i++){
    cin >> p;
    if(p == 1) a++;
    if(p == 2) b++;
    if(p == 3) c++;
    else d++;
  }
  
  if(a == 3 || b == 3 || c == 3 || d == 3) cout << "NO" << endl;
  else cout << "YES" << endl;
  
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:4:11: error: 'b' was not declared in this scope
    4 |   int a = b = c = d = 0;
      |           ^
a.cc:4:15: error: 'c' was not declared in this scope
    4 |   int a = b = c = d = 0;
      |               ^
a.cc:4:19: error: 'd' was not declared in this scope
    4 |   int a = b = c = d = 0;
      |                   ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const int mod = (int)1e9 + 7;
const int INF = (int)100100100;

int main() {
    //ll N; cin >> N;
    //ll N,M; cin >> N >> M;
    //string S; cin >> S;
    //ll H,W; cin >> H >> W;
    vector<ll> a(4)={};
    for(int i=0;i<6;i++){
        int x;
        cin >> x;
        a[x-1]++;
    }
    sort(a.begin(), a.end());
    if(a[0]==1 && a[1]==1 && a[2]==2)cout << "YES";
    else cout << "NO" << endl;
    


}

/*



 */


Compiler output:
a.cc: In function 'int main()':
a.cc:12:20: error: expected ',' or ';' before '=' token
   12 |     vector<ll> a(4)={};
      |                    ^
Language: C++

#include <bits/stdc++.h>
#include<algorithm>
#include<math.h>
#include<string>
#include<iostream>
using namespace std;
 
template <class T> using V = vector<T>;
 
using ll = long long;
using db = double;
using st = string;
using ch = char;
using bl = bool;
using vll = V<ll>;
using vpll =V<pair<ll,ll>>;
using vst = V<st>;
using vdb = V<db>;
using vch = V<ch>;
using vbl = V<bl>;
 
 
#define FOR(i,a,b) for(ll i=(a);i<(b);i++)
#define rFOR(i,a,b) for(ll i=(a);i>(b);i--)
#define oFOR(i,a,b) for(ll i=(a);i<(b);i+=2)
#define bgn begin()
#define en end()
#define SORT(a) sort((a).bgn,(a).en)
#define REV(a) reverse((a).bgn,(a).en)
#define M(a,b) max(a,b)
#define rM(a,b) min(a,b)
#define fi first
#define se second
#define sz size()
#define gcd(a,b) __gcd(a,b)
#define co(a) cout<<a<<endl;
#define ci(a) cin>>a;
 
 
ll sum(ll n) {
  ll m=0;
  FOR(i,0,20){
    m+=n%10;
    n/=10;
    if(n==0){
      break;
    }
  }
  return m;
}
 
 
ll combi(ll n,ll m) {
  ll ans=1;
  rFOR(i,n,n-m){
    ans*=i;
  }
  FOR(i,1,m+1){
    ans/=i;
  }
  return ans;
}
 
 
ll lcm(ll a,ll b){
  ll n;
  n=a/gcd(a,b)*b;
  return n;
}
 
 
/****************************************\
| Thank you for viewing my code:)        |
| Written by RedSpica a.k.a. RanseMirage |
| Twitter:@asakaakasaka                  | 
\****************************************/
 
 
signed main() {
  vll A(6);
  FOR(i,0,6){
    ci(A[i])
  }
  SORT(A);
  ll countA=0;
  ll countB=0;
  FOR(i,0,5){
    if(A[i]==A[i+1]) count++;
  }
  if(count==2) co("YES")
    else co("NO")
    }

Compiler output:
a.cc: In function 'int main()':
a.cc:88:27: error: no post-increment operator for type
   88 |     if(A[i]==A[i+1]) count++;
      |                           ^~
a.cc:90:11: error: invalid operands of types '<unresolved overloaded function type>' and 'int' to binary 'operator=='
   90 |   if(count==2) co("YES")
      |      ~~~~~^~~
Language: Java

import java.io.*;
import static java.lang.Math.*;

public class Mian {
  public static void main(String[] args) {
    new Main().run();
  }

  private void run() {
    try(BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter out = new PrintWriter(System.out)) {

          String[] ln;
          int[] v = new int[5];
          for (int i = 0; i < 3; i++) {
            ln =  in.readLine().split(" ");
            int a = atoi(ln[0]);
            int b = atoi(ln[1]);
            v[a] += 1;
            v[b] += 1;
          }

          int res = 0;
          for (int i : v) {
            res = max(res, i);
          }
          
          String ans = res != 3 ? "YES" : "NO";
          System.out.println(ans);
    }
    catch(IOException e) {
      System.err.println(e);
    }
  }

  int  atoi(String s) { return Integer.parseInt(s); }
  long atol(String s) { return Long.parseLong(s);   }
}

Compiler output:
Main.java:4: error: class Mian is public, should be declared in a file named Mian.java
public class Mian {
       ^
Main.java:6: error: cannot access Main
    new Main().run();
        ^
  bad source file: ./Main.java
    file does not contain class Main
    Please remove or make sure it appears in the correct subdirectory of the sourcepath.
2 errors
Language: C++

#include<iostream>
#include<vector>
#include<algorithm>
#include<math.h>
#include<queue>
#include<stack>
#include<string>

using namespace std;
const int INF = 1<<30;
typedef long long int ll;

int main(){
  map<int, int> count;
  for(int i=0;i<3;i++){
  	int a, b;cin>>a>>b;
    count[a]++;count[b]++;
  }
  bool ans=true;
  for(auto itr=count.begin();itr!=count.end();itr++){
  	if(itr->second>=3)ans=false;
  }
  cout<<(ans?"YES":"NO")<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:3: error: 'map' was not declared in this scope
   14 |   map<int, int> count;
      |   ^~~
a.cc:7:1: note: 'std::map' is defined in header '<map>'; this is probably fixable by adding '#include <map>'
    6 | #include<stack>
  +++ |+#include <map>
    7 | #include<string>
a.cc:14:7: error: expected primary-expression before 'int'
   14 |   map<int, int> count;
      |       ^~~
a.cc:17:10: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   17 |     count[a]++;count[b]++;
      |          ^
a.cc:17:21: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   17 |     count[a]++;count[b]++;
      |                     ^
a.cc:20:22: error: overloaded function with no contextual type information
   20 |   for(auto itr=count.begin();itr!=count.end();itr++){
      |                      ^~~~~
a.cc:20:41: error: overloaded function with no contextual type information
   20 |   for(auto itr=count.begin();itr!=count.end();itr++){
      |                                         ^~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  vector<int>v(6);
  int a=0,b=0,c=0,d=0;
  for(int i=0;i<3;i++){
    for(int j=0;j<2;j++){
      cin>>v[i][j];
      if(v[i][j]=1)a++;
      if(v[i][j]=2)b++;
      if(v[i][j]=3)c++;
      if(v[i][j]=4)d++;
    }
  }
  if(a=1&&b=2&&c=2&&d=1)cout<<"YES"<<endl;
  else cout<<"NO"<<ednl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:16: error: invalid types '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type {aka int}[int]' for array subscript
    8 |       cin>>v[i][j];
      |                ^
a.cc:9:14: error: invalid types '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type {aka int}[int]' for array subscript
    9 |       if(v[i][j]=1)a++;
      |              ^
a.cc:10:14: error: invalid types '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type {aka int}[int]' for array subscript
   10 |       if(v[i][j]=2)b++;
      |              ^
a.cc:11:14: error: invalid types '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type {aka int}[int]' for array subscript
   11 |       if(v[i][j]=3)c++;
      |              ^
a.cc:12:14: error: invalid types '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type {aka int}[int]' for array subscript
   12 |       if(v[i][j]=4)d++;
      |              ^
a.cc:15:19: error: lvalue required as left operand of assignment
   15 |   if(a=1&&b=2&&c=2&&d=1)cout<<"YES"<<endl;
      |                  ~^~~
a.cc:16:20: error: 'ednl' was not declared in this scope
   16 |   else cout<<"NO"<<ednl;
      |                    ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  vector<int>v[i][j];
  int a=0,b=0,c=0,d=0;
  for(int i=0;i<2;i++){
    for(int j=0;j<3;j++){
      cin>>v[i][j];
      if(v[i][j]=1)a++;
      if(v[i][j]=2)b++;
      if(v[i][j]=3)c++;
      if(v[i][j]=4)d++;
    }
  }
  if(a=1&&b=2&&c=2&&d=1)cout<<"YES"<<endl;
  else cout<<"NO"<<ednl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:16: error: 'i' was not declared in this scope
    4 |   vector<int>v[i][j];
      |                ^
a.cc:4:19: error: 'j' was not declared in this scope; did you mean 'jn'?
    4 |   vector<int>v[i][j];
      |                   ^
      |                   jn
a.cc:8:12: error: 'v' was not declared in this scope
    8 |       cin>>v[i][j];
      |            ^
a.cc:15:19: error: lvalue required as left operand of assignment
   15 |   if(a=1&&b=2&&c=2&&d=1)cout<<"YES"<<endl;
      |                  ~^~~
a.cc:16:20: error: 'ednl' was not declared in this scope
   16 |   else cout<<"NO"<<ednl;
      |                    ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  vector<int>v;
  int a=0,b=0,c=0,d=0;
  for(int i=0;i<2;i++){
    for(int j=0;j<3;j++){
      cin>>v[i][j];
      if(v[i][j]=1)a++;
      if(v[i][j]=2)b++;
      if(v[i][j]=3)c++;
      if(v[i][j]=4)d++;
    }
  }
  if(a=1&&b=2&&c=2&&d=1)cout<<"YES"<<endl;
  else cout<<"NO"<<ednl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:16: error: invalid types '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type {aka int}[int]' for array subscript
    8 |       cin>>v[i][j];
      |                ^
a.cc:9:14: error: invalid types '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type {aka int}[int]' for array subscript
    9 |       if(v[i][j]=1)a++;
      |              ^
a.cc:10:14: error: invalid types '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type {aka int}[int]' for array subscript
   10 |       if(v[i][j]=2)b++;
      |              ^
a.cc:11:14: error: invalid types '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type {aka int}[int]' for array subscript
   11 |       if(v[i][j]=3)c++;
      |              ^
a.cc:12:14: error: invalid types '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type {aka int}[int]' for array subscript
   12 |       if(v[i][j]=4)d++;
      |              ^
a.cc:15:19: error: lvalue required as left operand of assignment
   15 |   if(a=1&&b=2&&c=2&&d=1)cout<<"YES"<<endl;
      |                  ~^~~
a.cc:16:20: error: 'ednl' was not declared in this scope
   16 |   else cout<<"NO"<<ednl;
      |                    ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  vector<int>v;
  int a=0,b=0,c=0,d=0;
  for(int i=0;i<3;i++){
    for(int j=0;j<2;j++){
      cin>>v[i][j];
      if(v[i][j]=1)a++;
      if(v[i][j]=2)b++;
      if(v[i][j]=3)c++;
      if(v[i][j]=4)d++;
    }
  }
  if(a=1&&b=2&&c=2&&d=1)cout<<"YES"<<endl;
  else cout<<"NO"<<ednl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:16: error: invalid types '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type {aka int}[int]' for array subscript
    8 |       cin>>v[i][j];
      |                ^
a.cc:9:14: error: invalid types '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type {aka int}[int]' for array subscript
    9 |       if(v[i][j]=1)a++;
      |              ^
a.cc:10:14: error: invalid types '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type {aka int}[int]' for array subscript
   10 |       if(v[i][j]=2)b++;
      |              ^
a.cc:11:14: error: invalid types '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type {aka int}[int]' for array subscript
   11 |       if(v[i][j]=3)c++;
      |              ^
a.cc:12:14: error: invalid types '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type {aka int}[int]' for array subscript
   12 |       if(v[i][j]=4)d++;
      |              ^
a.cc:15:19: error: lvalue required as left operand of assignment
   15 |   if(a=1&&b=2&&c=2&&d=1)cout<<"YES"<<endl;
      |                  ~^~~
a.cc:16:20: error: 'ednl' was not declared in this scope
   16 |   else cout<<"NO"<<ednl;
      |                    ^~~~
Language: C++

#include <bits/stdc++.h>
#define ALL(v) v.begin(), v.end()
#define rep(i, n) for(int i = 0; i < (int)(n); i++)
#define rep1(i, n) for(int i = 1; i <= (int)(n); i++)
using namespace std;
typedef long long ll;
 
int main(){
  
  int k[4]={0,0,0,0};
  rep(i, 6){
    int p;
    cin>>p
    if(p==1){
      k[0]++;}
    if(p==2){
      k[1]++;}
    if(p==3){
      k[2]++;}
    if(p==4){
      k[3]++;}
  }
  
  int p2=0;
  rep(i, 4){
  if(k[i]>=3||k[i]<=0){
    cout<<"NO"<<endl;
    return 0;}
    if(k[i]==2){
      p2++;}
  }
  
  if(p2==2){
    cout<<"YES"<<endl;}
  else{
    cout<<"NO"<<endl;}
  
  
 return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:11: error: expected ';' before 'if'
   13 |     cin>>p
      |           ^
      |           ;
   14 |     if(p==1){
      |     ~~
Language: C++

#include<iostream>
using namespace std ;

int main()
{
  int a[3],b[3] ;
  for(int i=0;i<3;i++) cin>>a[i]>>b[i] ;
  
  int c[6]={a[0],a[1],a[2],b[0],b[1],b[2]} ;
  int count[4]={0} ;
  for(int i=0;i<6;i++){
    switch(c[i]){
      case 1: count[0]++ ;
              break ;
      case 2: count[1]++ ;
              break ;
      case 3: count[2]++ ;
              break  ;
      case 4: count[3]++ ;
              break ;
    }
  }
  
  if(count[0]*count[1]*count[2]*count*[3]==4&&
        count[0]+count[1]+count[2]+count*[3]==6){
    cout<<"YES"<<endl ;
  }else cout<<"NO"<<endl ;
       
  
  return 0 ;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:24:32: error: invalid operands of types 'int' and 'int [4]' to binary 'operator*'
   24 |   if(count[0]*count[1]*count[2]*count*[3]==4&&
      |      ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
      |                       |         |
      |                       int       int [4]
a.cc:24:40: error: expected identifier before numeric constant
   24 |   if(count[0]*count[1]*count[2]*count*[3]==4&&
      |                                        ^
a.cc: In lambda function:
a.cc:24:42: error: expected '{' before '==' token
   24 |   if(count[0]*count[1]*count[2]*count*[3]==4&&
      |                                          ^~
a.cc: In function 'int main()':
a.cc:25:43: error: expected identifier before numeric constant
   25 |         count[0]+count[1]+count[2]+count*[3]==6){
      |                                           ^
a.cc: In lambda function:
a.cc:25:45: error: expected '{' before '==' token
   25 |         count[0]+count[1]+count[2]+count*[3]==6){
      |                                             ^~
a.cc: In function 'int main()':
a.cc:25:41: error: no match for 'operator*' (operand types are 'int [4]' and 'main()::<lambda()>')
   25 |         count[0]+count[1]+count[2]+count*[3]==6){
      |                                    ~~~~~^~~~
      |                                    |     |
      |                                    |     main()::<lambda()>
      |                                    int [4]
Language: C++

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

int main(){
 string n;

  int r,b,c;
  cin>>c;
  r=0;
  b=0;
  vector<int>a(5)
  for(int i=0;i<2*c;i++){
    cin>>r;
    a[r]++;
  }
    for(int i=1;i<5;i++){
b=max(b,a[i])
  }
  if(b!=3){
    cout<<"YES"<<endl;
  }
  else{
    cout<<"NO"<<endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:3: error: expected ',' or ';' before 'for'
   12 |   for(int i=0;i<2*c;i++){
      |   ^~~
a.cc:12:15: error: 'i' was not declared in this scope
   12 |   for(int i=0;i<2*c;i++){
      |               ^
a.cc:17:14: error: expected ';' before '}' token
   17 | b=max(b,a[i])
      |              ^
      |              ;
   18 |   }
      |   ~
Language: C++

#include<bits/stdc++.h>

using namespace std;

int dgr[5];

int main()
{
    for(int i=1;i<=3;i++)
    {
        dgr[a]++;
        dgr[b]++;
    }
    for(int i=1;i<=4;i++)
    {
        if(dgr[i]>2) return cout<<"NO"<<'\n',0;
    }
    cout<<"YES"<<'\n';
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:13: error: 'a' was not declared in this scope
   11 |         dgr[a]++;
      |             ^
a.cc:12:13: error: 'b' was not declared in this scope
   12 |         dgr[b]++;
      |             ^
Language: C++

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

int main() {
  int cnt[5], d[5];
  for(int i = 1; i < 4; i++) {
    int a, b; cin >> a >> b;
    in[a]++, in[b]++;
  }
  for(int i = 1; i <= 4; i++) {
    d[in[i]]++;
  }
  if(d[2] == 2 and d[1] == 2) {
    cout << "YES" << endl;
  } else {
    cout << "NO" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: 'in' was not declared in this scope; did you mean 'i'?
    8 |     in[a]++, in[b]++;
      |     ^~
      |     i
a.cc:11:7: error: 'in' was not declared in this scope; did you mean 'i'?
   11 |     d[in[i]]++;
      |       ^~
      |       i
Language: C++

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

int main(){
  int a=0,b=0,c=0,d=0;
  for(int i=0; i<6; i++){
    int x;
    xin>>x;
    if(x==1)a++;
    if(x==2)b++;
    if(x==3)c++;
    if(x==4)d++;
  }
  if(a<3 && b<3 && c<3 && d<3)cout<<"YES"<<endl;
  else cout<<"NO"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: 'xin' was not declared in this scope; did you mean 'sin'?
    8 |     xin>>x;
      |     ^~~
      |     sin
Language: C++

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

int main(){
  int a=0,b=0,c=0,d=0;
  for(int i=0; i<6; i++){
    int x;
    xin>>x;
    if(x==1)a++;
    if(x==2)b++;
    if(x==3)c++;
    if(x==4)d++;
  }
  if(a<3 && b<3 && c<<3 && d<3)cout<<"YES"<<endl;
  else cout<<"NO"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: 'xin' was not declared in this scope; did you mean 'sin'?
    8 |     xin>>x;
      |     ^~~
      |     sin