criyle/codenet-compile-errors huggingface dataset:
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.printf("#");
                    } else {
                        System.out.printf(".");
                    }
                }
            }
        }
    }
}



Compiler output:
Main.java:13: error: ')' expected
                    if((i;j) % 2 == 0){
                         ^
Main.java:13: error: not a statement
                    if((i;j) % 2 == 0){
                          ^
Main.java:13: error: ';' expected
                    if((i;j) % 2 == 0){
                           ^
Main.java:15: error: 'else' without 'if'
                    } else {
                      ^
4 errors
Language: Java

import java.util.Scanner;

public class Main{
    public static void main(String[]argc){
        Scanner sc =new Scanner(System.in);
        for(int k=0;;k++){
            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==j%2){
                        System.out.printf("#");
                    }else{
                        System.out.printf(".");
                    }
                }
                System.out.printf("\n");
            }
        }
    }


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

import java.util.Scanner;

public class Itp5c{
	public static void main(String[]args){
		Scanner sc = new Scanner(System.in);
		int height, width;
		int h, w;

		height = sc.nextInt();
		width = sc.nextInt();

		while(height != 0 || width != 0){
			h = 0;
			while(true){
				if(h < height){
					w = 0;
					while(true){
						if(w < width){
							System.out.print("#");
							w++;
						}else{
							break;
						}
						if(w < width){
							System.out.print(".");
							w++;
						}else{
							break;
						}
					}
					System.out.println();
					h++;
					w = 0;
					if(h < height){
						while(true){
							if(w < width){
								System.out.print(".");
								w++;
							}else{
								break;
							}
							if(w < width){
								System.out.print("#");
								w++;
							}else{
								break;
							}
						}
						System.out.println();
						h++;
					}
				}else{
					break;
				}
			}

			height = sc.nextInt();
			width = sc.nextInt();
		}

	}
}


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

public class Main {
   public static void main(String[] args) {
	   Scanner X = new Scanner(System.in);
	   int w = X.nextInt();
	   int h = X.nextInt();
	   if(w==1&&h==1) {
		   System.out.print("#");
		   System.exit(0);
	   }
	   if(w==0&&h==0) {
		   System.exit(0);
	   }
	   for(int i = 0;i<w;i++) {
		   if(i%2!=0) {
			   System.out.print(".");
		   }else {
			   System.out.print("#");
		   }
		   for(int j =0;j<h-1;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();
		   }
	   X.close();
   }
}



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

public class Main {
   public static void main(String[] args) {
	   Scanner X = new Scanner(System.in);
	   int w = X.nextInt();
	   int h = X.nextInt();
	   if(w==1&&h==1) {
		   System.out.print("#");
	   }
	   if(w==0&&h==0) {
		   System.exit(0);
	   }
	   for(int i = 0;i<w;i++) {
		   if(i%2!=0) {
			   System.out.print(".");
		   }else {
			   System.out.print("#");
		   }
		   for(int j =0;j<h-1;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();
		   }
	   X.close();
   }
}



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

public class Main {
    public static void main(String[] args) {
        Scanner inputStr = new Scanner(System.in);
        ArrayList<String> inputWitdhHeights = new ArrayList<String>();
        while (true){
            String inputStrs = inputStr.nextLine();
            if ("0 0".equals(inputStrs)) {
                break;
            }
            inputWitdhHeights.add(inputStrs);
        }
        String space = " ";
        for (String inputNums: inputWitdhHeights) {
            showChessboard(inputNums.split(space));
            System.out.println();
        }
    }

    private static void showChessboard(String[] hw) {
        int h = Integer.parseInt(hw[0]);
        int w = Integer.parseInt(hw[1]);
        if(!isFormatNums(w, h)) {
            throw new NumberFormatException();
        }
        final String sharpStr = "#";
        final String dodStr   = ".";
        StringBuffer[] chessboardPattern = new StringBuffer[] {new StringBuffer(sharpStr), new StringBuffer(dodStr)};
        for(int j = 1; j < w; j++) {
            if (j % 2 == 0) {
                chessboardPattern[0].append(sharpStr);
                chessboardPattern[1].append(dodStr);
            } else {
                chessboardPattern[0].append(dodStr);
                chessboardPattern[1].append(sharpStr);
            }
        }
        for (int i = 0; i < h; i++) {
            System.out.println(chessboardPattern[i % 2]);
        }
    }

    private static boolean isFormatNums(int h, int w) {
        int minNum =   1;
        int maxNum = 300;
        return (minNum <= h && h <= maxNum) && (minNum <= w && w <= maxNum);
    }
}


Compiler output:
Main.java:3: error: cannot find symbol
        Scanner inputStr = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class Main
Main.java:3: error: cannot find symbol
        Scanner inputStr = new Scanner(System.in);
                               ^
  symbol:   class Scanner
  location: class Main
Main.java:4: error: cannot find symbol
        ArrayList<String> inputWitdhHeights = new ArrayList<String>();
        ^
  symbol:   class ArrayList
  location: class Main
Main.java:4: error: cannot find symbol
        ArrayList<String> inputWitdhHeights = new ArrayList<String>();
                                                  ^
  symbol:   class ArrayList
  location: class Main
4 errors
Language: Java

public class PrintChessboard {
    public static void main(String[] args) {
        Scanner inputStr = new Scanner(System.in);
        ArrayList<String> inputWitdhHeights = new ArrayList<String>();
        while (true){
            String inputStrs = inputStr.nextLine();
            if ("0 0".equals(inputStrs)) {
                break;
            }
            inputWitdhHeights.add(inputStrs);
        }
        String space = " ";
        for (String inputNums: inputWitdhHeights) {
            showChessboard(inputNums.split(space));
            System.out.println();
        }
    }

    private static void showChessboard(String[] hw) {
        int h = Integer.parseInt(hw[0]);
        int w = Integer.parseInt(hw[1]);
        if(!isFormatNums(w, h)) {
            throw new NumberFormatException();
        }
        final String sharpStr = "#";
        final String dodStr   = ".";
        StringBuffer[] chessboardPattern = new StringBuffer[] {new StringBuffer(sharpStr), new StringBuffer(dodStr)};
        for(int j = 1; j < w; j++) {
            if (j % 2 == 0) {
                chessboardPattern[0].append(sharpStr);
                chessboardPattern[1].append(dodStr);
            } else {
                chessboardPattern[0].append(dodStr);
                chessboardPattern[1].append(sharpStr);
            }
        }
        for (int i = 0; i < h; i++) {
            System.out.println(chessboardPattern[i % 2]);
        }
    }

    private static boolean isFormatNums(int h, int w) {
        int minNum =   1;
        int maxNum = 300;
        return (minNum <= h && h <= maxNum) && (minNum <= w && w <= maxNum);
    }
}


Compiler output:
Main.java:1: error: class PrintChessboard is public, should be declared in a file named PrintChessboard.java
public class PrintChessboard {
       ^
Main.java:3: error: cannot find symbol
        Scanner inputStr = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class PrintChessboard
Main.java:3: error: cannot find symbol
        Scanner inputStr = new Scanner(System.in);
                               ^
  symbol:   class Scanner
  location: class PrintChessboard
Main.java:4: error: cannot find symbol
        ArrayList<String> inputWitdhHeights = new ArrayList<String>();
        ^
  symbol:   class ArrayList
  location: class PrintChessboard
Main.java:4: error: cannot find symbol
        ArrayList<String> inputWitdhHeights = new ArrayList<String>();
                                                  ^
  symbol:   class ArrayList
  location: class PrintChessboard
5 errors
Language: Java

public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        for(int i=1; ;i++){
            int h = sc.nextInt();
            int w = sc.nextInt();
            int pin =  1;

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

            for(int n = 0; n < h ; n++){
                for(int m = 0; m < w; m++){
                    if (pin%2 == 1)System.out.print("#");
                    if (pin%2 == 0)System.out.print(".");
                    pin ++;
                    if(m == w-1)System.out.println();
                }
            }
            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


public class Main{

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int h = scan.nextInt();
		int w = scan.nextInt();
		int i,j;
		String a,b,tmp;
		a = "#";
		b = ".";
		while(h!=0 && w != 0) {
			for(i=0;i<h;i++) {
				for(j=0;j<w;j++) {
					if(i%2 == 0) {
						System.out.print(a);
					}else {
						System.out.print(b);
					}
					tmp = a;
					a = b;
					b = tmp;

				}
				System.out.println();
			}
			System.out.println();
			h = scan.nextInt();
			w = scan.nextInt();
		}
	}
}



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

import java.util.Scanner;

public class itp_5_c {
	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++){
				
				if(i%2==0){//偶数行は#.#.
					for(int j=0;j<W;j++){
						if(j%2==0)System.out.print("#");
						else System.out.print(".");
					}
				}
				else {//奇数は.#.#
					for(int j=0;j<W;j++){
						if(j%2==0)System.out.print(".");
						else System.out.print("#");
					}
				}
				System.out.println();
				
			}
			System.out.println();
		}
	}
}


Compiler output:
Main.java:3: error: class itp_5_c is public, should be declared in a file named itp_5_c.java
public class itp_5_c {
       ^
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,y,i=0,j=0;
		
		while(true){
			x = sc.nextInt();
			y = sc.nextInt();
			if(x == 0){
				sc.close();
				System.exit(0);
			}
			else{
				for(i=0;i<x;i++){
				    if(i%2 == 0){
				    	for(j=0;j<y;j++){
				    	    if(j%2 == 0){
				    		    System.out.print('#');
				    	    }
				    	    else{
				    	        System.out.print('.');
				    	    }
				    	}
				    }
				    else{
				    	for(j=0;j<y;j++){
				    		if(j%2 == 0){
				    			System.out.print('.');
				    		}
				    		else{
				    			System.out.print('#');
				    		}
				    	}
				    }
				    System.out.println();
				}
			}
			System.out.println();
		}
	}


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

import java.io.*;

public class Chang{
    public static void main(String[] args){
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        try{
            String[] lines = reader.readLine().split(" ");
            int h = Integer.parseInt(lines[0]);
            int w = Integer.parseInt(lines[1]);
            int i,j;
            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();
            }
        }catch(IOException e){
            System.out.println(e);
        }
    }
}


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

import java.io.*;

public class Chang{
    public static void main(String[] args){
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        try{ 
            while(true){
                String[] lines = reader.readLine().split(" ");
                int h = Integer.parseInt(lines[0]);
                int w = Integer.parseInt(lines[1]);
                int i,j;
                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();
                }
                System.out.println();
            }
           
        }catch(IOException e){
            System.out.println(e);
        }
    }
}


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


Compiler output:
Main.java:15: error: illegal character: '#'
System.out.println(#);
                   ^
Main.java:17: error: illegal character: '\'
System.out.println(\n);
                   ^
Main.java:17: error: not a statement
System.out.println(\n);
                    ^
Main.java:17: error: ';' expected
System.out.println(\n);
                     ^
4 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++){
System.out.println(#);
}
System.out.println(\n);
}
}
}
}


Compiler output:
Main.java:13: error: illegal character: '#'
System.out.println(#);
                   ^
Main.java:15: error: illegal character: '\'
System.out.println(\n);
                   ^
Main.java:15: error: not a statement
System.out.println(\n);
                    ^
Main.java:15: error: ';' expected
System.out.println(\n);
                     ^
4 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++){
System.out.println("#");
}
System.out.println("\n");
}
System.out.println("\n");
}
}
}
}


Compiler output:
Main.java:21: error: class, interface, enum, or record expected
}
^
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==0&&j%2==0)||(i%2==1&&j%2==1)){
System.out.println("#");
                }else{
System.out.println(".");
                }
}
System.out.println("\n");
}
System.out.println("\n");
}
}
}
}


Compiler output:
Main.java:25: 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;
}
for(int i=0;i<H;i++){
for(int 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");
}
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

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%2==0&&j%2==0)||(i%2==1&&j%2==1)){
System.out.printf("#");
}else{
System.out.printf(".");
}
}
System.out.printf("\n");
}
System.out.printf("\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

import java.util.Scanner;

public class Ex03PrintAChessboard {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int H;
		int W;
		int count;
		int[] detaH = new int[300];
		int[] detaW = new int[300];
		for (count = 0; true; count++) {
			H = sc.nextInt();
			W = sc.nextInt();
			if (H == 0 && W == 0) {
				break;
			}
			detaH[count] = H;
			detaW[count] = W;
		}
		for (int i = 0; i < count; i++) {
			for (int i2 = 0; i2 < detaH[i]; i2++) {
				if ((i2 + 2) % 2 == 0) {
					for (int i3 = 0; i3 < detaW[i]; i3++) {
						if ((i3 + 2) % 2 == 0) {
							System.out.print("#");
						} else {
							System.out.print(".");
						}
					}
					System.out.print("\n");
				} else {
					for (int i3 = 0; i3 < detaW[i]; i3++) {
						if ((i3 + 2) % 2 != 0) {
							System.out.print("#");
						} else {
							System.out.print(".");
						}
					}
					System.out.print("\n");
				}
			}
			System.out.print("\n");
		}
		sc.close();
	}
}


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

import java.util.Scanner;

public class Print_a_Chessboard {
	Print_a_Chessboard() {
		Scanner scan = new Scanner(System.in);
		int H = scan.nextInt();
		int W = scan.nextInt();
		for (int i = 0; i < H; i++) {
			for (int j = 0; j < W; j++) {
				System.out.print((i + j) % 2 == 0 ? "#" : ".");
			}
			System.out.println();
		}
	}
}
class Main {
	public static void main(String[] args) {
		new Print_a_Chessboard();
	}
}

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.util.Scanner;
public class Main {
	public static void main(String[] args) {
		new Print_a_Chessboard();
	}
}
public class Print_a_Chessboard {
	Print_a_Chessboard() {
		Scanner scan = new Scanner(System.in);
		int H = scan.nextInt();
		int W = scan.nextInt();
		for (int i = 0; i < H; i++) {
			for (int j = 0; j < W; j++) {
				System.out.print((i + j) % 2 == 0 ? "#" : ".");
			}
			System.out.println();
		}
	}
}

Compiler output:
Main.java:7: 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.util.Scanner;

public Main{
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int H = scan.nextInt();
		int W = scan.nextInt();
		for (int i = 0; i < H; i++) {
			for (int j = 0; j < W; j++) {
				System.out.print((i + j) % 2 == 0 ? "#" : ".");
			}
			System.out.println();
		}
	}
}

Compiler output:
Main.java:3: error: class, interface, enum, or record expected
public Main{
       ^
Main.java:4: error: unnamed classes are a preview feature and are disabled by default.
	public static void main(String[] args) {
	              ^
  (use --enable-preview to enable unnamed classes)
Main.java:15: error: class, interface, enum, or record expected
}
^
3 errors
Language: Java

import java.util.Scanner;
class Main {
	public static void main(String[] args) {
		new Print_a_Chessboard();
	}
}
public class Print_a_Chessboard {
	Print_a_Chessboard() {
		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:7: 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.util.*;

class Main {
	public static void main(String[] arg){
		Scanner in = new Scanner(System.in);
		while(true){
			int x = in.nextInt();	
			int y = in.nextInt();
			if (x == 0 && y == 0)break;
			StringBuilder sb = new StringBuilder();
			for(int i = 0;i < x;i++){
				for(int j=0;j < y;j++){
					if( (i%2 == 0 && j%2 == 0)||(i%2 == 1 && j%2 == 1)){
						sb.append("#");
					}
					else{
						sb.append(".");
					}
				}
				sb.append("\n");
			}
			System.out.println(sb);
		}	
	}

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

import java.util.Scanner;
public class Chess {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int h = Integer.parseInt(scan.next());
		int w = Integer.parseInt(scan.next());		
		int i=0;
		int j=0;
		while(h!=0 && w!=0){
			for(i=0;i<h;i++){
				for(j=0;j<w;j++){
					if(j%2==0 && i%2==0)
						System.out.print("#");
					else if(j%2!=0 && i%2==0)
						System.out.print(".");
					else if(j%2==0 && i%2!=0)
						System.out.print(".");
					else
						System.out.print("#");
				}
				System.out.println("");
			}	
			h = Integer.parseInt(scan.next());
			w = Integer.parseInt(scan.next());
                        System.out.println("");	
		}
	}
}

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

#include <stdio.h>

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


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

#include <stdio.h>

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


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

#include<stdio.h>
 int main()
{
 int h,w,i,j;
 
 for(;;){
         scanf("%d%d",&h,&w);
         if(h+w==0)break;

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


Compiler output:
main.c: In function 'main':
main.c:12:37: error: lvalue required as left operand of assignment
   12 |                           if((i+j)%2=0)
      |                                     ^
Language: C

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

    

    while ((H != 0) && (W != 0))
    {
        scanf("%d %d", &H, &W);

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

    return 0;


Compiler output:
main.c: In function 'main':
main.c:9:9: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    9 |         scanf("%d %d", &H, &W);
      |         ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main(void)
main.c:9:9: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    9 |         scanf("%d %d", &H, &W);
      |         ^~~~~
main.c:9:9: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:23:25: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   23 |                         printf("#");
      |                         ^~~~~~
main.c:23:25: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:23:25: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:23:25: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:29:29: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   29 |                             printf("#");
      |                             ^~~~~~
main.c:29:29: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:33:29: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   33 |                             printf(".");
      |                             ^~~~~~
main.c:33:29: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:37:17: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   37 |                 printf("\n");
      |                 ^~~~~~
main.c:37:17: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:40:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   40 |         printf("\n");
      |         ^~~~~~
main.c:40:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:43:5: error: expected declaration or statement at end of input
   43 |     return 0;
      |     ^~~~~~
Language: C

#include <stdio.h>
#include <algorithm>
 
using namespace std;
 
int main(){
    int H,W;
    while(true){
        scanf("%d %d",&H,&W);
        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) printf("#");
                else{
                    printf(".");
                }
            }
            printf("\n");
        }
        printf("\n");
    }
}


Compiler output:
main.c:2:10: fatal error: algorithm: No such file or directory
    2 | #include <algorithm>
      |          ^~~~~~~~~~~
compilation terminated.
Language: C

#include <stdio.h>
int main (){
int h,w,H,W,a,b,c,d;
int a=h%2;
iny b=w%2;
int c=h/2;
int d=w/2;

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

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

else if (a==0){
if (b==0){for (H=0;H<c;H++){
for (W=0;W<d;W++){
printf ("#.");}
printf ("\n");
for (W=0;W<d;W++){
printf (".#");}
printf ("\n");}
printf ("\n");}
else {for (H=0;H<c;H++){
for (W=0;W<d;W++){
printf ("#.");}
printf ("#\n");
for (W=0;W<d;W++){
printf (.#);}
printf (".\n");}
printf ("\n");}
else {
if (b==0){for(H=0;H<c;H++){
for (W=0;W<d;W++){
printf ("#.");}
printf ("\n");
for (W=0;W<d;W++){
printf (".#");}
printf ("\n");
for (W=0;W<d;W++){
printf("#.");}
printf ("\n");}
printf ("\n");}
else (b==1){for(H=0;H<c;H++){
for (W=0;W<d;W++){
printf ("#.");}
printf ("#\n");
for (W=0;W<d;W++){
printf (".#");}
printf (".\n");
for (W=0;W<d;W++){
printf("#.");}
printf ("#\n");}
printf ("\n");}
return 0;
}


Compiler output:
main.c: In function 'main':
main.c:4:5: error: redeclaration of 'a' with no linkage
    4 | int a=h%2;
      |     ^
main.c:3:13: note: previous declaration of 'a' with type 'int'
    3 | int h,w,H,W,a,b,c,d;
      |             ^
main.c:5:1: error: unknown type name 'iny'; did you mean 'int'?
    5 | iny b=w%2;
      | ^~~
      | int
main.c:5:5: error: redeclaration of 'b' with no linkage
    5 | iny b=w%2;
      |     ^
main.c:3:15: note: previous declaration of 'b' with type 'int'
    3 | int h,w,H,W,a,b,c,d;
      |               ^
main.c:6:5: error: redeclaration of 'c' with no linkage
    6 | int c=h/2;
      |     ^
main.c:3:17: note: previous declaration of 'c' with type 'int'
    3 | int h,w,H,W,a,b,c,d;
      |                 ^
main.c:7:5: error: redeclaration of 'd' with no linkage
    7 | int d=w/2;
      |     ^
main.c:3:19: note: previous declaration of 'd' with type 'int'
    3 | int h,w,H,W,a,b,c,d;
      |                   ^
main.c:28:9: error: expected expression before '.' token
   28 | printf (.#);}
      |         ^
main.c:28:10: error: stray '#' in program
   28 | printf (.#);}
      |          ^
main.c:31:1: error: expected '}' before 'else'
   31 | else {
      | ^~~~
main.c:43:12: error: expected ';' before '{' token
   43 | else (b==1){for(H=0;H<c;H++){
      |            ^
      |            ;
main.c:55:1: error: expected declaration or statement at end of input
   55 | }
      | ^
main.c:55:1: error: expected declaration or statement at end of input
Language: C

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



Compiler output:
main.c: In function 'main':
main.c:13:24: error: expected ';' before ')' token
   13 |       if(w%2==1)putchar)('.');
      |                        ^
      |                        ;
main.c:13:24: error: expected statement before ')' token
main.c:14:7: error: 'else' without a previous 'if'
   14 |       else putchar('#');}
      |       ^~~~
main.c:18:1: error: expected declaration or statement at end of input
   18 | }
      | ^
Language: C

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



Compiler output:
main.c: In function 'main':
main.c:13:24: error: expected ';' before ')' token
   13 |       if(w%2==1)putchar)('.');
      |                        ^
      |                        ;
main.c:13:24: error: expected statement before ')' token
main.c:14:7: error: 'else' without a previous 'if'
   14 |       else putchar('#');}
      |       ^~~~
main.c:18:1: error: expected declaration or statement at end of input
   18 | }
      | ^
Language: C

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



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

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


Compiler output:
main.c:2:1: error: expected identifier or '(' before '{' token
    2 | {
      | ^
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:10:11: error: 'o' undeclared (first use in this function)
   10 |     for(i=o;i<h;i++){
      |           ^
main.c:10:11: note: each undeclared identifier is reported only once for each function it appears in
main.c:14:23: error: expected statement before ')' token
   14 |             if(j%2!=0)){
      |                       ^
Language: C

#include<stdio.h>
int main(void)
{  
  int h,w,i,j;
  do{
      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%2==0)&&(j%2==0)){
            printf("#");
            if(j%2!=0)){
              printf(".");
            }
          }
          if((i%2!=0)&&(j%2!=0)){
            printf("#");
            if(j%2==0){
              printf("#");
            }
          }
      }
      printf("\n");
    }
    printf("\n");
  }while(1);
  return 0;
}
            
          
   
        


Compiler output:
main.c: In function 'main':
main.c:14:23: error: expected statement before ')' token
   14 |             if(j%2!=0)){
      |                       ^
Language: C

#include<stdio.h>

int main()
{

    int a, b, i, j;
    while(1){
    scanf("%d%d", &a, &b);

    if(a == b == 0) break;
    for(i=1; i<=a;i++){
	for(j=1; j<=b; j++){
	    if((a+b)%2  ==0) printf("#");
	    else printf(".");}
	printf("\n");
    }
    printf("\n");


    return 0;
}



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

#include<stdio.h>

int main()
{
    int a, b, i, j;

    scanf("%d%d", &a, &b);

    if(a == b == 0) break;
    for(i=1; i<=a;i++){
	for(j=1; j<=b; j++){
	    if((a+b)%2  ==0) printf("#");
	    else printf(".");}
	printf("\n");
    }
    printf("\n");

    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:9:21: error: break statement not within loop or switch
    9 |     if(a == b == 0) break;
      |                     ^~~~~
Language: C

#include<stdio.h>

int main()
{
    int a, b, i, j;

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


Compiler output:
main.c: In function 'main':
main.c:8:10: error: expected '(' before '{' token
    8 |     while{
      |          ^
      |          (
Language: C

include <stdio.h>
int main(void){
    // Your code here!
    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((j+i)%2 == 1){
                        
                        printf(".");
                        
                     }else{
                         
                        printf("#");
                    }
                    
            }
            printf("\n");
            
        }
        printf("\n");
    }
    
    return 0;
}


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

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


Compiler output:
main.c: In function 'main':
main.c:9:23: error: lvalue required as left operand of assignment
    9 |                 if(a%2=0){
      |                       ^
main.c:11:9: error: expected '}' before 'else'
   11 |         else printf("#");
      |         ^~~~
main.c:13:9: error: 'alse' undeclared (first use in this function)
   13 |         alse{
      |         ^~~~
main.c:13:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:13:13: error: expected ';' before '{' token
   13 |         alse{
      |             ^
      |             ;
main.c: At top level:
main.c:23:5: error: expected identifier or '(' before 'return'
   23 |     return 0;
      |     ^~~~~~
main.c:24:5: error: expected identifier or '(' before '}' token
   24 |     }
      |     ^
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:11:9: error: expected '}' before 'else'
   11 |         else printf("#");
      |         ^~~~
main.c:13:9: error: 'alse' undeclared (first use in this function)
   13 |         alse{
      |         ^~~~
main.c:13:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:13:13: error: expected ';' before '{' token
   13 |         alse{
      |             ^
      |             ;
main.c: At top level:
main.c:23:5: error: expected identifier or '(' before 'return'
   23 |     return 0;
      |     ^~~~~~
main.c:24:5: error: expected identifier or '(' before '}' token
   24 |     }
      |     ^
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:14:9: error: 'alse' undeclared (first use in this function)
   14 |         alse{
      |         ^~~~
main.c:14:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:14:13: error: expected ';' before '{' token
   14 |         alse{
      |             ^
      |             ;
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:14:9: error: 'alse' undeclared (first use in this function)
   14 |         alse{
      |         ^~~~
main.c:14:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:14:13: error: expected ';' before '{' token
   14 |         alse{
      |             ^
      |             ;
Language: C

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

int H,W,i,j;

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

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

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

if(i%2==0&&j%2==0){
printf("#");
}
else if(i%2==1&&j%2==1){
printf("#");
}
else{
printf(".");
}

printf("\n");
}
printf("\n");
}



Compiler output:
main.c: In function 'main':
main.c:25:1: error: expected declaration or statement at end of input
   25 | }
      | ^
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;}

        for(i = 0;i <= H;i++){
            for(j = 0;j <= W;j++){
                if(j%2 == 1){
                    if(i%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:25:17: error: expected ';' before '}' token
   25 |     printf("\n")
      |                 ^
      |                 ;
   26 |     }
      |     ~
Language: C

#include<stdio.h>
int main(){
    int h,w,a=0,b=0;
    scanf("%d %d",&h,&w);
    if(h==0&&w==0);
    break;
    while(a<h){
        printf("#.\n");
        a++;
    while(b<w){
        printf(".#\n");
        b++;
    }
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:6:5: error: break statement not within loop or switch
    6 |     break;
      |     ^~~~~
main.c:15:1: error: expected declaration or statement at end of input
   15 | }
      | ^
Language: C

#include <stdio.h>

int main(void){
    int H, W;
    while (1){
        scanf("%d %d", &H, &W);
        if (H == 0 && W == 0){
            break;
        }
        else{
            char S[H][W];
            int i, j;
            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){
                        S[i][j] = '#';
                    }
                    else{
                        S[i][j] = '.';
                    }
                    printf("%c", S[i][j]);
                }
                printf("\n");
            }
            printf("\n");
        }
    }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:15:81: error: expected ')' before '{' token
   15 |                     if ((i % 2 == 0 && j % 2 == 0) || (i % 2 == 1 && j % 2 == 1){
      |                        ~                                                        ^
      |                                                                                 )
main.c:22:17: error: expected expression before '}' token
   22 |                 }
      |                 ^
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;
  for(i=0;i<h;i++){
  for(j=0;j<w;j++){
    if(i%2 == 0){
      if(j%2 == 0)printf(".");
      if(j%2 == 1)printf("#");
    }
    if(i%2 == 1){
      if(j%2 == 0)printf("#");
      if(j%2 == 1)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,r;
	
	while(!(H=0&&W=0)){
		scanf("%d %d",&H,&W);
		for(i=0;i<H;i++){
			for(j=0;j<W;j++){
				r=(i+j)%2;
				if(r==1){
					printf(".");
				}else{
					printf("#");
				}
			}
			printf("\n");
		}
		if(H==0&&W==0) break;
		printf("\n");
	}
	
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:23: error: lvalue required as left operand of assignment
    7 |         while(!(H=0&&W=0)){
      |                       ^
Language: C

#include <stdio.h>
int main(void)
{
int x[2] = {#, .};
int W, H, i, j;

while(1) {

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

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

i = 0;
for(j = 0; H > j; j++){

for(; W > i; i++)
printf("%d",x[i % 2]);

printf("\n")
i++;
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:13: error: stray '#' in program
    4 | int x[2] = {#, .};
      |             ^
main.c:4:14: error: expected expression before ',' token
    4 | int x[2] = {#, .};
      |              ^
main.c:20:13: error: expected ';' before 'i'
   20 | printf("\n")
      |             ^
      |             ;
   21 | i++;
      | ~            
main.c:24:1: error: expected declaration or statement at end of input
   24 | }
      | ^
Language: C

#include <stdio.h>
int main(void)
{
int x[2] = {#, .};
int W, H, i, j;

while(1) {

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

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

i = 0;
for(j = 0; H > j; j++){

for(; W > i; i++)
printf("%d",x[i % 2]);

printf("\n")
i++;
}
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:13: error: stray '#' in program
    4 | int x[2] = {#, .};
      |             ^
main.c:4:14: error: expected expression before ',' token
    4 | int x[2] = {#, .};
      |              ^
main.c:20:13: error: expected ';' before 'i'
   20 | printf("\n")
      |             ^
      |             ;
   21 | i++;
      | ~