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

#include <stdio.h>

char *main()
{
  int i;
  int j;
  int sum;
  int a[3][3];
  int check[3][3];
  int b;
  
  i = -1;
  while (++i < 3)
    scanf("%d %d %d",&a[i][0],&a[i][1],&a[i][2]);
  
  // checkの初期化
  i = -1;
  while (++i < 3)
  {
    j = -1;
    while (++j < 3)
    {
        check[i][j] = 0;
    }
  }
  
  while (scanf("%d", &b) != EOF)
  {
	i = -1;
    while (++i < 3)
    {
      j = -1;
      while (++j < 3)
      {
    	if (a[i][j] == b)
          check[i][j] = 1;
      }
    }
  }
  
  // 横方向
  i = 0;
  while (i < 3)
  {
    j = 0;
    sum = 0;
  	while (j < 3)
    {
      sum+= check[i][j];
      j++;
    }
    if (sum == 3)
      return ("Yes");
    i++:
  }
  
  // 縦方向
  j = 0;
  while (j < 3)
  {
    i = 0;
    sum = 0;
  	while (i < 3)
    {
      sum+= check[i][j];
      i++;
    }
    if (sum == 3)
      return ("Yes");
    j++:
  }
  
  // 斜め方向 右上から左下
  sum = 0;
  while (i < 3)
  {
    sum+= check[i][i];
    i++;
  }
  if (sum == 3)
    return ("Yes");
  
// 斜め方向 左上から右下  
  sum = 0;
  while (i < 3)
  {
    sum+= check[2 - i][i];
    i++;
  }
  if (sum == 3)
    return ("Yes");
  
  return ("No"); 
}

Compiler output:
main.c: In function 'main':
main.c:54:8: error: expected ';' before ':' token
   54 |     i++:
      |        ^
      |        ;
main.c:70:8: error: expected ';' before ':' token
   70 |     j++:
      |        ^
      |        ;
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];
        }
    }
    cin >> total;
    for(int a = 0;a <= total;i++){
        cin >> number[a];
    }
    for(int i=0;i<=3;i++){
        for(int j=0;j<=3;j++){
            for(int a = 0;a <= total;i++){
                if(bingo[i][j] == number[a]){
                    bbingo[i][j] = true;
                }
            }
        }
    }
    if(){
        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(){
        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: In function 'int main()':
a.cc:14:30: error: 'i' was not declared in this scope
   14 |     for(int a = 0;a <= total;i++){
      |                              ^
a.cc:26:8: error: expected primary-expression before ')' token
   26 |     if(){
      |        ^
a.cc:34:13: error: expected primary-expression before ')' token
   34 |     else if(){
      |             ^
Language: C++

#include <iostream>
#include <cstdlib>
#include <string>
#include <vector>
#include <array>
#include <algorithm>

using namespace std;

int main() {
  array<array<int, 3>, 3> row;
  for (int i = 0; i < 3; i++) {
    array<int, 3> column;
    int a1, a2, a3;
    scanf("%d %d %d", &a1, &a2, &a3);
    column[0] = a1;
    column[1] = a2;
    column[2] = a3;
    row[i] = column;
  }
  int n;
  scanf("%d", &n);
  vector<int> v(n);
  for (int i = 0; i < n; i++) {
    int b;
    scanf("%d", &b);
    v[i] = b;
  }
  
  bool bingo = false;
  if ((find(v.begin(), v.end(), row[0][0]) != v.end() &&
       find(v.begin(), v.end(), row[0][1]) != v.end() &&
       find(v.begin(), v.end(), row[0][2]) != v.end()) ||
      (find(v.begin(), v.end(), row[0][0]) != v.end() &&
       find(v.begin(), v.end(), row[1][0]) != v.end() &&
       find(v.begin(), v.end(), row[2][0]) != v.end()) ||
      (find(v.begin(), v.end(), row[2][0]) != v.end() &&
       find(v.begin(), v.end(), row[2][1]) != v.end() &&
       find(v.begin(), v.end(), row[2][2]) != v.end()) ||
      (find(v.begin(), v.end(), row[0][2]) != v.end() &&
       find(v.begin(), v.end(), row[1][2]) != v.end() &&
       find(v.begin(), v.end(), row[2][2]) != v.end()) ||
      (find(v.begin(), v.end(), row[0][0]) != v.end() &&
       find(v.begin(), v.end(), row[1][1]) != v.end() &&
       find(v.begin(), v.end(), row[2][2]) != v.end()) ||
      (find(v.begin(), v.end(), row[0][2]) != v.end() &&
       find(v.begin(), v.end(), row[1][1]) != v.end() &&
       find(v.begin(), v.end(), row[2][0]) != v.end())) {
    bingo = true;
  }
  
  cout << (bing ? "Yes": "No") << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:52:12: error: 'bing' was not declared in this scope; did you mean 'bingo'?
   52 |   cout << (bing ? "Yes": "No") << endl;
      |            ^~~~
      |            bingo
Language: C++

#include<iostream>
#include<vector>
#include<string>
using namespace std;
int main(){
  int a;
  vector<vector<int>> Map = {
    {0,0,0},
    {0,0,0},
    {0,0,0}
  };
for(int y = 0;y < 3;++y){
	for(int x = 0;x < 3;++x){
      cin >> a;
    		Map.at(x).at(y) = a;
    }
}
  int N;
  int inp;
  for(int num; num < N;++num){
  	for(int y = 0;y < 3;++y){
		for(int x = 0;x < 3;++x){
      cin >> inp;
          if(Map.at(x).at(y) == inp){
          Map.at(x).at(y) = 1000;
          }
   		}
  	 }
  }
for(int num = 0;num < 3;++num){
if((Map.at(x).at(num) == Map.at(x+1).at(num))&&(Map.at(x+2).at(num) == Map.at(x+1).at(num))){
cout << "Yes" << endl;
  return 0;
}
if((Map.at(num).at(y) == Map.at(num).at(y+1))&&(Map.at(num).at(y+2) == Map.at(num).at(y+1)))
cout << "Yes" << endl;
  return 0;
}
  if((Map.at(x).at(y) == Map.at(x+1).at(y+1))&&(Map.at(x).at(y) == Map.at(x+2).at(y+2))){
  cout << "Yes" << endl;
  return 0;
  }
  if((Map.at(x+2).at(y) == Map.at(x+1).at(y+1))&&(Map.at(x+2).at(y) == Map.at(x).at(y+2))){
  cout << "Yes" << endl;
  return 0;
  }
  cout << "No" << endl;
  

}

Compiler output:
a.cc: In function 'int main()':
a.cc:31:12: error: 'x' was not declared in this scope
   31 | if((Map.at(x).at(num) == Map.at(x+1).at(num))&&(Map.at(x+2).at(num) == Map.at(x+1).at(num))){
      |            ^
a.cc:35:20: error: 'y' was not declared in this scope
   35 | if((Map.at(num).at(y) == Map.at(num).at(y+1))&&(Map.at(num).at(y+2) == Map.at(num).at(y+1)))
      |                    ^
a.cc:39:14: error: 'x' was not declared in this scope
   39 |   if((Map.at(x).at(y) == Map.at(x+1).at(y+1))&&(Map.at(x).at(y) == Map.at(x+2).at(y+2))){
      |              ^
a.cc:39:20: error: 'y' was not declared in this scope
   39 |   if((Map.at(x).at(y) == Map.at(x+1).at(y+1))&&(Map.at(x).at(y) == Map.at(x+2).at(y+2))){
      |                    ^
a.cc:43:14: error: 'x' was not declared in this scope
   43 |   if((Map.at(x+2).at(y) == Map.at(x+1).at(y+1))&&(Map.at(x+2).at(y) == Map.at(x).at(y+2))){
      |              ^
a.cc:43:22: error: 'y' was not declared in this scope
   43 |   if((Map.at(x+2).at(y) == Map.at(x+1).at(y+1))&&(Map.at(x+2).at(y) == Map.at(x).at(y+2))){
      |                      ^
Language: C++

int main(void){
    int a[9], b[9], c, d[10], n, m, i, j;

    m = 0;
    for(i = 1; i <= 9; i++){
        scanf("%d",&a[i]);
        b[i] = 0;
    }

    scanf("%d",&n);
    for (i = 1; i<=n; i++){
        scanf("%d",&c);
        for(j = 1; j <= 9; j++){
            if(a[j]==c) b[j] = 1;
        }
    }

    for(i = 1; i<=3; i++){
        d[i] = b[i]+b[i+1]+b[i+2];
    }

    for(i = 4; i<=6; i++){
        d[i] = b[i]+b[i+3]+b[i-3];
    }

    d[7] = b[3] + b[5] + b[7];
    d[8] = b[1] + b[5] + b[9];

    for(i = 1; i <= 8; i++){
        if(d[i] == 3) m = 1;
        printf("%d",d[i]);
    }

    if(m == 1) printf("Yes");
    else printf("No");

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'scanf' was not declared in this scope
    6 |         scanf("%d",&a[i]);
      |         ^~~~~
a.cc:10:5: error: 'scanf' was not declared in this scope
   10 |     scanf("%d",&n);
      |     ^~~~~
a.cc:31:9: error: 'printf' was not declared in this scope
   31 |         printf("%d",d[i]);
      |         ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main(void){
a.cc:34:16: error: 'printf' was not declared in this scope
   34 |     if(m == 1) printf("Yes");
      |                ^~~~~~
a.cc:34:16: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
a.cc:35:10: error: 'printf' was not declared in this scope
   35 |     else printf("No");
      |          ^~~~~~
a.cc:35:10: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
Language: C++

#include<bits/stdc++.h>
using namespace std;
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 ar[n];
    int k;
    for(int i = 0;i < n;i++){cin >> ar[i];k  = i;}
    while(k--)
    {
        for(int i = 0;i < n;i++)
            for(int j = 0;j < n;j++)
                if(arr[i][j] == ar[k])arr[i][j] = 0;
    }
    if(arr[0][0] == 0 && arr[1][1] == 0 &&  arr[2][2] == 0)cout << "Yes" << endl;
    else if(arr[0][0] === 0 && arr[1][0] && arr[2][0] == 0)cout << "Yes" << endl;
    else if(arr[0][1] === 0 && arr[1][1] && arr[2][1] == 0)cout << "Yes" << endl;
    else if(arr[0][2] === 0 && arr[1][2] && arr[2][2] == 0)cout << "Yes" << endl;
    else if(arr[0][0] === 0 && arr[0][1] && arr[0][2] == 0)cout << "Yes" << endl;
    else if(arr[1][0] === 0 && arr[1][1] && arr[1][2] == 0)cout << "Yes" << endl;
    else if(arr[2][0] === 0 && arr[2][1] && arr[2][2] == 0)cout << "Yes" << endl;
    else cout << "No" << endl;
    return 0;
  }


Compiler output:
a.cc: In function 'int main()':
a.cc:19:25: error: expected primary-expression before '=' token
   19 |     else if(arr[0][0] === 0 && arr[1][0] && arr[2][0] == 0)cout << "Yes" << endl;
      |                         ^
a.cc:20:25: error: expected primary-expression before '=' token
   20 |     else if(arr[0][1] === 0 && arr[1][1] && arr[2][1] == 0)cout << "Yes" << endl;
      |                         ^
a.cc:21:25: error: expected primary-expression before '=' token
   21 |     else if(arr[0][2] === 0 && arr[1][2] && arr[2][2] == 0)cout << "Yes" << endl;
      |                         ^
a.cc:22:25: error: expected primary-expression before '=' token
   22 |     else if(arr[0][0] === 0 && arr[0][1] && arr[0][2] == 0)cout << "Yes" << endl;
      |                         ^
a.cc:23:25: error: expected primary-expression before '=' token
   23 |     else if(arr[1][0] === 0 && arr[1][1] && arr[1][2] == 0)cout << "Yes" << endl;
      |                         ^
a.cc:24:25: error: expected primary-expression before '=' token
   24 |     else if(arr[2][0] === 0 && arr[2][1] && arr[2][2] == 0)cout << "Yes" << endl;
      |                         ^
Language: C

#include <stdio.h>

int main(void){
  int a[3][3];
  int n;
  int b[101];
  int c[3][3];
  for(int i=0; i<3; i++){
    for(int j=0; j<3; j++){
    	c[i][j]=0;
    }
  }
  for(int i=0; i<3; i++){
    scanf("%d %d %d",&a[i][0],&a[i][1],&a[i][2]);
  }
  scanf("%d",&n);
  for(int i=0; i<n; i++){
    scanf("%d",&b[i]);
    switch(b[i]){
      case a[0][0]:
        c[0][0]=1;
	  case a[0][1]:
        c[0][1]=1;
      case a[0][2]:
        c[0][2]=1;
      case a[1][0]:
        c[1][0]=1;
      case a[1][1]:
        c[1][1]=1;
      case a[1][2]:
        c[1][2]=1;
      case a[2][0]:
        c[2][0]=1;
      case a[2][1]:
        c[2][1]=1;
      case a[2][2]:
        c[2][2]=1;
      default:
        break;
    }
  }
  if(c[0][0]==1&&c[0][1]==1&&c[0][2]||
     c[1][0]==1&&c[1][1]==1&&c[1][2]||
     c[2][0]==1&&c[2][1]==1&&c[2][2]||
     c[0][0]==1&&c[1][0]==1&&c[2][0]||
     c[0][1]==1&&c[1][1]==1&&c[2][1]||
     c[0][2]==1&&c[1][2]==1&&c[2][2]||
     c[0][0]==1&&c[1][1]==1&&c[2][2]||
     c[0][2]==1&&c[1][1]==1&&c[2][0]){
	printf("Yes");
  }
  else{
    printf("No");
  }
  return 0;
}
    

Compiler output:
main.c: In function 'main':
main.c:20:7: error: case label does not reduce to an integer constant
   20 |       case a[0][0]:
      |       ^~~~
main.c:22:11: error: case label does not reduce to an integer constant
   22 |           case a[0][1]:
      |           ^~~~
main.c:24:7: error: case label does not reduce to an integer constant
   24 |       case a[0][2]:
      |       ^~~~
main.c:26:7: error: case label does not reduce to an integer constant
   26 |       case a[1][0]:
      |       ^~~~
main.c:28:7: error: case label does not reduce to an integer constant
   28 |       case a[1][1]:
      |       ^~~~
main.c:30:7: error: case label does not reduce to an integer constant
   30 |       case a[1][2]:
      |       ^~~~
main.c:32:7: error: case label does not reduce to an integer constant
   32 |       case a[2][0]:
      |       ^~~~
main.c:34:7: error: case label does not reduce to an integer constant
   34 |       case a[2][1]:
      |       ^~~~
main.c:36:7: error: case label does not reduce to an integer constant
   36 |       case a[2][2]:
      |       ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int Setnum(int i,int j){
    int num = 1;
    if(i==1)
        num *= 10;
    if(i==2)
        num *= 10;
    return num;
}
int main()
{
    vector<vector<int>> A(3);
    int N;
    for (int i = 0; i < 3;i++){
        for (int j = 0; j < 3;j++){
            cin >> A.at(i).at(j);
        }
    }
    cin >> N;
    vector<int> b(N);
    for (int i = 0; i < N;i++){
        b.at(i);
    }
    vector<vector<int>> Ans(3, vector<int>(3,0));
    for (int i = 0; i < 3;i++){
        for (int j = 0; j < 3;j++){
            int num = Setnum(i,j);
            bool Match = false;
            for (int k = 0; k < N;k++){
                 if( A.at(i).at(j)==b.at(k))
                     Match = true;
                if(Match)
                    Ans.at(i).at(j) = num;
            }
        }
    }
    bool check = false;
    for (int i = 0; i < 3;i++){
        int num = Ans.at(i).at(1) + Ans.at(i).at(2) + Ans.at(i).at(3);
        if(num%3==0)
            check = true;
    }
    for (int i = 0; i < 3;i++){
        int num= Ans.at(1).at(i) + Ans.at(2).at(i) + Ans.at(3).at(i);
        if(num%111==0)
            check = true;
    }
    int num= Ans.at(1).at(1) + Ans.at(2).at(2) + Ans.at(3).at(3);
        if(num%111==0)
            check = true;
    int num= Ans.at(1).at(2) + Ans.at(2).at(2) + Ans.at(3).at(2);
        if(num%111==0)
            check = true;
    int num= Ans.at(1).at(3) + Ans.at(2).at(2) + Ans.at(3).at(1);
        if(num%111==0)
            check = true;
    if(check)
        cout << "Yes" << endl;
    else
        cout << "No" << endl;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:23:13: warning: ignoring return value of 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::at(size_type) [with _Tp = int; _Alloc = std::allocator<int>; reference = int&; size_type = long unsigned int]', declared with attribute 'nodiscard' [-Wunused-result]
   23 |         b.at(i);
      |         ~~~~^~~
In file included from /usr/include/c++/14/vector:66,
                 from /usr/include/c++/14/functional:64,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:53,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_vector.h:1180:7: note: declared here
 1180 |       at(size_type __n)
      |       ^~
a.cc:52:9: error: redeclaration of 'int num'
   52 |     int num= Ans.at(1).at(2) + Ans.at(2).at(2) + Ans.at(3).at(2);
      |         ^~~
a.cc:49:9: note: 'int num' previously declared here
   49 |     int num= Ans.at(1).at(1) + Ans.at(2).at(2) + Ans.at(3).at(3);
      |         ^~~
a.cc:55:9: error: redeclaration of 'int num'
   55 |     int num= Ans.at(1).at(3) + Ans.at(2).at(2) + Ans.at(3).at(1);
      |         ^~~
a.cc:49:9: note: 'int num' previously declared here
   49 |     int num= Ans.at(1).at(1) + Ans.at(2).at(2) + Ans.at(3).at(3);
      |         ^~~
Language: C

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


int main()
{
    int n,a,b,i,j,k;
    int a[5][5];
    int b[20];

for(i=0;i<3;i++)
{
scanf("%d %d %d",&a[i][0],&a[i][1],&a[i][2]);
}

scanf("%d",&n);

for(i=0;i<n;i++)
{
    scanf("%d",&b[i]);
}

for(i=0;i<n;i++)
{
    for(j=0;j<3;j++)
    {
        for(k=0;k<3;k++)
        {
            if(b[i]==a[j][k])
              a[j][k]=0;
        }
    }
}

if(a[0][0]==0)
{
    if(a[0][1]==0)
    {
        if(a[0][2]==0)
        {
            printf("Yes");
            return 0;
        }
    }
    else if(a[1][1]==0)
    {
        if(a[2][2]==0)
        {
            printf("Yes");
            return 0;
        }
    }
    else if(a[1][0]==0)
    {
        if(a[2][0]==0)
        {
            printf("Yes");
            return 0;
        }
    }
}
else if(a[0][1]==0)
{
    if(a[1][1]==0)
    {
        if(a[2][1]==0)
        {
            printf("Yes");
            return 0;
        }
    }
}
else if(a[0][2]==0)
{
    if(a[1][2]==0)
    {
        if(a[2][2]==0)
        {
            printf("Yes");
            return 0;
        }
    }
    else if(a[1][1]==0)
    {
        if(a[2][0]==0)
        {
            printf("Yes");
            return 0;
        }
    }
}
else if(a[1][0]==0)
{
    if(a[1][1]==0)
    {
        if(a[1][2]==0)
        {
            printf("Yes");
            return 0;
        }
    }
}
else if(a[2][0]==0)
{
    if(a[2][1]==0)
    {
        if(a[2][2]==0)
        {
            printf("Yes");
            return 0;
        }
    }
}

printf("No");

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:9: error: conflicting types for 'a'; have 'int[5][5]'
    8 |     int a[5][5];
      |         ^
main.c:7:11: note: previous declaration of 'a' with type 'int'
    7 |     int n,a,b,i,j,k;
      |           ^
main.c:9:9: error: conflicting types for 'b'; have 'int[20]'
    9 |     int b[20];
      |         ^
main.c:7:13: note: previous declaration of 'b' with type 'int'
    7 |     int n,a,b,i,j,k;
      |             ^
Language: C++

#include <bits/stdc++.h>

#define ll long long int
#define FASTIO ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL)
#define FOR1(i, m, n) for(int i=m; i<n; i++)
#define FOR2(i, n, m) for(int i=n-1; i>=m; i--)

using namespace std;

int main(int argc, char const *argv[])
{
	FASTIO;
	int arr[3][3];
	for (int i = 0; i < 3; ++i)
	{
		for (int j = 0; j < 3; ++j)
		{
			cin >> arr[i][j];
		}
	}
	int n; cin >> n;
	int ans[3][3]={ {0,0,0},
					{0,0,0},
					{0,0,0}}
	int count=0;
	for (int i = 0; i < n; ++i)
	{
		int x;
		cin >> x;
		for (int i = 0; i < 3; ++i)
		{	
			for (int j = 0; j < 3; ++j)
			{
				if (arr[i][j] == x)
				{
					count++;
				}
			}
		}	
	}
	if (count >= 3)
	{
		cout << "Yes" << "\n";
	}
	else
	{
		cout << "No" << "\n";
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:25:9: error: expected ',' or ';' before 'int'
   25 |         int count=0;
      |         ^~~
a.cc:36:46: error: no post-increment operator for type
   36 |                                         count++;
      |                                              ^~
a.cc:41:19: error: invalid operands of types '<unresolved overloaded function type>' and 'int' to binary 'operator>='
   41 |         if (count >= 3)
      |             ~~~~~~^~~~
Language: C++

#include <iostream>
using namespace std;
int main(){
  int a[3][3];
  for(int i = 0; i < 3; i++){
    for(int j = 0; j < 3; j++){
    cin >> a[i][j];
  }
  int n;
  cin >> n;
  int b[n];
  for(int i = 0; i < n; i++)cin >> b[i];
  for(int i = 0; i < 3; i++){
    for(int k = 0; k < 3; k++){
      for(int j = 0; j < n; j++){
      	if(b[j] == a[i][k])a[i][k]=0;
      }
    }
  }
  for(int i = 0; i < 3; i++){
    if(a[i][0]==a[i][1]&&a[i][1]==a[i][2]){
      cout << "Yes" << endl;
      exit(0);
    }
  }
  for(int j = 0; j < 3; j++){
    if(a[0][j]==a[1][j]&&a[1][j]==a[2][j]){
      cout << "Yes" << endl;
      exit(0);
    }
  }
  if(a[0][0]==a[1][1]&&a[1][1]==a[2][2]){
    cout << "Yes" << endl;
    exit(0);
  }
  if(a[0][2]==a[1][1]&&a[1][1]==a[2][0]){
    cout << "Yes" << endl;
    exit(0);
  }
  cout << "No" << endl;
  return 0;
}

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

#include<bits/stdc++.h>
using namespace std;
int main()
{
  long long int a[3][3],i,j,n,k=0;
  for(i=0;i<3;i++)
  {
    for(j=0;j<3;j++)
    {
      cin>>a[i][j];
    }
  } 
  cin>>n;
  long long int b[n],s=0;
  for(i=0;i<n;i++)
  {
    cin>>b[i];
  }
  for(k=0;k<n;k++)
  {
    for(i=0;i<3;i++)
    {
      for(j=0;j<3;j++)
      {
        if(b[k]==a[i][j]
           {
             s=1;
             break;
           }
           }
           }
           }
           if(s>0)
           {
             cout<<"Yes";
           }
           else
           cout<<"No";
           return 0;
           }
          
  

Compiler output:
a.cc: In function 'int main()':
a.cc:25:25: error: expected ')' before '{' token
   25 |         if(b[k]==a[i][j]
      |           ~             ^
      |                         )
   26 |            {
      |            ~             
a.cc:30:12: error: expected primary-expression before '}' token
   30 |            }
      |            ^
Language: C

#include <stdio.h>

int main(void){
  int a[3][3];
  int m;
  int b[10];
  
  for(int i=0; i < 3; i++){
    for(int j=0; j<3; j++){
      scanf("%d", &a[i][j]);
    }
  }
  scanf("%d", &n);
  for(int i=0; i<n; i++){
    scanf("%d", &b[i]);
  }
  int flag;
  for(int i=0; i<3; i++){
    for(int j=0; j<3; j++){
      flag = 0;
      for(int k=0; k<10; k++){
        if(a[i][j] == b[k]) flag++;
      }
    }
    if(flag==3){
      printf("Yes");
      return 0;
    }
  }
  for(int i=0; i<3; i++){
    for(int j=0; j<3; j++){
      flag = 0;
      for(int k=0; k<10; k++){
        if(a[j][i] == b[k]) flag++;
      }
    }
    if(flag==3){
      printf("Yes");
      return 0;
    }
  }
  flag=0;
  for(int k=0; k<10; k++){
    if(b[k] == a[0][0] || b[k] == a[1][1] || b[k] == a[2][2]) flag++;
    if(flag==3){
      printf("Yes");
      return 0;
    }
  }
  printf("No");
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:13:16: error: 'n' undeclared (first use in this function)
   13 |   scanf("%d", &n);
      |                ^
main.c:13:16: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>

int main() {
    int a[9], i, j, n, found=0;

    for(i=0; i<9; i++) scanf("%d", &a[i]);
    scanf("%d", &n);
    int b[n];
    for(i=0; i<n; i++) scanf("%d", &b[i]);
    for(i=0; i<n; i++) {
        for(j=0; j<9; j++) {
            if(b[j] == a[i]) {
                printf("Yes\n");
                found=1;
                break;
            }
            if(i=8 && j=n-1 && a[i] != b[j]) {
                printf("No\n");
                found=1;
                break;
            }
        }
        if(found) break;
    }
    printf("Hello World!\n");
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:17:24: error: lvalue required as left operand of assignment
   17 |             if(i=8 && j=n-1 && a[i] != b[j]) {
      |                        ^
Language: C++

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

int main(){
    vector<vector<int>> V(3, vector<int>(3));
    for(int i = 0; i < 3; i++){
        cin >> V.at(i).at(0) >> V.at(i).at(1) >> V.at(i).at(2);
    }
    cin >> N;
    vector<int> W;
    for(int i = 0; i < N; i++){
        cin >> W.at(i);
    }
    //入力終了
    for(int i = 0; i < 3; i++){
        for(int j = 0; j < 3; j++){
            for(int k = 0; k < N; k++){
                if(W.at(k) == V.at(i).at(j)){
                    V.at(i).at(j) = 10000; //制約は100未満
                }
            }
        }
    }
    //マーク付け終了
    for(int i = 0; i < 3; i++){
        if((V.at(i).at(0) == V.at(i).at(1) == V.at(i).at(2) == 10000) || (V.at(0).at(i) == V.at(1).at(i) == V.at(2).at(i) == 10000) || (V.at(0).at(0) == V.at(1).at(1) == V.at(2).at(2) == 10000) || (V.at(0).at(2) == V.at(1).at(1) == V.at(2).at(0)){
            cout << "Yes" << endl;
            goto ABC;
        }
    }
    cout << "No" << endl;
    ABC:
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:12: error: 'N' was not declared in this scope
    9 |     cin >> N;
      |            ^
a.cc:26:247: error: expected ')' before '{' token
   26 |         if((V.at(i).at(0) == V.at(i).at(1) == V.at(i).at(2) == 10000) || (V.at(0).at(i) == V.at(1).at(i) == V.at(2).at(i) == 10000) || (V.at(0).at(0) == V.at(1).at(1) == V.at(2).at(2) == 10000) || (V.at(0).at(2) == V.at(1).at(1) == V.at(2).at(0)){
      |           ~                                                                                                                                                                                                                                           ^
      |                                                                                                                                                                                                                                                       )
a.cc:30:5: error: expected primary-expression before '}' token
   30 |     }
      |     ^
Language: C++

#include <bits/stdc++.h>

#define ll long long
#define vi vector<int>
#define vll vector<long long>
#define sll set<long long>
#define si set<int>
#define stk stack<int>
#define que queue<int>
#define pb push_back
#define ff first
#define ss second
#define IOS ios::sync_with_stdio(false);cin.tie(0);cout.tie(0);

using namespace std;

int main(){
	int q=1;
	//cin>>q;

	while(q--){
		int n=3;
		vector<vi> b(3,vi(3,0)),a(3,vi(3));
		map<int, pair<int,int>> m;
		for(int i=0;i<n;i++){
			for(int j=0;j<n;j++){
				cin>>a[i][j];
				m[a[i][j]]={i,j};
			}
		}
		int k;
		cin>>k;
		
		for(int i=0;i<k;i++){
			int x;
			cin>>x;
			if(m.find(x)!=m.end()){
				b[m[x].ff][m[x].ss]=1;
			}
		}
		int bo=0;
		for(int i=0;i<n;i++){
			int co=0,cov=0;
			for(int j=0;j<n;j++){
				if(i!=j&&b[i][j])
					co++;
				if(i!=j&&b[j][i])
					cov++;
			}
			if(co==3||cov==3){
				bo=1;
				break;
			}

		}

		int c=0,ci=0;
		for(int i=0;i<n;i++){
			if(b[i][i])
				c++;
			if(b[i][n-i-1])
		}

		if(c==3||ci==3)
			bo=1;

		if(bo){
			cout<<"Yes"<<endl;
		}
		else{
			cout<<"No"<<endl;
		}			
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:62:17: error: expected primary-expression before '}' token
   62 |                 }
      |                 ^
Language: Java

import java.util.Scanner;

public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    
    int a[] = new int[3];
    int b[] = new int[3];
    int c[] = new int[3];
    
    for(int i = 0; i < 3; i++){
      a[i] = sc.nestInt();
    }
    
    for(int i = 0; i < 3; i++){
      b[i] = sc.nestInt();
    }
    
    for(int i = 0; i < 3; i++){
      c[i] = sc.nestInt();
    }
    
    int n = sc.nextInt();
    
    int d[] = new int[n];
    
    for(int i = 0; i < n; i++){
      d[i] = sc.nestInt();
    }
    
    int count = 0;
    
    for(int i = 0; i < 3; i++){
      for(int j = 0; j < n; j++){
        if((a[i] == d[j]) && (b[i] == d[j]) && (c[i] == d[j])){
          count++;
        }
      }
    }
    
    for(int j = 0; j < n; j++){
      for(int i = 0; i < 3; i++){
        if(d[j] == a[i]){
          count++;
        }
      }
    }
    
    for(int j = 0; j < n; j++){
      for(int i = 0; i < 3; i++){
        if(d[j] == b[i]){
          count++;
        }
      }
    }
    
    for(int j = 0; j < n; j++){
      for(int i = 0; i < 3; i++){
        if(d[j] == c[i]){
          count++;
        }
      }
    }
    
    for(int j = 0; j < n; j++){
      if((d[j] == a[1]) && (d[j] == b[2]) && (d[j] == c[3])){
        count++;
      }
    }
    
    for(int j = 0; j < n; j++){
      if((d[j] == a[3]) && (d[j] == b[2]) && (d[j] == c[1])){
        count++;
      }
    }
    
    if(count == 0){
      System.out.println("No");
    }else{
      System.out.println("Yes");
    }
        
    sc.close();
     
  }
}


Compiler output:
Main.java:12: error: cannot find symbol
      a[i] = sc.nestInt();
               ^
  symbol:   method nestInt()
  location: variable sc of type Scanner
Main.java:16: error: cannot find symbol
      b[i] = sc.nestInt();
               ^
  symbol:   method nestInt()
  location: variable sc of type Scanner
Main.java:20: error: cannot find symbol
      c[i] = sc.nestInt();
               ^
  symbol:   method nestInt()
  location: variable sc of type Scanner
Main.java:28: error: cannot find symbol
      d[i] = sc.nestInt();
               ^
  symbol:   method nestInt()
  location: variable sc of type Scanner
4 errors
Language: C++

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

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

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

int main() {

	u32 a[3][3];
	
	for(u32 i=0; i<3; i++) {
		for(u32 j=0; j<3; j++) {
			cin >> a[i][j];
		}
	}
	
	u32 N;
	cin >> N;
	
	for(u32 k=0; k<N; k++) {
		u32 b;
		cin >> b;
		
		for(u32 i=0; i<3; i++) {
			for(u32 j=0; j<3; j++) {
				if(b == a[i][j]) {
					a[i][j] = 0;
					break;
				}
			}
		}
	}
	
	//yoko
	for(u32 i=0; i<3; i++) {
		bool jdg = true;
		for(u32 j=0; j<3; j++) {
			jdg = jdg & (0 == a[i][j]);
			if(!jdg) break; 
		}
		if(jdg) {
			cout << "Yes";
			return 0;
		}
	}

	// tate
	for(u32 i=0; i<3; i++) {
		bool jdg = true;
		for(u32 j=0; j<3; j++) {
			jdg = jdg & (0 == a[j][i]);
			if(!jdg) break; 
		}
		if(jdg) {
			cout << "Yes";
			return 0;
		}
	}
	
	// nane 1
	bool jdg = true;
	for(u32 i=0; i<3; i++) {
		jdg = jdg & (0 == a[i][i]);
		if(!jdg) break; 
	}
	
	if(jdg) {
		cout << "Yes";
		return 0;
	}
	
	// nane 2
	jdg = true;
	for(int i=0 i<3; i++) {
		jdg = jdg & (0 == a[i][2-i]);
		if(!jdg) break; 
	}
	if(jdg) {
		cout << "Yes";
		return 0;
	}
	
	cout << "No";
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:72:20: error: expected ';' before 'i'
   72 |         for(int i=0 i<3; i++) {
      |                    ^~
      |                    ;
Language: Java

Code 

Copy
Copy
import java.util.Scanner;
 
public class Main {
 
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
      	int[][] matrix = new int[3][3];
		int[][] count = new int[3][3];
      
      	for (int i = 0; i < 3; i++) {
			for (int j = 0; j < 3; j++) {
            	matrix[i][j] = in.nextInt();  
            }
        }      
        int num = in.nextInt();
      	for (int m = 0; m < num; m++) {
			int n = in.nextInt();
          	for (int i = 0; i < 3; i++) {
              for (int j = 0; j < 3; j++) {
                  if (matrix[i][j] == n) count[i][j]++;  
              }
        	}
        }
        
      	boolean exist = false;
      
      	if (count[0][0] == 1 && count[1][1] == 1 && count[2][2] == 1) 
			exist = true;
      	if (count[0][0] == 1 && count[0][1] == 1 && count[0][2] == 1) 
			exist = true;
      	if (count[1][0] == 1 && count[1][1] == 1 && count[1][2] == 1) 
			exist = true;     
      	if (count[2][0] == 1 && count[2][1] == 1 && count[2][2] == 1) 
			exist = true;     
      	if (count[0][0] == 1 && count[1][0] == 1 && count[2][0] == 1) 
			exist = true;
      	if (count[0][1] == 1 && count[1][1] == 1 && count[2][1] == 1) 
			exist = true;     
      	if (count[0][2] == 1 && count[1][2] == 1 && count[1][3] == 1) 
			exist = true;
      	System.out.println(exist ? "Yes" : "No");
 
    }
 
}

Compiler output:
Main.java:1: error: class, interface, enum, or record expected
Code 
^
1 error
Language: C++

#include<bits/stdc++.h>
using namespace std;
bool b;
int m[3][3],n;
int main
{
	for(int i=0;i<=2;i++)
	{
		for(int j=0;j<=2;j++)
		{
			scanf(%d%d,&m[i][j]);
		}
	}
	scanf("%d",&n);
	int a;
	for(int i=1;i<=n;i++)
	{
		scanf("%d",&a);
		for(int j=0;j<=2;j++)
		{
			for(int k=0;k<=2;k++)
			{
				if(m[i][j]==a)
				{
					printf("Yes");
					return 0;
				}
			}
		}
	}
	printf("No");
}

Compiler output:
a.cc:5:5: error: cannot declare '::main' to be a global variable
    5 | int main
      |     ^~~~
a.cc:7:9: error: expected primary-expression before 'for'
    7 |         for(int i=0;i<=2;i++)
      |         ^~~
a.cc:7:9: error: expected '}' before 'for'
a.cc:6:1: note: to match this '{'
    6 | {
      | ^
a.cc:7:21: error: 'i' does not name a type
    7 |         for(int i=0;i<=2;i++)
      |                     ^
a.cc:7:26: error: 'i' does not name a type
    7 |         for(int i=0;i<=2;i++)
      |                          ^
a.cc:14:14: error: expected constructor, destructor, or type conversion before '(' token
   14 |         scanf("%d",&n);
      |              ^
a.cc:16:9: error: expected unqualified-id before 'for'
   16 |         for(int i=1;i<=n;i++)
      |         ^~~
a.cc:16:21: error: 'i' does not name a type
   16 |         for(int i=1;i<=n;i++)
      |                     ^
a.cc:16:26: error: 'i' does not name a type
   16 |         for(int i=1;i<=n;i++)
      |                          ^
a.cc:31:15: error: expected constructor, destructor, or type conversion before '(' token
   31 |         printf("No");
      |               ^
a.cc:32:1: error: expected declaration before '}' token
   32 | }
      | ^
Language: Java

import java.util.Scanner;
 
public class Main {
 
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
      	int[][] matrix = new int[3][3];
		int[][] count = new int[3][3];
      
      	for (int i = 0; i < 3; i++) {
			for (int j = 0; j < 3; j++) {
            	matrix[i][j] = in.nextInt();  
            }
        }      
        int num = in.nextInt();
      	for (int m = 0; m < num; m++) {
			int n = in.nextInt();
          	for (int i = 0; i < 3; i++) {
              for (int j = 0; j < 3; j++) {
                  if (matrix[i][j] == n) count[i][j]++;  
              }
        	}
        }
        
      	boolean exist = false;
      
      	if (count[0][0] == 1 && count[1][1] == 1 && count[2][2] == 1) 
        	return true;
      	if (count[0][0] == 1 && count[0][1] == 1 && count[0][2] == 1) 
        	return true;
      	if (count[1][0] == 1 && count[1][1] == 1 && count[1][2] == 1) 
        	return true;      
      	if (count[2][0] == 1 && count[2][1] == 1 && count[2][2] == 1) 
        	return true;      
      	if (count[0][0] == 1 && count[1][0] == 1 && count[2][0] == 1) 
        	return true;
      	if (count[0][1] == 1 && count[1][1] == 1 && count[2][1] == 1) 
        	return true;      
      	if (count[0][2] == 1 && count[1][2] == 1 && count[1][3] == 1) 
        	return true;
      	return faflse;
 
    }
 
}

Compiler output:
Main.java:28: error: incompatible types: unexpected return value
        	return true;
        	       ^
Main.java:30: error: incompatible types: unexpected return value
        	return true;
        	       ^
Main.java:32: error: incompatible types: unexpected return value
        	return true;      
        	       ^
Main.java:34: error: incompatible types: unexpected return value
        	return true;      
        	       ^
Main.java:36: error: incompatible types: unexpected return value
        	return true;
        	       ^
Main.java:38: error: incompatible types: unexpected return value
        	return true;      
        	       ^
Main.java:40: error: incompatible types: unexpected return value
        	return true;
        	       ^
Main.java:41: error: incompatible types: unexpected return value
      	return faflse;
      	       ^
8 errors
Language: Java

import java.util.Scanner;
 
public class Main {
 
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
      	int[][] matrix = new int[3][3];
		int[][] count = new int[3][3];
      
      	for (int i = 0; i < 3; i++;) {
			for (int j = 0; j < 3; j++;) {
            	matrix[i][j] = in.nextInt();  
            }
        }      
        int num = in.nextInt();
      	for (int m = 0; m < num; m++) {
			int n = in.nextInt();
          	for (int i = 0; i < 3; i++;) {
              for (int j = 0; j < 3; j++;) {
                  if (matrix[i][j] == n) count[i][j]++;  
              }
        	}
        }
        
      	boolean exist = false;
      
      	if (count[0][0] == 1 && count[1][1] == 1 && count[2][2] == 1) 
        	return true;
      	if (count[0][0] == 1 && count[0][1] == 1 && count[0][2] == 1) 
        	return true;
      	if (count[1][0] == 1 && count[1][1] == 1 && count[1][2] == 1) 
        	return true;      
      	if (count[2][0] == 1 && count[2][1] == 1 && count[2][2] == 1) 
        	return true;      
      	if (count[0][0] == 1 && count[1][0] == 1 && count[2][0] == 1) 
        	return true;
      	if (count[0][1] == 1 && count[1][1] == 1 && count[2][1] == 1) 
        	return true;      
      	if (count[0][2] == 1 && count[1][2] == 1 && count[1][3] == 1) 
        	return true;
      	return faflse;
 
    }
 
}

Compiler output:
Main.java:10: error: ')' expected
      	for (int i = 0; i < 3; i++;) {
      	                          ^
Main.java:10: error: illegal start of expression
      	for (int i = 0; i < 3; i++;) {
      	                           ^
Main.java:11: error: ')' expected
			for (int j = 0; j < 3; j++;) {
			                          ^
Main.java:11: error: illegal start of expression
			for (int j = 0; j < 3; j++;) {
			                           ^
Main.java:18: error: ')' expected
          	for (int i = 0; i < 3; i++;) {
          	                          ^
Main.java:18: error: illegal start of expression
          	for (int i = 0; i < 3; i++;) {
          	                           ^
Main.java:19: error: ')' expected
              for (int j = 0; j < 3; j++;) {
                                        ^
Main.java:19: error: illegal start of expression
              for (int j = 0; j < 3; j++;) {
                                         ^
8 errors
Language: C++

#include<bits/stdc++.h>

using namespace std;

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

    int N;
    cin >> N;
    

    int A1[3][3];
  for(int i = 0; i < 3; i++){
    for(int j = 0; j < 3; j++){
    A1[i][j] = 0;
    }  
    }
 int b;
    for(int i = 0; i < N; i++){
      cin >> b;
      for(int j = 0; j < 3; j++){
        for(int k = 0; k < 3; k++){
          if(A[j][k] == b) A1[j][k] = 1;
        }
      }
    }

    if(A1[0][0] == 1 && A1[1][1] == 1 && A1[2][2] == 1 ){ cout << "Yes"; return 0;}
    int count = 0;
    for(int i = 0; i < 3; i++){
      for(int j = 0; j < 3; j++){
        if(A[i][j] == 0) break;
        else count++;
      }
      if(count == 3){ cout << "Yes"; return 0; }

    }
for(int j = 0; i < 3; i++){
      for(int i = 0; i < 3; i++){
        if(A[i][j] == 0) break;
        else count++;
      }
      if(count == 3){ cout << "Yes"; return 0; }

    }

    cout << "No";


  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:43:16: error: 'i' was not declared in this scope
   43 | for(int j = 0; i < 3; i++){
      |                ^
Language: Java

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

Compiler output:
Main.java:35: error: illegal start of expression
    	for(int i=; i<3; i++){
    	          ^
Main.java:48: error: ')' expected
      if(card[0][2] == 0 && card[1][1] == 0 && card[2][0] == 0{
                                                              ^
2 errors
Language: C

#include<stdio.h>
int main(){
int A[3][3];
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:19:7: error: 'i' undeclared (first use in this function)
   19 |   for(i=0;i<N;i++){
      |       ^
main.c:19:7: note: each undeclared identifier is reported only once for each function it appears in
Language: Java

import java.util.Scanner;

//AtCoder Beginner Contest 157
//B	Bingo
public class Main87 {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int[] A = new int[9];
		for (int i = 0; i < 9; i++) {
			A[i] = Integer.parseInt(sc.next());
		}
		int N = Integer.parseInt(sc.next());
		boolean[] c = new boolean[9];
		for (int i = 0; i < N; i++) {
			int b = Integer.parseInt(sc.next());
			for (int j = 0; j < 9; j++) {
				if (A[j] == b) {
					c[j] = true;
				}
			}
		}
		sc.close();

		if (c[0] && c[3] && c[6]) {
			System.out.println("Yes");
		}
		else if (c[1] && c[4] && c[7]) {
			System.out.println("Yes");
		}
		else if (c[2] && c[5] && c[8]) {
			System.out.println("Yes");
		}
		else if (c[0] && c[1] && c[2]) {
			System.out.println("Yes");
		}
		else if (c[3] && c[4] && c[5]) {
			System.out.println("Yes");
		}
		else if (c[6] && c[7] && c[8]) {
			System.out.println("Yes");
		}
		else if (c[0] && c[4] && c[8]) {
			System.out.println("Yes");
		}
		else if (c[2] && c[4] && c[6]) {
			System.out.println("Yes");
		}
		else {
			System.out.println("No");
		}
	}
}


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

#include <bits/stdc++.h>

using namespace std;

int main() {
  /* 初期化 */
  int table = {{0,0,0},{0,0,0},{0,0,0}};
  int signs = {{false,false,false},{false,false,false},{false,false,false}};
  
  /* 入力 */
  for (int i = 0; i < 3; i++) {
    for (int n = 0; n < 3; n++) {
      cin >> table[i][n];
    }
  }
  
  int N = 0;
  cin >> N;
  
  for (int i = 0; i < N; i++) {
    int tmp = 0;
    cin >> tmp;
    
    for (int n = 0; n < 3; n++) {
      for (int m = 0; m < 3; m++) {
        if (table[n][m] == tmp) {
          signs[n][m] = true; // 印をつける
        }
      }
    }
  }
  
  /* 1つめの添字を固定したときビンゴが成立しているか？ */
  
  for (int i = 0; i < 3; i++) {
    for (int n = 0; n < 3; n++) {
      if (signs[i][n] == false) {
        break;
      }
      
      if (n == 2) {
        // 端まですべてtrueで埋められていた、よってビンゴ成立
        cout << "Yes" << endl;
        return 0;
      }
    }
  }
  
  /* もう1方の方向はどうか？ */
  
  for (int i = 0; i < 3; i++) {
    for (int n = 0; n < 3; n++) {
      if (signs[n][i] == false) {
        break;
      }
      
      if (i == 2) {
        // 端まですべてtrueで埋められていた、よってビンゴ成立
        cout << "Yes" << endl;
        return 0;
      }
    }
  }
  
  /* 斜めは2パターンしか存在しない*/
  
  for (int i = 0; i < 3; i++) {
    if (signs[i][i] == false) {
      break;
    }
    
    if (i == 2) {
      // 端まですべてtrueで埋められていた、よってビンゴ成立
      cout << "Yes" << endl;
      return 0;
    }
  }
  
  for (int i = 0; i < 3; i++) {
    if (signs[i][2 - i] == false) {
      break;
    }
    
    if (i == 2) {
      // 端まですべてtrueで埋められていた、よってビンゴ成立
      cout << "Yes" << endl;
      return 0;
    }
  }
  
  cout << "No" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:7: error: scalar object 'table' requires one element in initializer
    7 |   int table = {{0,0,0},{0,0,0},{0,0,0}};
      |       ^~~~~
a.cc:8:7: error: scalar object 'signs' requires one element in initializer
    8 |   int signs = {{false,false,false},{false,false,false},{false,false,false}};
      |       ^~~~~
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: non-static variable a cannot be referenced from a static context
          a[i][k]=tugi;
          ^
Main.java:22: error: variable i is already defined in method main(String[])
        for(int i=0;i<3;i++){
                ^
Main.java:24: error: non-static variable a cannot be referenced from a static context
          if(a[i][k]==now){
             ^
3 errors