Language: C++

#include <iostream>

int main(void) {
	bool bingo = false;
	int** matrix;
	bool** hit;
	int N;
	int* numbers;


	//ビンゴカード、当たり判定用動的配列の確保
	matrix = new int* [3];
	hit =new bool*[3];

	for (int i = 0; i < 3; i++) {
		matrix[i] = new int[3];
		hit[i] = new bool[3];
	}
	for (int i = 0; i < 3; i++) {
		for (int j = 0; j < 3; j++) {
			hit[i][j]=false;
		}
	}

	//ビンゴカード読み込み
	for (int i = 0; i < 3; i++) {
		for (int j = 0; j < 3; j++) {
			cin >> matrix[i][j];
		}
	}

	//抽選番号数を読み込み
	cin >> N;

	//抽選番号用配列の確保
	numbers = new int* [N];


	//ビンゴカードのあたり判定
	for (int i = 0; i < 3; i++) {
		for (int j = 0; j < 3; j++) {
			for (int k = 0; k < N; k++) {
				if (matrix[i][j] == numbers[k]) {
					hit[i][j] = true;
				}
			}
		}
	}

	//行でビンゴか判定
	for (int i = 0; i < 3; i++) {
		bingo = judgeBingo(hit[i][0], hit[i][1], hit[i][2]);
		if (bingo) {
			goto result;
		}
	}

	//列でビンゴか判定
	for (int j = 0; j < 3; j++) {
		bingo = judgeBingo(hit[0][j], hit[1][j], hit[2][j]);
		if (bingo) {
			goto result;
		}
	}

	//斜めでビンゴか判定
	if (judgeBingo(hit[0][0], hit[1][1], hit[2][2])) {
		bingo = ture;
		goto result;
	}
	if (judgeBingo(hit[0][2], hit[1][1], hit[2][0])) {
		bingo = ture;
		goto result;
	}



	label result:
	if (bingo) {
		cout << "yes";
	}
	else {
		cout << "no";
	}

	return 0;
}

bool judgeBingo(bool a, bool b, bool c) {
	if (a == true && b == true && c == true) {
		return true;
	}else {
		return false;
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:28:25: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   28 |                         cin >> matrix[i][j];
      |                         ^~~
      |                         std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:33:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   33 |         cin >> N;
      |         ^~~
      |         std::cin
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:36:19: error: cannot convert 'int**' to 'int*' in assignment
   36 |         numbers = new int* [N];
      |                   ^~~~~~~~~~~~
      |                   |
      |                   int**
a.cc:52:25: error: 'judgeBingo' was not declared in this scope
   52 |                 bingo = judgeBingo(hit[i][0], hit[i][1], hit[i][2]);
      |                         ^~~~~~~~~~
a.cc:60:25: error: 'judgeBingo' was not declared in this scope
   60 |                 bingo = judgeBingo(hit[0][j], hit[1][j], hit[2][j]);
      |                         ^~~~~~~~~~
a.cc:67:13: error: 'judgeBingo' was not declared in this scope
   67 |         if (judgeBingo(hit[0][0], hit[1][1], hit[2][2])) {
      |             ^~~~~~~~~~
a.cc:68:25: error: 'ture' was not declared in this scope
   68 |                 bingo = ture;
      |                         ^~~~
a.cc:71:13: error: 'judgeBingo' was not declared in this scope
   71 |         if (judgeBingo(hit[0][2], hit[1][1], hit[2][0])) {
      |             ^~~~~~~~~~
a.cc:72:25: error: 'ture' was not declared in this scope
   72 |                 bingo = ture;
      |                         ^~~~
a.cc:78:9: error: 'label' was not declared in this scope
   78 |         label result:
      |         ^~~~~
a.cc:82:9: error: 'else' without a previous 'if'
   82 |         else {
      |         ^~~~
a.cc:83:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   83 |                 cout << "no";
      |                 ^~~~
      |                 std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:54:30: error: label 'result' used but not defined
   54 |                         goto result;
      |                              ^~~~~~