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

import java.util.Scanner;
public class ITP1_5_C {
	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		StringBuilder sb=new StringBuilder("");
		int H=sc.nextInt(),W=sc.nextInt();
		while (H!=0||W!=0){
			for(int a=1;a<=H;a++){
				for (int b=1;b<=W;b++){
					if((a%2==1&&b%2==1)||(a%2==0&&b%2==0)){
						sb.append("#");
					}else if((a%2==0&&b%2==1)||(a%2==1&&b%2==0)){
						sb.append(".");
					}
				}
				sb.append("\n");
			}
			sb.append("\n");
			H=sc.nextInt();W=sc.nextInt();
		}
		System.out.println(sb);
		}
}

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

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintStream;

public class Chessboard {
	public static void main(String[] args) throws IOException {
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		PrintStream out = System.out;
		while (true) {
			String[] str = in.readLine().split(" ");
			int H = Integer.parseInt(str[0]);
			int W = Integer.parseInt(str[1]);
			if (H == 0 && W == 0)
				break;
			StringBuilder sb = new StringBuilder();
			if (300 < H || 300 < W)
				throw new RuntimeException("range oger");
			for (int i = 0; i < H; i += 1) {
				for (int j = 0; j < W; j += 1) {
					if ((i + j) % 2 == 0)
						sb.append("#");
					else
						sb.append(".");
				}
				sb.append(System.getProperty("line.separator"));
			}
			out.println(sb);
		}
	}
}

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

import java.io.*;

public class Main{
	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		while(true){
			String line = br.readLine();
			String[] str = line.split(" ");
			int h = Integer.parseInt(str[0]);
			int w = Integer.parseInt(str[1]);
			if ( h == 0 && w == 0 ){ //??\????????¨??????0
				break;
			}

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

Compiler output:
Main.java:20: error: ';' expected
						System.out.print(".")
						                     ^
1 error
Language: Java



import java.util.*;

public class???Main {
	public static void main(String args[]) {
		Scanner scan = new Scanner(System.in);
		StringBuilder sb = new StringBuilder();
		sb.append("");// ??????????????\???????????????
		int h, w, c;
		c = 0;// ?????¶??§???????????°

		while (true) {
			h = scan.nextInt();// ????????????
			w = scan.nextInt();// ?¨??????????
			// h??¨w?????¨??????0????????£?????¨??????????????????????????????
			if ((h == 0) & (w == 0)) {
				break;
			}

			// for?????§????????????h??§????????????
			for (int count = 0; count < h; count++) {
				// for?????§?¨???????????????§????????????
				for (int count2 = 0; count2 < w; count2++) {
					// #???StringBuilder?????\????????????
					if (c % 2 == 0) {// C????????????0?????¨?????¨????????´?????§???????????????
						sb.append("#");
						c++;
					} else {
						sb.append(".");
						c++;
					}

				}

				sb.append("\n");
				c++;

			}
			System.out.println(new String(sb));
			// StringBuilder????????????????????????
			sb.delete(0, sb.length());
			c = 0;// ?????¶??§???????????°????????????
		}

	}
}

Compiler output:
Main.java:5: error: <identifier> expected
public class???Main {
            ^
1 error
Language: Java


import java.util.*;

public class???Main {
	public static void main(String args[]) {
		Scanner scan = new Scanner(System.in);
		StringBuilder sb = new StringBuilder();
		//sb.append("");// ??????????????\???????????????
		int h, w, c;
		c = 0;// ?????¶??§???????????°

		while (true) {
			h = scan.nextInt();// ????????????
			w = scan.nextInt();// ?¨??????????
			// h??¨w?????¨??????0????????£?????¨??????????????????????????????
			if ((h == 0) & (w == 0)) {
				break;
			}

			// for?????§????????????h??§????????????
			for (int count = 0; count < h; count++) {
				// for?????§?¨???????????????§????????????
				for (int count2 = 0; count2 < w; count2++) {
					// #???StringBuilder?????\????????????
					if (c % 2 == 0) {// C????????????0?????¨?????¨????????´?????§???????????????
						sb.append("#");
						c++;
					} else {
						sb.append(".");
						c++;
					}

				}
				if(count == (h-1)){
					sb.append("\n");
					sb.append(" ");
					c++;
				}else{
					sb.append("\n");
					c++;
				}

			}
			System.out.print(new String(sb));
			// StringBuilder????????????????????????
			sb.delete(0, sb.length());
			c = 0;// ?????¶??§???????????°????????????
		}

	}
}

Compiler output:
Main.java:4: error: <identifier> expected
public class???Main {
            ^
1 error
Language: Java

import java.util.Scanner;

public class Main {


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

		int hei, wid, cnt_wid;

		while(true){
			hei = scan.nextInt();//??????????????????
			wid = scan.nextInt();//?¨????????????????
			if(hei == 0 && wid == 0){//???????????????0???0????????\???????????????????????????
				break;
			}
			for(int cnt_hei = 0; cnt_hei < hei; cnt_hei++){//?????????????????????
				for(cnt_wid = 0; cnt_wid < wid; cnt_wid++){//?¨???????????????????
					if(cnt_hei % 2 == 0){//??¶??°???????\???°???????????????
						if(cnt_wid % 2 == 0){
							System.out.print("#");
						}
						else{
							System.out.print(".");
						}
					}else{
						if(cnt_wid % 2 == 0){
							System.out.print(".");
						}
						else{
							System.out.print("#");
						}
					}
						
				}
				System.out.println();
			}
		System.out.println();
		}
        scan.close();
    }

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

import java.util.Scanner;
 
class Main{
  public static void main(String[] arg){
    int H, W;

    Scanner in = new Scanner(System.in);

    while(true){
        H = in.nextInt();
        W = in.nextInt();

        if(H == 0 && W == 0) return;
        
        for(int i=0; i<H; i++){
            for(int j=0; j<W; j++){
                if(i%2 == 0){
                    if(j%2 == 0)
                        System.out.print("#");
                    else
                        System.out.print(".")
                }
                else {
                    if(j%2 == 0)
                        System.out.print(".");
                    else
                        System.out.print("#");
                }
            }
            System.out.println();
        }
        System.out.println();
    }
    
  }
}

Compiler output:
Main.java:21: error: ';' expected
                        System.out.print(".")
                                             ^
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 j=0;j<W;j++){
          if(j%2==0){
            if(i%2==0){
              System.out.printf("#");
            }else{
              System.out.printf(".");
          }else{
            if(i%2==0){
              System.out.printf(".");
            }else{
              System.out.printf("#");
            }
          }
        }
         System.out.printf("\n");
      }
    }
  }
}

Compiler output:
Main.java:17: error: 'else' without 'if'
          }else{
           ^
Main.java:29: error: reached end of file while parsing
}
 ^
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 i=0;i<H;i++){
        for(int j=0;j<W;j++){
          if(j%2==0){
            if(i%2==0){
              System.out.printf("#");
            }else{
              System.out.printf(".");
          }else if{
            if(i%2==0){
              System.out.printf(".");
            }else{
              System.out.printf("#");
            }
          }
        }
         System.out.printf("\n");
      }
    }
  }
}

Compiler output:
Main.java:17: error: '(' expected
          }else if{
                  ^
Main.java:17: error: 'else' without 'if'
          }else if{
           ^
Main.java:29: error: reached end of file while parsing
}
 ^
3 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(j%2==0){
            if(i%2==0){
              System.out.printf("#");
            }else{
              System.out.printf(".");
          }else if(i%2==0){
            System.out.printf(".");
          }else{
            System.out.printf("#");
          }
        }
         System.out.printf("\n");
      }
    }
  }
}

Compiler output:
Main.java:17: error: 'else' without 'if'
          }else if(i%2==0){
           ^
Main.java:27: error: reached end of file while parsing
}
 ^
2 errors
Language: Java

import java.util.Scanner;

public class Chessboard{
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++){
  if(j%2==1){
   System.out.printf("#");
   }else{
   System.out.printf(".");
   }
 }
 System.out.printf("\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.Scanner;
public class Chessboad{
	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++){
			int 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:2: error: class Chessboad is public, should be declared in a file named Chessboad.java
public class Chessboad{
       ^
1 error
Language: Java

import java.io.*;

public class Main {
    
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        StringBuilder sb;
        do{
            sb = new StringBuilder();
            
            String[] strs = br.readLine().split("\\s+");
            int height = Integer.parseInt(str[0]);
            int width = Integer.parseInt(str[1]);
            
            if(height == 0 && width == 0) break;
            
            for(int i = 0;i < height; i++){
                for(int j = 0;j < width; j++){
                    sb.append((i + j) % 2 == 0 ? "#" : ".");
                }
                sb.append("\n");
            }
            System.out.println(sb);
        }
        while(true);
    }
}

Compiler output:
Main.java:12: error: cannot find symbol
            int height = Integer.parseInt(str[0]);
                                          ^
  symbol:   variable str
  location: class Main
Main.java:13: error: cannot find symbol
            int width = Integer.parseInt(str[1]);
                                         ^
  symbol:   variable str
  location: class Main
2 errors
Language: Java

import java.io.BufferedReader;
import java.io.InputStreamReader;

public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String in = br.readLine();
		String[] input = in.split("");
		int height = Integer.parseInt(input[0]);
		int width = Integer.parseInt(input[1]);

		for (int i = 0; i < height; i++) {
			if (i % 2 != 0) {// ?\???°???
				for (int j = 0; j < width; j++) {
					System.out.print("#");
					j++;
					System.out.print(".");
				}
			} else {// ??¶??°???
				for (int j = 0; j < width; j++) {
					System.out.print(".");
					j++;
					System.out.print("#");
				}
				System.out.println();
			}
		}
	}
}

Compiler output:
Main.java:10: error: unreported exception IOException; must be caught or declared to be thrown
		String in = br.readLine();
		                       ^
1 error
Language: Java

import java.io.BufferedReader;
import java.io.InputStreamReader;

public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String in = br.readLine();
		String[] input = in.split("");
		int height = Integer.parseInt(input[0]);
		int width = Integer.parseInt(input[1]);

		if ((height == 0) && (width == 0)) {
			for (int i = 0; i <= height; i++) {
				if (i % 2 != 0) {// ?\???°???
					for (int j = 0; j < width; j++) {
						System.out.print("#");
						j++;
						System.out.print(".");
					}
				} else {// ??¶??°???
					for (int j = 0; j < width; j++) {
						System.out.print(".");
						j++;
						System.out.print("#");
					}
					System.out.println();
				}
			}
		}
	}
}

Compiler output:
Main.java:10: error: unreported exception IOException; must be caught or declared to be thrown
		String in = br.readLine();
		                       ^
1 error
Language: Java

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {

		public static void main(String[] args) throws IOException {
		// TODO ?????????????????????????????????????????????

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String in = br.readLine();
		String[] input = in.split(" ");
		int height = Integer.parseInt(input[0]);
		int width = Integer.parseInt(input[1]);

		if ((height == 0) && (width == 0)) {
			for (int i = 0; i <= height; i++) {
				if (i % 2 != 0) {// ?\???°???
					for (int j = 0; j < width; j++) {
						System.out.print("#");
						j++;
						System.out.print(".");
					}
				} else {// ??¶??°???
					for (int j = 0; j < width; j++) {
						System.out.print(".");
						j++;
						System.out.print("#");
					}
					System.out.println();
				}
				System.out.println();
			}
		}
}

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

import java.io.*;
public class Main {
	public static void main(String[] args) throws IOException{
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		String line = reader.readLine();
		String[] sarray = line.split(" ", -1);
		int H = Integer.parseInt(sarray[0]);
		int W = Integer.parseInt(sarray[1]);
		int n = 0;
		while(true){
			if(H == 0 && W == 0){
				break;
			} else {
				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 == 1){
								System.out.print("#");
							} else {
								System.out.print(".");
							}
						}
					}
				System.out.println();
			}
			System.out.println();
		}
	}
}

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

import java.io.BufferedReader;
import java.io.InputStreamReader;

public class Main {

    public static void main(String[] args) {
        int H = 0;  //??????????????°
        int W = 0;  //??????????????°

        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        StringBuilder output = new StringBuilder();

//      ?????°????????????????????????????§????????????????????????????????????????1????????????????????????????????????
        while(true){
            String input = br.readLine();
            String[] strArray = input.split(" ");

            H = Integer.parseInt(strArray[0]);
            W = Integer.parseInt(strArray[1]);

//          H??¨W?????±???0?????¨??????????????????
            if(H == 0 && W == 0){
                break;
            }

//          ??????????????°?????°?????????
            for(int i = 0; i < H; i++){
//              ?\???°???
                if(i % 2 == 1){
                    for(int j = 0; j < W; j++){
//                      ?\???°??????"#"
                        if(j % 2 == 1){
                        output.append("#");

//                      ??¶??°??????"."
                        }else{
                            output.append(".");
                        }
                    }
//              ??¶??°???
                }else{
                    for(int j = 0; j < W; j++){
//                      ?\???°??????"."
                        if(j % 2 == 1){
                        output.append(".");

//                      ??¶??°??????"#"
                        }else{
                            output.append("#");
                        }
                    }
                }output.append("\n");
            }
            output.append("\n");
        }
        System.out.print(output);
    }
}

Compiler output:
Main.java:15: error: unreported exception IOException; must be caught or declared to be thrown
            String input = br.readLine();
                                      ^
1 error
Language: Java

public class Main {
	public static void main(String[] args) throws Exception {
	
		try{
	BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));

	while(true){
    String input = buf.readLine();
	String[] strAry = input.split(" ");
    int H = Integer.parseInt(strAry[0]);
    int W = Integer.parseInt(strAry[1]);
	
	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");
	}
	System.out.printf("\n");
	}
} catch (Exception e) {

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

Compiler output:
Main.java:5: error: cannot find symbol
	BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));
	^
  symbol:   class BufferedReader
  location: class Main
Main.java:5: error: cannot find symbol
	BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));
	                         ^
  symbol:   class BufferedReader
  location: class Main
Main.java:5: error: cannot find symbol
	BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));
	                                            ^
  symbol:   class InputStreamReader
  location: class Main
3 errors
Language: Java

import java.util.Scanner;

public class Chessboard {

	public static void main(String[] args) {

		Scanner scanner = new Scanner(System.in);
		String temp = scanner.nextLine();
		String[] a = temp.split(" ");

		int H = Integer.parseInt(a[0]);
		int W = Integer.parseInt(a[1]);
		int flag = 0;

		while ((1 <= H && 300 >= H) && (1 <= W && 300 >= W)) {
			for (int x = 0; x < H; x++) {
				for (int y = 0; y < W; y++) {
					if (y % 2 == flag) {
						System.out.print("#");
					} else {
						System.out.print(".");
					}

				}
				if (flag == 1)
					flag = 0;
				else
					flag = 1;
				// System.out.println(flag);
				System.out.println(" ");
			}
			flag =0;
			String temp1 = scanner.nextLine();
			String[] a1 = temp1.split(" ");
			H = Integer.parseInt(a1[0]);
			W = Integer.parseInt(a1[1]);
		}

	}
}

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){
while(true){
int H = nextInt();
int W = 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.println("#");
else System.out.println(".");}
}}
}}

Compiler output:
Main.java:5: error: cannot find symbol
int H = nextInt();
        ^
  symbol:   method nextInt()
  location: class Main
Main.java:6: error: cannot find symbol
int W = nextInt();
        ^
  symbol:   method nextInt()
  location: class Main
2 errors
Language: Java

import java.util.*;
public class Main{
public static void main(String[] args){
Scanner scan=new Scanner(System.in);
while(true){
int H = nextInt();
int W = 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.println("#");
else System.out.println(".");}
}}
}}

Compiler output:
Main.java:6: error: cannot find symbol
int H = nextInt();
        ^
  symbol:   method nextInt()
  location: class Main
Main.java:7: error: cannot find symbol
int W = nextInt();
        ^
  symbol:   method nextInt()
  location: class Main
2 errors
Language: Java

import java.util.*;
public class Main{
public static void main(String[] args){
Scanner scan=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.println("#");
else System.out.println(".");}
}}
}}

Compiler output:
Main.java:6: error: cannot find symbol
int H = sc.nextInt();
        ^
  symbol:   variable sc
  location: class Main
Main.java:7: error: cannot find symbol
int W = sc.nextInt();
        ^
  symbol:   variable sc
  location: class Main
2 errors
Language: Java

import java.util.*;
public class Main{
public static void main(String[] args){
Scanner scan=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:6: error: cannot find symbol
int H = sc.nextInt();
        ^
  symbol:   variable sc
  location: class Main
Main.java:7: error: cannot find symbol
int W = sc.nextInt();
        ^
  symbol:   variable sc
  location: class Main
2 errors
Language: Java

import java.util.Scanner;
public class Main{
public static void main(String[] args){
Scanner scan=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:6: error: cannot find symbol
int H = sc.nextInt();
        ^
  symbol:   variable sc
  location: class Main
Main.java:7: error: cannot find symbol
int W = sc.nextInt();
        ^
  symbol:   variable sc
  location: class Main
2 errors
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;
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:11: error: illegal start of expression
for(int j=0;j<W;j+;){
                  ^
Main.java:11: error: not a statement
for(int j=0;j<W;j+;){
                 ^
Main.java:11: error: illegal start of expression
for(int j=0;j<W;j+;){
                   ^
3 errors
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;
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:11: error: ')' expected
for(int j=0 ; j<W ; j++;){
                       ^
Main.java:11: error: illegal start of expression
for(int j=0 ; j<W ; j++;){
                        ^
2 errors
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;
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:11: error: ')' expected
for(int j=0;j<W;j++;){
                   ^
Main.java:11: error: illegal start of expression
for(int j=0;j<W;j++;){
                    ^
2 errors
Language: Java

import java.util.Scanner;

public class Main{
	public static void main(String [] args){
		Scanner sc = new Scanner(System.in);
		int h,w,i,j,state;
		h = sc.nextInt();
		w = sc.nextInt();
		while(h != 0 && w != 0){
			state = 0;
			for(i = 0; i < h; i++){
				for(j = 0; j < w; j++){
					if(!state){
						System.out.print("#");
						state = 1;
					}else{
						System.out.print(".");
						state = 0;
					}
				}
				System.out.println("");
			}
			System.out.println("");
			h = sc.nextInt();
			w = sc.nextInt();
		}
	}
}

Compiler output:
Main.java:13: error: bad operand type int for unary operator '!'
					if(!state){
					   ^
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,w,i,j;
		boolean state = false;
		h = sc.nextInt();
		w = sc.nextInt();
		while(h != 0 && w != 0){
			state = 0;
			for(i = 0; i < h; i++){
				for(j = 0; j < w; j++){
					if(!state){
						System.out.print("#");
						state = true;
					}else{
						System.out.print(".");
						state = false;
					}
				}
				System.out.println("");
			}
			System.out.println("");
			h = sc.nextInt();
			w = sc.nextInt();
		}
	}
}

Compiler output:
Main.java:11: error: incompatible types: int cannot be converted to boolean
			state = 0;
			        ^
1 error
Language: Java

import java.util.*;

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

        Scanner sc = new Scanner(System.in);

        for(int i = 0; i < 300; i++) {
          String line = sc.nextLine();
          String[] l = line.split(" ");
          int H = Integer.parseInt(l[0]);
          int W = Integer.parseInt(l[1]);
          if(H == 0 && W == 0) {
            break;
          }

          int flag;
          for(int h = 0; h < H; h++) {
            if(h % 2 == 0) {
              flag = 0;
            } else {
              flag = 1;
            }

            for(int w = 0; w < W; w++) {
              if(flag == 0) {
                System.out.print("#");
                flag = 1;
              } else {
                System.out.print(".");
                flag = 0;
              }
            }

            System.out.println();
          }

          System.out.println();
        }
    }
}

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

import java.io.*;

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

        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int num = 0;

       while(true){

            String num1 = br.readLine();
            String[] num2 = num1.split(" ");
            int H = Integer.parseInt(num2[0]);
            int W = Integer.parseInt(num2[1]);

            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:32: error: reached end of file while parsing
    }
     ^
1 error
Language: Java

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

		//?°?????????????
		while(true){
			//H??????????????????
			int H = sc.nextInt();
			//W?¨????????????????
			int W = sc.nextInt();
			//H??¨W???0????????????
			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:4: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class Main
Main.java:4: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		                 ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: Java

import java.io.*;

public class Main
{
	public static void main(String[] args)throws IOException
	{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String[] str = br.readLine().split(" ");
		int H = Integer.parseInt(str[0]);
		int W = Integer.parseInt(str[1]);
		char a = '#';
		byte c = 1;
		if(H==0 && W==0)	break;
		for(int i = 1; i<=H; i++)
		{
			for(int j = 1; j<=W; j++)
			{
				System.out.print(a);
				if(j==W)	break;
				c = c * (-1);
				if(c==-1)		a = '.';
				else if(c==1)	a = '#';
			}
			System.out.println();
		}
		
	}
}

Compiler output:
Main.java:13: error: break outside switch or loop
		if(H==0 && W==0)	break;
		                	^
Main.java:20: error: incompatible types: possible lossy conversion from int to byte
				c = c * (-1);
				      ^
2 errors
Language: Java

import java.io.*;

public class Main
{
	public static void main(String[] args)throws IOException
	{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		while(true)
		{
			String[] str = br.readLine().split(" ");
			int H = Integer.parseInt(str[0]);
			int W = Integer.parseInt(str[1]);
			if(H==0 && W==0)	break;
			char a, b = '#', c = '.';
			int c = 1;
			for(int i = 1; i<=H; i++)
			{
				if(i%2==1)
				{
					a = b;
				}else if(i%2==0)
				{
					a = c;
				}
				for(int j=1; j<=W; j++)
				{
					System.out.print(a);
					if(a==b)		a = c;
					else if(a==c)	a = b;
				}
				System.out.println();
			}
			System.out.println();
		}
	}
}

Compiler output:
Main.java:15: error: variable c is already defined in method main(String[])
			int c = 1;
			    ^
Main.java:23: error: incompatible types: possible lossy conversion from int to char
					a = c;
					    ^
Main.java:28: error: incompatible types: possible lossy conversion from int to char
					if(a==b)		a = c;
					        		    ^
3 errors
Language: Java

import java.io.*;

public class Main
{
	public static void main(String[] args)throws IOException
	{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		while(true)
		{
			String[] str = br.readLine().split(" ");
			int H = Integer.parseInt(str[0]);
			int W = Integer.parseInt(str[1]);
			if(H==0 && W==0)	break;
			char a, b = '#', c = '.';
			for(int i = 1; i<=H; i++)
			{
				if(i%2==1)
				{
					a = b;
				}else if(i%2==0)
				{
					a = c;
				}
				for(int j=1; j<=W; j++)
				{
					System.out.print(a);
					if(a==b)		a = c;
					else if(a==c)	a = b;
				}
				System.out.println();
			}
			System.out.println();
		}
	}
}

Compiler output:
Main.java:26: error: variable a might not have been initialized
					System.out.print(a);
					                 ^
1 error
Language: Java

import java.io.*;

public class Main
{
	public static void main(String[] args)throws IOException
	{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		while(true)
		{
			String[] str = br.readLine().split(" ");
			int H = Integer.parseInt(str[0]);
			int W = Integer.parseInt(str[1]);
			if(H==0 && W==0)	break;
			char a = '', b = '#', c = '.';
			for(int i=1; i<=H; i++)
			{
				if(i%2==1)
				{
					a = b;
				}else if(i%2==0)
				{
					a = c;
				}
				for(int j=1; j<=W; j++)
				{
					System.out.print(a);
					if(a==b)		a = c;
					else if(a==c)	a = b;
				}
				System.out.println();
			}
			System.out.println();
		}
	}
}

Compiler output:
Main.java:14: error: empty character literal
			char a = '', b = '#', c = '.';
			         ^
Main.java:14: error: ';' expected
			char a = '', b = '#', c = '.';
			                    ^
2 errors
Language: Java

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;

public class PrintCheckboatd {

	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

        StringTokenizer st=new StringTokenizer(br.readLine());
        int H=Integer.parseInt(st.nextToken());
        int W=Integer.parseInt(st.nextToken());

        while(H!=0 || W!=0) {

            int i=0;
            int j=0;

            while(j<H) {
                if(j%2==1){
                	while(i<W) {
                        if(i%2==1){
                        	System.out.print("#");
                        }else{
                        	System.out.print(".");
                        }
                        i++;
                    }
                }else{
                	while(i<W) {
                        if(i%2==1){
                        	System.out.print(".");
                        }else{
                        	System.out.print("#");
                        }
                        i++;
                    }
                }
                System.out.println("");
                i=0;
                j++;
            }
            System.out.println("");
            StringTokenizer sa=new StringTokenizer(br.readLine());
            H=Integer.parseInt(sa.nextToken());
            W=Integer.parseInt(sa.nextToken());
        }
	}

}



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

import java.util.Scanner;

public class rensyu{
  public static void main(String args[]){
      int a=1,b=1;
      while(a!=0||b!=0){
    Scanner sc = new Scanner(System.in);
 a=sc.nextInt();
 b=sc.nextInt();
int i,j;

 for(i=0;i<a;i++){
    for(j=0;j<b;j++){
        if((j+i)%2==0){
            System.out.print("#");
        }else System.out.print(".");
    }
   if(b==0) continue;
   else System.out.println("");
 }
 System.out.println("");
}
}
}


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

import java.util.Scanner;

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

 for(i=0;i<H;i++){
    for(j=0;j<W;j++){
        if((j+i)%2==0){
            System.out.print("#");
        }else System.out.print(".");
    }
   if(b==0) continue;
   else System.out.println("");
 }
 System.out.println("");
}
}
}



Compiler output:
Main.java:18: error: cannot find symbol
   if(b==0) continue;
      ^
  symbol:   variable b
  location: class Main
1 error
Language: Java

import java.util.Scanner;

public class Test5 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while(sc.hasNext()) {
            int h = sc.nextInt();
            int w = sc.nextInt();

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

                    }
                }
            }
            else
                break;

            System.out.println();
        }
    }

}



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

import java.util.Scanner;

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

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

    }
}


Compiler output:
Main.java:3: error: class check is public, should be declared in a file named check.java
public class check{
       ^
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 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:2: error: class main is public, should be declared in a file named main.java
public class main {
       ^
1 error
Language: Java

import java.util.Scanner;
public class Chessboard{
    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 = 0; i < H; i++) {
            if (H == 0 && W == 0) {
                break;
            }
            if(i%2==0) {
                for (j = 0; j < W; j++) {
                    if (j % 2 == 0) {
                        System.out.print("#");
                    } else {
                        System.out.print(".");
                    }
                }
                System.out.print("\n");
            }else{
                for (j = 0; j < W; j++) {
                    if (j % 2 == 1) {
                        System.out.print(".");
                    } else {
                        System.out.print("#");
                    }
                }
                System.out.print("\n");
            }
            }
        }
    }



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

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int H = sc.nextInt();
        int W = sc.nextInt();
        while(H!=0 && W!=0) {
            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.println();
            }
            System.out.println();
            H = sc.nextInt();
            W = sc.nextInt();
        }
    }
}


Compiler output:
Main.java:3: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class Main
Main.java:3: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
                         ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: Java

import java.util.Scanner;
public class PrintAChessboard {
    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.print("\n");
                }
                System.out.print("\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 chessboard {
			  public static void main(String[]args){
			    Scanner sc = new Scanner(System.in);
			    int H = sc.nextInt();
			    int W = sc.nextInt();
		              for(int i = 0;i < H;++i) {
		            	 for(int j = 0;j < W;++j){
		            		 if(i%2 == 0 && j%2 == 0) {
		            		  System.out.printf("#");
		            		  }
		            		 if(i%2 == 0 && j%2 == 1) {
		            		  System.out.printf(".");
		            	  }
		            		 if(i%2 == 1 && j%2 == 0) {
		            	      System.out.printf(".");
		            		 }
		            		 if(i%2 == 1 && j%2 == 1) {
		            	  System.out.printf("#");
		            	  }
		            	 }
		        System.out.println("");
			    	  }
			    	sc.close();   
			  }
			}


Compiler output:
Main.java:2: error: class chessboard is public, should be declared in a file named chessboard.java
public class chessboard {
       ^
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;
        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+j)% 2) == 0) System.out.print("#");
                        else System.out.print(".");
                    }
                    System.out.println();
                }
            }
        }
    }
}




Compiler output:
Main.java:24: error: class, interface, enum, or record expected
}
^
1 error
Language: Java

import java.util.Scanner;

public class Chessboard {
    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.printf("#");
                        }else{
                            System.out.printf(".");
                        }
                    }
                    System.out.printf("\n");
                }
                System.out.printf("\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.Scanner;

public class Chessboard {

    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();
                }
            }
        }
    }



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.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%2==1 && j%2==1){
                            System.out.print("#");
                        }else
                        if(i%2==0 && j%2==1){
                            System.out.print(".");                            
                        }else
                        if(i%2==1 && 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:31: 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);
        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%2==1 && j%2==1){
                            System.out.print("#");
                        }
                        if(i%2==0 && j%2==1){
                            System.out.print(".");                            
                        }
                        if(i%2==1 && j%2==0){
                            System.out.print(".");  
                        }
                        if(i%2==0 && j%2==0){
                            System.out.print("#");                            
                        }
                    }
                System.out.println();                       
                }
                System.out.println();                   
        }
    }



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