Language: Java

import java.util.Scanner;
class Main{
	public static void main() {
		int[][] A={0,0,0,0,0,0,0,0,0};
		int[][] A2={0,0,0,0,0,0,0,0,0};
		Scanner scan = new Scanner(System.in);
		for(int i=0;i<9;i++){
			A[i]=scan.nextInt();
		}	
		int N;
		int b;
		N=scan.nextInt();
		for(int i=0;i<N;i++){
			b=scan.nextInt();
			for(int j=0;j<9;j++){
				if(b==A[j]){
					A2[j]=1;
				}	
			}
		}
		for(int i=0;i<3;i++){
			int c=1;
			for(int j=0;j<3;j++){
				c*=A2[i+3*j];
			}
			if(c!=0){
				System.out.println("Yes");
				return;
			}
		}
		for(int i=0;i<3;i++){
			int c=1;
			for(int j=0;j<3;j++){
				c*=A2[3*i+j];
			}
			if(c!=0){
				System.out.println("Yes");
				return;
			}
		}
		if(A2[0]*A2[4]*A2[8]!=0||A2[2]*A2[4]*A2[6]!=0){
			System.out.println("Yes");
			return;
		}
		System.out.println("No");
	}
}

Compiler output:
Main.java:4: error: incompatible types: int cannot be converted to int[]
		int[][] A={0,0,0,0,0,0,0,0,0};
		           ^
Main.java:4: error: incompatible types: int cannot be converted to int[]
		int[][] A={0,0,0,0,0,0,0,0,0};
		             ^
Main.java:4: error: incompatible types: int cannot be converted to int[]
		int[][] A={0,0,0,0,0,0,0,0,0};
		               ^
Main.java:4: error: incompatible types: int cannot be converted to int[]
		int[][] A={0,0,0,0,0,0,0,0,0};
		                 ^
Main.java:4: error: incompatible types: int cannot be converted to int[]
		int[][] A={0,0,0,0,0,0,0,0,0};
		                   ^
Main.java:4: error: incompatible types: int cannot be converted to int[]
		int[][] A={0,0,0,0,0,0,0,0,0};
		                     ^
Main.java:4: error: incompatible types: int cannot be converted to int[]
		int[][] A={0,0,0,0,0,0,0,0,0};
		                       ^
Main.java:4: error: incompatible types: int cannot be converted to int[]
		int[][] A={0,0,0,0,0,0,0,0,0};
		                         ^
Main.java:4: error: incompatible types: int cannot be converted to int[]
		int[][] A={0,0,0,0,0,0,0,0,0};
		                           ^
Main.java:5: error: incompatible types: int cannot be converted to int[]
		int[][] A2={0,0,0,0,0,0,0,0,0};
		            ^
Main.java:5: error: incompatible types: int cannot be converted to int[]
		int[][] A2={0,0,0,0,0,0,0,0,0};
		              ^
Main.java:5: error: incompatible types: int cannot be converted to int[]
		int[][] A2={0,0,0,0,0,0,0,0,0};
		                ^
Main.java:5: error: incompatible types: int cannot be converted to int[]
		int[][] A2={0,0,0,0,0,0,0,0,0};
		                  ^
Main.java:5: error: incompatible types: int cannot be converted to int[]
		int[][] A2={0,0,0,0,0,0,0,0,0};
		                    ^
Main.java:5: error: incompatible types: int cannot be converted to int[]
		int[][] A2={0,0,0,0,0,0,0,0,0};
		                      ^
Main.java:5: error: incompatible types: int cannot be converted to int[]
		int[][] A2={0,0,0,0,0,0,0,0,0};
		                        ^
Main.java:5: error: incompatible types: int cannot be converted to int[]
		int[][] A2={0,0,0,0,0,0,0,0,0};
		                          ^
Main.java:5: error: incompatible types: int cannot be converted to int[]
		int[][] A2={0,0,0,0,0,0,0,0,0};
		                            ^
Main.java:8: error: incompatible types: int cannot be converted to int[]
			A[i]=scan.nextInt();
			                 ^
Main.java:16: error: bad operand types for binary operator '=='
				if(b==A[j]){
				    ^
  first type:  int
  second type: int[]
Main.java:17: error: incompatible types: int cannot be converted to int[]
					A2[j]=1;
					      ^
Main.java:24: error: bad operand types for binary operator '*'
				c*=A2[i+3*j];
				 ^
  first type:  int
  second type: int[]
Main.java:34: error: bad operand types for binary operator '*'
				c*=A2[3*i+j];
				 ^
  first type:  int
  second type: int[]
Main.java:41: error: bad operand types for binary operator '*'
		if(A2[0]*A2[4]*A2[8]!=0||A2[2]*A2[4]*A2[6]!=0){
		        ^
  first type:  int[]
  second type: int[]
Main.java:41: error: bad operand types for binary operator '*'
		if(A2[0]*A2[4]*A2[8]!=0||A2[2]*A2[4]*A2[6]!=0){
		                              ^
  first type:  int[]
  second type: int[]
25 errors