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

#include<bits/stdc++.h>
using namespace std;
long long a,k,i,a[4][4],b[4][4],l;
bool ok[100000009];
int main()
{
	for(k=1;k<=3;k++)
	{
		for(i=1;i<=3;i++)
			cin>>a[k][i];
	}
	cin>>n;
	for(k=1;k<=n;k++)
	{
		cin>>l;
		ok[l]=true;
	}
	for(k=1;k<=3;k++)
	{
		for(i=1;i<=3;i++)
		{
			if(ok[a[k][i]]==true)
			{
				b[k][i]=1;
			}
			else b[k][i]=0;
		}
	}
	if(b[1][1]==1 && b[1][2]==1 && b[1][3]==1) 
	{
		cout<<"Yes";
		return 0;
	}
	if(b[1][1]==1 && b[2][1]==1 && b[3][1]==1)
	{
		cout<<"Yes";
		return 0;
	}
	if(b[1][1]==1 && b[2][2]==1 && b[3][3]==1)
	{
		cout<<"Yes";
		return 0;
	}
	if(b[1][3]==1 && b[2][2]==1 && b[3][1]==1)
	{
		cout<<"Yes";
		return 0;
	}
}

Compiler output:
a.cc:3:17: error: conflicting declaration 'long long int a [4][4]'
    3 | long long a,k,i,a[4][4],b[4][4],l;
      |                 ^
a.cc:3:11: note: previous declaration as 'long long int a'
    3 | long long a,k,i,a[4][4],b[4][4],l;
      |           ^
a.cc: In function 'int main()':
a.cc:10:31: error: invalid types 'long long int[long long int]' for array subscript
   10 |                         cin>>a[k][i];
      |                               ^
a.cc:12:14: error: 'n' was not declared in this scope; did you mean 'yn'?
   12 |         cin>>n;
      |              ^
      |              yn
a.cc:22:32: error: invalid types 'long long int[long long int]' for array subscript
   22 |                         if(ok[a[k][i]]==true)
      |                                ^
Language: C

#include<stdio.h>
int main(){
int A[3][A];
int N,x=0,y=0,z=0;
  for(int i=1;i<=3;i++){
     for(int j=1;j<=3;j++){
     scanf("%d",&A[i][j]);
     }
  }
  scanf("%d",&N);
int b[N];
  for(int k=0;k<N;k++){
  scanf("%d",&b[k]);
  }
  for(i=0;i<N;i++){
  if(A[1][1]==b[i]) x=1;
  if(A[2][2]==b[i]) y=1;
  if(A[3][3]==b[i]) z=1;
  }
  if(x==1&&y==1&&z==1){
  printf("Yes");
  }
  else{
  printf("No");
  }
  
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:3:10: error: 'A' undeclared (first use in this function)
    3 | int A[3][A];
      |          ^
main.c:3:10: note: each undeclared identifier is reported only once for each function it appears in
main.c:15:7: error: 'i' undeclared (first use in this function)
   15 |   for(i=0;i<N;i++){
      |       ^
Language: Java

import java.util.*;
public class Main {
  int[][] a=new int[3][3];
	public static void main(String[] args){
      int hantei=0;
		Scanner sc = new Scanner(System.in);
      for(int i=0;i<3;i++){
        for(int k=0;k<3;k++){
		int tugi = sc.nextInt();
          a[i][k]=tugi
        }
      }
      int N=sc.nextInt();
      boolean[][] kekka=new boolean[3][3];
      for(int i=0;i<3;i++){
        for(int k=0;k<3;k++){
		kekka[i][k]=false;
        }
      }
      for(int i=0;i<N;i++){
        int now=sc.nextInt();
        for(int i=0;i<3;i++){
        for(int k=0;k<3;k++){
          if(a[i][k]==now){
            kekka[i][k]=true;
          }
        }
      }
        if(kekka[0][0]==true&&kekka[0][1]==true&&kekka[0][2]==true){
          hantei=1;
          break;
        }
        if(kekka[1][0]==true&&kekka[1][1]==true&&kekka[1][2]==true){
          hantei=1;
          break;
        }
        if(kekka[2][0]==true&&kekka[2][1]==true&&kekka[2][2]==true){
          hantei=1;
          break;
        }
        if(kekka[0][0]==true&&kekka[1][0]==true&&kekka[2][0]==true){
          hantei=1;
          break;
        }
        if(kekka[0][1]==true&&kekka[1][1]==true&&kekka[2][1]==true){
          hantei=1;
          break;
        }
        if(kekka[0][2]==true&&kekka[1][2]==true&&kekka[2][2]==true){
          hantei=1;
          break;
        }
        if(kekka[0][0]==true&&kekka[1][1]==true&&kekka[2][2]==true){
          hantei=1;
          break;
        }
        if(kekka[0][2]==true&&kekka[1][1]==true&&kekka[2][0]==true){
          hantei=1;
          break;
        }
      }
      if(hantei==1){
        System.out.println("Yes");
      }else{
        System.out.println("No");
      }
	}
}

Compiler output:
Main.java:10: error: ';' expected
          a[i][k]=tugi
                      ^
1 error
Language: C++

#include <iostream>
#include <vector>
using namespace std;

int A[3][3];
int N;

int main() {
    for(int i = 0; i < 3; i++) {
        for(int j =0; j< 3; j++) {
            cin >> A[i][j];
        }
    }
    cin >> N;
    for(int i =0; i< N; i++) {
        int a;
        cin >> a;
        for(int i =0; i < 3; i++) {
            for(int j=0;j<3;j++){
                A[i][j] = -1;
            }
        }
    }

    for(int i = 0;i < 3; i++) {
        int counter = 0;
        for(int j = 0; j< 3; j++) {
           if(A[i][j] == -1) {
               counter++;
           } 
        }
        if(counter == 3) {
            cout << "Yes" << endl;
            return 0;
        }
    }


    for(int i = 0;i < 3; i++) {
        int counter = 0;
        for(int j = 0; j< 3; j++) {
           if(A[j][i] == -1) {
               counter++;
           } 
        }
        if(counter == 3) {
            cout << "Yes" << endl;
            return 0;
        }
    }

    int counter = 0;
    int counter2 = 0;
    for(int i =0; i < 3; i++) {
        if(A[i][i] == -1) counter++;
        if(A[2 - i][i] == -1) counter2++;
    }
    if(counter == 3 || counter2 == 3) {
        cout << "Yes" <<endl;
        return 0;
    }

    cout << "No" <<endl;
    return 0;
}       }
        if(counter == 3) {
            cout << "Yes" << endl;
            return 0;
        }
    }

    int counter = 0;
    int counter2 = 0;
    for(int i =0; i < 3; i++) {
        if(A[i][i] == -1) counter++;
        if(A[2 - i][i] == -1) counter2++;
    }
    if(counter == 3 || counter2 == 3) {
        cout << "Yes" <<endl;
        return 0;
    }

    cout << "No" <<endl;
    return 0;
} 

Compiler output:
a.cc:65:9: error: expected declaration before '}' token
   65 | }       }
      |         ^
a.cc:66:9: error: expected unqualified-id before 'if'
   66 |         if(counter == 3) {
      |         ^~
a.cc:70:5: error: expected declaration before '}' token
   70 |     }
      |     ^
a.cc:74:5: error: expected unqualified-id before 'for'
   74 |     for(int i =0; i < 3; i++) {
      |     ^~~
a.cc:74:19: error: 'i' does not name a type
   74 |     for(int i =0; i < 3; i++) {
      |                   ^
a.cc:74:26: error: 'i' does not name a type
   74 |     for(int i =0; i < 3; i++) {
      |                          ^
a.cc:78:5: error: expected unqualified-id before 'if'
   78 |     if(counter == 3 || counter2 == 3) {
      |     ^~
a.cc:83:5: error: 'cout' does not name a type
   83 |     cout << "No" <<endl;
      |     ^~~~
a.cc:84:5: error: expected unqualified-id before 'return'
   84 |     return 0;
      |     ^~~~~~
a.cc:85:1: error: expected declaration before '}' token
   85 | }
      | ^
Language: C++

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

typedef long long ll;
#define fastIO ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL);

const ll MOD = 1e9 + 7 ;
const double PI = 2 * acos(0.0) ;


int main()
{
    ll mat[3][3] ;
    for (int i = 0; i < 3; i++) {
        for (int j = 0; j < 3; j++) {
            cin >> mat[i][j] ;
        }
    }
    ll n, x, flag = 0 ;
    map <ll, ll> mp ;
    cin >> n ;
    for (int i = 0; i < n; i++) {
        cin >> x ;
        mp[x]++ ;
    }
    if (mp[mat[0][0]] > 0) and mp[mat[0][1]] > 0 and mp[mat[0][2]] > 0)  cout << "Yes" ;
    else if (mp[mat[0][0]] > 0 and mp[mat[1][0]] > 0 and mp[mat[2][0]] > 0) cout << "Yes" ;
    else if (mp[mat[0][0]] > 0 and mp[mat[1][1]] > 0 and mp[mat[2][2]] > 0) cout << "Yes" ;
    else if (mp[mat[2][0]] > 0 and mp[mat[2][1]] > 0 and mp[mat[2][2]] > 0) cout << "Yes" ;
    else if (mp[mat[0][2]] > 0 and mp[mat[1][2]] > 0 and mp[mat[2][2]] > 0) cout << "Yes" ;
    else    cout << "No" ;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:26:34: error: expected ';' before '[' token
   26 |     if (mp[mat[0][0]] > 0) and mp[mat[0][1]] > 0 and mp[mat[0][2]] > 0)  cout << "Yes" ;
      |                                  ^
      |                                  ;
a.cc:26:32: error: label 'mp' used but not defined
   26 |     if (mp[mat[0][0]] > 0) and mp[mat[0][1]] > 0 and mp[mat[0][2]] > 0)  cout << "Yes" ;
      |                                ^~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int a[9];
int main()
{
	for(int i=0;i<9;i++)
	{
		cin>>a[i][c];
	}
	int n;
	cin>>n;
	string sm="";
	for(int i=0;i<n;i++)
	{
		int b;
		cin>>b;
		for(int i=0;i<9;i++)
		{
			if(a[i]==b)
				sm="Yes";
		}
	}
	if(sm=="")
	{
		sm="No";
	}
	cout<<sm;
	return 0;
}

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

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

int cnt[3][3];
int cntR[3], cntC[3];

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

    int cell[3][3];

    for(int i = 0; i < 3; i++){
        for(int j = 0; j < 3; j++){
            cin >> cell[i][j];
        }
    }

    int n;  cin >> n;

    set<int> se;

    while(n--){
        int x;  cin >> x;
        se.insert(x);
    }

    for(int i = 0; i < 3; i++) {
        for(int j = 0; j < 3; j++) {
            if(se.count(cell[i][j])){
                cnt[i][j]++;
                cntR[i]++;
                cntC[j]++;

                if(cntR[i] == 3 || cntC[j] == 3){
                    cout << "Yes\n";
                    return 0;
                }
            }
        }
    }

    bool flag = true;
    for(int i = 0; i < 3; i++){
        if(!cnt[i][j]){
            flag = false;
            break;
        }
    }

    if(flag){
        cout << "Yes\n";
        return 0;
    }

    flag = true;

    for(int i = 0; i < 3; i++){
        if(!cnt[3 - i][i]){
            flag = false;
            break;
        }
    }

    if(flag){
        cout << "Yes\n";
        return 0;
    }

    cout << "No\n";

    return 0;
}


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

#include<iostream>
#include<string>
using namespace std;
 
int main(void) {
  vector<int> A[3][3];
  vector<bool> TF[3][3];
  for (int i = 0; i < 3; i++) {
    for (int j = 0; j < 3; j++) {
      cin >> A[i][j];
    }
  }
  
  int N;
  cin >> N;
  
  for (int k = 0; k < N; i++) {
    for (int i = 0; i < 3; i++) {
    	for (int j = 0; j < 3; j++) {
          	TF[i][j] = false;
          	int num;
          	cin >> num;
      		if (A[i][j] == num) TF[i][j] = true;
        }
  }
  
  for (int i = 0; i < 3; i++) {
    int sum = accumulate(TF[i].begin(),TF[i].end(),0);
    if (sum > 0){
      cout << "Yes" << endl;
      return 0;
    }
  }
  for (int j = 0; j < 3; j++) {
    int sum = 0;
    for (int i = 0; i < 3; i++) sum += TF[i][j];
    if (sum > 0){
      cout << "Yes" << endl;
      return 0;
    }
  }
  if (TF[0][0] && TF[1][1] && TF[2][2]) { cout << "Yes" << endl; return 0;}
  if (TF[0][2] && TF[1][1] && TF[2][0]) { cout << "Yes" << endl; return 0;}
  
  cout << "No" << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'vector' was not declared in this scope
    6 |   vector<int> A[3][3];
      |   ^~~~~~
a.cc:2:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    1 | #include<iostream>
  +++ |+#include <vector>
    2 | #include<string>
a.cc:6:10: error: expected primary-expression before 'int'
    6 |   vector<int> A[3][3];
      |          ^~~
a.cc:7:10: error: expected primary-expression before 'bool'
    7 |   vector<bool> TF[3][3];
      |          ^~~~
a.cc:10:14: error: 'A' was not declared in this scope
   10 |       cin >> A[i][j];
      |              ^
a.cc:17:26: error: 'i' was not declared in this scope
   17 |   for (int k = 0; k < N; i++) {
      |                          ^
a.cc:20:17: error: 'TF' was not declared in this scope
   20 |                 TF[i][j] = false;
      |                 ^~
a.cc:23:21: error: 'A' was not declared in this scope
   23 |                 if (A[i][j] == num) TF[i][j] = true;
      |                     ^
a.cc:28:26: error: 'TF' was not declared in this scope
   28 |     int sum = accumulate(TF[i].begin(),TF[i].end(),0);
      |                          ^~
a.cc:28:15: error: 'accumulate' was not declared in this scope
   28 |     int sum = accumulate(TF[i].begin(),TF[i].end(),0);
      |               ^~~~~~~~~~
a.cc:36:40: error: 'TF' was not declared in this scope
   36 |     for (int i = 0; i < 3; i++) sum += TF[i][j];
      |                                        ^~
a.cc:42:7: error: 'TF' was not declared in this scope
   42 |   if (TF[0][0] && TF[1][1] && TF[2][2]) { cout << "Yes" << endl; return 0;}
      |       ^~
a.cc:43:7: error: 'TF' was not declared in this scope
   43 |   if (TF[0][2] && TF[1][1] && TF[2][0]) { cout << "Yes" << endl; return 0;}
      |       ^~
a.cc:47:2: error: expected '}' at end of input
   47 | }
      |  ^
a.cc:5:16: note: to match this '{'
    5 | int main(void) {
      |                ^
Language: Java

import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int[][] a = new int[3][3];
        for (int i = 0; i < 3; i++) {
            for (int j = 0; j < 3; j++) {
                a[i][j] = scanner.nextInt();
            }
        }
        Collection<Collection<Integer>> lines = new ArrayList<>();
        for (int i = 0; i < 3; i++) {
            ArrayList<Integer> row = new ArrayList<>();
            row.add(a[i][0]); row.add(a[i][1]); row.add(a[i][2]);
            lines.add(row);
            ArrayList<Integer> col = new ArrayList<>();
            col.add(a[0][i]); col.add(a[1][i]); col.add(a[2][i]);
            lines.add(col);
        }
        ArrayList<Integer> diag1 = new ArrayList<>();
        diag1.add(a[0][0]); diag1.add(a[1][1]); diag1.add(a[2][2]);
        lines.add(diag1);
        ArrayList<Integer> diag2 = new ArrayList<>();
        diag2.add(a[2][0]); diag2.add(a[1][1]); diag2.add(a[0][2]);
        lines.add(diag2);
        
        boolean[][] b = new boolean[3][3];
        int n = scanner.nextInt();
        for (int i = 0; i < n; i++) {
            int b = scanner.nextInt();
            for (Collection<Integer> line : lines) {
                line.remove(b);
                if(line.isEmpty()){
                    System.out.println("Yes");
                    return;
                }
            }
        }
        System.out.println("No");
    }
}

Compiler output:
Main.java:31: error: variable b is already defined in method main(String[])
            int b = scanner.nextInt();
                ^
1 error
Language: C++

#include <iostream>
#include <algorithm>
#include <iomanip>
#include <string>
#include <vector>
#include <math.h>
#include <queue>
#include <map>
#define ll long long
const int MOD = 1e9+7;
using namespace std;

int main(){
	int n;
	for (int i = 0; i < 3; i++){
		for (int j = 0; j < 3; j++){
			cin >> bingo[i][j];
		}
	}
	cin >> n;
	vector<int> b(n);
	for (int i = 0; i < n; i++){
		cin >> b[i];
		for (int j = 0; j < 3; j++){
			for (int k = 0; k < 3; k++){
				if (b[i] == bingo[j][k]){
					bing[j][k] = true;
				}
			}
		}
	}

	for (int i = 0; i < 3; i++){
		int ana1 = 0, ana2 = 0, ana3 = 0, ana4 = 0;
		for (int j = 0; j < 3; j++){
			if (bing[i][j] == true){
				ana1++;
			}
			if (bing[j][i] == true){
				ana2++;
			}
			if (bing[j][j] == true){
				ana3++;
			}
			if (bing[2-j][2-j] == true){
				ana4++;
			}
		}
		if (ana1 == 3 || ana2 == 3 || ana3 == 3 || ana4 == 3){
			cout << "Yes" << endl;
			return 0;
		}
	}
	cout << "No" << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:32: error: 'bingo' was not declared in this scope
   17 |                         cin >> bingo[i][j];
      |                                ^~~~~
a.cc:26:45: error: 'bingo' was not declared in this scope
   26 |                                 if (b[i] == bingo[j][k]){
      |                                             ^~~~~
a.cc:27:41: error: 'bing' was not declared in this scope
   27 |                                         bing[j][k] = true;
      |                                         ^~~~
a.cc:36:29: error: 'bing' was not declared in this scope
   36 |                         if (bing[i][j] == true){
      |                             ^~~~
a.cc:39:29: error: 'bing' was not declared in this scope
   39 |                         if (bing[j][i] == true){
      |                             ^~~~
a.cc:42:29: error: 'bing' was not declared in this scope
   42 |                         if (bing[j][j] == true){
      |                             ^~~~
a.cc:45:29: error: 'bing' was not declared in this scope
   45 |                         if (bing[2-j][2-j] == true){
      |                             ^~~~
Language: C++

#define _CRT_SECURE_NO_WARNINGS
#include<bits/stdc++.h>
#define fi first
#define se second
#define pb push_back
#define E "\n"

using namespace std;
const long long MOD = (long long)1e9 + 7;

int a[3][3], n, b;
bool vis[3][3];
set<int> st;

int main()
{
    ios::sync_with_stdio(0); cin.tie(0); cout.tie(0);
    for (int i = 0; i < 3; i++)
        for (int j = 0; j < 3; j++)
            cin >> a[i][j];
    cin >> n;
    for (int i = 0; i < n; i++) {
        cin >> b;
        st.insert(b);
    }
    bool ok = false;
    for (int i = 0; i < 3; i++) {
        bool flag = true;
        for (int j = 0; j < 3; j++) {
            if (st.count(a[i][j]) == 0) {
                flag = false;
                break;
            }
        }
        if (flag) {
            ok = true;
            break;
        }
    }
    for (int i = 0; i < 3; i++) {
        bool flag = true;
        for (int j = 0; j < 3; j++) {
            if (st.count(a[j][i]) == 0) {
                flag = false;
                break;
            }
        }
        if (flag) {
            ok = true;
            break;
        }
    }
    if (st.count(a[0][0] && st.count(a[1][1] && st.count(a[2][2])) ok = true;
    if (st.count(a[0][2] && st.count(a[1][1] && st.count(a[2][0])) ok = true;
    if (ok) cout << "Yes" << E;
    else cout << "No" << E;
    //system("pause");
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:53:67: error: expected ')' before 'ok'
   53 |     if (st.count(a[0][0] && st.count(a[1][1] && st.count(a[2][2])) ok = true;
      |                 ~                                                 ^~~
      |                                                                   )
a.cc:53:77: error: expected ')' before ';' token
   53 |     if (st.count(a[0][0] && st.count(a[1][1] && st.count(a[2][2])) ok = true;
      |        ~                                                                    ^
      |                                                                             )
a.cc:54:67: error: expected ')' before 'ok'
   54 |     if (st.count(a[0][2] && st.count(a[1][1] && st.count(a[2][0])) ok = true;
      |                 ~                                                 ^~~
      |                                                                   )
a.cc:54:77: error: expected ')' before ';' token
   54 |     if (st.count(a[0][2] && st.count(a[1][1] && st.count(a[2][0])) ok = true;
      |        ~                                                                    ^
      |                                                                             )
Language: C++

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

int g[3][3],n,x;

int main()
{
	for(int i=0; i<3; i++)
		for(int j=0; j<3; j++)
			cin >> g[i][j];
			
	cin >> n;
	
	for(int k=0; k<n; k++)
	{
		cin >> x;
		for(int i=0;i<3; i++)
			for(int j=0; j<3; j++)
			{
				if(g[i][j] == x)
					g[i][j] = -1;
			}
	}
	
	bool l=false,c=false,d=false;
	
	for(int i=0; i<3; i++)
	{
		for(int j=0; j<3; j++)
		{
			if(g[i][j] == -1)
				l = true;
			else
				l = false;
		}
		
		if(l) break;
	}
	
	for(int i=0; i<3; i++)
	{
		for(int j=0; j<3; j++)
		{
			if(g[j][i] == -1)
				c = true;
			else
				c = false;
		}
		
		if(c) break;
	}
	
	for(int i=0; i<3; i++)
	{
		if(g[i][i] == -1)
			d = true;
		else
			d = false;
	}
	
	if(l or c or d)
		cout << "Yes\n";
	else
		cout << "No\n";
}#include <bits/stdc++.h>
using namespace std;

int g[3][3],n,x;

int main()
{
	for(int i=0; i<3; i++)
		for(int j=0; j<3; j++)
			cin >> g[i][j];
			
	cin >> n;
	
	for(int k=0; k<n; k++)
	{
		cin >> x;
		for(int i=0;i<3; i++)
			for(int j=0; j<3; j++)
			{
				if(g[i][j] == x)
					g[i][j] = -1;
			}
	}
	
	bool l=false,c=false,d=false;
	
	for(int i=0; i<3; i++)
	{
		for(int j=0; j<3; j++)
		{
			if(g[i][j] == -1)
				l = true;
			else
				l = false;
		}
		
		if(l) break;
	}
	
	for(int i=0; i<3; i++)
	{
		for(int j=0; j<3; j++)
		{
			if(g[j][i] == -1)
				c = true;
			else
				c = false;
		}
		
		if(c) break;
	}
	
	for(int i=0; i<3; i++)
	{
		if(g[i][i] == -1)
			d = true;
		else
			d = false;
	}
	
	if(l or c or d)
		cout << "Yes\n";
	else
		cout << "No\n";
}

Compiler output:
a.cc:65:2: error: stray '#' in program
   65 | }#include <bits/stdc++.h>
      |  ^
a.cc:65:3: error: 'include' does not name a type
   65 | }#include <bits/stdc++.h>
      |   ^~~~~~~
a.cc:68:5: error: redefinition of 'int g [3][3]'
   68 | int g[3][3],n,x;
      |     ^
a.cc:4:5: note: 'int g [3][3]' previously declared here
    4 | int g[3][3],n,x;
      |     ^
a.cc:68:13: error: redefinition of 'int n'
   68 | int g[3][3],n,x;
      |             ^
a.cc:4:13: note: 'int n' previously declared here
    4 | int g[3][3],n,x;
      |             ^
a.cc:68:15: error: redefinition of 'int x'
   68 | int g[3][3],n,x;
      |               ^
a.cc:4:15: note: 'int x' previously declared here
    4 | int g[3][3],n,x;
      |               ^
a.cc:70:5: error: redefinition of 'int main()'
   70 | int main()
      |     ^~~~
a.cc:6:5: note: 'int main()' previously defined here
    6 | int main()
      |     ^~~~
Language: C++

#include <iostream>
#include <vector>

int main () {
  std::vector<std::vector<int>> a, vis;
  a.assign (3, std::vector<int> (3, 0));
  vis.assign (3, std::vector<int> (3, 0));
  for (int i = 0; i < 3; ++i)
    for (int j = 0; j < 3; ++j)
      std::cin >> a[i][j];
  int n; std::cin >> n;
  for (int i = 0; i < n; ++i) {
    int x; std::cin >> x;
    for (int j = 0; j < 3; ++j)
      for (int k = 0; k < 3; ++k)
        if (x == a[j][k])
          vis[j][k] = 1;
  }
  bool flag = false;
  for (int i = 0; i < 3; ++i) {
    bool ok_1 = true, ok_2 = true;
    for (int j = 0; j < 3; ++j) {
      if (!vis[i][j]) ok_1 = false;
      if (!vis[j][i]) ok_2 = false;
    }
    if (ok_1 || ok_2) flag = true;l
  }
  bool ok_1 = true, ok_2 = true;
  for (int i = 0; i < 3; ++i) {
    if (!vis[i][i]) ok_1 = false;
    if (!vis[i][2-i]) ok_2 = false;
  }
  if (ok_1 || ok_2) flag = true;
  if (flag)
    std::cout << "Yes\n";
  else
    std::cout << "No\n";
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:26:35: error: 'l' was not declared in this scope
   26 |     if (ok_1 || ok_2) flag = true;l
      |                                   ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main()
{
    int a[3][3];
    bool vst[105];
    memset(vst,false,sizeof(vst));
    for(int i=0;i<3;i++)
    {
        for(int j=0;j<3;j++)
        {
            cin>>a[i][j];
        }
    }
    int n;
    cin>>n;
    while(n--)
    {
        int x;
        cin>>x;
        vst[x]=true;
    }
    bool ta=true;
    bool yb=ta,tc=ta;
    for(int i=0;i<3;i++)
    {
        ta=true;
        for(int j=0;j<3;j++)
        {
            if(vst[a[i][j]])
            {
                ta=false;
                break;
            }
        }
        if(ta)  break;
    }
    if(ta)  cout<<"YES";
    else
    {
        for(int i=0;i<3;i++)
        {
            tb=true;
            for(int j=0;j<3;j++)
            {
                if(vst[a[j][i]])
                {
                    tb=false;
                    break;
                }
            }
            if(tb)  break;
        }
        if(tb)  cout<<"YES";
        else
        {
            if(vst[a[0][0]]&&vst[a[1][1]]&&vst[a[2][2]])
                cout<<"YES";
            else
                cout<<"NO";
        }
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:43:13: error: 'tb' was not declared in this scope; did you mean 'tc'?
   43 |             tb=true;
      |             ^~
      |             tc
a.cc:54:12: error: 'tb' was not declared in this scope; did you mean 'tc'?
   54 |         if(tb)  cout<<"YES";
      |            ^~
      |            tc
Language: C++

#include<cstdio>
#include<algorithm>
#include<set>
using namespace std;
int val[5][5];
bool mark[5][5];
set<int> num;
int main()
{
    for(int i=1;i<=3;i++)
        for(int j=1;j<=3;j++)
            scanf("%d",&val[i][j]);
    int n;
    scanf("%d",&n);
    num.clear();
    while(n--)
    {
        int a;
        scanf("%d",&a);
        num.insert(a);
    }
    memset(mark,0,sizeof(mark));
    for(int i=1;i<=3;i++)
        for(int j=1;j<=3;j++)
            mark[i][j]=(bool)num.count(val[i][j]);
    bool ans=false;
    for(int i=1;i<=3;i++)
    {
        bool row=true;
        for(int j=1;j<=3;j++)
            row&=mark[i][j];
        ans|=row;
        bool col=true;
        for(int j=1;j<=3;j++)
            col&=mark[j][i];
        ans|=col;
    }
    ans|=(mark[1][1]&&mark[2][2]&&mark[3][3]);
    ans|=(mark[1][3]&&mark[2][2]&&mark[3][1]);
    puts(ans?"Yes":"No");
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:22:5: error: 'memset' was not declared in this scope
   22 |     memset(mark,0,sizeof(mark));
      |     ^~~~~~
a.cc:4:1: note: 'memset' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    3 | #include<set>
  +++ |+#include <cstring>
    4 | using namespace std;
Language: Java

import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int[][] a = new int[3][3];
        for (int i = 0; i < 3; i++) {
            for (int j = 0; j < 3; j++) {
                a[i][j] = scanner.nextInt();
            }
        }
        Collection<Collection<Integer>> lines = new ArrayList<>();
        for (int i = 0; i < 3; i++) {
            lines.add(List.of(a[i][0],a[i][1],a[i][2]));
            lines.add(List.of(a[0][i],a[1][i],a[2][i]));
        }
        lines.add(List.of(a[0][0],a[1][1],a[2][2]));
        lines.add(List.of(a[0][2],a[1][1],a[2][0]));


        boolean[][] b = new boolean[3][3];
        int n = scanner.nextInt();
        for (int i = 0; i < n; i++) {
            int b = scanner.nextInt();
            for (Collection<Integer> line : lines) {
                line.remove(b);
                if(line.isEmpty()){
                    System.out.println("Yes");
                    return;
                }
            }
        }
        System.out.println("No");
    }
}

Compiler output:
Main.java:24: error: variable b is already defined in method main(String[])
            int b = scanner.nextInt();
                ^
1 error
Language: C++

#include <iostream>
#include <string>
#include <algorithm>
#include <functional>
#include <vector>
#include <cstring>
#include <iomanip>
#include <numeric>
#include <cmath>
#include <cassert>
using namespace std;
using ll = long long;
const int INF = 1<<30;
const int MOD = (int)1e9 + 7;
const int MAX_N = (int)1e5 + 5;
#define debug(x) cout << #x << ": " << x << endl
template<typename T1, typename T2>
ostream &operator<<(ostream &os, const pair<T1, T2>& p) { os << p.first << " " << p.second; return os; }
template<typename T>
ostream &operator<<(ostream &os, const vector<T> &v) { for(int i = 0; i < (int) v.size(); i++) os << v[i] << (i + 1 != v.size() ? " " : ""); return os; }

void solve()
{
    vector<vector<int>> table(3, vector<int>(3, 0));
    for(int i = 0; i < 3; i++)
    {
        for(int j = 0; j < 3; j++)
        {
            cin >> table[i][j];
        }
    }
    int n; cin >> n;
    vector<vector<int>> used(3, vector<int>(3, 0));
    for(int i = 0; i < n; i++)
    {
        int b; cin >> b;
        for(int j = 0; j < 3; j++)
        {
            for(int k = 0; k < 3; k++)
            {
                if(table[j][k] == b)
                {
                    used[j][k] = 1;
                }
            }
        }
    }
    bool ok = false;
    for(int i = 0; i < 3; i++)
    {
        bool flag = true;
        for(int j = 0; j < 3; j++)
        {
            if(used[i][j] == false) flag = false;
        }
        if(flag) ok = true;
    }
    for(int j = 0; j < 3; j++)
    {
        bool flag = true;
        for(int i = 0; i < 3; i++)
        {
            if(used[i][j] == false) flag = false;
        }
        if(flag) ok = true;
    }
    bool flag = true;
    for(int i = 0; i < 3; i++)
    {
        if(used[i][i] == false) flag = false;
    }
    if(flag) ok = true;
    flag = true;
    int j = 2;
    for(int i = 0; i < 3; i++)
    {
        if(used[i][j] == false) flag = false;
        j--
    }
    if(flag) ok = true;
    cout << (ok ? "Yes" : "No") << endl;
}

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

Compiler output:
a.cc: In function 'void solve()':
a.cc:78:12: error: expected ';' before '}' token
   78 |         j--
      |            ^
      |            ;
   79 |     }
      |     ~
Language: C++

#include<iostream>
#include<queue>
#include<string>
#include<cmath>
#include<cstdio>
#include<cctype>
#include<cstring>
#include<iomanip>
#include<cstdlib>
#include<ctime>
#include<set>
#include<map>
#include<utility>
#include<vector>
#include<stack>
#include<sstream>
#include<algorithm>
using namespace std;
/****************************/
#define ll long long
#define vi vector<int>
#define pii pair<int,int>
#define psvi pair<string,vi>
#define psi pair<string,int>
#define pss pair<string,string>
#define vpii vector<pair<int,int> >
#define qi queue<int>
#define mii map<int,int>
#define msi map<string,int>
#define vs vector<string>
#define vc vector<char>
#define vvi vector<vi>
/****************************/
#define rep(i,n) for(ll i=0;i<(n);i++)
#define rep2(i,n) for(ll i=(n)-1;i>=0;i--)
#define rep3(i,a,n) for(ll i=(a);i<(n);i++)
#define mp make_pair
#define pb push_back
#define st first
#define nd second
#define pi 3.1415926535897932384626433832795
#define zero(n) memset(n,0,sizeof(n));
#define SZ(n) n.size()
#define ss st.st
#define sn st.nd 
/****************************/
int a[3][3];
bool b[3][3];
int main()
{
	rep(i,3)
	{
		rep(j,3)
		{
			cin>>a[i][j];
		}
	}
	int n;
	cin>>n;
	memset(b,false,sizeof(b));
	rep(i,n)
	{
		int a;
		cin>>a;
		rep(j,3)
		{
			rep(k,3)
			{
				if(a[j][k]==a)
				{
					b[j][k]=true;
				}
			}
		}
	}
	rep(i,3)
	{
		bool is=true;
		rep(j,3)
		{
			is=is&&b[i][j];
		}
		if(is)
		{
			cout<<"Yes";
			return 0;
		}
	}
	rep(i,3)
	{
		bool is=true;
		rep(j,3)
		{
			is=is&&b[j][i];
		}
		if(is)
		{
			cout<<"Yes";
			return 0;
		}
	}
	if(1&&b[0][0]&&b[1][1]&&b[2][2]||1&&b[2][0]&&b[1][1]&&b[2][0])
	{
		cout<<"Yes";
		return 0;
	}
	cout<<"No";
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:69:37: error: invalid types 'int[long long int]' for array subscript
   69 |                                 if(a[j][k]==a)
      |                                     ^
Language: C++

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

int main(){
 vector<vector<int>> A = vector<vector<int>> (3,vector<int>(3));
  for(auto &l:A)
    for(auto &a:l)
      cin >> a;
  int q,x;
  cin >> q;
  set<int>B;
  while(q--){
    cin >> x;
    B.insert(x);
  }
  vector<vector<bool>> M = vector<vector<bool>> (3,vector<bool>(3,false));
  for(int i=0;i<3;i++)
    for(int j=0;j<3;j++)
      if(B.size(A[i][j])!=B.end())
        	M[i][j] = 1;
  int vd = 0;
  for(int i=0;i<3;i++){
    int cnt = 0,cnt2=0;
    for(int j=0;j<3;j++)
      cnt+=M[i][j],cnt2+=M[j][i];
    if(cnt==3)
      output = true;
    vd+=M[i][i];
  }
  if(vd==3)
    output=true;
  cout << (output?"Yes\n":"No\n");
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:16: error: no matching function for call to 'std::set<int>::size(__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type&)'
   19 |       if(B.size(A[i][j])!=B.end())
      |          ~~~~~~^~~~~~~~~
In file included from /usr/include/c++/14/set:63,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:158,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_set.h:421:7: note: candidate: 'std::set<_Key, _Compare, _Alloc>::size_type std::set<_Key, _Compare, _Alloc>::size() const [with _Key = int; _Compare = std::less<int>; _Alloc = std::allocator<int>; size_type = long unsigned int]'
  421 |       size() const _GLIBCXX_NOEXCEPT
      |       ^~~~
/usr/include/c++/14/bits/stl_set.h:421:7: note:   candidate expects 0 arguments, 1 provided
a.cc:27:7: error: 'output' was not declared in this scope
   27 |       output = true;
      |       ^~~~~~
a.cc:31:5: error: 'output' was not declared in this scope
   31 |     output=true;
      |     ^~~~~~
a.cc:32:12: error: 'output' was not declared in this scope
   32 |   cout << (output?"Yes\n":"No\n");
      |            ^~~~~~
Language: C++

#include <iostream>
#include<cstdlib>
#include<queue>
#include<set>
#include<vector>
#include<string>
#include<cmath>
#include<algorithm>
#include<stack>
#include<map>
#include<deque>
#include<cstdio>
#include<cstdio>
using namespace std;
#define rep(i,a) for(int i=0;i<a;i++)
#define mp make_pair
#define pb push_back
#define ll __int64
#define __int64 long long
#define P pair<int,int>
#define PP pair<P,int>

int ta[1111];
int t[4][4];
int n;

int main(){
    rep(i,3)rep(j,3)cin>>t[i][j];
    cin>>n;
    rep(i,n){
        int x;
        cin>>x;
        ta[x]=1;
    }
    bool ok1=1,ok2=1;
    rep(i,3){
        ok1=1,ok2=1;
        rep(j,3){
            ok1&=ta[t[i][j]];
            ok2&=ta[t[j][i]];
        }
        if(ok1||ok2){
            cout<<"Yes"<<endl;
            return 0;
        }
    }
    ok1=1,ok2=1;
    rep(i,3){

        ok1&=ta[t[i][i]];
        ok2&=ta[t[2-i][i]];
    }
     if(ok1||ok2){
        cout<<"Yes"<<endl;
        return 0;
    }

    cout<<"No"<<endl;

    return 0;

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

C:\Users\kaout\CLionProjects\untitled6\cmake-build-debug\untitled6.exe
0 0 -2
0 -2 0
-2 0 0
0
No
S =
 *|   0   1   2
_______________
 0|   0   0  -2
 1|   0  -2   0
 2|  -2   0   0


Process finished with exit code $EXITCODE$(_C)


Compiler output:
a.cc:1:3: error: stray '\' in program
    1 | C:\Users\kaout\CLionProjects\untitled6\cmake-build-debug\untitled6.exe
      |   ^
a.cc:1:9: error: stray '\' in program
    1 | C:\Users\kaout\CLionProjects\untitled6\cmake-build-debug\untitled6.exe
      |         ^
a.cc:1:15: error: stray '\' in program
    1 | C:\Users\kaout\CLionProjects\untitled6\cmake-build-debug\untitled6.exe
      |               ^
a.cc:1:29: error: stray '\' in program
    1 | C:\Users\kaout\CLionProjects\untitled6\cmake-build-debug\untitled6.exe
      |                             ^
a.cc:1:39: error: stray '\' in program
    1 | C:\Users\kaout\CLionProjects\untitled6\cmake-build-debug\untitled6.exe
      |                                       ^
a.cc:1:57: error: stray '\' in program
    1 | C:\Users\kaout\CLionProjects\untitled6\cmake-build-debug\untitled6.exe
      |                                                         ^
a.cc:1:2: error: found ':' in nested-name-specifier, expected '::'
    1 | C:\Users\kaout\CLionProjects\untitled6\cmake-build-debug\untitled6.exe
      |  ^
      |  ::
a.cc:1:1: error: 'C' does not name a type
    1 | C:\Users\kaout\CLionProjects\untitled6\cmake-build-debug\untitled6.exe
      | ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define INF 0x3f3f3f3f
typedef long long LL;
const int MAXN = 100000 + 3;
int a[5][5];
int n;
int vis[5][5];


int main() {
    for(int i=0;i<3;i++)
        for(int j=0;j<3;j++)
            cin>>a[i][j];
    cin>>n;
    int flag, x;
    for(int k=0;k<n;k++) {
        cin>>x;
        for(int i=0;i<3;i++)
            for(int j=0;j<3;j++) {
                if(a[i][j] == x) {
                    vis[x][y] = 1;
                }
            }
    }

    for(int i=0;i<3;i++) {
        flag = 1;
        for(int j=0;j<3;j++) {
            if(!vis[i][j])flag = 0;
        }
        if(flag) {
            cout<<"Yes"<<endl;
            return 0;
        }
    }

    for(int i=0;i<3;i++) {
        flag = 1;
        for(int j=0;j<3;j++) {
            if(!vis[j][i])flag = 0;
        }
        if(flag) {
            cout<<"Yes"<<endl;
            return 0;
        }
    }

    if(vis[0][0] && vis[1][1] && vis[2][2]
       || vis[0][2] && vis[1][1] && vis[2][0]) {
        cout<<"Yes"<<endl;
            return 0;
       }
    cout<<"No"<<endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:22:28: error: 'y' was not declared in this scope
   22 |                     vis[x][y] = 1;
      |                            ^
Language: C++

#include <cstdio>
#include <cmath>
#include <iostream>
#include <algorithm>
#include <cstring>
#include <cstdlib>

#include <numeric>

#include <map>

using namespace std;

typedef long long LL;

int a[10][10];

int n, cnt;

int main() {
   for (int i = 1; i <= 3; ++i)
    for (int j = 1; j <= 3; ++j)
      cin >> a[i][j];

   cin >> n;
   for (int k = 1; k <= n; ++k) {
       int x;
       cin >> x;
       for (int i = 1; i <= 3; ++i)
        for (int j = 1; j <= 3; ++j) {
            if (a[i][j] == x) {
                a[i][j] = 0;
            }
        }
       
   }
   bool ok = false;
   if (a[1][1] == 0 && a[2][2] == 0 && a[3][3] == 0) ok = true;
   if (a[1][3] == 0 && a[2][2] == 0 && a[3][1] == 0) ok = true;

   if (a[1][1] == 0 && a[1][2] == 0 && a[1][3] == 0) ok = true;
   if (a[2][1] == 0 && a[2][2] == 0 && a[2][3] == 0) ok = true;
   if (a[3][1] == 0 && a[3][2] == 0 && a[3][3] == 0) ok = true;

   if (a[1][1] == 0 && a[2][1] == 0 && a[3][1] == 0) ok = true;
   if (a[1][2] == 0 && a[2][2] == 0 && a[3][2] == 0) ok = true;
   if (a[1][3] == 0 && a[2][3] == 0 && a[3][3] == 0) ok = true;

   cout << ok ? "Yes" : "No" << endl;
    
}

Compiler output:
a.cc: In function 'int main()':
a.cc:49:30: error: invalid operands of types 'const char [3]' and '<unresolved overloaded function type>' to binary 'operator<<'
   49 |    cout << ok ? "Yes" : "No" << endl;
      |                         ~~~~~^~~~~~~
Language: C++

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

int main(){
	int n, m;
  	cin >> n >> m;
  	vector<P> p(m);
  	rep(i, m) cin >> p[i].first >> p[i].second;
  	
  	rep(x, 1000){
    	int keta = 1;
      	int nx = x/10;
      	vector<int> d(1, x%10);
      	while(nx){
        	keta++;
          	d.push_back(nx%10);
          	nx /=10;
        }
      	if(keta != n) continue;
      	bool ok = true;
      	reverse(d.begin(), d.end());
      	rep(i, m){
        	if(d[i][p[i].first-1] != p[i].second) ok = false;
        }
      	if(ok){
        	cout << x << endl;
          	return 0;
        }
    }
  
  	cout << -1 << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:26:24: error: invalid types '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type {aka int}[int]' for array subscript
   26 |                 if(d[i][p[i].first-1] != p[i].second) ok = false;
      |                        ^
Language: C

#include <stdio.h>
#include <stdlib.h>
#include <math.h>


int n,m;
int s[5];
int c[5];

int main()
{
    scanf("%d%d",&n,&m);
    for(int i=0;i<m;i++)
    scanf("%d%d",&s[i],&c[i]);

    for(int i=1;i<1000;i++)
    {
        if(log10(i)+1!=n) continue;
        char num[5];
        itoa(i,num,10);
        bool flag=true;
        for(int j=0;j<m;j++)
        {
            if(num[s[j]-1]!=c[i])
            {
                flag=false;
                break;
            }
        }
        if(flag)
        {
            printf("%d\n",i);
            return 0;
        }
    }
    printf("-1\n");
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:20:9: error: implicit declaration of function 'itoa' [-Wimplicit-function-declaration]
   20 |         itoa(i,num,10);
      |         ^~~~
main.c:21:9: error: unknown type name 'bool'
   21 |         bool flag=true;
      |         ^~~~
main.c:4:1: note: 'bool' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
    3 | #include <math.h>
  +++ |+#include <stdbool.h>
    4 | 
main.c:21:19: error: 'true' undeclared (first use in this function)
   21 |         bool flag=true;
      |                   ^~~~
main.c:21:19: note: 'true' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
main.c:21:19: note: each undeclared identifier is reported only once for each function it appears in
main.c:26:22: error: 'false' undeclared (first use in this function)
   26 |                 flag=false;
      |                      ^~~~~
main.c:26:22: note: 'false' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
Language: C++

#include <stdio.h>
#include <stdlib.h>
#include <math.h>


int n,m;
int s[5];
int c[5];

int main()
{
    scanf("%d%d",&n,&m);
    for(int i=0;i<m;i++)
    scanf("%d%d",&s[i],&c[i]);

    for(int i=1;i<1000;i++)
    {
        if(log10(i)+1!=n) continue;
        char num[5];
        itoa(i,num,10);
        bool flag=true;
        for(int j=0;j<m;j++)
        {
            if(num[s[j]-1]!=c[i])
            {
                flag=false;
                break;
            }
        }
        if(flag)
        {
            printf("%d\n",i);
            return 0;
        }
    }
    printf("-1\n");
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:9: error: 'itoa' was not declared in this scope
   20 |         itoa(i,num,10);
      |         ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
using ll=long long;
int main() {
  int A;
  cin>>A;
  int B;
  cin>>B;
  vector<ll>vec(B);
  vector<char>veco(B);
  for(ll i=0;i<B;i++){
    cin>>vec.at(i)>>veco.at(i);
  }
  ll c=-1;
  ll d=0;
  if(A=>2){
    d=1;
    for(int i=1;i<A;i++){
      d=d*10;
    }
  } 
  
  if(B==0){
    cout<<d<<endl;
    return 0;
  }
    
  for(int i=d;i<10*d;i++){
    
    string b=to_string(i);
    for(ll j=0;j<B;j++){
      if(b.at(vec.at(j)-1)!=veco.at(j)){
        
        break;
      }
      if(j==B-1){
        cout<<i<<endl;
        return 0;
      }
    }
  }
  cout<<c<<endl;
  return 0;
}
      
    



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

#include <bits/stdc++.h>
using namespace std;
using ll=long long;
int main() {
  int A;
  cin>>A;
  int B;
  cin>>B;
  vector<vector<ll>>vec(B,vector<ll>(2));
  for(ll i=0;i<B;i++){
    cin>>vec.at(i).at(0)>>vec.at(i).at(1);
  }
  ll c=-1;
    
  for(int i=1e(A-1);i<1e(A);i++){
    string b=to_string(i);
    for(ll j=0;j<B;j++){
      if(b.at(vec.at(j).at(0)-1)!=vec.at(j).at(1)){
        break;
      }
      if(j==B-1){
        cout<<i<<endl;
        return 0;
      }
    }
  }
  cout<<c<<endl;
  return 0;
}
      
    



Compiler output:
a.cc:15:13: error: exponent has no digits
   15 |   for(int i=1e(A-1);i<1e(A);i++){
      |             ^~
a.cc:15:23: error: exponent has no digits
   15 |   for(int i=1e(A-1);i<1e(A);i++){
      |                       ^~
Language: C++

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

template<typename T> void drop(const T &x){cout<<x<<'\n';exit(0);}

void solve() {
  int n, m;
  cin >> n >> m;
  vector<int> x(m,-1);
  for(int i=0; i<m; ++i) {
    int s, y;
    cin >> s >> c;
    if(x[s-1] == -1 || x[s-1] == c) {
      x[s-1] = c;
    } else drop(-1);
  }

  if(n != 1 && x[0] == 0) drop(-1);

  for(int i=1; i<n; ++i) {
    if(x[i] == -1) x[i] = 0;
  }
  if(x[0] == -1 && n >= 2) x[0] = 1; 
  else if(x[0] == -1) x[0] = 0;
  
  for(int i=0; i<n; ++i) cout << x[i];
  cout << '\n';
}

signed main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  int T=1;
  //cin >> T;
  while(T--) solve();

  return 0;
}


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

#include <bits/stdc++.h>
#include <atcoder/all>
using namespace std;
using namespace atcoder;
#define rep(i, n) for (int i = 0; i < n; i++)
#define repr(i, n) for (int i = n-1; i >= 0; i--)
#define ALL(x) x.begin(), x.end()
using ll = long long;
using pii = pair<int, int>;
const int mod = 1e9+7;
const int INF = 1e9;
const int MAX = 1e6;
// const int dx[4] = {1, 0, -1, 0}, dy[4] = {0, 1, 0, -1};
// struct edge {int to, cost;};
// vector<edge> graph[MAX];
// bool visited[MAX];
// int dist[MAX];

int main() {
    // input
    int n, m;
    cin >> n >> m;
    set<int> d1, d2, d3;
    bool flag = true;
    rep(i, m) {
        int s, c;
        cin >> s >> c;
        if (n > 1 and s == 1 and c == 0) {
            flag = false;
            break;
        }
        if (s == 1) {
            if (d1.empty()) {
                d1.insert(c);
            } else if (not d1.count(c)) {
                flag = false;
                break;
            }
        } else if (s == 2) {
            if (d2.empty()) {
                d2.insert(c);
            } else if (not d2.count(c)) {
                flag = false;
                break;
            }
        } else if (s == 3) {
            if (d3.empty()) {
                d3.insert(c);
            } else if (not d3.count(c)) {
                flag = false;
                break;
            }
        }
    }
    // solve
    // output
    if (flag) {
        rep(i, n) {
            if (i == 0) {
                if (d1.empty()) cout << 0;
                else cout << *d1.begin();
            }
            else if (i == 1) {
                if (d2.empty()) cout << 0;
                else cout << *d2.begin();
            }
            else if (i == 2) {
                if (d3.empty()) cout << 0;
                else cout << *d3.begin();
            }
        }
        printf("\n");
    }
    else cout << -1 << endl;
}

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

#include<bits/stdc++.h>
#define rep(i,n) for (int i=0; i<n; i++)
#define REP(i,x,n) for (int i=x; i<n; i++)
using namespace std;
using vi = vector<int>;
using vvi = vector<vi>;
using ll = long long;

/*int main(){
  int n, m;
  cin >> n >> m;
  vi vec(n);
  vi num(n);
  rep(i,m){
    int si, ci;
    cin >> si >> ci;
    si -= 1;
    if (vec.at(si) != ci) num.at(si)++;
    vec.at(si) = ci;
  }
  if (num.at(0) != 1 ){
    cout << -1 << endl;
    return 0;
  }
  REP(i,1,n){
    if (num.at(i) > 1){
      cout << -1 << endl;
      return 0;
    }
  }
  rep(i,n){
    cout << vec.at(i);
  }
  cout << endl;
  return 0;
}*/

int main(){
  int n, m;
  cin >> n >> m;
  vector<pair<int, int>> p(m);
  rep(i,m) cin >> p.at(i).first >> p.at(i).seconde;
  rep(i,1000){
    vi d(1, i%10);
    int nx = i / 10;
    while (nx){
      d.push_back(nx%10);
      nx /= 10;
    }
    if ((int)d.size() != n) continue;
    reverse(d.begin(), d.end());
    bool ok = true;
    rep(i,m){
      if (d[p.at(i).first-1] != p.at(i).second) ok = false;
    }
    if (ok){
      cout << i << endl;
      return 0;
    }
  }
  cout << -1 << endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:42:44: error: '__gnu_cxx::__alloc_traits<std::allocator<std::pair<int, int> >, std::pair<int, int> >::value_type' {aka 'struct std::pair<int, int>'} has no member named 'seconde'; did you mean 'second'?
   42 |   rep(i,m) cin >> p.at(i).first >> p.at(i).seconde;
      |                                            ^~~~~~~
      |                                            second