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

import java.util.Scanner;

public class Main_10014 {
	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 == 1) {
					for (int j = 0; i < W; j++) {
						if (j % 2 == 0) {
							System.out.printf("#");
						} else {
							System.out.printf(".");
						}
					}
					System.out.printf("\n");
				} else {
					for (int j = 0; i < W; j++) {
						if (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 Main_10014 is public, should be declared in a file named Main_10014.java
public class Main_10014 {
       ^
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(???.???);
                              ^
Main.java:23: error: reached end of file while parsing
}
 ^
13 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 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:23: 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 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:14: error: unexpected type
    if((i+t)%2=0){
            ^
  required: variable
  found:    value
1 error
Language: Java

import java.util.*;

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

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

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


public class aoj10014{
	public static void main(String[] args){
		Scanner scan = 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++){
					if((i+j)%2==0)System.out.print("#");
					else          System.out.print(".");
				}
				System.out.println();
			}
			System.out.println();
		}
	}
}

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

import java.util.Scanner;

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

		int h,w;
		int i,j;

		while(true){
			h = sc.nextInt();
			w = sc.nextInt();

			if(h == 0 && w ==0)break;

			for(i = 0;i < h;){
				for(j = 0;j < w;){
					System.out.printf("#");
					j++;
					if(j >= w)break;
					System.out.printf(".");
					j++;
				}
				System.out.println("");
				i++;
				if(i >= h)break;
				for(j = 0;j < w;){
					System.out.printf(".");
					j++;
					if(j >= w)break;
					System.out.printf("#");
					j++;
				}
				System.out.println("");
				i++;
				if(i >= h)break;
			}
		}
	}
}

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){
		Scanner sc = new Scanner(System.in);

		int h,w;
		int i,j;

		while(true){
			h = sc.nextInt();
			w = sc.nextInt();

			if(h == 0 && w ==0)break;

			for(i = 0;i < h;){
				for(j = 0;j < w;){
					System.out.printf("#");
					j++;
					if(j >= w)break;
					System.out.printf(".");
					j++;
				}
				System.out.println("");
				i++;
				if(i >= h){
					System.out.println("");
					break;
				}
				for(j = 0;j < w;){
					System.out.printf(".");
					j++;
					if(j >= w)break;
					System.out.printf("#");
					j++;
				}
				
				System.out.println("");
				i++;
				if(i >= h){
					System.out.println("");
					break;
				}
			}
		}
	}
}

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/2);i++){
    for(int j=0;j<(W/2);j++){
	System.out.printf("#.");
	    }
    for(int k=0;k<(W%2);k++){
	System.out.printf("#");
    }System.out.println("");    
 for(int j=0;j<(W/2);j++){
	System.out.printf(".#");
	    }
    for(int k=0;k<(W%2);k++){
	System.out.printf(".);
    }System.out.println("");    
}
for(int i=0;i<(H%2);i++){
    for(int j=0;j<(W/2);j++){
	System.out.printf("#.");
	    }
    for(int k=0;k<(W%2);k++){
	System.out.printf("#");
    }System.out.println("");    
}

// ???????????????(for?????????for)???????????????H x W?????? # ?????¨???????????????
}
}
}

Compiler output:
Main.java:25: error: unclosed string literal
	System.out.printf(".);
	                  ^
1 error
Language: Java


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


public class Mian{
    public static void main(String [] args){
        Scanner scan = 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:6: error: class Mian is public, should be declared in a file named Mian.java
public class Mian{
       ^
1 error
Language: Java

import java.util.Scanner;

public class task1 {
	public static void main(String[] aregs) {
		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.printf("#");
						} else {
							System.out.printf(".");
						}
					}
					System.out.printf("\n");
				} else {
					for (int j = 0; j < W; j++) {
						if (j % 2 == 0) {
							System.out.printf(".");
						} else {
							System.out.printf("#");
						}
					}
					System.out.printf("\n");

				}
			}

		}
	}

}

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

import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int x = 1, y = 1;
		while (true) {
			int H = sc.nextInt();
			int W = sc.nextInt();
			System.out.printf("\n");
			if (H == 0 && W == 0) {
				break;
			}

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

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

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

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

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

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

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

}

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.util.Scanner;

public class p10014 {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int x = 1, y = 1;
		while (true) {
			int H = sc.nextInt();
			int W = sc.nextInt();
			System.out.printf("\n");
			if (H == 0 && W == 0) {
				break;
			}

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

					}

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

				} else {
					for (int k = 1; k <= W; k++) {
						if (k % 2 == 1)
							System.out.printf(".");
						else
							System.out.printf("#");

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

				}

			}

		}
	}
}

Compiler output:
Main.java:3: error: class p10014 is public, should be declared in a file named p10014.java
public class p10014 {
       ^
1 error
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;
		}
      if(H<=300&&H>=1&&W<=300&&W>=1){
			for(int i=0;i<H;i++){
				if(i%2==0){
				for(int j=0;j<W;j++){
					if(j%2==0){
					System.out.printf("#");
				}else{
			        System.out.printf(".");
				}
				}
				}
					if(i%2!=0){
					for(int k=0;k<W;k++){
						if(k%2==0){
						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 main1 {
   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 main1 is public, should be declared in a file named main1.java
public class main1 {
       ^
1 error
Language: Java

import java.util.Scanner;

public class Main{
    public static void main(String[] args){
	int i=1,j=0;

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

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

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


	}}

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

import java.util.Scanner;

public class p10014 {
	public static void Main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int x = 1, y = 1;
		while (true) {
			int H = sc.nextInt();
			int W = sc.nextInt();
			System.out.printf("\n");
			if (H == 0 && W == 0) {
				break;
			}
			if ((H < 1 || H > 300) || (W < 1 || W > 300)) {
				System.out.println("");
				continue;
			}

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

					}

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

				} else {
					for (int k = 1; k <= W; k++) {
						if (k % 2 == 1)
							System.out.printf(".");
						else
							System.out.printf("#");

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

				}

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

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

import java.util.Scanner;

public class chouhou{
    public static void main(String[] args){
	int i=1,j=0;

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

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

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


	}}

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

import java.util.Scanner;
public class Teppei {
    public static void main(String[] args) {
// ?¨??????\???????????????????????????????????????
        Scanner sc = new Scanner(System.in);
// ????????????????????????????????´??°?????¨????????????????????????
        int i,j,c;
        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++){
                    c = j%2;
                    if(c == 1)
                    System.out.printf(".");
                    else{
                        System.out.printf("#");
                    }
                }
                System.out.printf("\n");
            }
System.out.printf("\n");
        }
    }
}

Compiler output:
Main.java:2: error: class Teppei is public, should be declared in a file named Teppei.java
public class Teppei {
       ^
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.println();
            }
            System.out.println();
 
        }
    }

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

import java.util.Scanner;

public class Pac {
	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.println("");
			}
			System.out.println("");
		}
	}

}

Compiler output:
Main.java:3: error: class Pac is public, should be declared in a file named Pac.java
public class Pac {
       ^
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;
			}
			if ((H < 1 || H > 300) || (W < 1 || W > 300)) {
				System.out.println("");
				continue;
			}

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

					}

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

				} else {
					for (int k = 1; k <= W; k++) {
						if (k % 2 == 1)
							System.out.printf(".");
						else
							System.out.printf("#");

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

				}

			}
			System.out.println();
		}
	}

Compiler output:
Main.java:44: 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?????????for)???????????????H x W?????? # ?????¨??????????????? 
			for (int y=0;y<H;y++){
				for(int x=0;x<W;x++){
					System.out.print(chars[(x+y)]&1);
				}
					System.out.println();
			}
				System.out.println();
		}
	}
}

Compiler output:
Main.java:16: error: cannot find symbol
					System.out.print(chars[(x+y)]&1);
					                 ^
  symbol:   variable chars
  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 (int y=0;y<H;y++){
				for(int x=0;x<W;x++){
					System.out.print(chars[(x+y)]&1);
				}
					System.out.println();
			}
				System.out.println();
		}
	}
}

Compiler output:
Main.java:13: error: cannot find symbol
					System.out.print(chars[(x+y)]&1);
					                 ^
  symbol:   variable chars
  location: class Main
1 error
Language: Java

import java.util.Scanner;

class Main
{
	public static void main(String[] args)
	{
		Scanner sc = new Scanner(System.in);
		
		while (sc.hesNextLine())
		{
			String[] str = sc.nextLine().split(" ");
			int H = Integer.parseInt(str[0]);
			int W = Integer.parseInt(str[1]);
			
			if (H == 0 && W == 0)
			{
				break;
			}
			
			for (int i = 0; i < H; i++)
			{
				for (int j = 0; j < W - 1; j++)
				{
					//iが奇数か、jが奇数か
					String s1 = i % 2 != 0 ? j % 2 != 0 ? "#" : "." : "." : "#";
					Syetem.out.print(s1);
				}
				
				String s2 = i % 2 != 0 ? "." : "#";
				System.out.println(s2);
			}
			
			System.out.println("");
		}
	}
}

Compiler output:
Main.java:25: error: ';' expected
					String s1 = i % 2 != 0 ? j % 2 != 0 ? "#" : "." : "." : "#";
					                                                     ^
1 error
Language: Java

import java.util.Scanner;

class Main
{
	public static void main(String[] args)
	{
		Scanner sc = new Scanner(System.in);
		
		while (sc.hesNextLine())
		{
			String[] str = sc.nextLine().split(" ");
			int H = Integer.parseInt(str[0]);
			int W = Integer.parseInt(str[1]);
			
			if (H == 0 && W == 0)
			{
				break;
			}
			
			for (int i = 0; i < H; i++)
			{
				for (int j = 0; j < W - 1; j++)
				{
					//iが奇数か、jが奇数か
					String s1 = i % 2 != 0 ? j % 2 != 0 ? "#" : "." : "#";
					Syetem.out.print(s1);
				}
				
				String s2 = i % 2 != 0 ? "." : "#";
				System.out.println(s2);
			}
			
			System.out.println("");
		}
	}
}

Compiler output:
Main.java:9: error: cannot find symbol
		while (sc.hesNextLine())
		         ^
  symbol:   method hesNextLine()
  location: variable sc of type Scanner
Main.java:26: error: package Syetem does not exist
					Syetem.out.print(s1);
					      ^
2 errors
Language: Java

import java.util.*;

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

Compiler output:
Main.java:13: error: cannot find symbol
            couter = 0;
            ^
  symbol:   variable couter
  location: class Main
1 error
Language: Java

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


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

		ArrayList<String> list = new ArrayList<String>();

		String str;
		int h,w;

		try {
			while(true){
				str = br.readLine();

				if(str.equals("0 0"))
					break;

				if(!str.equals(""))
				list.add(str);
			}

			for(int i=0; i<list.size(); i++){
				h = Integer.parseInt((String)list.get(i).substring(0, str.indexOf(" ")));
				w = Integer.parseInt((String)list.get(i).substring(str.indexOf(" ")+1, str.length()));

				for(int j=0; j<h; j++){
					if(j%2 == 0){//奇数行
						for(int k=0; k<w; k++){
							if(k%2 == 0){//奇数列
								System.out.print("#");
							}else{//偶数列
								System.out.print(".");
							}
						}
					}else{
						for(int k=0; k<w; k++){
							if(k%2 == 1){//奇数列
								System.out.print("#");
							}else{//偶数列
								System.out.print(".");
							}
						}
					}System.out.println();
				}
				System.out.println();
			}
		} catch (IOException e) {
			e.printStackTrace();
		} catch (NumberFormatException e) {
			// TODO: handle exception
			e.printStackTrace();
		}
	}
}

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

public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		
		int H;
		int W;
		
		for(;;){
		  H = sc.nextInt();
		  W = sc.nextInt();
		  int c = 0;
		  if(H == 0)if(W == 0)break;
			for(int a = 0; a != H; a++){
				for(int b = 0; b != W; b++){
					if(b % 2 == c){
						System.out.print("#");
					} else {
						System.out.print(".");
					}
					
				}
				System.out.println("");
					if(c == 1){
						c = 0;
					} else {
						c = 1;
					}
			}
			System.out.println("");
		}
	}
}

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 No10014 {
	public static void main(String[] args) {
		Scanner sc= new Scanner(System.in);
		for(;;){
			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==0){
						if(j%2==0){
						System.out.print("#");
						}
						else{
							System.out.print(".");
						}
					}
					if(i%2==1){
						if(j%2==0){
							System.out.print(".");
							}
							else{
								System.out.print("#");
							}
					}
				}
				System.out.println("");
			}
			System.out.println("");
		}	
	}
}

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

#include <stdio.h>
 
int main(){
 
    int a=-1,b,i,j;
    while(1){
        scanf("%d %d",&a,&b);
        if(a==0&&b==0)
            break;
 
        for(i=0;i<a;i++){
            for(j=0;j<b;j++)
                if((i+j)%2==0)
                    printf("#");
                else
                    printf(".");
            printf("\n");
        }
        printf("\n");
         
    }
    //for(i=0;i<=1000000000;i++);
    return 0;
}#FFFFFF

Compiler output:
main.c:24:2: error: stray '#' in program
   24 | }#FFFFFF
      |  ^
main.c:24:1: error: expected '=', ',', ';', 'asm' or '__attribute__' at end of input
   24 | }#FFFFFF
      | ^
Language: C

#include <stdio.h>
int main(){
int i,j,h,w;
while(1){
for(i=1;i<=h;i++){
 for(j=1;j<=w;j++){
        if(i%2 == 1){
               if(j%2==1){
                   printf("#");
              }else{
                   printf(".");
              }
        }else{if(i%2==1){
              printf(".");
              }else{
              printf("#");
              }
         }
  printf("\n");
}
printf("\n");
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:24:1: error: expected declaration or statement at end of input
   24 | }
      | ^
Language: C

include<stdio.h>
int main(void)
{
  int i, j, H, W;

  scanf("%d", &H);
  scanf("%d", &W);

  while(!(H==0 && H==W)){
    for(i=1;i<=H;i++){
      j=1;
      if(i%2!=0){
        while(j<=W){
          if(j%2!=0){
            printf("#");
          }else{
            printf(".");
          }
          j++;
        }
        printf("\n");
      }else{
        while(j<=W){
          if(j%2!=0){
            printf(".");
          }else{
            printf("#");
          }
          j++;
        }
        printf("\n");
      }
    }
    printf("\n");
    scanf("%d", &H);
    scanf("%d", &W);
  }

  return 0;
}

Compiler output:
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include<stdio.h>
      |        ^
Language: C

for(j=0;j<w;j++)
					{
						if(j%2==0)
						{
							printf("#");
						}
						else if(j%2==1)
						{
							printf(".");
						}

Compiler output:
main.c:1:1: error: expected identifier or '(' before 'for'
    1 | for(j=0;j<w;j++)
      | ^~~
main.c:1:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | for(j=0;j<w;j++)
      |          ^
main.c:1:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before '++' token
    1 | for(j=0;j<w;j++)
      |              ^~
Language: C

#include <stdio.h>
main()
{
  char a[]={#.}
  char b[]={.#}
  int H,W;
  
  scanf("%d\n",H);
  scanf("%d\n",W);
  
  while(1/2*H){ 
    while(W){char a}
    while(W){char b}
  }
}

Compiler output:
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main()
      | ^~~~
main.c: In function 'main':
main.c:4:13: error: stray '#' in program
    4 |   char a[]={#.}
      |             ^
main.c:4:15: error: expected identifier before '}' token
    4 |   char a[]={#.}
      |               ^
main.c:5:3: error: expected ',' or ';' before 'char'
    5 |   char b[]={.#}
      |   ^~~~
main.c:5:14: error: stray '#' in program
    5 |   char b[]={.#}
      |              ^
main.c:12:20: error: expected '=', ',', ';', 'asm' or '__attribute__' before '}' token
   12 |     while(W){char a}
      |                    ^
main.c:13:20: error: expected '=', ',', ';', 'asm' or '__attribute__' before '}' token
   13 |     while(W){char b}
      |                    ^
Language: C

#include <stdio.h>
main()
{
  char a[]={#.}
  char b[]={.#}
  int H,W;
  
  scanf("%d\n",H);
  scanf("%d\n",W);
  
  while(1/2*H){ 
    while(W){printf("%s",char a)}
    while(W){printf("%s",char b)}
  }
  return 0;
}

Compiler output:
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main()
      | ^~~~
main.c: In function 'main':
main.c:4:13: error: stray '#' in program
    4 |   char a[]={#.}
      |             ^
main.c:4:15: error: expected identifier before '}' token
    4 |   char a[]={#.}
      |               ^
main.c:5:3: error: expected ',' or ';' before 'char'
    5 |   char b[]={.#}
      |   ^~~~
main.c:5:14: error: stray '#' in program
    5 |   char b[]={.#}
      |              ^
main.c:12:26: error: expected expression before 'char'
   12 |     while(W){printf("%s",char a)}
      |                          ^~~~
main.c:12:33: error: expected ';' before '}' token
   12 |     while(W){printf("%s",char a)}
      |                                 ^
      |                                 ;
main.c:13:26: error: expected expression before 'char'
   13 |     while(W){printf("%s",char b)}
      |                          ^~~~
main.c:13:33: error: expected ';' before '}' token
   13 |     while(W){printf("%s",char b)}
      |                                 ^
      |                                 ;
Language: C

#include <stdio.h>
main()
{
  char a,b;
  a={'#','.'}
  b={'.','#'}

  int H,W;
  H=0;
  W=0;
  
  scanf("%d\n",H);
  scanf("%d\n",W);
  
  while(1/2*H){ 
    while(W){printf("%s",a)}
    while(W){printf("%s",b)}
  }
  return 0;
}

Compiler output:
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main()
      | ^~~~
main.c: In function 'main':
main.c:5:5: error: expected expression before '{' token
    5 |   a={'#','.'}
      |     ^
main.c:9:3: error: 'H' undeclared (first use in this function)
    9 |   H=0;
      |   ^
main.c:9:3: note: each undeclared identifier is reported only once for each function it appears in
main.c:10:3: error: 'W' undeclared (first use in this function)
   10 |   W=0;
      |   ^
main.c:16:28: error: expected ';' before '}' token
   16 |     while(W){printf("%s",a)}
      |                            ^
      |                            ;
main.c:17:28: error: expected ';' before '}' token
   17 |     while(W){printf("%s",b)}
      |                            ^
      |                            ;
Language: C

#include <stdio.h>
main()
{
  char a,b;
  a='#','.';
  b='.','#';
  
  int H,W;
  H=0;
  W=0;
  
  scanf("%d\n",&H);
  scanf("%d\n",&W);
  while(1/2*H){printf("%c\n"
  while(W){printf("%c\n",a);}
  while(W){printf("%c\n",b);}
		      );}

  return 0;
}

Compiler output:
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main()
      | ^~~~
main.c: In function 'main':
main.c:14:29: error: expected ')' before 'while'
   14 |   while(1/2*H){printf("%c\n"
      |                      ~      ^
      |                             )
   15 |   while(W){printf("%c\n",a);}
      |   ~~~~~
Language: C

#include <stdio.h>
main()
{
  char a,b;
  a='#','.';
  b='.','#';
  
  int H,W,i;
  H=0;
  W=0;
  i=0;
  
  scanf("%d\n",&H);
  scanf("%d\n",&W);
  
  if(H%2=0){
    for(i=0,i<1/2*H,i++){
  while(W){printf("%c\n",a);}
  while(W){printf("%c\n",b);}
    }
  }
  else{
    for(i=0,i<1/2*(H-1),i++){
      while(W){printf("%c\n",a);}
      while(W){printf("%c\n",b);}
    }

  return 0;
}

Compiler output:
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main()
      | ^~~~
main.c: In function 'main':
main.c:16:9: error: lvalue required as left operand of assignment
   16 |   if(H%2=0){
      |         ^
main.c:17:24: error: expected ';' before ')' token
   17 |     for(i=0,i<1/2*H,i++){
      |                        ^
      |                        ;
main.c:17:24: error: expected expression before ')' token
main.c:23:28: error: expected ';' before ')' token
   23 |     for(i=0,i<1/2*(H-1),i++){
      |                            ^
      |                            ;
main.c:23:28: error: expected expression before ')' token
main.c:29:1: error: expected declaration or statement at end of input
   29 | }
      | ^
Language: C

#include <stdio.h>
/*
#define SHARP '#'
#define DOT '.'
*/
void printline(int width, char lead, char follow);

void main()
{
  int h, w;
  int h_count;

  while (1) {
    scanf("%d %d", &h, &w);
    if (h == 0 || w == 0)
      break;

    for (h_count = 1; h_count <= h; h_count++) {
      if ((h_count % 2) == 1) {
	printline(w, '#', '.');
      } else {
	printline(w, '.', '#');
      }
    }
    putchar('\n');
  }
}

void printline(int width, char lead, char follow)
{
  int width_count;
  for (width_count = 1; width_count <= width; width_count++) {
    if ((width_count % 2) == 1) {
      putchar(lead);
    } else {
      putchar(follow);
    }
  }
  putchar('\n');
}
    #include <stdio.h>
/*
#define SHARP '#'
#define DOT '.'
*/
void printline(int width, char lead, char follow);

void main()
{
  int h, w;
  int h_count;

  while (1) {
    scanf("%d %d", &h, &w);
    if (h == 0 || w == 0)
      break;

    for (h_count = 1; h_count <= h; h_count++) {
      if ((h_count % 2) == 1) {
	printline(w, '#', '.');
      } else {
	printline(w, '.', '#');
      }
    }
    putchar('\n');
  }
}

void printline(int width, char lead, char follow)
{
  int width_count;
  for (width_count = 1; width_count <= width; width_count++) {
    if ((width_count % 2) == 1) {
      putchar(lead);
    } else {
      putchar(follow);
    }
  }
  putchar('\n');
}
    

Compiler output:
main.c:48:6: error: redefinition of 'main'
   48 | void main()
      |      ^~~~
main.c:8:6: note: previous definition of 'main' with type 'void()'
    8 | void main()
      |      ^~~~
main.c:69:6: error: redefinition of 'printline'
   69 | void printline(int width, char lead, char follow)
      |      ^~~~~~~~~
main.c:29:6: note: previous definition of 'printline' with type 'void(int,  char,  char)'
   29 | void printline(int width, char lead, char follow)
      |      ^~~~~~~~~
Language: C

#include <stdio.h>
main()
{
  char a,b;
  a='#','.';
  b='.','#';
  
  int H,W,i;
  H=0;
  W=0;
  i=0;
  
  scanf("%d\n",&H);
  scanf("%d\n",&W);
  
  if(H%2==0){
    for(i=0;i<1/2*H;i++){
  while(W){printf("%c\n",a);}
  while(W){printf("%c\n",b);}
    }
  }
  else{
    for(i=0;i<1/2*(H-1);i++){
      while(W){printf("%c\n",a);}
      while(W){printf("%c\n",b);}
    }

  return 0;
}

Compiler output:
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main()
      | ^~~~
main.c: In function 'main':
main.c:29:1: error: expected declaration or statement at end of input
   29 | }
      | ^
Language: C

#include <stdio.h>
main()
{
  char a,b;
  a='#';
  b='.';
  
  int H,W,i;
  H=0;
  W=0;
  i=0;
  
  scanf("%d\n",&H);
  scanf("%d\n",&W);
  
  if(H%2==0){
    for(i=0;i<H/2;i++){
      for(i=0;i<W;i++){printf("%c%c",a,b);}
      printf("\n");
	for(i=0;i<W;i++){printf("%c%c",b,a);}
	printf("\n");
	}
  }
  for(H%2!=0){
    for(i=0;i<(H-1)/2;i++){
      for(i=0;i<W;i++){printf("%c%c",a,b);}
      printf("\n");
	for(i=0;i<W;i++){printf("%c%c",b,a);}
	printf("\n");
	}
  }
  return 0;
}

Compiler output:
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main()
      | ^~~~
main.c: In function 'main':
main.c:24:13: error: expected ';' before ')' token
   24 |   for(H%2!=0){
      |             ^
      |             ;
main.c:24:13: error: expected expression before ')' token
Language: C

#include<stdio.h>

int main(){
  int h,w,i,j;

  while(1){
    scanf("%d%d",&h,&w);

    if(!h&&!w)
      return 0;

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

Compiler output:
main.c: In function 'main':
main.c:22:1: error: expected declaration or statement at end of input
   22 | }
      | ^
Language: C

#include <stdio.h>

int main (void) {
    int h, w, i, j;
    
    while (1) {
        scanf("%d%d", &h, &w);
        
         if(h == w && h == 0)
             break;

         for(i=0; i < h; i++)
             for(j=0; j < w; j++) {
                 if((i + j) % 2 == 0)
                     putchar('#');
                 else
                     putchar('.');
             }
             putchar('\n');
         }
         putchar('\n');
    }
    return 0;
}

Compiler output:
main.c:23:5: error: expected identifier or '(' before 'return'
   23 |     return 0;
      |     ^~~~~~
main.c:24:1: error: expected identifier or '(' before '}' token
   24 | }
      | ^
Language: C

#include<stdio.h>
int main(){
  int a,b,c,H,W,i,j;
  while(1){
    scanf("%d %d",&W,&H);
    if(H==0 && W==0){
      break;
    }
    for(i=0;i<H;i++){
      for(j=0;j<W;j++){1
	if(i==1 || i%2==1){
	  printf(".");
	  printf("#");
	}
	else{ 
	  printf("#");
	  printf(".");
	}
      }
      printf("\n");
    }
    printf("\n");
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:25: error: expected ';' before 'if'
   10 |       for(j=0;j<W;j++){1
      |                         ^
      |                         ;
   11 |         if(i==1 || i%2==1){
      |         ~~
Language: C

#include <stdio.h>
int main(void)

{
  int H, W, i, j, k;

  scanf("%d %d", &H, &W);

  for (k=1; ;k++) {
     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) {
               printf("#");
             } 
            } else {
             if (j % 2 == 0) {
               printf(".");
              } else {
               printf("#");
             }
            }
           }
           printf("\n");
         }
     printf("\n");
     scanf("%d %d", &H, &W);  
    }
  return 0;
}

              } else {
               printf(".");
              } 
            } else {
             if (j % 2 == 0) {
               printf(".");

Compiler output:
main.c:35:15: error: expected identifier or '(' before '}' token
   35 |               } else {
      |               ^
main.c:35:17: error: expected identifier or '(' before 'else'
   35 |               } else {
      |                 ^~~~
main.c:38:13: error: expected identifier or '(' before '}' token
   38 |             } else {
      |             ^
main.c:38:15: error: expected identifier or '(' before 'else'
   38 |             } else {
      |               ^~~~
Language: C

#include <stdio.h>
int main(void)

{
  int H, W, i, j, k;

  scanf("%d %d", &H, &W);

  for (k=1; ;k++) {
     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) {
               printf("#");
              } else {
               printf(".");
              } 
            } else {
             if (j % 2 == 0) {
               printf(".");
              } 
            } else {
             if (j % 2 == 0) {
               printf(".");
              } else {
               printf("#");
             }
            }
           }
           printf("\n");
         }
     printf("\n");
     scanf("%d %d", &H, &W);  
    }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:25:15: error: 'else' without a previous 'if'
   25 |             } else {
      |               ^~~~
Language: C

#include<stdio.h>

int main(){

int h,w,i,j;

while(1){
scanf("%d %d",&h,&w);
if(h==0 && w==0)break;
else{
    for(i=0;i<h;i++){
        for(j=0;j<w;j++){
            if(j+i%2==0)printf("#");
            else{printf(".");}
            }
        printf("\n");
    }
print("\n");
}
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:18:1: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
   18 | print("\n");
      | ^~~~~
      | printf
Language: C

include<stdio.h>
 
int main(){
    int w,h,i,j;
    while(1){
        scanf("%d %d",&w,&h);
        if(w==0&&h==0) break;
        for(i=0;i<w;i++){
            for(j=0;j<h;j++){
                if((i%2==0&&j%2==0)||(i%2==1&&j%2==1)){
                    printf("#");
                }else{
                    printf(".");
                }
            }
            printf("\n");
        }
        printf("\n");
    }
    return 0;
}

Compiler output:
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include<stdio.h>
      |        ^
Language: C

#include <stdio.h>

int main(void){
  int H,W,i,j;

while(1){
  scanf("%d%d", &H ,&W);  
if(H==0 && W==0)
    break;
  for(i=0;i<H;i++){
    for(j=0;j<W;j++){
      if((i+j)%2)  printf(".");
 else printf("#");
    }
    printf("\n");
  }
  printf("\n");
 }
 return 0;

Compiler output:
main.c: In function 'main':
main.c:19:2: error: expected declaration or statement at end of input
   19 |  return 0;
      |  ^~~~~~
Language: C

#include <stdio.h>

int main(void){
  int H,W,i,j;

while(1){
  scanf("%d%d", &H ,&W);  
if(H==0 && W==0)
    break;
  for(i=0;i<H;i++){
    for(j=0;j<W;j++){
      if((i+j)%2==1)  printf(".");
 else printf("#");
    }
    printf("\n");
  }
  printf("\n");
 }
 return 0;

Compiler output:
main.c: In function 'main':
main.c:19:2: error: expected declaration or statement at end of input
   19 |  return 0;
      |  ^~~~~~
Language: C

/*
 * hello.c
 *
 *  Created on: 2013/04/19
 *      Author: PC user
 */

#include <stdio.h>

int main(){
	int w,h,i,j;
	while(1){
		scanf("%d %d",&h,&w);
		if(h==0 && w==0) break;
		for(i=0;i<h;i++){
			for(j=0;j<w;j++){
				if(j%2 == 0){
					if(i%2 == 0)printf("#");
					else printf(".");
				}
				else{
					if(i%2 == 0) printf(".");
					else printf("#");		
				}
			}
			printf("\n");
		}
	}
	printf("\n");
	printf("\n")
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:30:21: error: expected ';' before 'return'
   30 |         printf("\n")
      |                     ^
      |                     ;
   31 |         return 0;
      |         ~~~~~~
Language: C

/*
 * hello.c
 *
 *  Created on: 2013/04/19
 *      Author: PC user
 */

#include <stdio.h>

int main(){
	int w,h,i,j,flg;
	flg = 0;
	while(1){
		scanf("%d %d",&h,&w);
		if(h==0 && w==0){
			flg = 1;
			break;
		}
		for(i=0;i<h;i++){
			for(j=0;j<w;j++){
				if(j%2 == 0){
					if(i%2 == 0)printf("#");
					else printf(".");
				}
				else{
					if(i%2 == 0) printf(".");
					else printf("#");		
				}
			}
			printf("\n");
		}
		printf("\n")
	}
	printf("\n");
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:32:29: error: expected ';' before '}' token
   32 |                 printf("\n")
      |                             ^
      |                             ;
   33 |         }
      |         ~
Language: C

#include <stdio.h>

int main() {
  int x, y, i, j;
  char a = '#', b = '.';

  while(1){
    scanf("%d %d", &x, &y);
    if(x == 0 && y == 0) {
      return 0;
    }    
    if(x < 1 || y > 300) {
      continue;
    }
    
    for(i = 0; i < x; i++) {
      for(j = 0; j < y / 2; j++) {
	if(i % 2 == 0) {
	  printf("%c%c", a, b);
	  if(y % 2 == 1) {
	    printf("%c", a);
	  }
	}
	else {
	  printf("%c%c", b, a);
	  if(y % 2 == 1) {
	    printf("%c", b);
	  }
	}
      }
      printf("\n");
    }
  }
  return 0;
}
#include <stdio.h>

int main() {
  int x, y, i, j;
  char a = '#', b = '.';

  while(1){
    scanf("%d %d", &x, &y);
    if(x == 0 && y == 0) {
      return 0;
    }    
    if(x < 1 || y > 300) {
      continue;
    }
    
    for(i = 0; i < x; i++) {
      for(j = 0; j < y / 2; j++) {
	if(i % 2 == 0) {
	  printf("%c%c", a, b);
	  if(y % 2 == 1) {
	    printf("%c", a);
	  }
	}
	else {
	  printf("%c%c", b, a);
	  if(y % 2 == 1) {
	    printf("%c", b);
	  }
	}
      }
      printf("\n");
    }
  }
  return 0;
}

Compiler output:
main.c:38:5: error: redefinition of 'main'
   38 | int main() {
      |     ^~~~
main.c:3:5: note: previous definition of 'main' with type 'int()'
    3 | int main() {
      |     ^~~~
Language: C

#include <stdio.h>

int main() {
  int x, y, i, j;
  char a = '#', b = '.';

  while(1){
    scanf("%d %d", &x, &y);
    if(x == 0 && y == 0) {
      return 0;
    }    
    if(x < 1 || y > 300) {
      continue;
    }
    
    for(i = 0; i < x; i++) {
      for(j = 0; j < y / 2; j++) {
	if(i % 2 == 0) {
	  printf("%c%c", a, b);
	  if(y % 2 == 1) {
	    printf("%c", a);
	  }
	}
	else {
	  printf("%c%c", b, a);
	  if(y % 2 == 1) {
	    printf("%c", b);
	  }
	}
      }
      printf("\n");
    }
  }
  return 0;
}
#include <stdio.h>

int main() {
  int x, y, i, j;
  char a = '#', b = '.';

  while(1){
    scanf("%d %d", &x, &y);
    if(x == 0 && y == 0) {
      return 0;
    }    
    if(x < 1 || y > 300) {
      continue;
    }
    
    for(i = 0; i < x; i++) {
      for(j = 0; j < y / 2; j++) {
	if(i % 2 == 0) {
	  printf("%c%c", a, b);
	  if(y % 2 == 1) {
	    printf("%c", a);
	  }
	}
	else {
	  printf("%c%c", b, a);
	  if(y % 2 == 1) {
	    printf("%c", b);
	  }
	}
      }
      printf("\n\n");
    }
  }
  return 0;
}

Compiler output:
main.c:38:5: error: redefinition of 'main'
   38 | int main() {
      |     ^~~~
main.c:3:5: note: previous definition of 'main' with type 'int()'
    3 | int main() {
      |     ^~~~