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

import java.util.Scanner;
public class Main {
public static void main(String[] args) {
int n = 1;
int j = 1;
Scanner sc= new Scanner(System.in);

while(true) {
int H = sc.nextInt();
int W= sc.nextInt();
if (H == 0 && W == 0) {
break;
}
while(n<=H){
     if(n%2 == 1){
         while(j<=W){
              if(j%2 == 1){
                      System.out.printf("#");
              }
              if(j%2 == 0){
                      System.out.printf(".");
              }
              
              j++;
         }
       System.out.printf("\n");
       }
      else{
           while(j<=W){
              if(j%2 == 1){
                      System.out.printf(",");
              }
              else{
                      System.out.printf("#");
              }
              
              j++;
                     
        }   System.out.printf("\n");
}

        j =1;n++;
}
         }
}
 System.out.printf("\n");
}

Compiler output:
Main.java:46: error: <identifier> expected
 System.out.printf("\n");
                  ^
Main.java:46: error: illegal start of type
 System.out.printf("\n");
                   ^
2 errors
Language: Java

import java.util.Scanner;
public class Main {
public static void main(String[] args) {
int n = 1;
int j = 1;
Scanner sc= new Scanner(System.in);

while(true) {
int H = sc.nextInt();
int W= sc.nextInt();
if (H == 0 && W == 0) {
break;
}
while(n<=H){
     if(n%2 == 1){
         while(j<=W){
              if(j%2 == 1){
                      System.out.printf("#");
              }
              if(j%2 == 0){
                      System.out.printf(".");
              }
              
              j++;
         }
       System.out.printf("\n");
       }
      else{
           while(j<=W){
              if(j%2 == 1){
                      System.out.printf(",");
              }
              else{
                      System.out.printf("#");
              }
              
              j++;
                     
        }   System.out.printf("\n");
}

        j =1;n++;
}
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
int n = 1;
int j = 1;
Scanner sc= new Scanner(System.in);

while(true) {
int H = sc.nextInt();
int W= sc.nextInt();
if (H == 0 && W == 0) {
break;
}
while(n<=H){
     if(n%2 == 1){
         while(j<=W){
              if(j%2 == 1){
                      System.out.printf("#");
              }
              if(j%2 == 0){
                      System.out.printf(".");
              }
              
              j++;
         }
       System.out.printf("\n");
       }
      else{
           while(j<=W){
              if(j%2 == 1){
                      System.out.printf(",");
              }
              else{
                      System.out.printf("#");
              }
              
              j++;
                     
        }   System.out.printf("\n");
}

        j =1;n++;
}
         }
}
 System.out.printf("\n");
}
         }
}

}

Compiler output:
Main.java:44: error: illegal start of expression
import java.util.Scanner;
^
Main.java:44: error: not a statement
import java.util.Scanner;
                ^
Main.java:45: error: illegal start of expression
public class Main {
^
Main.java:89: error: <identifier> expected
 System.out.printf("\n");
                  ^
Main.java:89: error: illegal start of type
 System.out.printf("\n");
                   ^
Main.java:92: error: class, interface, enum, or record expected
}
^
6 errors
Language: Java

import java.util.Scanner;

public class Chess{
    public static void main(String[] args){
        int H,W,i,j;
        Scanner sc = new Scanner(System.in);

        for(;;){
            H = sc.nextInt();
            W = sc.nextInt();
            if(H == 0 && W == 0)break;
            for(j=0;j<W;j++){
                for(i=0;i<H;i++){
                    System.out.printf("#");
                    if(i == H) break;
                    for(;;){
                        System.out.printf(".");
                        i++;
                        break;
		    }   
            	}
                System.out.println("");
            }
	}
    }
}

Compiler output:
Main.java:3: error: class Chess is public, should be declared in a file named Chess.java
public class Chess{
       ^
1 error
Language: Java

import java.util.Scanner;

public class Chess{
    public static void main(String[] args){
        int H,W,i,j;
        Scanner sc = new Scanner(System.in);

        for(;;){
            H = sc.nextInt();
            W = sc.nextInt();
            if(H == 0 && W == 0)break;
            if(H<1 || H>300 || W<1 || W>300)continue;
            for(j=0;j<W;j++){
                for(i=0;i<H;i++){
                    System.out.printf("#");
                    i++;
                    if(i == H) break;
                    for(;;){
                        System.out.printf(".");
			break;
		    }   
            	}
                System.out.println("");
            }
            System.out.println("");
        }
    }
}

Compiler output:
Main.java:3: error: class Chess is public, should be declared in a file named Chess.java
public class Chess{
       ^
1 error
Language: Java

import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// ?¨??????\???????????????????????????????????????
Scanner sc= new Scanner(System.in);
// ????????????????????????????????´??°?????¨????????????????????????
int i = 0;
int j = 0;
while(true) {
	int H = sc.nextInt();
	int W= sc.nextInt();
	if (H == 0 && W == 0) {
		break;
	}else{
		for(i=0;i<H;i++){
			for(j=0;j<W;j++){
				if((j+i)%2==0){
					System.out.printf("#");
				}else{
					System.out.printf(".");
				}
			}
			System.out.printf("\n");
		}
	}
	}
}
System.out.printf("\n");
}

Compiler output:
Main.java:28: error: <identifier> expected
System.out.printf("\n");
                 ^
Main.java:28: error: illegal start of type
System.out.printf("\n");
                  ^
2 errors
Language: Java

import java.util.Scanner;

public class Chess{
    public static void main(String[] args){
        int H,W,i,j;
        char a='#',b='.',c;
        Scanner sc = new Scanner(System.in);

        for(;;){
            H = sc.nextInt();
            W = sc.nextInt();
            if(H == 0 && W == 0)break;
            if(H<1 || W>300)continue;
            for(j=0;j<H;j++){
                for(i=0;i<W;i++){
                    System.out.printf("%s",a);
                    i++;
                    if(i == W) break;
                    for(;;){
                        System.out.printf("%s",b);
                        break;
		    }
                }
                System.out.println("");
                c=a;
                a=b;
                b=c;
            }
            System.out.println("");
        }
    }
}

Compiler output:
Main.java:3: error: class Chess is public, should be declared in a file named Chess.java
public class Chess{
       ^
1 error
Language: Java

Import java.util Scanner;
public class Main{
	public static void main(String[] args){
	Scanner sc =new Scanner(System.in);
	while(true){
	int H=sc.nextInt();
	int W=sc.nextInt();
	if(H==0&&W==0){
	break;
	}
	for(int i=0;i<H;i++){
	fpr(int j=0;j<W;j++){
	if(i+j)%2==0){
	System.out.print("#");
	}
	else{
	System.out.print(".");
	}
	}
	System.out.println();
	}
	System.out.println();
	}
	}
}

Compiler output:
Main.java:1: error: class, interface, enum, or record expected
Import java.util Scanner;
^
Main.java:12: error: '.class' expected
	fpr(int j=0;j<W;j++){
	        ^
Main.java:12: error: > or ',' expected
	fpr(int j=0;j<W;j++){
	               ^
Main.java:12: error: not a statement
	fpr(int j=0;j<W;j++){
	             ^
Main.java:12: error: ';' expected
	fpr(int j=0;j<W;j++){
	                   ^
Main.java:13: error: illegal start of expression
	if(i+j)%2==0){
	       ^
Main.java:13: error: not a statement
	if(i+j)%2==0){
	         ^
Main.java:13: error: ';' expected
	if(i+j)%2==0){
	            ^
Main.java:16: error: 'else' without 'if'
	else{
	^
9 errors
Language: Java

import java.util Scanner;
public class Main{
	public static void main(String[] args){
	Scanner sc =new Scanner(System.in);
	while(true){
	int H=sc.nextInt();
	int W=sc.nextInt();
	if(H == 0&&W == 0){
	break;
	}
	for(int i=0;i<H;i++){
	fpr(int j=0;j<W;j++){
	if(i+j)%2==0){
	System.out.print("#");
	}
	else{
	System.out.print(".");
	}
	}
	System.out.println();
	}
	System.out.println();
	}
	}
}

Compiler output:
Main.java:1: error: ';' expected
import java.util Scanner;
                ^
Main.java:12: error: '.class' expected
	fpr(int j=0;j<W;j++){
	        ^
Main.java:12: error: > or ',' expected
	fpr(int j=0;j<W;j++){
	               ^
Main.java:12: error: not a statement
	fpr(int j=0;j<W;j++){
	             ^
Main.java:12: error: ';' expected
	fpr(int j=0;j<W;j++){
	                   ^
Main.java:13: error: illegal start of expression
	if(i+j)%2==0){
	       ^
Main.java:13: error: not a statement
	if(i+j)%2==0){
	         ^
Main.java:13: error: ';' expected
	if(i+j)%2==0){
	            ^
Main.java:16: error: 'else' without 'if'
	else{
	^
9 errors
Language: Java

import java.util Scanner;
public class Main{
	public static void main(String[] args){
	Scanner sc =new Scanner(System.in);
	while(true){
	int H = sc.nextInt();
	int W = sc.nextInt();
	if(H == 0&&W == 0){
	break;
	}
	for(int i = 0;i <H;i++){
	for(int j =0;j <W;j++){
	if(i+j)%2 == 0){
	System.out.print("#");
	}
	else{
	System.out.print(".");
	}
	}
	System.out.println();
	}
	System.out.println();
	}
	}
}

Compiler output:
Main.java:1: error: ';' expected
import java.util Scanner;
                ^
Main.java:13: error: illegal start of expression
	if(i+j)%2 == 0){
	       ^
Main.java:13: error: not a statement
	if(i+j)%2 == 0){
	          ^
Main.java:13: error: ';' expected
	if(i+j)%2 == 0){
	              ^
Main.java:16: error: 'else' without 'if'
	else{
	^
5 errors
Language: Java

import java.util. Scanner;
public class Main{
	public static void main(String[] args){
	Scanner sc =new Scanner(System.in);
	while(true){
	int H = sc.nextInt();
	int W = sc.nextInt();
	if(H == 0&&W == 0){
	break;
	}
	for(int i = 0;i <H;i++){
	for(int j =0;j <W;j++){
	if(i+j)%2 == 0){
	System.out.print("#");
	}
	else{
	System.out.print(".");
	}
	}
	System.out.println();
	}
	System.out.println();
	}
	}
}

Compiler output:
Main.java:13: error: illegal start of expression
	if(i+j)%2 == 0){
	       ^
Main.java:13: error: not a statement
	if(i+j)%2 == 0){
	          ^
Main.java:13: error: ';' expected
	if(i+j)%2 == 0){
	              ^
Main.java:16: error: 'else' without 'if'
	else{
	^
4 errors
Language: Java

import java.util.*;

public class AOJ10014 {
	public static void main(String[] args) {
		@SuppressWarnings("resource")
		Scanner sc = new Scanner(System.in);
		while (true) {
			int h = sc.nextInt();
			int w = sc.nextInt();
			if (h == 0 && w == 0)
				break;
			for (int i = 0; i < h; i++) {
				int k = i % 2;
				for (int j = 0; j < w; j++)
					k = printChessboard(k);
				System.out.println();
			}
			System.out.println();
		}
	}

	public static int printChessboard(int k) {
		switch (k) {
		case 0:
			System.out.print("#");
			return 1;
		case 1:
			System.out.print(".");
			return 0;
		}
		return -1;
	}
}

Compiler output:
Main.java:3: error: class AOJ10014 is public, should be declared in a file named AOJ10014.java
public class AOJ10014 {
       ^
1 error
Language: Java

import java.util.*;
public class Aoj10014{
    public static void main(String[] args){
        Scanner sc=new Scanner(System.in);
        while(true){
            int	h=sc.nextInt();
            int	w=sc.nextInt();
            if(h==0&&w==0)break;
	    for(int i=0;i<h;i++){
                for(int j=0;j<w;j++){
                    if((i==0||i%2==0)&&(j==0||j%2==0))System.out.print("#");
                    else if((i==0||i%2==0)&&j%2!=0)System.out.print(".");
                    else if(i%2!=0&&(j==0||j%2==0))System.out.print(".");
                    else if(i%2!=0&&j%2!=0)System.out.print("#");
                }
		System.out.println();
            }
	    System.out.println();
        }
    }
}

Compiler output:
Main.java:2: error: class Aoj10014 is public, should be declared in a file named Aoj10014.java
public class Aoj10014{
       ^
1 error
Language: Java

import java.io.*;
import java.util.Scanner;
public class Main{
    public static void main(String[] ags){
	Scanner sc=new Scanner(Sysetm.in);
	while (true){
            int	h=sc.nextInt();
            int	w=sc.nextInt();
            if (h==0&&w==0) break;
            for	(int i=0;i<h;i++){
		for (int j=0;j<w;j++){
                    if ((i+j)%2==0)
			System.out.print("#");
                    else
			System.out.print(".");
                }
		System.out.print("\n");
            }
        }
    }
}

Compiler output:
Main.java:5: error: cannot find symbol
	Scanner sc=new Scanner(Sysetm.in);
	                       ^
  symbol:   variable Sysetm
  location: class Main
1 error
Language: Java

import java.util.Scanner;
public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);

    while(true){
      int H = sc.nextInt();
      int W = sc.nextInt();

      for(int i=1;i<=H;i++){

        if(i%2==0){
          for(int j=1;j<=W;j++){
          System.out.printf("#");
          j++;
          if(j>W)break;
          System.out.printf(".");
          }
        }

        else{
          for(int j=1;j<=W;j++){
          System.out.printf(".");
          j++;
          if(j>W)break;
          System.out.printf("#");
          }
        }

      System.out.printf("\n")
      }
    System.out.printf("\n")
    }
  }
}

Compiler output:
Main.java:30: error: ';' expected
      System.out.printf("\n")
                             ^
Main.java:32: error: ';' expected
    System.out.printf("\n")
                           ^
2 errors
Language: Java

import java.util.Scanner;
public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);

    while(true){
      int H = sc.nextInt();
      int W = sc.nextInt();

      for(int i=1;i<=H;i++){

        if(i%2==1){
          for(int j=1;j<=W;j++){
          System.out.printf("#");
          j++;
          if(j>W)break;
          System.out.printf(".");
          }
        }

        else{
          for(int j=1;j<=W;j++){
          System.out.printf(".");
          j++;
          if(j>W)break;
          System.out.printf("#");
          }
        }

      System.out.printf("\n")
      }
    System.out.printf("\n")
    }
  }
}

Compiler output:
Main.java:30: error: ';' expected
      System.out.printf("\n")
                             ^
Main.java:32: error: ';' expected
    System.out.printf("\n")
                           ^
2 errors
Language: Java

import java.util.Scanner;

public class Main {

public static void main(String[] args) {

Scanner sc = new Scanner(System.in);

while (true) {

int H = sc.nextInt();

int W= sc.nextInt();

if (H == 0 && W == 0) {

break;

}
for(int j=0;j<W;j++){
		System.out.print("#");
		}
System.out.printf("\n");

for(int i=1;i<H-1;i++){
	for(int j=1;j<W-1;j++){
		if((i+j)%2==1) System.out.print(".");
			else System.out.print("#");
System.out.printf("\n");
}
System.out.printf("\n");
}

}
}

Compiler output:
Main.java:35: error: reached end of file while parsing
}
 ^
1 error
Language: Java

import java.util.Scanner;

public class XCube {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		while (true) {
			int H = sc.nextInt();
			int W = sc.nextInt();
			if (H == 0 && W == 0) {
				break;
			}
			for (int i = 0; i < H; i++) {
				if (i % 2 == 0) {
					for (int j = 0; j < W; j++) {
						if (j % 2 == 0) {
							System.out.print("#");
						} else {
							System.out.print(".");
						}
					}
				} else {
					for (int j = 0; j < W; j++) {
						if (j % 2 == 0) {
							System.out.print(".");
						} else {
							System.out.print("#");
						}
					}
				}
				System.out.print("\n");
			}
		}
	}
}

Compiler output:
Main.java:3: error: class XCube is public, should be declared in a file named XCube.java
public class XCube {
       ^
1 error
Language: Java

import java.util.Scanner;
public class PrintCB {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		while (true) {
			int H = sc.nextInt();
			int W = sc.nextInt();
			if (H == 0  && W == 0) 
				break;
			for(int i=0;i<H;i++){
                for(int j=0;j<W;j++){
                    if((i+j)%2==1)
                	System.out.printf(".");
                    else System.out.printf("#");
                }
                System.out.println();
            }
			 System.out.println();
        }
		}
	}

Compiler output:
Main.java:2: error: class PrintCB is public, should be declared in a file named PrintCB.java
public class PrintCB {
       ^
1 error
Language: Java

import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc= new Scanner(System.in);

int i,j;
int ver;

int h = sc.nextInt();
int w = sc.nextint();

for(i=1;i<=h;i++){
if(c%2==1){
for(j=1;j<=w/2;j++){
System.out.print("#.");{
if(w%2==0){System.out.print("\n");}
if(w%2==1){System.out.print("#\n");}
}
}
if(c%2==0){
for(j=1;j<=w/2;j++){
System.out.print(".#");
if(w%2==0){System.out.print("\n");}
if(w%2==1){System.out.print(".\n");}
}
}
}


}
}

Compiler output:
Main.java:31: error: reached end of file while parsing
}
 ^
1 error
Language: Java

import java.util.Scanner;

public class chsq {

public static void main(String[] args) {

Scanner sc = new Scanner(System.in);

while (true) {

int H = sc.nextInt();

int W= sc.nextInt();

if (H == 0 && W == 0) {

break;

}
for(int i=0;i<H;i++){
	for(int j=0;j<W;j++){
		if((i+j)%2==1) System.out.print(".");
			else System.out.print("#");
		}
System.out.printf("\n");

}
System.out.printf("\n")

}
}
}

Compiler output:
Main.java:28: error: ';' expected
System.out.printf("\n")
                       ^
1 error
Language: Java

import java.util.Scanner;

public class chsq {

public static void main(String[] args) {

Scanner sc = new Scanner(System.in);

while (true) {

int H = sc.nextInt();

int W= sc.nextInt();

if (H == 0 && W == 0) {

break;

}
for(int i=0;i<H;i++){
	for(int j=0;j<W;j++){
		if((i+j)%2==1) System.out.print(".");
			else System.out.print("#");
		}
System.out.printf("\n");

}
System.out.printf("\n");

}
}
}

Compiler output:
Main.java:3: error: class chsq is public, should be declared in a file named chsq.java
public class chsq {
       ^
1 error
Language: Java

import java.util.Scanner;
public class pro3_1 {
	public static void main(String[] args) {
		// 標準入力からデータを読み込む準備
		Scanner sc = new Scanner(System.in);
		// 最初の文字の固まりを整数値と想定して読み込む
		int x,y;
		while (true) {
			int H = sc.nextInt();
			int W= sc.nextInt();
			if (H == 0 && W == 0) {
				break;
			}
			// 二重ループ(forの中にfor)を書いて、H x W個の # を表示しよう！
			for(x=1;x<=H;x++){
				for(y=1;y<=W;y++){
					if(x%2==1){
						if(y%2==1){
							System.out.printf("#");
						}
						if(y%2==0){
							System.out.printf(".");
						}
					}
					if(x%2==0){
						if(y%2==1){
							System.out.printf(".");
						}
						if(y%2==0){
							System.out.printf("#");
						}
					}
					
				}
				System.out.printf("\n");
			}
		}
	}
}

Compiler output:
Main.java:2: error: class pro3_1 is public, should be declared in a file named pro3_1.java
public class pro3_1 {
       ^
1 error
Language: Java

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int j = 0;
		while (j == 0) {
			int w = sc.nextInt();

			int h = sc.nextInt();
			if (w == 0 && h == 0) {
				j = 1;
			}
			if (1 <= w && w <= 300 && 1 <= h && h <= 300) {
				for (int i = 1; i <= w; i++) {
					for (int k = 1; k <= h; k++) {
						if (i % 2 == 1) {
							if (k % 2 == 1) {
								System.out.print("#");
							} else {
								System.out.print(".");
							}
						} else {
							if (k % 2 == 1) {
								System.out.print(".");
							} else {
								System.out.print("#");
							}
						}
					}
					System.out.print("\n");

				}
				System.out.print("\n");

			}
		}
		sc.close();
	}

Compiler output:
Main.java:40: error: reached end of file while parsing
	}
	 ^
1 error
Language: Java

import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc= new Scanner(System.in);

int i,j;

int h = sc.nextInt();
int w = sc.nextint();

for(i=1;i<=h;i++){
if(i%2==1){
	for(j=1;j<=w;j++){
		if(j%2==1){System.out.print("#");}
		if(j%2==0){System.out.print(".");}
		System.out.printf("\n");
	}
}
if(i%2==0){	
	for(j=1;j<=w;j++){
		if(j%2==1){System.out.print(".");}
		if(j%2==0){System.out.print("#");}
		System.out.printf("\n");
	}
}

}
}

Compiler output:
Main.java:28: error: reached end of file while parsing
}
 ^
1 error
Language: Java

import java.util.Scanner;
public class Main{
public static void main(String[] args) {
Scanner sc= new Scanner(System.in);

int i,j;

int h = sc.nextInt();
int w = sc.nextint();

for(i=1;i<=h;i++){
if(i%2==1){
	for(j=1;j<=w;j++){
		if(j%2==1){System.out.print("#");}
		if(j%2==0){System.out.print(".");}
	}
        System.out.printf("\n");
}
if(i%2==0){	
	for(j=1;j<=w;j++){
		if(j%2==1){System.out.print(".");}
		if(j%2==0){System.out.print("#");}
	}
        System.out.printf("\n");
}
}

}
}

Compiler output:
Main.java:9: error: cannot find symbol
int w = sc.nextint();
          ^
  symbol:   method nextint()
  location: variable sc of type Scanner
1 error
Language: Java

import java.util.Scanner

public class Main{
 public static main void(String[] args){
  Scanner sc = new Scanner(System.in);
  while (true) {
   int H = sc.nextInt();
   int W= sc.nextInt();
   if (H == 0 && W == 0) {
   break; 
   }
   int k = 0;
   for(int i=1; i<=H; i++){
    for(int j = 1; j<W; j++){
    if(k%2 == 0){
    System.out.printf("#")
    }else{
    System.out.printf(".")
    }
    k++;
    }
   }
  }
 }
}

Compiler output:
Main.java:1: error: ';' expected
import java.util.Scanner
                        ^
Main.java:4: error: <identifier> expected
 public static main void(String[] args){
                   ^
Main.java:4: error: <identifier> expected
 public static main void(String[] args){
                        ^
Main.java:16: error: ';' expected
    System.out.printf("#")
                          ^
Main.java:18: error: ';' expected
    System.out.printf(".")
                          ^
5 errors
Language: Java

import java.util.Scanner;

public class Chessboard {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		int H;
		int W;

		while (true) {
			do {
				H = sc.nextInt();
				W = sc.nextInt();
			} while (H >= 300 && W >= 300);

			if (H == 0 && W == 0) {
				break;
			}
			for (int j = 0; j < H; j++) {
				for (int i = 0; i < W; i++) {
					if (j % 2 == 0 && i % 2 == 0 || j % 2 != 0 && i % 2 != 0) {
						System.out.print("#");
					} else
						System.out.print(".");
				}
				System.out.print("\n");
			}
		}
	}
}

Compiler output:
Main.java:3: error: class Chessboard is public, should be declared in a file named Chessboard.java
public class Chessboard {
       ^
1 error
Language: Java

import java.util.*;
public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    while(true){
      int h=sc.nextInt();
      int w=sc.nextInt();
      if (h==0&&w==0) break;
      else{
        for(int i=0;i<h;i++){
          for(int j=0;j<w;j++){
            if((i+j)%2==0) System.out.print("#");
            if((i+j)%2==1) System.out.print(".");
          }
          System.out.println();
        }
        System.out.println();
      }
    }
  }

Compiler output:
Main.java:20: error: reached end of file while parsing
  }
   ^
1 error
Language: Java

import java.util.*;
public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    while(true){
      int h=sc.nextInt();
      int w=sc.nextInt();
      if (h==0&&w==0) break;
      else{
        for(int i=0;i<h;i++){
          for(int j=0;j<w;j++){
            if((i+j)%2==0) System.out.print("#");
            else System.out.print(".");
          }
          System.out.println();
        }
        System.out.println();
      }
    }
  }

Compiler output:
Main.java:20: error: reached end of file while parsing
  }
   ^
1 error
Language: Java

import java.util.Scanner

public class Main{
 public static main void(String[] args){
  Scanner sc = new Scanner(System.in);
  while (true) {
   int H = sc.nextInt();
   int W= sc.nextInt();
   if (H == 0 && W == 0) {
   break; 
   }
   int k = 0;
   for(int i=1; i<=H; i++){
    for(int j = 1; j<W; j++){
    if(k%2 == 0){
    System.out.printf("#")
    }else{
    System.out.printf(".")
    }
    k++;
    System.out.printf("\n");
    }
    }
   }
  }
 }

Compiler output:
Main.java:1: error: ';' expected
import java.util.Scanner
                        ^
Main.java:4: error: <identifier> expected
 public static main void(String[] args){
                   ^
Main.java:4: error: <identifier> expected
 public static main void(String[] args){
                        ^
Main.java:16: error: ';' expected
    System.out.printf("#")
                          ^
Main.java:18: error: ';' expected
    System.out.printf(".")
                          ^
5 errors
Language: Java

import java.util.Scanner

public class Main {
public static void main(String[] args) {
  Scanner sc = new Scanner(System.in);
  while (true) {
   int H = sc.nextInt();
   int W= sc.nextInt();
   if (H == 0 && W == 0) {
   break; 
   }
   int k = 0;
   for(int i=1; i<=H; i++){
    for(int j = 1; j<W; j++){
    if(k%2 == 0){
    System.out.printf("#");
    }else{
    System.out.printf(".");
    }
    k++;
    System.out.printf("\n");
    }
    }
   }
  }
 }

Compiler output:
Main.java:1: error: ';' expected
import java.util.Scanner
                        ^
1 error
Language: Java

import java.util.Scanner;
public class printachessboard{
	public static void main(String[] args){
		Scanner sc=new Scanner(System.in);
		int i,j;
		while(true){
			int H=sc.nextInt();
			int W=sc.nextInt();
			if(H==0 && W==0){
				break;
			}
			for(j=0;j<H;j++){
				if(j%2==0){
					if(W%2==1){
						for(i=0;i<W/2;i++){
							System.out.printf("#.");
						}
						System.out.printf("#");
					}else{
						System.out.printf("#.");
					}
				}else{
					if(W%2==1){
						for(i=0;i<W/2;i++){
							System.out.printf(".#");
						}
						System.out.printf(".");
					}else{
						System.out.printf(".#");
					}
				}
				System.out.printf("\n");
			}
		}
	}
}

Compiler output:
Main.java:2: error: class printachessboard is public, should be declared in a file named printachessboard.java
public class printachessboard{
       ^
1 error
Language: Java

import java.util.Scanner;
public class Main { 
public static void main(String[] args) {
int x = 0;
 // ?¨??????\??????????????????????????????????????? 
Scanner sc = new Scanner(System.in);
 // ????????????????????????????????´??°?????¨???????????????????????? 
while (true) { 
int H = sc.nextInt();
 int W= sc.nextInt(); 
if (H == 0 && W == 0) {
 break;
 }
 
 for(int i=1;i<=H;i++){
    for(int j=1;j<=W;j++){
        if(x == 0){
            System.out.print("#");
            x = 1;
        }else{
            System.out.print(".");
            x = 0;
        }
     
    }
    print("\n");
    x = 0;
 }

 }
 print("\n");
}
}

Compiler output:
Main.java:26: error: cannot find symbol
    print("\n");
    ^
  symbol:   method print(String)
  location: class Main
Main.java:31: error: cannot find symbol
 print("\n");
 ^
  symbol:   method print(String)
  location: class Main
2 errors
Language: Java

import java.util.Scanner;
public class Main { 
public static void main(String[] args) {
int x = 0;
 // ?¨??????\??????????????????????????????????????? 
Scanner sc = new Scanner(System.in);
 // ????????????????????????????????´??°?????¨???????????????????????? 
while (true) { 
int H = sc.nextInt();
 int W= sc.nextInt(); 
if (H == 0 && W == 0) {
 break;
 }
 
 for(int i=1;i<=H;i++){
    for(int j=1;j<=W;j++){
        if(x == 0){
            System.out.print("#");
            x = 1;
        }else{
            System.out.print(".");
            x = 0;
        }
     
    }
    println("");
    x = 0;
 }

 }
 println("");
}
}

Compiler output:
Main.java:26: error: cannot find symbol
    println("");
    ^
  symbol:   method println(String)
  location: class Main
Main.java:31: error: cannot find symbol
 println("");
 ^
  symbol:   method println(String)
  location: class Main
2 errors
Language: Java

import java.util.Scanner

public class Main {
public static void main(String[] args) {
  Scanner sc = new Scanner(System.in);
  while (true) {
   int H = sc.nextInt();
   int W= sc.nextInt();
   if (H == 0 && W == 0) {
   break; 
   }
   int k = 0;
   for(int i=1; i<=H; i++){
    for(int j = 1; j<W; j++){
     if(k%2 == 0){
      System.out.printf("#");
     }else{
      System.out.printf(".");
     }
     k++;
     System.out.printf("\n");
    }
    }
    System.out.printf("\n");
   }
  }
 }

Compiler output:
Main.java:1: error: ';' expected
import java.util.Scanner
                        ^
1 error
Language: Java

import java.util.Scanner;
public class Main { 
public static void main(String[] args) {
int x = 0;
 // ?¨??????\??????????????????????????????????????? 
Scanner sc = new Scanner(System.in);
 // ????????????????????????????????´??°?????¨???????????????????????? 
while (true) { 
int H = sc.nextInt();
 int W= sc.nextInt(); 
if (H == 0 && W == 0) {
 break;
 }
 
 for(int i=1;i<=H;i++){
    for(int j=1;j<=W;j++){
        if(x == 0){
            System.out.println("#");
            x = 1;
        }else{
            System.out.println(".");
            x = 0;
        }
     
    }
    println("");
    x = 0;
 }

 }
 println("");
}
}

Compiler output:
Main.java:26: error: cannot find symbol
    println("");
    ^
  symbol:   method println(String)
  location: class Main
Main.java:31: error: cannot find symbol
 println("");
 ^
  symbol:   method println(String)
  location: class Main
2 errors
Language: Java

import java.util.Scanner;
public class Main { 
public static void main(String[] args) {
int x = 0;
 // ?¨??????\??????????????????????????????????????? 
Scanner sc = new Scanner(System.in);
 // ????????????????????????????????´??°?????¨???????????????????????? 
while (true) { 
int H = sc.nextInt();
 int W= sc.nextInt(); 
if (H == 0 && W == 0) {
 break;
 }
 
 for(int i=1;i<=H;i++){
    for(int j=1;j<=W;j++){
        if(x == 0){
            System.out.println("#");
            x = 1;
        }else{
            System.out.println(".");
            x = 0;
        }
     
    }
    println("\n");
    x = 0;
 }

 }
 println("\n");
}
}

Compiler output:
Main.java:26: error: cannot find symbol
    println("\n");
    ^
  symbol:   method println(String)
  location: class Main
Main.java:31: error: cannot find symbol
 println("\n");
 ^
  symbol:   method println(String)
  location: class Main
2 errors
Language: Java

import java.util.Scanner;
public class Main { 
public static void main(String[] args) {
int x = 0;
 // ?¨??????\??????????????????????????????????????? 
Scanner sc = new Scanner(System.in);
 // ????????????????????????????????´??°?????¨???????????????????????? 
while (true) { 
int H = sc.nextInt();
 int W= sc.nextInt(); 
if (H == 0 && W == 0) {
 break;
 }
 
 for(int i=1;i<=H;i++){
    for(int j=1;j<=W;j++){
        if(x == 0){
            System.out.println("#");
            x = 1;
        }else{
            System.out.println(".");
            x = 0;
        }
     
    }
    printf("\n");
    x = 0;
 }

 }
 printf("\n");
}
}

Compiler output:
Main.java:26: error: cannot find symbol
    printf("\n");
    ^
  symbol:   method printf(String)
  location: class Main
Main.java:31: error: cannot find symbol
 printf("\n");
 ^
  symbol:   method printf(String)
  location: class Main
2 errors
Language: Java

import java.util.Scanner;

public class PrintAChessborad{
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		while(true){
			int H = sc.nextInt();
			int W = sc.nextInt();
			if (H == 0 && W == 0 ) {
				break;
			
		}
			int i;
			int j;
			for (i=0; i<H; i++) {
				for (j=0; j<W; j++) {
					if ((j % 2 ==0) && (i % 2 == 1)) {
						System.out.printf(".");
					}else if((j % 2 ==1) && (i % 2 == 1)){
						System.out.printf("#");
					}else if((j % 2 ==0) && (i % 2 == 0)){
						System.out.printf("#");
					}else if((j % 2 ==1) && (i % 2 == 0)){
						System.out.printf(".");
					}
				}
				System.out.printf("\n");
			}
			System.out.printf("\n");
			}

	}
}

Compiler output:
Main.java:3: error: class PrintAChessborad is public, should be declared in a file named PrintAChessborad.java
public class PrintAChessborad{
       ^
1 error
Language: Java

import java.util.Scanner;

public class kadai1 {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		while (true) {
			int H = sc.nextInt();
			int W = sc.nextInt();
			int k = 0;

			if (H == 0 && W == 0) {
				break;
			}

			for (int h = 1; h <= H; h++) {
				for (int w = 1; w <= W; w++) {
					if (k%2 == 0)
						System.out.print("#");
					else
						System.out.print(".");
					k++;
				}
				System.out.println("");
			}
			System.out.println("");

		}
	}
}

Compiler output:
Main.java:3: error: class kadai1 is public, should be declared in a file named kadai1.java
public class kadai1 {
       ^
1 error
Language: Java

import java.util.Scanner;

public class Main{
public static void main(String[] args){

	int i,j;

Scanner sc = new Scanner(System.in);

while(true){

	int H=sc.nextInt();
	int W=sc.nextInt();

	if(H == 0 && W == 0){

	break;
		
	}

	for(i=0;i<H;i++){

		for(j=0;j<W;j++){

			if(i%2==0){

				if(j%2==0){

					System.out.printf("#");

				}

				else{

					System.out.printf(".");

				}



			}

			else{

				if(j%2==0){

					System.out.printf(".");

				}

				else{

					System.out.printf("#");

Compiler output:
Main.java:53: error: reached end of file while parsing
					System.out.printf("#");
					                       ^
1 error
Language: Java

import java.util.Scanner;
public class Main { 
public static void main(String[] args) {
int x = 0;
 // ?¨??????\??????????????????????????????????????? 
Scanner sc = new Scanner(System.in);
 // ????????????????????????????????´??°?????¨???????????????????????? 
while (true) { 
int H = sc.nextInt();
 int W= sc.nextInt(); 
if (H == 0 && W == 0) {
 break;
 }
 
 for(int i=1;i<=H;i++){
    for(int j=1;j<=W;j++){
        if(x == 0){
            System.out.print("#");
            x = 1;
        }else{
            System.out.print(".");
            x = 0;
        }
     
    }
    System.out.print("\n");
    x = 0;
    j = 1;
 }

 }
 System.out.println("");
}
}

Compiler output:
Main.java:28: error: cannot find symbol
    j = 1;
    ^
  symbol:   variable j
  location: class Main
1 error
Language: Java

import java.util.Scanner;
	public class Main {
		public static void main(String[] args) {
		// ?¨??????\??????????????????????????????????????????
		Scanner sc = new Scanner(System.in);
		// ????????????????????????????????´??°?????¨???????????????????????? while (true) 
			int H = sc.nextInt();
			int W= sc.nextInt();
			if (H == 0 && W == 0) {
				break; 
			}
			// ??????????????????(for?????????for)???????????????H x W?????? # ?????¨????????????!
			for(int i = 1; i <=  H; i++){
				if(i%2 = 0){
					for(int j = 0; j < W; j++){
						if( j%2 = 0){
							System.out.print("#");
						}else{
							System.out.print(".");
						}
					}
				}else{
					for(int j = 0; j < W; j++){
						if( j%2 = 1){
							System.out.print("#");
						}else{
							System.out.print(".");
						}
					}
				}
				System.out.print("\n");
			}
		}	 
	}

Compiler output:
Main.java:10: error: break outside switch or loop
				break; 
				^
Main.java:14: error: unexpected type
				if(i%2 = 0){
				    ^
  required: variable
  found:    value
Main.java:16: error: unexpected type
						if( j%2 = 0){
						     ^
  required: variable
  found:    value
Main.java:24: error: unexpected type
						if( j%2 = 1){
						     ^
  required: variable
  found:    value
4 errors
Language: Java

import java.util.Scanner;
public class Main { 
public static void main(String[] args) {
int x = 0;
int j = 1;
 // ?¨??????\??????????????????????????????????????? 
Scanner sc = new Scanner(System.in);
 // ????????????????????????????????´??°?????¨???????????????????????? 
while (true) { 
int H = sc.nextInt();
 int W= sc.nextInt(); 
if (H == 0 && W == 0) {
 break;
 }
 
 for(int i=1;i<=H;i++){
    for(int j=1;j<=W;j++){
        if(x == 0){
            System.out.print("#");
            x = 1;
        }else{
            System.out.print(".");
            x = 0;
        }
     
    }
    System.out.print("\n");
    x = 0;
    j = 1;
 }

 }
 System.out.println("");
}
}

Compiler output:
Main.java:17: error: variable j is already defined in method main(String[])
    for(int j=1;j<=W;j++){
            ^
1 error
Language: Java

import java.util.Scanner;
	public class Main {
		public static void main(String[] args) {
		// ?¨??????\??????????????????????????????????????????
		Scanner sc = new Scanner(System.in);
		// ????????????????????????????????´??°?????¨???????????????????????? while (true) 
			int H = sc.nextInt();
			int W= sc.nextInt();
			if (H == 0 && W == 0) {
				break; 
			}
			// ??????????????????(for?????????for)???????????????H x W?????? # ?????¨????????????!
			for(int i = 1; i <=  H; i++){
				if(i%2 == 0){
					for(int j = 0; j < W; j++){
						if( j%2 == 0){
							System.out.print("#");
						}else{
							System.out.print(".");
						}
					}
				}else{
					for(int j = 0; j < W; j++){
						if( j%2 == 1){
							System.out.print("#");
						}else{
							System.out.print(".");
						}
					}
				}
				System.out.print("\n");
			}
		}	 
	}

Compiler output:
Main.java:10: error: break outside switch or loop
				break; 
				^
1 error
Language: Java

import java.util.Scanner;

public class Main{
public static void main(String[] args){
Scanner sc=new Scanner(System.in);
while(true){
int H=sc.nextInt();
int W=sc.nextInt();
if(H==0 && W==0){
break;
}
for(int i=1;i<=H;i++){
 for(int j=1;j<=W;j++){
sum=i+j;
  if(sum%2==0){
   System.out.printf("#");
   }else{
   System.out.printf(".");
   }
 }
 System.out.printf("\n");
}
System.out.printf("\n");
}
}
} 

Compiler output:
Main.java:14: error: cannot find symbol
sum=i+j;
^
  symbol:   variable sum
  location: class Main
Main.java:15: error: cannot find symbol
  if(sum%2==0){
     ^
  symbol:   variable sum
  location: class Main
2 errors
Language: Java

import java.util.Scanner;

public class Main5{
	public static void main(String[] args){
	Scanner sc=new Scanner(System.in);
	while(true){
	int H=sc.nextInt();
	int W=sc.nextInt();
	if(H==0&&W==0){
	break;
	}
	for(int i=0;i<H;i++){
		for(int j=0;j<W;j++){
			System.out.printf("#.");
		}
		System.out.printf("\n");
	}
	System.out.printf("\n");
	}
}
}

Compiler output:
Main.java:3: error: class Main5 is public, should be declared in a file named Main5.java
public class Main5{
       ^
1 error
Language: Java

import java.util.Scanner;

public class kadai1 {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		while (true) {
			int H = sc.nextInt();
			int W = sc.nextInt();
			int k = 0;

			if (H == 0 && W == 0) {
				break;
			}

			for (int h = 1; h <= H; h++) {
				for (int w = 1; w <= W; w++) {
					
					if (h%2 == 1) {
						if (k%2 == 0)
							System.out.print("#");
						else
							System.out.print(".");
						k++;
					}
					else {
						if (k%2 == 0)
							System.out.print(".");
						else
							System.out.print("#");
						k++;
					}
				}
				k = 0;
				System.out.println("");
			}
			System.out.println("");

		}
	}
}

Compiler output:
Main.java:3: error: class kadai1 is public, should be declared in a file named kadai1.java
public class kadai1 {
       ^
1 error
Language: Java

import java.util.Scanner;

public class Main {
    public static void main(String [] args){
        Scanner sc = new Scanner(System.in);
        
        while(true){
            int h = scan.nextInt();
            int w = scan.nextInt();
            
            if(h == 0 && w == 0) break;
            
            for(int i = 0; i < h; ++i){
                for(int j = 0; j < w; ++j){
                    System.out.print((i + j) % 2 == 0 ? '#' : '.');
                }
                
                System.out.println();
            }
            
            System.out.println();
        }
    }
}

Compiler output:
Main.java:8: error: cannot find symbol
            int h = scan.nextInt();
                    ^
  symbol:   variable scan
  location: class Main
Main.java:9: error: cannot find symbol
            int w = scan.nextInt();
                    ^
  symbol:   variable scan
  location: class Main
2 errors
Language: Java

#include<iostream>
#include<vector>
#include<string>
using namespace std;

int main(){
while(1){
	int a,b;
	cin>>a>>b;
    if(a==0&&b==0)break;
    for(int c=0;c<a;c++){
	for(int d=0;d<b;d++){
	if((c+d)%2==0)cout<<'#';
	else cout<<'*';
	}
	cout<<endl;
	}
	cout<<endl;
}}

Compiler output:
Main.java:1: error: illegal character: '#'
#include<iostream>
^
Main.java:2: error: illegal character: '#'
#include<vector>
^
Main.java:3: error: illegal character: '#'
#include<string>
^
Main.java:9: error: not a statement
	cin>>a>>b;
	      ^
Main.java:13: error: not a statement
	if((c+d)%2==0)cout<<'#';
	                  ^
Main.java:14: error: not a statement
	else cout<<'*';
	         ^
Main.java:16: error: not a statement
	cout<<endl;
	    ^
Main.java:18: error: not a statement
	cout<<endl;
	    ^
Main.java:6: error: unnamed classes are a preview feature and are disabled by default.
int main(){
^
  (use --enable-preview to enable unnamed classes)
9 errors
Language: Java

import java.util.Scanner;

public class ChessB{
 public static void main(String[] args){
  
  Scanner sc=new Scanner(System.in);
  int[] H =new int[100000];
  int[] W =new int[100000];
  
  int i=0;
 
  do{
    H[i]=sc.nextInt();
    W[i]=sc.nextInt();
    i++;
  }while(H[i-1]!=0||W[i-1]!=0)

  for(int m=0;m<i-1;m++){
   int k,l;
   for(k=0;k<H[m];k++){
    for(l=0;l<W[m];l++){
     
     if(k%2==l%2)
      System.out.printf("#");
     else
      System.out.prinyfln(".");
    }
    System.out.printf("\n");
   }
   System.out.printf("\n");
  }
 }
}

Compiler output:
Main.java:16: error: ';' expected
  }while(H[i-1]!=0||W[i-1]!=0)
                              ^
1 error
Language: Java

import java.util.Scanner;

public class Main{
 public static void main(String[] args){
  
  Scanner sc=new Scanner(System.in);
  int[] H =new int[100000];
  int[] W =new int[100000];
  
  int i=0;
 
  do{
    H[i]=sc.nextInt();
    W[i]=sc.nextInt();
    i++;
  }while(H[i-1]!=0||W[i-1]!=0)

  for(int m=0;m<i-1;m++){
   int k,l;
   for(k=0;k<H[m];k++){
    for(l=0;l<W[m];l++){
     
     if(k%2==l%2)   //when H&B->odd or H&B->even ,print"#".Other case print "."
      System.out.printf("#");
     else
      System.out.prinyfln(".");
    }
    System.out.printf("\n");
   }
   System.out.printf("\n");
  }
 }
}

Compiler output:
Main.java:16: error: ';' expected
  }while(H[i-1]!=0||W[i-1]!=0)
                              ^
1 error
Language: Java

import java.util.Scanner;

public class Main{
 public static void main(String[] args){
  
  Scanner sc=new Scanner(System.in);
  int[] H =new int[100000];
  int[] W =new int[100000];
  
  int i=0;
 
  /*Use do-while because the 1st data set must scan everytime*/
  do{
    H[i]=sc.nextInt();
    W[i]=sc.nextInt();
    i++;
  }while(H[i-1]!=0||W[i-1]!=0);  //Repeat until the last data-set(H,W)=(0,0) 

  for(int m=0;m<i-1;m++){
   int k,l;
   for(k=0;k<H[m];k++){
    for(l=0;l<W[m];l++){
     
     if(k%2==l%2)   //when H&B->odd or H&B->even ,print"#".Other case print "."
      System.out.printf("#");
     else
      System.out.prinyfln(".");
    }
    System.out.printf("\n");    //New line for expression one chessbox's height
   }
   System.out.printf("\n");     //New line for interval between 2 chessbox
  }
 }
}

Compiler output:
Main.java:27: error: cannot find symbol
      System.out.prinyfln(".");
                ^
  symbol:   method prinyfln(String)
  location: variable out of type PrintStream
1 error
Language: Java

import java.util.Scanner;

public class Main3to1 {
	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		while (true) {
			int H = sc.nextInt();
			int W = sc.nextInt();
			if (H == 0 && W == 0) {
				break;
			}
			for (int i = 0; i < H; i++) {
				for (int j = 0; j < W; j++) {
					if ((i + j) % 2 == 0) {
						System.out.printf("#");
					} else {
						System.out.printf(".");
					}
				}
				System.out.printf("\n");
			}

		}
		sc.close();
	}
}

Compiler output:
Main.java:3: error: class Main3to1 is public, should be declared in a file named Main3to1.java
public class Main3to1 {
       ^
1 error
Language: Java

import java.util.Scanner;

public class Main {
 public static void main(String[] args) {
  Scanner sc = new Scanner(System.in);
  while (true) {
   int H = sc.nextInt();
   int W= sc.nextInt();
   if (H == 0 && W == 0) {
    break;
   }
   for(int i=0;i<H;i++){
    for(int t=0;t<W;t++){
     if((i+t)%2 = 0){
      System.out.printf(???#???);
     }else{ 
      System.out.printf(???.???);
     } 
    }
     System.out.printf("\n");
   }
  }
 }
}  

Compiler output:
Main.java:15: error: illegal start of expression
      System.out.printf(???#???);
                        ^
Main.java:15: error: illegal start of expression
      System.out.printf(???#???);
                         ^
Main.java:15: error: illegal start of expression
      System.out.printf(???#???);
                          ^
Main.java:15: error: illegal character: '#'
      System.out.printf(???#???);
                           ^
Main.java:17: error: illegal start of expression
      System.out.printf(???.???);
                        ^
Main.java:17: error: illegal start of expression
      System.out.printf(???.???);
                         ^
Main.java:17: error: illegal start of expression
      System.out.printf(???.???);
                          ^
Main.java:17: error: illegal start of expression
      System.out.printf(???.???);
                           ^
Main.java:17: error: <identifier> expected
      System.out.printf(???.???);
                            ^
Main.java:17: error: illegal start of expression
      System.out.printf(???.???);
                             ^
Main.java:17: error: illegal start of expression
      System.out.printf(???.???);
                              ^
Main.java:17: error: illegal start of expression
      System.out.printf(???.???);
                               ^
12 errors
Language: Java

import java.io.*;
import java.util.*;

public class Main{
	public static void main(String[] args){
		Scanner scan = new scanner(System.in);
		while(true){
			H=scan.nextInt();
			W=scan.nextInt();
			if(H==0 && W==0){
				break;
			}
			for(int i=0;i<H;i++){
				for(int j=0;j<W;j++){
					if((i+j)%2==0)System.out.print("#");
					else          System.out.print(".");
				}
				System.out.println();
			}
		}
	}
}

Compiler output:
Main.java:6: error: cannot find symbol
		Scanner scan = new scanner(System.in);
		                   ^
  symbol:   class scanner
  location: class Main
Main.java:8: error: cannot find symbol
			H=scan.nextInt();
			^
  symbol:   variable H
  location: class Main
Main.java:9: error: cannot find symbol
			W=scan.nextInt();
			^
  symbol:   variable W
  location: class Main
Main.java:10: error: cannot find symbol
			if(H==0 && W==0){
			   ^
  symbol:   variable H
  location: class Main
Main.java:10: error: cannot find symbol
			if(H==0 && W==0){
			           ^
  symbol:   variable W
  location: class Main
Main.java:13: error: cannot find symbol
			for(int i=0;i<H;i++){
			              ^
  symbol:   variable H
  location: class Main
Main.java:14: error: cannot find symbol
				for(int j=0;j<W;j++){
				              ^
  symbol:   variable W
  location: class Main
7 errors