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

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


int main(){
    cin.tie(0);
    ios::sync_with_stdio(false);
    
    int a[3][3],n,b[n];
    cin >> n;
    rep(i,0,3) rep(j,0,3){
        cin >> a[i][j];
    } 
    rep(i,0,n) cin >> b[i];
    
    bool z[3][3]
    rep(i,0,n){
        rep(j,0,3){
            rep(k,0,3){
                if(a[j][k]==b[i]) z[j][k]=true;
            }
        }
    }
    string ans;
    if(a[1][1]==a[1][2]==a[1][3]) ans="Yes";
    else if(a[2][1]==a[2][2]==a[2][3]) ans="Yes";
    else if(a[3][1]==a[3][2]==a[3][3]) ans="Yes";
    else if(a[1][1]==a[2][1]==a[3][1]) ans="Yes";
    else if(a[1][2]==a[2][2]==a[3][2]) ans="Yes";
    else if(a[1][3]==a[2][3]==a[3][3]) ans="Yes";
    else if(a[1][1]==a[2][2]==a[3][3]) ans="Yes";
    else if(a[1][3]==a[2][2]==a[3][1]) ans="Yes";
    else ans = "No";
    cout << ans << "\n";
}


Compiler output:
a.cc: In function 'int main()':
a.cc:2:20: error: expected initializer before 'for'
    2 | #define rep(i,a,b) for(int i=a; i< (int)(b); ++i)
      |                    ^~~
a.cc:18:5: note: in expansion of macro 'rep'
   18 |     rep(i,0,n){
      |     ^~~
a.cc:18:9: error: 'i' was not declared in this scope
   18 |     rep(i,0,n){
      |         ^
a.cc:2:33: note: in definition of macro 'rep'
    2 | #define rep(i,a,b) for(int i=a; i< (int)(b); ++i)
      |                                 ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main(){
vector<vector<int>>data(3,vector<int>3);
int n,i,j,k;
for(i=0;i<3;i++){
    for(j=0;j<3;j++){
        cin>>data[i][j];
    }
}
cin>>n;
vector<int>b(n);
for(i=0;i<n;i++)
cin>>b[i];
for(i=0;i<3;i++){
    for(j=0;j<3;j++){
        for(k=0;k<n;k++){
            if(b[k]==data[i][j])
            data[i][j]=0;
        }
    }
}
if(data[0][0]==0 && data[0][1]==0 && data[0][2]==0 || data[1][0]==0 && data[1][1]==0 && data[1][2]==0 || data[2][0]==0 && data[2][1]==0 && data[2][2]==0 || data[0][0]==0 && data[1][0]==0 && data[2][0]==0 || data[1][0]==0 && data[1][1]==0 && data[1][2]==0 || data[2][0]==0 && data[2][1]==0 && data[2][2]==0 || data[0][0]==0 && data[1][1]==0 && data[2][2]==0 || data[2][0]==0 && data[1][1]==0 && data[0][2]==0)
    cout<<"Yes"<<endl;
    else{
        cout<<"No"<<endl;
    }

}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:38: error: expected primary-expression before numeric constant
    5 | vector<vector<int>>data(3,vector<int>3);
      |                                      ^
Language: C

/*
Anki:未済
作成日:①2020/03/01
*/

#include <stdio.h>

int main()
{
    int a[101][101], n, b[101];
    
    while( scanf( "%d", &a[i][j] ) = EOF );
    scanf( "%d\n", n );
    
    p = n /2;
    if( n % 2 == 0 )  
        printf( "%d", p );
    else
        printf( "%d\n", p + 1 );

    printf( "Yes\n");
    printf( "No\n");
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:12:28: error: 'i' undeclared (first use in this function)
   12 |     while( scanf( "%d", &a[i][j] ) = EOF );
      |                            ^
main.c:12:28: note: each undeclared identifier is reported only once for each function it appears in
main.c:12:31: error: 'j' undeclared (first use in this function)
   12 |     while( scanf( "%d", &a[i][j] ) = EOF );
      |                               ^
main.c:15:5: error: 'p' undeclared (first use in this function)
   15 |     p = n /2;
      |     ^
Language: C++

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

int main()
{
  vector<vector<int>> data(3, vector<int>(3));
  vector<vector<int>> bingo(3, vector<int>(3, false));

  for (int i = 0; i < 3; i++) {
    for (int j = 0; j < 3; j++) {
      cin >> data.at(i).at(j);
    }
  }

  int N;

  cin >> N;

  int b;

  for (int i = 0; i < N; i++) {
    cin >> b;

    for (int i = 0; i < 3; i++) {
      for (int j = 0; j < 3; j++) {
        if (data.at(i).at(j) == b) bingo.at(i).at(j) = true;
      }
    }
  }

  bool ans = false;

  for (int i = 0; i < 3; i++) {
    if ((bingo.at(i).at(0) && bingo.at(i).at(1) && bingo.at(i).at(2)) || (bingo.at(0).at(i) && bingo.at(1).at(i) && bingo.at(2).at(i)) ) ans = true;
  }

  if ((bingo.at(0).at(2) && bingo.at(1).at(1) && bingo.at(2).at(0))) && (bingo.at(0).at(0) && bingo.at(1).at(1)) && bingo.at(2).at(2))) ans = true;

  cout << (ans ? "Yes" : "No") << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:37:73: error: expected identifier before '(' token
   37 |   if ((bingo.at(0).at(2) && bingo.at(1).at(1) && bingo.at(2).at(0))) && (bingo.at(0).at(0) && bingo.at(1).at(1)) && bingo.at(2).at(2))) ans = true;
      |                                                                         ^
Language: C++


#include <bits/stdc++.h>
using namespace std;
int a[3][3];
int main()
{
  int i,j,k;
 
  for(i=0;i<3;i++)
  {
      for(j=0;j<3;j++)
      cin>>a[i][j];
  }
  int q;
  cin>>q;
  while(q--)
  {
      int p;
      cin>>p;
       for(i=0;i<3;i++)
  {
      for(j=0;j<3;j++)
      {
          if(a[i][j]==p)
          a[i][j]=-1;
      }
  }
  }
  if((a[0][0]==-1 && a[1][1]==-1 && a[2][2]==-1 )|| (a[0][2]==-1 && a[1][1]==-1 && a[3][0]==-1))
  cout<<"Yes";return 0;}
  else
  {int f;
      for(i=0;i<3;i++)
      { f=0;
          for(j=0;j<3;j++)
          {
              if(a[i][j]==-1)
              f++;
          }
          if(f==3)
          {
          cout<<"Yes";return 0;}
          
      }
     
      for(i=0;i<3;i++)
      {f=0;
       for(j=0;j<3;j++)
          {
              if(a[j][i]==-1)
              f++;
          }
          if(f==3)
          {
          cout<<"Yes";return 0;}
          
      }
  }
  cout<<"No";
}

Compiler output:
a.cc:31:3: error: expected unqualified-id before 'else'
   31 |   else
      |   ^~~~
a.cc:59:3: error: 'cout' does not name a type
   59 |   cout<<"No";
      |   ^~~~
a.cc:60:1: error: expected declaration before '}' token
   60 | }
      | ^
Language: C++

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

int main() {
	vector<vector<int>> a(3,vector<int>(3,0));
	for(int i = 0;i < 3;i++)
	{
		for(int j = 0;j < 3;j++)
		{
			cin >> a.at(i).at(j);
		}
	}
	int n;
	cin >> n;
	for(int i = 0;i < n;i++)
	{
		int b;
		cin >> b;
		for(int j = 0;j < 3;j++)
		{
			for(int l = 0;l < 3;l++)
			{
				if(b == a.at(i).at(j))
				{
					a.at(i).at(j) = 0;
				}
			}
		}	
	}
	string k = "No";
	for(int i = 0;i < 3;i++)
	{
		if(a.at(i).at(0)==0&&a.at(i).at(1)==0&&a.at(i).at(2)==0)
		{
			k = "Yes";
		}
		else if(a.at(0).at(i)==0&&a.at(1).at(i)==0&&a.at(2).at(i)==0))
		{
		 	k = "Yes";
		}
	}
	if(a.at(0).at(0)==0&&a.at(1).at(1)==0&&a.at(2).at(2)==0))
	{
		k = "Yes";
	}
	if(a.at(2).at(0)==0&&a.at(1).at(1)==0&&a.at(0).at(2)==0))
	{
		k = "Yes";
	}
	cout << k <<endl;
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:37:78: error: expected primary-expression before ')' token
   37 |                 else if(a.at(0).at(i)==0&&a.at(1).at(i)==0&&a.at(2).at(i)==0))
      |                                                                              ^
a.cc:42:65: error: expected primary-expression before ')' token
   42 |         if(a.at(0).at(0)==0&&a.at(1).at(1)==0&&a.at(2).at(2)==0))
      |                                                                 ^
a.cc:46:65: error: expected primary-expression before ')' token
   46 |         if(a.at(2).at(0)==0&&a.at(1).at(1)==0&&a.at(0).at(2)==0))
      |                                                                 ^
Language: C++

#include<iostream>
using namespace std;

int main(){
  int A [3][3];
  for(int i=0;i<3;i++){
    for(int r=0;r<3;r++){
      cin >> A[i][r];
    }
  }
  int N;
  cin >> N;
  int B[N];
  for(int i=0;i<N;i++)cin >> B[i];
  for(int i=0;i<2;i++){
    for(int r=0;r<2;r++){
      for(int t=0;t<N;t++){
        if(A[i][r] == B[t])A[i][r]=0;
      }
    }
  }
  int a[3]=0;
  int b[3]=0;
  int c,d;
 
  c = A[0][0]+A[1][1]+A[2][2];
  d = A[0][2]+A[1][1]+A[2][0];
  for(int i=0;i<3;i++){
    for(int r=0;r<3;r++){
      a[i] += A[i][r];
      b[i] += A[r][i];
    }
  }
  int s=0;
  for(int i=0;i<3;i++){
    if(a[i]==0)s=1;
    if(b[i]==0)s=1;
  }
  if(c==0 || d==0)s==1;
  if(s==1)cout << "Yes" << endl;
  if(s==0)cout << "No" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:22:12: error: array must be initialized with a brace-enclosed initializer
   22 |   int a[3]=0;
      |            ^
a.cc:23:12: error: array must be initialized with a brace-enclosed initializer
   23 |   int b[3]=0;
      |            ^
Language: C++

#include<iostream>
#include<string>
#include<cstdio>
#include<algorithm>
#include<cstdlib>
#include<cmath>
#include<vector>
#include<utility>
#include<queue>
#include<stack>
#include<set>
#include<map>
#include<unordered_set>
#include<unordered_map>
#include<bitset>
using namespace std;
#define INF 1000000007
#define LINF 100000000000000007
#define MOD 1000000007
#define int long long
#define rep(i,n) for(int i=0;i<n;i++)
#define repb(i, n) for (int i = n - 1; i >= 0; i--)
//#define MODE 1
#ifdef MODE
#define DEB(X) cout<< #X <<": "<<X<<" ";
#define ARDEB(i,X) cout<< #X <<"["<<i<<"]: "<<X[i]<<" ";
#define END cout<<endl;
#else
#define DEB(X) {}
#define ARDEB(i,X) {}
#define END {}
#endif
//typedef long long int ll;
typedef pair<int,int> P;
struct edge{int to,cost;};
int ceil2(int a,int b){if(a%b){return a/b+1;}else{return a/b;}}
int n,a[111][111],b[111];
bool check[111111];
signed main(){
	
	
	rep(i,3)rep(j,3)cin>>a[i][j];
	cin>>n;
	rep(i,n)cin>>b[i];
	
	rep(i,n){
	    check[b[i]]=1;
	}
	bool af=false;
	rep(i,3){
	    int f=1;
	    rep(j,3){
	        if(!check[a[i][j]])f=0;
	    }
	    if(f)af=true;
	}
	rep(i,3){
	    int f=1;
	    rep(j,3){
	        if(!check[a[j][i]])f=0;
	    }
	    if(f)af=true;
	}
	if(check[a[0][0]]&&check[a[1][1]]&&check[a[2][2]])af=true;
	if(checka[[2][0]]&&check[a[1][1]]&&check[a[0][2]])af=true;
	if(af)cout<<"Yes"<<endl;
	else cout<<"No"<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:65:12: error: 'checka' was not declared in this scope; did you mean 'check'?
   65 |         if(checka[[2][0]]&&check[a[1][1]]&&check[a[0][2]])af=true;
      |            ^~~~~~
      |            check
a.cc:65:18: error: two consecutive '[' shall only introduce an attribute before '[' token
   65 |         if(checka[[2][0]]&&check[a[1][1]]&&check[a[0][2]])af=true;
      |                  ^
a.cc:65:18: error: expected ')' before '[' token
   65 |         if(checka[[2][0]]&&check[a[1][1]]&&check[a[0][2]])af=true;
      |           ~      ^
      |                  )
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int n;
  vector<vector<int>> unko(3,vector<int>(3));
  for(int i=0;i<3;i++)
    for(int j=0;j<3;j++)
      cin>>unko.at(i).at(j);
  cin>>n;
  vector<int> b(n);
  for(int i=0;i<n;i++)
    cin>>b[i];
  for(int i=0;i<3;i++)
    for(int j=0;j<3;j++)
      for(int k=0;k<n;k++){
        if(b[k]==unko[i][j])
          unko[i][j]=-1;
      }
  if(unko[0]=={-1,-1,-1}||unko[1]=={-1,-1,-1}||unko[2]=={-1,-1,-1}||(unko[0][0]==-1&&unko[1][0]==-1&&unko[2][0]==-1)||(unko[0][1]==-1&&unko[1][1]==-1&&unko[2][1]==-1)||(unko[0][2]==-1&&unko[1][2]==-1&&unko[2][2]==-1)||(unko[0][0]==-1&&unko[1][1]==-1&&unko[2][2]==-1)||(unko[0][2]==-1&&unko[1][1]==-1&&unko[2][0]==-1))
    cout<<"Yes"<<endl;
  else
    cout<<"No"<<endl;
}
  


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

#include<iostream>
using namespace std;

int main(){
  int A [3][3];
  for(int i=0;i<3;i++){
    for(int r=0;r<3;r++){
      cin >> A[i][r];
    }
  }
  int N;
  cin >> N;
  int B[N];
  for(int i=0;i<N;i++)cin >> B[i];
  for(int i=0;i<2;i++){
    for(int r=0;r<2;r++){
      for(int t=0;t<N;t++){
        if(A[i][r] == B[t])A[i][r]=0;
      }
    }
  }
  int a[3]=0,b[3]=0,c=0,d=0;
 
  c = A[0][0]+A[1][1]+A[2][2];
  d = A[0][2]+A[1][1]+A[2][0];
  for(int i=0;i<3;i++){
    for(int r=0;r<3;r++){
      a[i] += A[i][r];
      b[i] += A[r][i];
    }
  }
  int s=0;
  for(int i=0;i<3;i++){
    if(a[i]==0)s=1;
    if(b[i]==0)s=1;
  }
  if(c==0 || d==0)s==1;
  if(s==1)cout << "Yes" << endl;
  if(s==0)cout << "No" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:22:12: error: array must be initialized with a brace-enclosed initializer
   22 |   int a[3]=0,b[3]=0,c=0,d=0;
      |            ^
a.cc:22:19: error: array must be initialized with a brace-enclosed initializer
   22 |   int a[3]=0,b[3]=0,c=0,d=0;
      |                   ^
Language: C++

#include<iostream>
#include<utility>
#include<vector>
typedef std::pair<bool, int> P;
std::vector<int>A;
int N;
int main(){
    bool flag=false;
    //bool rsult;
    for(int i=0; i<9; i++){
        int tmp_a;
        std::cin >> tmp_a;
        A.push_back(tmp_a);
    }
    std::cin >> N;
    for(int i=0; i<N; i++){
        int tmp_b;
        std::cin>>tmp_b;
        auto rsult = std::find(A.begin(), A.end(), tmp_b);
        if(rsult!=A.end()){
            *rsult = 0;
        }
    }
    for(int i=0; i<9; i+=3){
        int a=0+i, b=1+i, c=2+i, a_2 = i/3, b_2 = i/3+3, c_2 = i/3+6;
        if(!(A[0] || A[4] || A[8]) || !(A[2] || A[4] || A[6])){
            flag = true;
            break;
        }
        if(!(A[a] || A[b] || A[c]) || !(A[a_2] || A[b_2] || A[c_2])){
            flag = true;
            break;
        }
    }
    printf("%s\n", (flag)?"Yes":"No");
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:31: error: no matching function for call to 'find(std::vector<int>::iterator, std::vector<int>::iterator, int&)'
   19 |         auto rsult = std::find(A.begin(), A.end(), tmp_b);
      |                      ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/bits/locale_facets.h:48,
                 from /usr/include/c++/14/bits/basic_ios.h:37,
                 from /usr/include/c++/14/ios:46,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/streambuf_iterator.h:435:5: note: candidate: 'template<class _CharT2> typename __gnu_cxx::__enable_if<std::__is_char<_CharT2>::__value, std::istreambuf_iterator<_CharT> >::__type std::find(istreambuf_iterator<_CharT>, istreambuf_iterator<_CharT>, const _CharT2&)'
  435 |     find(istreambuf_iterator<_CharT> __first,
      |     ^~~~
/usr/include/c++/14/bits/streambuf_iterator.h:435:5: note:   template argument deduction/substitution failed:
a.cc:19:31: note:   '__gnu_cxx::__normal_iterator<int*, std::vector<int> >' is not derived from 'std::istreambuf_iterator<_CharT>'
   19 |         auto rsult = std::find(A.begin(), A.end(), tmp_b);
      |                      ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main(){
vector<vector<int>>data(3,vector<int>3);
int n,i,j,k;
for(i=0;i<3;i++){
    for(j=0;i<3;j++){
        cin>>data[i][j];
    }
}
cin>>n;
vector<int>b(n);
for(i=0;i<n;i++)
cin>>b[i];
for(i=0;i<3;i++){
    for(j=0;j<3;j++){
        for(k=0;k<n;k++){
            if(b[k]==data[i][j])
            data[i][j]=0;
        }
    }
}
if(data[0][0]==0 && data[0][1]==0 && data[0][2]==0 || data[1][0]==0 && data[1][1]==0 && data[1][2]==0 || data[2][0]==0 && data[2][1]==0 && data[2][2]==0 || data[0][0]==0 && data[1][0]==0 && data[2][0]==0 || data[1][0]==0 && data[1][1]==0 && data[1][2]==0 || data[2][0]==0 && data[2][1]==0 && data[2][2]==0 || data[0][0]==0 && data[1][1]==0 && data[2][2]==0 || data[2][0]==0 && data[1][1]==0 && data[0][2]==0)
    cout<<"Yes"<<endl;
    else{
        cout<<"No"<<endl;
    }

}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:38: error: expected primary-expression before numeric constant
    5 | vector<vector<int>>data(3,vector<int>3);
      |                                      ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int a1[9],a2[9],a3[9],a4[9],a5[9],a6[9],a7[9],a8[9],a[3][3],s,cnt=0;
int ws()
int main(){
  for(int i=0;i<=2;i++){
    for(int j=0;j<=2;j++)cin>>a[i][j];
  }
  int n;
  cin>>n;
  int s[n];
  for(int i=0;i<n;i++)cin>>s[i];
  for(int i=0;i<=2;i++){
    for(int j=0;j<=2;j++){
      cnt=0;
      s=a[i][j];
      while(s>0){
        ai[cnt]=s%10;
        s=s/10;
        cnt++;
      }
    }
  }
  for(int i=0;i<=2;i++){
    for(int j=0;j<=2;j++){
      s=a[j][i];
      cnt=0;
      while(s>0){
        a(i+3)[cnt]=s%10;
        s=s/10;
        cnt++;
      }
    }
  }
  int g[n*3];
  for(int i=0;i<=2;i++){
    s=a[i][i];
    cnt=0;
    while(s>0){
        a8[cnt]=s%10;
        s=s/10;
        cnt++;
      }
  }
  for(int i=0;i<=2;i++){
    s=a[i][2-i];
    cnt=0;
    while(s>0){
        a9[cnt]=s%10;
        s=s/10;
        cnt++;
      }
  }
  for(int i=0;i<n;i++){
    cnt=0;
    while(s>0){
      s[cnt]=s%10;
      s=s/10;
      cnt++;
    }
  }
  return 0;
}

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

#include<iostream>
using namespace std;
int hash[101];
int main()
{
  int arr[3][3]={0};
  for(int i=0;i<3;i++)
    for(int j=0;j<3;++j)
      cin>>arr[i][j];
  int n;cin>>n;
  int b;
  	for(int i=0;i<n;i++)
  	{
    	cin>>b;
      	for(int i=0;i<3;i++)
          for(int j=0;j<3;j++)
            if(b==arr[i][j])
              arr[i][j]=0;
  	}
  int cnt=0,cn=0,rn=0;
  for(int i=0;i<3;i++)
  if(arr[i][j]==0)
    cnt++;
  for(int i=0;i<3;i++)
  {	cn=0,rn=0;
    for(int j=0;j<3;++j)
    {
      if(arr[i][j]==0)
        rn++;
      if(arr[j][i]==0)
        cn++;
    }
    if(cn==3 || rn==3)
      break;
  }
  if(cn==3 || rn==3 || cnt==3)
    cout<<"Yes";
  else
    cout<<"No";
        
}

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

#include <iostream>
using namespace std;
int bingo[30][30];
bool bbingo[3][3];
int number[100];
int main(){
    int total;
    for(int i=0;i<3;i++){
        for(int j=0;j<3;j++){
            cin >> bingo[i][j];
            bbingo[i][j] = false;
        }
    }
    cin >> total;
    for(int a = 0;a < total;.a++){
        cin >> number[a];
    }
    for(int i=0;i<3;i++){
        for(int j=0;j<3;j++){
            for(int a = 0;a < total;a++){
                if(bingo[i][j] == number[a]){
                    bbingo[i][j] = true;
                }
            }
        }
    }
    if(1==1){
        for(int i=0;i<3;i++){
            if(bbingo[i][1]==bbingo[i][2] && bbingo[i][1]==bbingo[i][3] && bbingo[i][1]==true){
                cout << "Yes" << endl;
                return 0;
            }
        }
    }
    else if(1==1){
        for(int j=0;j<3;j++){
            if(bbingo[1][j]==bbingo[2][j] && bbingo[1][j]==bbingo[3][j] && bbingo[1][j]==true){
                cout << "Yes" << endl;
                return 0;
            }   
        }
    }
    else if (bbingo[1][1]==bbingo[2][2] && bbingo[1][1]==bbingo[3][3] && bbingo[1][1]==true){
        cout << "Yes" << endl;
        return 0;
    }
    else if(bbingo[1][3]==bbingo[2][2] && bbingo[1][3]==bbingo[3][1] && bbingo[1][3]==true){
        cout << "Yes" << endl;
        return 0;
    }
    else {
        cout << "No" << endl;
        return 0;
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:29: error: expected primary-expression before '.' token
   15 |     for(int a = 0;a < total;.a++){
      |                             ^
Language: C++

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

int main() {
  
  // 3*3配列Aijの定義
  vector<vector<int>> A(3, vector<int>(3));
 
  for (int i = 0; i < 3; i++) {
    for (int j = 0; j < 3; j++) {
      cin >> A.at(i).at(j);
    }
  }
  
  // 配列bjの定義
  int N;
  cin >> N;
  
  vector<int> b(N);
  
  for (int i = 0; i < N; i++) {
    cin　>> b.at(i);
  }
  
  
  for (int i = 0; i < 3; i++) {
    for (int j = 0; j < 3; j++) {
      for (int k = 0; k < N; k++) {
        if (A.at(i).at(j) == b.at(k)) {
          A.at(i).at(j) = 0;
        }
      }
    }
  }
  
  int M = 0;
  
  for (int i = 0; i < 3; i++) {
    if (A.at(i).at(0) == A.at(i).at(0) && A.at(i).at(0) == A.at(i).at(2)) {
      M++;
    }
  }
  
  for (int i = 0; i < 3; i++) {
    if (A.at(0).at(i) == A.at(1).at(i) && A.at(0).at(i) == A.at(2).at(i)) {
      M++;
    }
  }
  
  if (A.at(0).at(0) == A.at(1).at(1) && A.at(1).at(1) == A.at(2).at(2)) {
    M++;
  }
  
  if (A.at(0).at(2) == A.at(1).at(1) && A.at(1).at(1) == A.at(2).at(0)) {
    M++;
  }
  
  
  if (M == 0) {
    cout << "No" << endl;
  } else {
    cout << "Yes" << endl;
  }
}
  


Compiler output:
a.cc:22:5: error: extended character 　 is not valid in an identifier
   22 |     cin　>> b.at(i);
      |     ^
a.cc: In function 'int main()':
a.cc:22:5: error: 'cin\U00003000' was not declared in this scope
   22 |     cin　>> b.at(i);
      |     ^~~~~
Language: C++

#include <bits/stdc++.h>

#define ll long long
using namespace std;
 
int main()
{
 int n,k; 
 int ans=0;
 int B[k];
 int bingo[2][2];

 for (size_t i = 0; i < 2; i++)
 {
    for (size_t j = 0; j < 2; j++)
    {
       cin>>bingo[i][j];
    }
  }
   cin>>n;
 for (size_t k = 0; k < n; k++)
 {
   cin>>B[k];
 }
  
  if (bingo[2][2]==B[k])
  {
    ans=ans+9;
  }
  
  if(ans>=27){cout<<"Yes";}
  else{cout"No";}
  
  }


Compiler output:
a.cc: In function 'int main()':
a.cc:32:12: error: expected ';' before string constant
   32 |   else{cout"No";}
      |            ^~~~
      |            ;
Language: C++

#include <iostream>
using namespace std;

int main()
{
	int a[4][4],n,i,j,c[4][4];
	
	for(i=1;i<=3;i++)
	   for(j=1;j<=3;j++)
	      scanf("%d",&a[i][j]);
	      
	for(i=1;i<=3;i++)
	   for(j=1;j<=3;j++)
	      c[i][j]=0;
	
	scanf("%d",&n);
	
	int t;
		
	for(i=1;i<=n;i++)
	{
	   scanf("%d",&t);
	   for(i=1;i<=3;i++)
	      for(j=1;j<=3;j++)
	         if(a[i][j]==t)
	           c[i][j]=1;
	}
	
	if(a[1][1]==1&&a[1][2]==1&&a[1][3]==1){
	  cout<<"Yes";
	  return 0;	
	}
	
	if(a[2][1]==1&&a[2][2]==1&&a[2][3]==1){
	  cout<<"Yes";
	  return 0;
	}
	
	if(a[3][1]==1&&a[3][2]==1&&a[3][3]==1){
	  cout<<"Yes";
	  return 0;	
	}
	
	if(a[1][1]==1&&a[2][1]==1&&a[3][1]==1){
	  cout<<"Yes";
	  return 0;	
	}
	
	if(a[1][2]==1&&a[2][2]==1&&a[3][2]==1){
	  cout<<"Yes";
	  return 0;
	}
	
	if(a[1][3]==1&&a[2][3]==1&&a[3][3]==1){
	  cout<<"Yes";
	  return 0;	
	}
	
	if(a[1][1]==1&&a[2][2]==1&&a[3][3]==1){
	  cout<<"Yes";
	  return 0;
	}
	
	if(a[1][3]==1&&a[2][2]==1&&a[3][1]==1){
	  cout<<"Yes";
	  return 0;	
	}
	
	cout<<"No";
	
	return 0;
	
}#include <iostream>
using namespace std;

int main()
{
	int a[4][4],n,i,j,c[4][4];
	
	for(i=1;i<=3;i++)
	   for(j=1;j<=3;j++)
	      scanf("%d",&a[i][j]);
	      
	for(i=1;i<=3;i++)
	   for(j=1;j<=3;j++)
	      c[i][j]=0;
	
	scanf("%d",&n);
	
	int t;
		
	for(i=1;i<=n;i++)
	{
	   scanf("%d",&t);
	   for(i=1;i<=3;i++)
	      for(j=1;j<=3;j++)
	         if(a[i][j]==t)
	           c[i][j]=1;
	}
	
	if(a[1][1]==1&&a[1][2]==1&&a[1][3]==1){
	  cout<<"Yes";
	  return 0;	
	}
	
	if(a[2][1]==1&&a[2][2]==1&&a[2][3]==1){
	  cout<<"Yes";
	  return 0;
	}
	
	if(a[3][1]==1&&a[3][2]==1&&a[3][3]==1){
	  cout<<"Yes";
	  return 0;	
	}
	
	if(a[1][1]==1&&a[2][1]==1&&a[3][1]==1){
	  cout<<"Yes";
	  return 0;	
	}
	
	if(a[1][2]==1&&a[2][2]==1&&a[3][2]==1){
	  cout<<"Yes";
	  return 0;
	}
	
	if(a[1][3]==1&&a[2][3]==1&&a[3][3]==1){
	  cout<<"Yes";
	  return 0;	
	}
	
	if(a[1][1]==1&&a[2][2]==1&&a[3][3]==1){
	  cout<<"Yes";
	  return 0;
	}
	
	if(a[1][3]==1&&a[2][2]==1&&a[3][1]==1){
	  cout<<"Yes";
	  return 0;	
	}
	
	cout<<"No";
	
	return 0;
	
}

Compiler output:
a.cc:73:2: error: stray '#' in program
   73 | }#include <iostream>
      |  ^
a.cc:73:3: error: 'include' does not name a type
   73 | }#include <iostream>
      |   ^~~~~~~
a.cc:76:5: error: redefinition of 'int main()'
   76 | int main()
      |     ^~~~
a.cc:4:5: note: 'int main()' previously defined here
    4 | int main()
      |     ^~~~
Language: C++

#include<utility>
#include<tuple>
#include<string>
#include<vector>
#include<numeric>
#include<algorithm>
#include<queue>
#include<deque>
#include<bitset>
#include<cmath>
#include<map>
#include<iomanip>
using namespace std;
using ll = long long int;
const ll mod = 1e9 + 7;
#define rep(i, a, b) for(ll i = a; i < b; i++)

int main() {
	
	vector<int> a(9);
	rep(i, 0, 9) cin >> a[i];

	ll n;
	cin >> n;

	vector<int> b(n);
	vector<int> c(101, 0);
	rep(i, 0, n) {
		cin >> b[i];
		c[b[i]] = 1;
	}
	
	vector<int> d(9, 0);
	rep(i, 0, 9) {
		if (c[a[i]] == 1) {
			d[i] = 1;
			cout << a[i] << endl;
		}
	}

	string s = "Yes";
	if (d[0] == 1 && d[4] == 1 && d[8] == 1) {
		cout << s << endl;
		return 0;
	}
	if (d[2] == 1 && d[4] == 1 && d[6] == 1) {
		cout << s << endl;
		return 0;
	}
	rep(i, 0, 3) {
		if (d[i] == 1 && d[i + 1] == 1 && d[i + 2] == 1) {
			cout << s << endl;
			return 0;
		}
		if (d[i] == 1 && d[i + 3] == 1 && d[i + 6] == 1) {
			cout << s << endl;
			return 0;
		}
	}

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

Compiler output:
a.cc: In function 'int main()':
a.cc:21:22: error: 'cin' was not declared in this scope
   21 |         rep(i, 0, 9) cin >> a[i];
      |                      ^~~
a.cc:13:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
   12 | #include<iomanip>
  +++ |+#include <iostream>
   13 | using namespace std;
a.cc:24:9: error: 'cin' was not declared in this scope
   24 |         cin >> n;
      |         ^~~
a.cc:24:9: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:37:25: error: 'cout' was not declared in this scope
   37 |                         cout << a[i] << endl;
      |                         ^~~~
a.cc:37:25: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:43:17: error: 'cout' was not declared in this scope
   43 |                 cout << s << endl;
      |                 ^~~~
a.cc:43:17: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:47:17: error: 'cout' was not declared in this scope
   47 |                 cout << s << endl;
      |                 ^~~~
a.cc:47:17: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:52:25: error: 'cout' was not declared in this scope
   52 |                         cout << s << endl;
      |                         ^~~~
a.cc:52:25: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:56:25: error: 'cout' was not declared in this scope
   56 |                         cout << s << endl;
      |                         ^~~~
a.cc:56:25: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:61:9: error: 'cout' was not declared in this scope
   61 |         cout << "No" << endl;
      |         ^~~~
a.cc:61:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

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

int main(){
  int N,count=0;
  bool ans=0;
  vector<vector<int>> bingo(3, vector<int>(3) );
  vector<int> tama(110);
  
  for(int i=0;i<3;i++){
    for(int j=0;j<3;j++){
      cin>>bingo.at(i).at(j);
    }
  }
  
  cin>>N;
  for(int i=0;i<N;i++){
    cin>>tama.at(i);
  }
  
  //横判定
  for(int i=0;i<3;i++){
    for(int j=0;j<3;j++){
      for(int k=0;k<N;k++){
        if(bingo.at(i).at(j)==tama.at(k) ){
          count++;
        }
      }
      if(count==2){
        ans=1;
        break;
      }
    }
  }
 
  //縦判定
  for(int i=0;i<3;i++){
    for(int j=0;j<3;j++){
      for(int k=0;k<N;k++){
        if(bingo.at(j).at(i)==tama.at(k) ){
          count++;
        }
      }
      if(count==2){
        ans=1;
        break;
      }
    }
  }
  
  //左上右下の斜め判定
  for(int i=0;i<3;i++){
    for(int k=0;k<N;k++){
      if(bingo.at(i).at(i)==tama.at(k) ){
        count++;
      }
    }
    if(count==2){ 
      ans=1;
      break;
    }
  }
  
  //右上左下斜め判定
  for(int k=0;k<3;k++){
    if(bingo.at(1).at(3)==tama.at(k)
    && bingo.at(2).at(2)==tama.at(k)
    && bingo.at(3).at(1)==tama.at(k){
      ans=1;
    }
  }
  
  if(ans){
    cout<<"Yes"<<endl;
  }else{
    cout<<"No"<<endl;
  }
                               
}


Compiler output:
a.cc: In function 'int main()':
a.cc:68:37: error: expected ')' before '{' token
   68 |     && bingo.at(3).at(1)==tama.at(k){
      |                                     ^
      |                                     )
a.cc:66:7: note: to match this '('
   66 |     if(bingo.at(1).at(3)==tama.at(k)
      |       ^
a.cc:71:3: error: expected primary-expression before '}' token
   71 |   }
      |   ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  // int型の2次元配列(3×4要素の)の宣言
  vector<vector<int>> data(3, vector<int>(3));
 
  // 入力 (2重ループを用いる)
  for (int i = 0; i < 3; i++) {
    for (int j = 0; j < 3; j++) {
      cin >> data.at(i).at(j);
    }
  }
  int N;
  cin >> N;

  int b;
  for(int i = 0; i < N; i++){
    cin >> b;
    for (int i = 0; i < 3; i++) {
    for (int j = 0; j < 3; j++) {
      if(data.at(i).at(j) == b){
        data.at(i).at(j) == 0
      }
    }
  }
  }

  cout << data.at(1).at(1)  << endl;

  if((data.at(0).at(0) == 0 && data.at(0).at(1) == 0 && data.at(0).at(2) == 0) ||
    (data.at(1).at(0) == 0 && data.at(1).at(1) == 0 && data.at(1).at(2) == 0) ||
    (data.at(2).at(0) == 0 && data.at(2).at(1) == 0 && data.at(2).at(2) == 0) ||
    (data.at(0).at(0) == 0 && data.at(1).at(0) == 0 && data.at(2).at(0) == 0) ||
    (data.at(0).at(1) == 0 && data.at(1).at(1) == 0 && data.at(2).at(1) == 0) ||
    (data.at(0).at(2) == 0 && data.at(1).at(2) == 0 && data.at(2).at(2) == 0) ||
    (data.at(0).at(0) == 0 && data.at(1).at(1) == 0 && data.at(2).at(2) == 0) ||
    (data.at(0).at(2) == 0 && data.at(1).at(1) == 0 && data.at(2).at(0) == 0)){
      cout << "Yes" << endl;
  }else{
    cout << "No" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:23:30: error: expected ';' before '}' token
   23 |         data.at(i).at(j) == 0
      |                              ^
      |                              ;
   24 |       }
      |       ~
Language: Java

class Bingo {
  public static void Card(int args[]){
    int [] A[i][j];
    for(i = 1; i < 3; i++){
      for(j = 1; j < 3; j++) {
        A[i][j] = Math.Random() * 100;
      }
    }
  }
  
  public static void Num(int args[]) {
    int N, b;
    N = Math.Random() * 10;
    for(a = 0; a < N; a++){
      b = Math.Random() * 100;
    }
  }
  
  public static void Check(int args[]) {
    for(i = 0; i < 3; i++){
      for(j = 0; j < 3; j++) {
        if(A[i][j] == match(b)) {
          count +=1;
        }
      }
    }
  }
  
  if(count > 3) {
    System.out.println("Yes");
  } else {
    System.out.println("No");
  }
  
 
    
    
   

Compiler output:
Main.java:3: error: ']' expected
    int [] A[i][j];
             ^
Main.java:3: error: ';' expected
    int [] A[i][j];
              ^
Main.java:3: error: not a statement
    int [] A[i][j];
                ^
Main.java:3: error: ';' expected
    int [] A[i][j];
                 ^
Main.java:29: error: illegal start of type
  if(count > 3) {
  ^
Main.java:29: error: <identifier> expected
  if(count > 3) {
          ^
Main.java:31: error: illegal start of type
  } else {
    ^
Main.java:33: error: reached end of file while parsing
  }
   ^
8 errors
Language: C++

#include<bits/stdc++.h>
using namespace std;
int a[105][105];
bool b[105];
int main(){
	for(int i=0;i<3;i++)
		for(int j=0;j<3;j++)
			cin>>a[i][j];
	int n;
	cin>>n;	
	memset(b,0,sizeof(b));
	for(int i=0;i<n;i++){
		int x;
		cin>>x;
		b[x]=1;
	}
	bool ok=false;
	for(int i=0;i<3&&ok==false;i++){
		bool found=true;
		for(int j=0;j<3;j++)
			if(!b[a[i]])
				found=false;
		if(found)
			ok=true;
	}
	for(int i=0;i<3&&ok==false;i++){
		bool found=true;
		for(int j=0;j<3;j++)
			if(!b[a[i][j]])
				found=false;
		if(found)
			ok=true;
	}
	for(int i=0;i<3&&ok==false;i++){
		bool found=true;
		for(int j=0;j<3;j++)
			if(!b[a[j][i]])
				found=false;
		if(found)
			ok=true;
	}
	bool found=true;
	for(int i=0;i<3&&ok==false;i++)
		if(!b[a[i][i]])
			found=false;
	for(int i=0;i<3&&ok==false;i++)
		if(!b[a[2-i][2-i]])
			found=false;
	if(found)
		ok=1;
	if(ok)
		cout<<"Yes\n";
	else
		cout<<"No\n";
} 

Compiler output:
a.cc: In function 'int main()':
a.cc:21:30: error: invalid types 'bool [105][int [105]]' for array subscript
   21 |                         if(!b[a[i]])
      |                              ^
Language: C

#include <stdio.h>

int main(void) {
	int a, n, b,i,j,k;
	int result = 0;

	for (i = 0;i < 3;i++) 
		for (j = 0;j < 3;j++) {
			scanf_s("%d", &a);
		}
	scanf_s("%d", &n);
	for (k = 0;k < n;k++) {
		scanf_s("%d", &b);
	}

	for (i = 0;i < 3;i++) {
		for (k = 0;k < n;k++) {
			if (a = b) {
				result++;
				break;
			}
		}
		if (result = 3) {
			printf("Yes");
			break;
		}

	}
	result = 0;

	for (j = 0;j < 3;j++) {
		for (k = 0;k < n;k++) {
			if (a = b) {
				result++;
				break;
			}
		}
		if (result = 3) {
			printf("Yes");
			break;
		}
	}
}

Compiler output:
main.c: In function 'main':
main.c:9:25: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    9 |                         scanf_s("%d", &a);
      |                         ^~~~~~~
      |                         scanf
Language: C++

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

int main(){
  int N,count=0;
  bool ans=0;
  vector<vector<int>> bingo(3, vector<int>(3) );
  vector<int> tama(110);
  
  for(int i=0;i<3;i++){
    for(int j=0;j<3;j++){
      cin>>bingo.at(i).at(j);
    }
  }
  
  cin>>N;
  for(int i=0;i<N;i++){
    cin>>tama.at(i);
  }
  
  //横判定
  for(int i=0;i<3;i++){
    for(int j=0;j<3;j++){
      for(int k=0;k<N;k++){
        if(bingo.at(i).at(j)==tama.at(k)){
          ans++;
        }
      }
      if(ans=2){
        ans=1;
        break;
      }
    }
  }
 
  //縦判定
  for(int i=0;i<3;i++){
    for(int j=0;j<3;j++){
      for(int k=0;k<N;k++){
        if(bingo.at(j).at(i)==tama.at(k){
          ans++;
        }
      }
      if(ans=2){
        ans=1;
        break;
      }
    }
  }
  
  //左上右下の斜め判定
  for(int i=0;i<3;i++){
    for(int k=0;k<N;k++){
      if(bingo.at(i).at(i)==tama.at(k){
        ans++;
      }
    }
    if(ans=2){ 
      ans=1;
      break;
    }
  }
  
  //右上左下斜め判定
  for(int k=0;k<3;k++){
    if(bingo.at(1).at(3)==tama.at(k)
    && bingo.at(2).at(2)==tama.at(k)
    && bingo.at(3).at(1)==tama.at(k){
      ans=1;
    }
  }
  
  if(ans){
    cout<<"Yes"<<endl;
  }else{
    cout<<"No"<<endl;
  }
                               
}


Compiler output:
a.cc: In function 'int main()':
a.cc:26:11: error: use of an operand of type 'bool' in 'operator++' is forbidden in C++17
   26 |           ans++;
      |           ^~~
a.cc:40:41: error: expected ')' before '{' token
   40 |         if(bingo.at(j).at(i)==tama.at(k){
      |           ~                             ^
      |                                         )
a.cc:43:7: error: expected primary-expression before '}' token
   43 |       }
      |       ^
a.cc:54:39: error: expected ')' before '{' token
   54 |       if(bingo.at(i).at(i)==tama.at(k){
      |         ~                             ^
      |                                       )
a.cc:57:5: error: expected primary-expression before '}' token
   57 |     }
      |     ^
a.cc:68:37: error: expected ')' before '{' token
   68 |     && bingo.at(3).at(1)==tama.at(k){
      |                                     ^
      |                                     )
a.cc:66:7: note: to match this '('
   66 |     if(bingo.at(1).at(3)==tama.at(k)
      |       ^
a.cc:71:3: error: expected primary-expression before '}' token
   71 |   }
      |   ^
Language: C++

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

int main(){
  int N,count=0;
  bool ans=0;
  vector<vector<int>> bingo(3, vector<int>(3) );
  vector<int> tama(110);
  
  for(int i=0;i<3;i++){
    for(int j=0;j<3;j++){
      cin>>bingo.at(i).at(j);
    }
  }
  
  cin>>N;
  for(int i=0;i<N;i++){
    cin>>tama(i);
  }
  
  //横判定
  for(int i=0;i<3;i++){
    for(int j=0;j<3;j++){
      for(int k=0;k<N;k++){
        if(bingo.at(i).at(j)==tama[k]){
          ans++;
        }
      }
      if(ans=2){
        ans=1;
        break;
      }
    }
  }
 
  //縦判定
  for(int i=0;i<3;i++){
    for(int j=0;j<3;j++){
      for(int k=0;k<N;k++){
        if(bingo.at(j).at(i)==tama[k]){
          ans++;
        }
      }
      if(ans=2){
        ans=1;
        break;
      }
    }
  }
  
  //左上右下の斜め判定
  for(int i=0;i<3;i++){
    for(int k=0;k<N;k++){
      if(bingo.at(i).at(i)==tama[k]){
        ans++;
      }
    }
    if(ans=2){ 
      ans=1;
      break;
    }
  }
  
  //右上左下斜め判定
  for(int k=0;k<3;k++){
    if(bingo.at(1).at(3)==tama[k]
    && bingo.at(2).at(2)==tama[k}
    && bingo.at(3).at(1)==tama[k}){
      ans=1;
    }
  }
  
  if(ans){
    cout<<"Yes"<<endl;
  }else{
    cout<<"No"<<endl;
  }
                               
}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:14: error: no match for call to '(std::vector<int>) (int&)'
   18 |     cin>>tama(i);
      |          ~~~~^~~
a.cc:26:11: error: use of an operand of type 'bool' in 'operator++' is forbidden in C++17
   26 |           ans++;
      |           ^~~
a.cc:41:11: error: use of an operand of type 'bool' in 'operator++' is forbidden in C++17
   41 |           ans++;
      |           ^~~
a.cc:55:9: error: use of an operand of type 'bool' in 'operator++' is forbidden in C++17
   55 |         ans++;
      |         ^~~
a.cc:67:33: error: expected ']' before '}' token
   67 |     && bingo.at(2).at(2)==tama[k}
      |                                 ^
      |                                 ]
a.cc:67:33: error: expected ')' before '}' token
   67 |     && bingo.at(2).at(2)==tama[k}
      |                                 ^
      |                                 )
a.cc:66:7: note: to match this '('
   66 |     if(bingo.at(1).at(3)==tama[k]
      |       ^
a.cc:67:33: error: expected primary-expression before '}' token
   67 |     && bingo.at(2).at(2)==tama[k}
      |                                 ^
a.cc:68:13: error: expected ';' before '.' token
   68 |     && bingo.at(3).at(1)==tama[k}){
      |             ^
      |             ;
a.cc:68:8: error: label 'bingo' used but not defined
   68 |     && bingo.at(3).at(1)==tama[k}){
      |        ^~~~~
a.cc: At global scope:
a.cc:68:34: error: expected unqualified-id before ')' token
   68 |     && bingo.at(3).at(1)==tama[k}){
      |                                  ^
a.cc:71:3: error: expected declaration before '}' token
   71 |   }
      |   ^
a.cc:73:3: error: expected unqualified-id before 'if'
   73 |   if(ans){
      |   ^~
a.cc:75:4: error: expected unqualified-id before 'else'
   75 |   }else{
      |    ^~~~
a.cc:79:1: error: expected declaration before '}' token
   79 | }
      | ^
Language: C++

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

int main(){
  int N,count=0;
  bool ans=0;
  vector<vector<int>> bingo(3, vector<int>(3) );
  vector<int> tama(110);
  
  for(int i=0;i<3;i++){
    for(int j=0;j<3;j++){
      cin>>bingo.at(i).at(j);
    }
  }
  
  cin>>N;
  for(i=0;i<N;){
    cin>>tama(i);
  }
  
  //横判定
  for(int i=0;i<3;i++){
    for(int j=0;j<3;j++){
      for(int k=0;k<N;k++){
        if(bingo.at(i).at(j)==tama[k]){
          ans++;
        }
      }
      if(ans=2){
        ans=1;
        break;
      }
    }
  }
 
  //縦判定
  for(int i=0;i<3;i++){
    for(int j=0;j<3;j++){
      for(int k=0;k<N;k++){
        if(bingo.at(j).at(i)==tama[k]){
          ans++;
        }
      }
      if(ans=2){
        ans=1;
        break;
      }
    }
  }
  
  //左上右下の斜め判定
  for(int i=0;i<3;i++){
    for(int k=0;k<N;k++){
      if(bingo.at(i).at(i)==tama[k]){
        ans++;
      }
    }
    if(ans=2){ 
      ans=1;
      break;
    }
  }
  
  //右上左下斜め判定
  for(int k=0;k<3;k++){
    if(bingo.at(1).at(3)==tama[k]
    && bingo.at(2).at(2)==tama[k}
    && bingo.at(3).at(1)==tama[k}){
      ans=1;
    }
  }
  
  if(ans){
    cout<<"Yes"<<endl;
  }else{
    cout<<"No"<<endl;
  }
                               
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:7: error: 'i' was not declared in this scope
   17 |   for(i=0;i<N;){
      |       ^
a.cc:26:11: error: use of an operand of type 'bool' in 'operator++' is forbidden in C++17
   26 |           ans++;
      |           ^~~
a.cc:41:11: error: use of an operand of type 'bool' in 'operator++' is forbidden in C++17
   41 |           ans++;
      |           ^~~
a.cc:55:9: error: use of an operand of type 'bool' in 'operator++' is forbidden in C++17
   55 |         ans++;
      |         ^~~
a.cc:67:33: error: expected ']' before '}' token
   67 |     && bingo.at(2).at(2)==tama[k}
      |                                 ^
      |                                 ]
a.cc:67:33: error: expected ')' before '}' token
   67 |     && bingo.at(2).at(2)==tama[k}
      |                                 ^
      |                                 )
a.cc:66:7: note: to match this '('
   66 |     if(bingo.at(1).at(3)==tama[k]
      |       ^
a.cc:67:33: error: expected primary-expression before '}' token
   67 |     && bingo.at(2).at(2)==tama[k}
      |                                 ^
a.cc:68:13: error: expected ';' before '.' token
   68 |     && bingo.at(3).at(1)==tama[k}){
      |             ^
      |             ;
a.cc:68:8: error: label 'bingo' used but not defined
   68 |     && bingo.at(3).at(1)==tama[k}){
      |        ^~~~~
a.cc: At global scope:
a.cc:68:34: error: expected unqualified-id before ')' token
   68 |     && bingo.at(3).at(1)==tama[k}){
      |                                  ^
a.cc:71:3: error: expected declaration before '}' token
   71 |   }
      |   ^
a.cc:73:3: error: expected unqualified-id before 'if'
   73 |   if(ans){
      |   ^~
a.cc:75:4: error: expected unqualified-id before 'else'
   75 |   }else{
      |    ^~~~
a.cc:79:1: error: expected declaration before '}' token
   79 | }
      | ^
Language: C++

#include <iostream>
using namespace std;
int bingo[30][30];
bool bbingo[3][3] = false ;
int number[100];
int main(){
    int total;
    for(int i=0;i<3;i++){
        for(int j=0;j<3;j++){
            cin >> bingo[i][j];
        }
    }
    cin >> total;
    for(int a = 0;a < total;a++){
        cin >> number[a];
    }
    for(int i=0;i<3;i++){
        for(int j=0;j<3;j++){
            for(int a = 0;a < total;a++){
                if(bingo[i][j] == number[a]){
                    bbingo[i][j] = true;
                }
            }
        }
    }
    if(1==1){
        for(int i=0;i<3;i++){
            if(bbingo[i][1]==bbingo[i][2] && bbingo[i][1]==bbingo[i][3]){
                cout << "Yes" << endl;
                return 0;
            }
        }
    }
    else if(1==1){
        for(int j=0;j<3;j++){
            if(bbingo[1][j]==bbingo[2][j] && bbingo[1][j]==bbingo[3][j]){
                cout << "Yes" << endl;
                return 0;
            }   
        }
    }
    else if (bbingo[1][1]==bbingo[2][2] && bbingo[1][1]==bbingo[3][3]){
        cout << "Yes" << endl;
        return 0;
    }
    else if(bbingo[1][3]==bbingo[2][2] && bbingo[1][3]==bbingo[3][1]){
        cout << "Yes" << endl;
        return 0;
    }
    else {
        cout << "No" << endl;
        return 0;
    }
}


Compiler output:
a.cc:4:21: error: array must be initialized with a brace-enclosed initializer
    4 | bool bbingo[3][3] = false ;
      |                     ^~~~~
Language: C++

#include <iostream>
using namespace std;

int main(){
    int a[3][3];
    int c[3][3];
    for(int i=0; i<3; i++){
        for(int j=0; j<3; j++){
            cin >> a[i][j];
            c[i][j] = 0;
        }
    }
    int N;
    cin >> N;
    int b;
    for(int k=0; k<N; k++){
        cin >> b;
        for(int i=0; i<3; i++){
            for(int j=0; j<3; j++){
                if(b == a[i][j]){
                    c[i][j] = 1
                }
            }
        }
    }
    for(int i=0; i<3; i++){
        if((a[i][0]+a[i][1]+a[i][2]) == 3){
            cout << "Yes" << endl;
            break;
        }else if((a[0][i]+a[1][i]+a[2][i]) == 3){
            cout << "Yes" << endl;
            break;   
        }         
    }
    if((a[0][0]+a[1][1]+a[2][2]) == 3){
        cout << "Yes" << endl;
    }else if((a[0][2]+a[1][1]+a[2][0]) == 3){
        cout << "Yes" << endl;
    }else{
        cout << "No" << endl;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:32: error: expected ';' before '}' token
   21 |                     c[i][j] = 1
      |                                ^
      |                                ;
   22 |                 }
      |                 ~
Language: C++

include <bits/stdc++.h>
using namespace std;
int a[4][4],n,m,i,j,x;
int main() {
  for( i=1;i<=3;i++)
    for( j=1;j<=3;j++)
    {
      cin>>a[i][j];
    }
  cin>>n;
  for( x=1;x<=n;x++)
  {
    cin>>m;
    for( i=1;i<=3;i++)
      for( j=1;j<=3;j++)
      {
        if(m==a[i][j])
        a[i][j]=0;
      }
  }
  m=0;
  for( i=1;i<=3;i++){
    for(j=1;j<=3;j++)
    {
      if(a[i][j]!=0)
      m=1;
    }
    if(m==0)
    {
      cout<<"Yes"<<endl;
      return 0;
    }
  }
  for(i=1;i<=3;i++)
  {
    if(a[i][i]!=0)
    m=1;
  }
  if(m==0)
    {
      cout<<"Yes"<<endl;
      return 0;
    }
    for(i=3;i>0;i--)
  {
    if(a[i][i]!=0)
    m=1;
  }
  if(m==0)
    {
      cout<<"Yes"<<endl;
      return 0;
    }
}


Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:8:7: error: 'cin' was not declared in this scope
    8 |       cin>>a[i][j];
      |       ^~~
a.cc:10:3: error: 'cin' was not declared in this scope
   10 |   cin>>n;
      |   ^~~
a.cc:30:7: error: 'cout' was not declared in this scope
   30 |       cout<<"Yes"<<endl;
      |       ^~~~
a.cc:30:20: error: 'endl' was not declared in this scope
   30 |       cout<<"Yes"<<endl;
      |                    ^~~~
a.cc:41:7: error: 'cout' was not declared in this scope
   41 |       cout<<"Yes"<<endl;
      |       ^~~~
a.cc:41:20: error: 'endl' was not declared in this scope
   41 |       cout<<"Yes"<<endl;
      |                    ^~~~
a.cc:51:7: error: 'cout' was not declared in this scope
   51 |       cout<<"Yes"<<endl;
      |       ^~~~
a.cc:51:20: error: 'endl' was not declared in this scope
   51 |       cout<<"Yes"<<endl;
      |                    ^~~~
Language: C++

#include <iostream>
using namespace std;

int main(){
    int a[3][3];
    int c[3][3];
    for(int i=0; i<3; i++){
        for(int j=0; j<3; j++){
            cin >> a[i][j];
            c[i][j] = 0;
        }
    }
    int N;
    cin >> N;
    int b;
    for(int k=0; k<N; k++){
        cin >> b;
        for(int i=0; i<3; i++){
            for(int j=0; j<3; j++){
                if(b == a[i][j]){
                    c[i][j] = 1
                }
            }
        }
    }
    for(i=0; i<3; i++){
        if((a[i][0]+a[i][1]+a[i][2]) == 3){
            cout << "Yes" << endl;
            break;
        }else if((a[0][i]+a[1][i]+a[2][i]) == 3){
            cout << "Yes" << endl;
            break;   
        }         
    }
    if((a[0][0]+a[1][1]+a[2][2]) == 3){
        cout << "Yes" << endl;
    }else if((a[0][2]+a[1][1]+a[2][0]) == 3){
        cout << "Yes" << endl;
    }else{
        cout << "No" << endl;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:32: error: expected ';' before '}' token
   21 |                     c[i][j] = 1
      |                                ^
      |                                ;
   22 |                 }
      |                 ~               
a.cc:26:9: error: 'i' was not declared in this scope
   26 |     for(i=0; i<3; i++){
      |         ^