Language: C++

//ada kartu bingo 3x3
//pada row ke i dari atas
//dan pada column ke j dari kiri
//berisikan Aij (angka kali)
//akan dipilih N, dari b1 hingga bN
//jika salah satu itu terpenuhi dari bingo sheet kita
//kita tandain
//tentukan jika kita bingo yaitu dengan cara menentukan apakah kita punya ada 3 yg berturut2 entah gmn itu arahnnya
//inputnya semua integer
//inputnya pake array3x3
//jika bingo Yes, jika tidak No

#include <stdio.h>
int main(){
	int card[3][3];
	int i, j;
	for(i = 0; i<3; i++)
	{
		for(j=0; j<3; j++)
		{
			scanf("%d", &card[i][j]);		//minta input user buat bingo card
		}
	}
	
	//bingo card kosong buat nandain
	int pin[3][3] = {0};
	
	//bikin N, dan brp angka aja yg disebut biar dapet bingo apa ngga
	int N;
	scanf("%d", &N);
	
	//diulang biar dapet banyak N
	for(int k = 0; k<=N; k++)
	{
		scanf("%d", &number);
		int p[number];
	}
	
	for(int l=0; l<number; l++)
	{
		for(int i = 0; i<3; i++)
		{
			for(int j = 0; i<3; j++)
			{
				if(card[i][j] == p[l])
				{
					pin[i][j]++;	//ini di cek, dia memenuhi ga
				}
			}
		}
	}
	
	//dicek dia ada yg 1 line ga
	int diagonal = 0, kebawah = 0, samping = 0;		//kalo 3 ya yes
	
	
	//cek yg diagonal
for (int j = 0; j<3; j++)
	{
		for(int i=0; i<3; i++)
		{
			if(pin[j][i] == 1)
			{
				diagonal++;
			}
			else 
			{
				diagonal *=0;
			}
		}
	}

//cek yg kebawah
for(int j = 0; j<3; ++)
{
	if(pin[0][j] == 1)
	{
		kebawah++;
	}
	else 
	{
		kebawah *= 0;
	}
}
for(int j = 0; j<3; ++)
{
	if(pin[1][j] == 1)
	{
		kebawah++;
	}
	else 
	{
		kebawah *= 0;
	}
}
for(int j = 0; j<3; ++)
{
	if(pin[2][j] == 1)
	{
		kebawah++;
	}
	else 
	{
		kebawah *= 0;
	}
}


//nyamping
for(int j = 0; j<3; ++)
{
	if(pin[j][0] == 1)
	{
		samping++;
	}
	else 
	{
		samping *= 0;
	}
}
for(int j = 0; j<3; ++)
{
	if(pin[j][1] == 1)
	{
		samping++;
	}
	else 
	{
		samping *= 0;
	}
}
for(int j = 0; j<3; ++)
{
	if(pin[j][2] == 1)
	{
		samping++;
	}
	else 
	{
		samping *= 0;
	}
}

if(diagonal == 3 || samping == 3 || kebawah == 3)
{
	puts("Yes");
}
else 
{
	puts ("No");
}

	
	
	
	
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:35:30: error: 'number' was not declared in this scope
   35 |                 scanf("%d", &number);
      |                              ^~~~~~
a.cc:39:24: error: 'number' was not declared in this scope
   39 |         for(int l=0; l<number; l++)
      |                        ^~~~~~
a.cc:45:50: error: 'p' was not declared in this scope
   45 |                                 if(card[i][j] == p[l])
      |                                                  ^
a.cc:74:23: error: expected primary-expression before ')' token
   74 | for(int j = 0; j<3; ++)
      |                       ^
a.cc:85:23: error: expected primary-expression before ')' token
   85 | for(int j = 0; j<3; ++)
      |                       ^
a.cc:96:23: error: expected primary-expression before ')' token
   96 | for(int j = 0; j<3; ++)
      |                       ^
a.cc:110:23: error: expected primary-expression before ')' token
  110 | for(int j = 0; j<3; ++)
      |                       ^
a.cc:121:23: error: expected primary-expression before ')' token
  121 | for(int j = 0; j<3; ++)
      |                       ^
a.cc:132:23: error: expected primary-expression before ')' token
  132 | for(int j = 0; j<3; ++)
      |                       ^