Language: Java

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

Compiler output:
Main.java:12: error: cannot find symbol
		for(i=0;i<N;i++){
		    ^
  symbol:   variable i
  location: class Main
Main.java:12: error: cannot find symbol
		for(i=0;i<N;i++){
		        ^
  symbol:   variable i
  location: class Main
Main.java:12: error: cannot find symbol
		for(i=0;i<N;i++){
		            ^
  symbol:   variable i
  location: class Main
Main.java:14: error: cannot find symbol
		for(i=0;i<9;i++){
		    ^
  symbol:   variable i
  location: class Main
Main.java:14: error: cannot find symbol
		for(i=0;i<9;i++){
		        ^
  symbol:   variable i
  location: class Main
Main.java:14: error: cannot find symbol
		for(i=0;i<9;i++){
		            ^
  symbol:   variable i
  location: class Main
Main.java:15: error: cannot find symbol
			if(b==A[i][0]){
			        ^
  symbol:   variable i
  location: class Main
Main.java:16: error: cannot find symbol
				A[i][1]=1;
				  ^
  symbol:   variable i
  location: class Main
Main.java:20: error: cannot find symbol
	for(i=0;i<3;i++){
	    ^
  symbol:   variable i
  location: class Main
Main.java:20: error: cannot find symbol
	for(i=0;i<3;i++){
	        ^
  symbol:   variable i
  location: class Main
Main.java:20: error: cannot find symbol
	for(i=0;i<3;i++){
	            ^
  symbol:   variable i
  location: class Main
Main.java:23: error: cannot find symbol
			c*=A[i+3*j][1];
			     ^
  symbol:   variable i
  location: class Main
Main.java:25: error: incompatible types: int cannot be converted to boolean
		if(c){
		   ^
Main.java:30: error: cannot find symbol
	for(i=0;i<3;i++){
	    ^
  symbol:   variable i
  location: class Main
Main.java:30: error: cannot find symbol
	for(i=0;i<3;i++){
	        ^
  symbol:   variable i
  location: class Main
Main.java:30: error: cannot find symbol
	for(i=0;i<3;i++){
	            ^
  symbol:   variable i
  location: class Main
Main.java:32: error: cannot find symbol
		for(j=0;j<3;j++){
		    ^
  symbol:   variable j
  location: class Main
Main.java:32: error: cannot find symbol
		for(j=0;j<3;j++){
		        ^
  symbol:   variable j
  location: class Main
Main.java:32: error: cannot find symbol
		for(j=0;j<3;j++){
		            ^
  symbol:   variable j
  location: class Main
Main.java:33: error: cannot find symbol
			c*=A[3*i+j][1];
			       ^
  symbol:   variable i
  location: class Main
Main.java:33: error: cannot find symbol
			c*=A[3*i+j][1];
			         ^
  symbol:   variable j
  location: class Main
Main.java:35: error: incompatible types: int cannot be converted to boolean
		if(c){
		   ^
Main.java:40: error: bad operand types for binary operator '||'
	if(A[0][1]*A[4][1]*A[8][1]||A[2][1]*A[4][1]*A[6][1]){
	                          ^
  first type:  int
  second type: int
23 errors