criyle/codenet-compile-errors huggingface dataset:
Language: C++

#include <stdio.h>

&#8204;int main(void)
{
	int n;
	scanf("%d",&n);
	
	int a[n];

	for(int i=0;i<n;i++)
	{
		scanf("%d",&a[i]);
	}

	for(int i=n-1;i>-1;i--)
	{
		if(i==0)
		{
			printf("%d\n",a[i]);		
			break;
		}
		printf("%d ",a[i]);
	}
	return 0;
}

Compiler output:
a.cc:3:2: error: stray '#' in program
    3 | &#8204;int main(void)
      |  ^
a.cc:3:3: error: expected unqualified-id before numeric constant
    3 | &#8204;int main(void)
      |   ^~~~
Language: C++

#include<stdio.h>

int main(void)
{
    int n;
    scanf("%d", &n);
    int x[n];
    for(int i = 0; i < n ; ++i){
        scanf("%d ", &x[i]);
    }
    for(int i = n -1; i >= 0; --i){
        printf("%d", x[i]);
    }
    printd("\n"); 
     return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:5: error: 'printd' was not declared in this scope; did you mean 'printf'?
   14 |     printd("\n");
      |     ^~~~~~
      |     printf
Language: C++

int main(void)
{
     int n;
     scanf("%d", &n);
     int x[n];
     for(int i = 0; i < n ; ++i){
         scanf("%d", &x[i]);
     }
     for(int i = n -1; i >= 0; --i){
         printf(" %d", x[i]);
     }
     return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:6: error: 'scanf' was not declared in this scope
    4 |      scanf("%d", &n);
      |      ^~~~~
a.cc:10:10: error: 'printf' was not declared in this scope
   10 |          printf(" %d", x[i]);
      |          ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main(void)
Language: Java

import java.util.Scanner;

public class rectangle {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		
		int a = sc.nextInt();
		int b = sc.nextInt();
		
		if(a == 0||b == 0){
			System.exit(0);
		}
		
		for(int i=0;i<a;i++){
			for(int j=0;j<b;j++){
		System.out.print("#");
		if(j+1==b){
			System.out.print("\n");
		}
		}
	}
}
}

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

import java.util.Scanner;

public class rectangle {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		
		int a = sc.nextInt();
		int b = sc.nextInt();
		
		if(a == 0&&b == 0){
			System.exit(0);
		}
		
		for(int i=0;i<a;i++){
			for(int j=0;j<b;j++){
		System.out.print("#");
		if(j+1==b){
			System.out.print("\n");
		}
		}
	}
}
}

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

port 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 < w;i++) {
				for(int j = 0;j < h;j++) {
					System.out.print("#");
				}
				System.out.println();
			}
		}
	}
}

Compiler output:
Main.java:1: error: class, interface, enum, or record expected
port java.util.Scanner;
^
1 error
Language: Java

import java.util.Scanner;

public class Kadai5{
	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 || W > 300){
				break;
			}
			for(int i = 1;i <= H;i++){
				for(int j = 1; j <=W;j++){
					System.out.printf("#");
				}
				System.out.println("");
			}
			System.out.println("");
		}
	}	
}

Compiler output:
Main.java:3: error: class Kadai5 is public, should be declared in a file named Kadai5.java
public class Kadai5{
       ^
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; }
		else if (1=<H,W=<300){
		
		for(int i=0;i<H;i++){
		
		for(int j=0;j<W;j++){
			System.out.printf("#");
		}
		
		System.out.printf("\n");
		
		}
		
		
		} 
		else{ break;}
		}
		}
		}

Compiler output:
Main.java:11: error: > or ',' expected
		else if (1=<H,W=<300){
		               ^
Main.java:11: error: illegal start of type
		else if (1=<H,W=<300){
		                 ^
Main.java:11: error: ';' expected
		else if (1=<H,W=<300){
		                    ^
Main.java:25: error: 'else' without 'if'
		else{ break;}
		^
4 errors
Language: Java

import java.util.Scanner;
	public class Sqare{
		public static void main(String[]args){
			Scanner sc = new Scanner(System.in);
			int h;
			for(h=1;;h++){
				int x=sc.nextInt();
				int y=sc.nextInt();
				int i,j;
				if(x!=0&&y!=0){
					for(i=0;i<x;i++){
						for(j=0;j<y;j++){
							System.out.printf("#");
						}
						System.out.println("");
					}
					System.out.println("");
					}else{
						break;
					}
			}
		}
	}

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

import java.util.Scanner;

public class e{
    public static void main(String [] args){
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        for(int i=0; i<a; i++){
            for(int j=0; j<b; j++){
                System.out.printf("#");
            }
           System.out.printf("\n");
        }
    }
}

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

import java.util.Scanner;

public class Main{
    public static void main(String [] args){
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        for(int i=0; i<a; i++){
            for(int j=0; j<b; j++){
                System.out.printf("#");
            }
           System.out.printf("\n");
        }
    }
       System.out.printf("\n")
}

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

import java.util.Scanner;

public class Main{
    public static void main(String [] args){
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        for(int i=0; i<a; i++){
            for(int j=0; j<b; j++){
                System.out.printf("#");
            }
           System.out.printf("\n");
        }
         System.out.printf("\n")
    }
 
}

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

import java.util.Scanner;

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

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

import java.util.Scanner;

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

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

import java.util.Scanner;

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


		for(;;){
			H = sc.nextInt();
			W = sc.nextInt();
			
			if(H == 0 && W == 0){
				break;
			}

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

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

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

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

}
}
}

Compiler output:
Main.java:9: error: cannot find symbol
intH = sc.nextInt();
^
  symbol:   variable intH
  location: class Main
Main.java:10: error: cannot find symbol
intW= sc.nextInt();
^
  symbol:   variable intW
  location: class Main
Main.java:11: error: cannot find symbol
if (H == 0 && W == 0) {
    ^
  symbol:   variable H
  location: class Main
Main.java:11: error: cannot find symbol
if (H == 0 && W == 0) {
              ^
  symbol:   variable W
  location: class Main
Main.java:16: error: cannot find symbol
for(j=0;j<H;j++){
          ^
  symbol:   variable H
  location: class Main
Main.java:17: error: cannot find symbol
	for(i=j;i<W;i++){
	          ^
  symbol:   variable W
  location: class Main
Main.java:18: error: cannot find symbol
	printf("#");
	^
  symbol:   method printf(String)
  location: class Main
Main.java:20: error: cannot find symbol
printf("\n");
^
  symbol:   method printf(String)
  location: class Main
8 errors
Language: Java

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

}
}
}

Compiler output:
Main.java:8: error: cannot find symbol
intH = sc.nextInt();
^
  symbol:   variable intH
  location: class Main
Main.java:9: error: cannot find symbol
intW= sc.nextInt();
^
  symbol:   variable intW
  location: class Main
Main.java:10: error: cannot find symbol
if (H == 0 && W == 0) {
    ^
  symbol:   variable H
  location: class Main
Main.java:10: error: cannot find symbol
if (H == 0 && W == 0) {
              ^
  symbol:   variable W
  location: class Main
Main.java:15: error: cannot find symbol
for(j=0;j<H;j++){
          ^
  symbol:   variable H
  location: class Main
Main.java:16: error: cannot find symbol
	for(i=j;i<W;i++){
	          ^
  symbol:   variable W
  location: class Main
Main.java:17: error: cannot find symbol
	printf("#");
	^
  symbol:   method printf(String)
  location: class Main
Main.java:19: error: cannot find symbol
printf("\n");
^
  symbol:   method printf(String)
  location: class Main
8 errors
Language: Java


import java.util.Scanner;
public class Test2 {
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??????# ?????¨???????????????
int i,j;
for(j=0;j<H;j++){
	for(i=j;i<W;i++){
	printf("#");
}
printf("\n");
}

}
}
}

Compiler output:
Main.java:3: error: class Test2 is public, should be declared in a file named Test2.java
public class Test2 {
       ^
Main.java:18: error: cannot find symbol
	printf("#");
	^
  symbol:   method printf(String)
  location: class Test2
Main.java:20: error: cannot find symbol
printf("\n");
^
  symbol:   method printf(String)
  location: class Test2
3 errors
Language: Java

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

Compiler output:
Main.java:7: error: cannot find symbol
            H=sc.nextInt();
            ^
  symbol:   variable H
  location: class Main
Main.java:8: error: cannot find symbol
            W=sc.nextInt();
            ^
  symbol:   variable W
  location: class Main
Main.java:9: error: cannot find symbol
if(H==0 && W==0){
   ^
  symbol:   variable H
  location: class Main
Main.java:9: error: cannot find symbol
if(H==0 && W==0){
           ^
  symbol:   variable W
  location: class Main
Main.java:12: error: cannot find symbol
            for(int i=0;i<h;i++){
                          ^
  symbol:   variable h
  location: class Main
Main.java:13: error: cannot find symbol
                for(int j=0;j<w;j++)System.out.printf("#");
                              ^
  symbol:   variable w
  location: class Main
Main.java:16: error: cannot find symbol
            if(h!=0)System.out.printf("\n");
               ^
  symbol:   variable h
  location: class Main
7 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.printf("#");
                System.out.printf("\n");
            }
            if(h!=0)System.out.printf("\n");
        }
    }
}

Compiler output:
Main.java:12: error: cannot find symbol
            for(int i=0;i<h;i++){
                          ^
  symbol:   variable h
  location: class Main
Main.java:13: error: cannot find symbol
                for(int j=0;j<w;j++)System.out.printf("#");
                              ^
  symbol:   variable w
  location: class Main
Main.java:16: error: cannot find symbol
            if(h!=0)System.out.printf("\n");
               ^
  symbol:   variable h
  location: class Main
3 errors
Language: Java

import java.util.Scanner;
public class Test2 {
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??????# ?????¨???????????????
int i,j;
for(j=0;j<H;j++){
	for(i=j;i<W;i++){
		System.out.printf("#");
}
	System.out.printf("\n");
}

}
}
}

}

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

import java.util.Scanner;
public class Test2 {
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??????# ?????¨???????????????
int i,j;
for(j=0;j<H;j++){
	for(i=j;i<W;i++){
		System.out.printf("#");
}
	System.out.printf("\n");
}

}
}
}

Compiler output:
Main.java:2: error: class Test2 is public, should be declared in a file named Test2.java
public class Test2 {
       ^
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();
	int i,j;
	
	if(H == 0&&W == 0){
		break;
	}
	for(i = 1;i <= H;i++){
	for(j = 1;j <= W;j++){
	System.out.print("#");
	}
	System.out.println("");
	}
	}
}
}

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 Main1{
	public static void main(String[]args){
	Scanner sc=new Scanner(System.in);
while(true){
	int H =sc.nextInt();
	int W =sc.nextInt();
	int i,j;
	
	if(H == 0&&W == 0){
		break;
	}
	for(i=1;i<=H;i++){
	for(j=1;j<=W;j++){
	System.out.print("#");
	}
	System.out.println("");
	}
    System.out.println("");
	}
}
}

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) { 

	Scanner sc = new Scanner(System.in);

	int i;

	int j;

	while (true) { 

	int W= sc.nextInt(); 

	int H= sc.nextInt(); 

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

	break; 

	} 

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

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

        System.out.print("#");

    	}

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

	}

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

	import java.util.Scanner;

        public class Main{ 

	public static void main(String[] args) { 

	Scanner sc = new Scanner(System.in);

	int i;

	int j;

	while (true) { 

	int W= sc.nextInt(); 

	int H= sc.nextInt(); 

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

	break; 

	} 

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

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

        System.out.print("#");

    	}

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

	}

	}

	}

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

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

	public static void print() {
		try {
			BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
			StringBuilder sb =new StringBuilder();
			String str = br.readLine();
			while (str != null) {
				String[] nums = str.split(" ", 0);
				int height = Integer.parseInt(nums[0]);
				int width = Integer.parseInt(nums[1]);

				if(height == 0 && width == 0){
					break;
				}

				for(int i = 0; i < width; i ++){
					sb.append("#");
				}
				for(int i = 0; i < height; i++){
					System.out.println(sb);
				}
				str = br.readLine();
				if(str != null){
					System.out.println("\n");
				}
			}
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
}

Compiler output:
Main.java:8: error: cannot find symbol
			BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
			^
  symbol:   class BufferedReader
  location: class Main
Main.java:8: error: cannot find symbol
			BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
			                        ^
  symbol:   class BufferedReader
  location: class Main
Main.java:8: error: cannot find symbol
			BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
			                                           ^
  symbol:   class InputStreamReader
  location: class Main
Main.java:31: error: cannot find symbol
		} catch (IOException e) {
		         ^
  symbol:   class IOException
  location: class Main
4 errors
Language: Java

import java.util.Scanner;

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

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

import java.util.Scanner;

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

            for(int i=0;i<h;i++){

                for(int j=0;j<w;j++){

                System.out.printf("#");
                }

            System.out.printf("\n");
            h = scan.nextInt();
            w = scan.nextInt();
        }
        }
    }
}

    

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

import java.util.*;
public class Main {
    public static void main(String[] args){
        int i,j;
        Scanner scan = new Scanner(System.in);
        while(scan.hasNext()){
        int h = scan.nextInt();
        int w = scan.nextInt();
        for(i=0;i<h;i++){
          for(j=0;j<w;j++){
           System.out.printf("%s",#);
          }
           Syetem.out.printf("\n");
        
  }
 }
}
}

Compiler output:
Main.java:11: error: illegal character: '#'
           System.out.printf("%s",#);
                                  ^
1 error
Language: Java

import java.util.*;
public class Main {
    public static void main(String[] args){
        int i,j;
        Scanner scan = new Scanner(System.in);
        while(scan.hasNext()){
        int h = scan.nextInt();
        int w = scan.nextInt();
        for(i=0;i<h;i++){
          for(j=0;j<w;j++){
           System.out.printf("#");
          }
           Syetem.out.printf("\n");
        
  }
 }
}
}

Compiler output:
Main.java:13: error: package Syetem does not exist
           Syetem.out.printf("\n");
                 ^
1 error
Language: Java

import java.util.*;
public class Main {
    public static void main(String[] args){
        int i,j;
        Scanner scan = new Scanner(System.in);
        while(scan.hasNext()){
        int h = scan.nextInt();
        int w = scan.nextInt();
        for(i=0;i<h;i++){
          for(j=0;j<w;j++){
           System.out.printf("#");
          }
           Syetem.out.println("\n");
        
  }
 }
}
}

Compiler output:
Main.java:13: error: package Syetem does not exist
           Syetem.out.println("\n");
                 ^
1 error
Language: Java

import java.util.*;
public class Main {
    public static void main(String[] args){
        int i,j;
        Scanner scan = new Scanner(System.in);
        while(scan.hasNext()){
        int h = scan.nextInt();
        int w = scan.nextInt();
        for(i=0;i<h;i++){
          for(j=0;j<w;j++){
           System.out.printf("#");
          }
           System.out.println("\n");
        
  }
        if(h=0&&w=0) break;
 }
}
}

Compiler output:
Main.java:16: error: bad operand types for binary operator '&&'
        if(h=0&&w=0) break;
              ^
  first type:  int
  second type: int
Main.java:16: error: incompatible types: int cannot be converted to boolean
        if(h=0&&w=0) break;
            ^
2 errors
Language: Java

import java.util.*;
public class Main {
	 public static void main(String[] args){
		         int i,j;
		         Scanner scan = new Scanner(System.in);
		         while(scan.hasNext()){
		         if(h==0&&w==0) break;
		         int h = scan.nextInt();
		         int w = scan.nextInt();
		         for(i=0;i<h;i++){
		           for(j=0;j<w;j++){
		            System.out.printf("#");
		           }
		            System.out.println("\n");
		         
		   }
		         if(h==0&&w==0) break;
		  }
		           
		 }
		 }
	    

Compiler output:
Main.java:7: error: cannot find symbol
		         if(h==0&&w==0) break;
		            ^
  symbol:   variable h
  location: class Main
Main.java:7: error: cannot find symbol
		         if(h==0&&w==0) break;
		                  ^
  symbol:   variable w
  location: class Main
2 errors
Language: Java

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

    while(true){
      int H = sc.nextInt();
      int W = sc.nextInt();
      if(H==0 && W==0)break;

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

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

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

    while(true){
      int H = sc.nextInt();
      int W = sc.nextInt();
      if(H==0 && W==0)break;

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

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

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

        while(1){
           int h = sc.nextInt();
           int w = sc.nextInt();
           if(w*h=0){break;}
            for(int i=0;i<h;i++){
 
                for(int j=0;j<w;j++){
 
                System.out.print("#");
                }
 
            System.out.printf("\n");
         
        }
        System.out.printf("\n");
        }
    }
}

Compiler output:
Main.java:7: error: incompatible types: int cannot be converted to boolean
        while(1){
              ^
Main.java:10: error: unexpected type
           if(w*h=0){break;}
               ^
  required: variable
  found:    value
2 errors
Language: Java

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

        for(;;){
           int h = sc.nextInt();
           int w = sc.nextInt();
           if(w*h=0){break;}
            for(int i=0;i<h;i++){
 
                for(int j=0;j<w;j++){
 
                System.out.print("#");
                }
 
            System.out.printf("\n");
         
        }
        System.out.printf("\n");
        }
    }
}

Compiler output:
Main.java:10: error: unexpected type
           if(w*h=0){break;}
               ^
  required: variable
  found:    value
1 error
Language: Java

import java.util.Scanner;

public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int r, c; // row, col
    while((r = sc.nextInt()) != 0 || (c = sc.nextInt()) != 0){
      for(int i = 0; i < r; i++){
        for(int j = 0; j < c; j++){
          System.out.printf("#");
        }
        System.out.println();
      }
      System.out.println();
    }
  }
}

Compiler output:
Main.java:9: error: variable c might not have been initialized
        for(int j = 0; j < c; j++){
                           ^
1 error
Language: Java

import java.util.Scanner;

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


	

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

import java.util.Scanner;

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

		Scanner sc = new Scanner(System.in);
		int h,w;
		
		while(TRUE){
			h = sc.nextInt();
			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.print("#");
				}
				System.out.print("\n");
			}
		}
	}
}

Compiler output:
Main.java:4: error: <identifier> expected
	public static void(String[] args){
	                  ^
1 error
Language: Java

import java.util.Scanner;

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

		Scanner sc = new Scanner(System.in);
		int h,w;

		while(TRUE){
			h = sc.nextInt();
			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.print("#");
				}
				System.out.print("\n");
			}
		}
	}
}

Compiler output:
Main.java:9: error: cannot find symbol
		while(TRUE){
		      ^
  symbol:   variable TRUE
  location: class Main
1 error
Language: Java

import java.util.Scanner;

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

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

}

}
}

}

}

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

import java.util.Scanner;

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

}

Compiler output:
Main.java:3: error: class a10012_PrintRectangle is public, should be declared in a file named a10012_PrintRectangle.java
public class a10012_PrintRectangle {
       ^
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;i<j;i++){
         for(int j;j<300;j++){
        System.out.print("#");
   }
  }
  }
}

Compiler output:
Main.java:18: 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;i++){
         for(int j;j<300;j++){
        System.out.print("#");
   }
  }
  }
}

Compiler output:
Main.java:18: 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 H;0<H;H++){
         for(int W;W<300;W++){
        System.out.print("#");
   }
  }
  }
}

Compiler output:
Main.java:18: 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 H;0<H;H++){
         for(int W;W<300;W++){
        System.out.print("#");
   }
   System.out.printlf("\n");
  }
  }
}

Compiler output:
Main.java:19: 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 H=0;0<H;H++){
         for(int W=0;W<300;W++){
        System.out.print("#");
   }
   System.out.printlf(" ");
  }
  }
}

Compiler output:
Main.java:19: 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 H=0;0<H;H++){
         for(int W=0;W<300;W++){
        System.out.print("#");
   }
   System.out.println(" ");
  }
  }
}

Compiler output:
Main.java:19: 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 H = 0; 0 < H; H++){
         for(int W = 0; W < 300; W++){
        System.out.print("#");
   }
   System.out.println(" ");
  }
  }
}

Compiler output:
Main.java:19: 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 H = 0; 0 < H; H++){
         for(int W = 0; W < 300; W++){
        System.out.print("#");
   }
   System.out.println(" ");
   }
  }
 }
}

Compiler output:
Main.java:12: error: variable H is already defined in method main(String[])
      for(int H = 0; 0 < H; H++){
              ^
Main.java:13: error: variable W is already defined in method main(String[])
         for(int W = 0; W < 300; W++){
                 ^
2 errors
Language: Java

import java.util.Scanner;

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

Compiler output:
Main.java:12: error: variable H is already defined in method main(String[])
      for(int H = 0; 0 < H; H++){
              ^
Main.java:13: error: variable W is already defined in method main(String[])
         for(int W = 0; W < 300; W++){
                 ^
2 errors
Language: Java

import java.util.Scanner;

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

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

import java.util.Scanner;

public class Main {

public static void main(String[] args) {

// ?¨??????\???????????????????????????????????????

Scanner sc = new Scanner(System.in);

// ????????????????????????????????´??°?????¨????????????????????????

while (true) {

int H = sc.nextInt();

int W= sc.nextInt();

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

break;

}

// ???????????????(for?????????for)???????????????H x W?????? # ?????¨????????????!
  for (int j = 1;j<=H; j++{
          for (int i = 1;i<=W; i++) {
           System.out.printf("#");
  }
  System.out.printf("\n");
 i=0;
}
}

}

}

Compiler output:
Main.java:26: error: ')' expected
  for (int j = 1;j<=H; j++{
                          ^
1 error
Language: Java

import java.util.Scanner;

public class Main {

public static void main(String[] args) {

// ?¨??????\???????????????????????????????????????

Scanner sc = new Scanner(System.in);

// ????????????????????????????????´??°?????¨????????????????????????

while (true) {

int H = sc.nextInt();

int W= sc.nextInt();

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

break;

}

// ???????????????(for?????????for)???????????????H x W?????? # ?????¨????????????!
  for (int j = 1;j<=H; j++){
          for (int i = 1;i<=W; i++) {
           System.out.printf("#");
  }
  System.out.printf("\n");
 i=0;
}
}

}

}

Compiler output:
Main.java:31: error: cannot find symbol
 i=0;
 ^
  symbol:   variable i
  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  i = 0 ; i < H ; i++)
   {

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

mport java.util.Scanner;

public class Main {

public static void main(String[] args) {

Scanner sc = new Scanner(System.in);

while (true) {

int H = sc.nextInt();

int W= sc.nextInt();

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

break;

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

}

}

Compiler output:
Main.java:1: error: class, interface, enum, or record expected
mport java.util.Scanner;
^
1 error
Language: Java

import java.util.Scanner;

public class rectangle {
	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 (H = 0; H > 0; H++) {
				for (W = 0; W < 301; W++)
					System.out.println("#");
			}
			System.out.print("\n");
		}
	}
}

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

import java.util.Scanner;

public class rectangle {
	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 (H = 0; H > 0; H++) {
				for (W = 0; W < 301; W++)
					System.out.println("#");
			}
			System.out.print("\n");
		}
	}
}

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

import.java.util.Scanner;

public class Main {
    public static void main(String [] args){
        Scanner scan = new Scanner(System.in);
        
        while(true){
            int h = 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('#');
                }
                
                System.out.println();
            }
            
            System.out.println();
        }
    }
}

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

import java.util.Scanner;

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

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

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

public class Main {
    public static void main(String[] args) throws Exception {
        try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {
            br.lines()
                .map(line -> Arrays.stream(line.split(" "))
                        .mapToInt(Integer::parseInt)
                        .toArray())
                .forEach(tokens -> {
                    int height = toknes[0];
                    int width = toknes[1];
                    if (height == 0 && width == 0) {
                        return;
                    }

                    for (int h = 0; h < height; h++) {
                        for (int w = 0; w < width; w++) {
                            System.out.println("#");
                        }
                    }
                });
        }
    }
}

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

import java.util.Scanner;

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

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

import java.util.Scanner;

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

Compiler output:
Main.java:18: error: cannot find symbol
		for(int i=0; i<H; i++)
		               ^
  symbol:   variable H
  location: class Main
Main.java:20: error: cannot find symbol
			for(int j=0; j<W; j++)
			               ^
  symbol:   variable W
  location: class Main
2 errors
Language: Java

import java.util.Scanner;

public class BL{
 public static void main(String[] args){
  Scanner sc=new Scanner(System.in);
  int[] H =new int[100000];
  int[] W =new int[100000];
  int i=0;
  H[0]=sc.nextInt();
  W[0]=sc.nextInt();
  for(i=1;H[i-1]!=0||W[i-1]!=0;i++){
   H[i]=sc.nextInt();
   W[i]=sc.nextInt();
  }
for(int m=0;m<i;m++){
 int k,l;
   for(k=0;k<H[m];k++){
    for(l=0;l<W[m];l++){
     System.out.printf("#");
     }
      System.out.printf("\n");
   }
  System.out.printf("\n");
  }
 }
}

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

import java.util.Scanner;

public class BL{
 public static void main(String[] args){
  Scanner sc=new Scanner(System.in);
  int[] H =new int[100000];
  int[] W =new int[100000];
  int i=0;
  H[0]=sc.nextInt();
  W[0]=sc.nextInt();
  for(i=1;H[i-1]!=0||W[i-1]!=0;i++){
   H[i]=sc.nextInt();
   W[i]=sc.nextInt();
  }
for(int m=0;m<i;m++){
 int k,l;
   for(k=0;k<H[m];k++){
    for(l=0;l<W[m];l++){
     System.out.printf("#");
     }
      System.out.printf("\r");
   }
  System.out.printf("\r");
  }
 }
}

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

import java.util.Scanner;

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

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

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

import java.util.Scanner;

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

  /*?????????????????????????????\??????????????¢????????????????????§m<i-1*/
  for(int m=0;m<i-1;m++){
   int k,l;
   for(k=0;k<H[m];k++){
    for(l=0;l<W[m];l++){
     System.out.printf("#");
    }
    System.out.printf("\n");??????//??????????????¢?????§?????????
   }
   System.out.printf("\n");     //????????¢????????????
  }
 }
}

Compiler output:
Main.java:28: error: illegal start of expression
    System.out.printf("\n");??????//??????????????????????????????
                            ^
Main.java:28: error: illegal start of expression
    System.out.printf("\n");??????//??????????????????????????????
                             ^
Main.java:28: error: illegal start of expression
    System.out.printf("\n");??????//??????????????????????????????
                              ^
Main.java:28: error: illegal start of expression
    System.out.printf("\n");??????//??????????????????????????????
                               ^
Main.java:28: error: illegal start of expression
    System.out.printf("\n");??????//??????????????????????????????
                                ^
Main.java:28: error: illegal start of expression
    System.out.printf("\n");??????//??????????????????????????????
                                 ^
Main.java:29: error: illegal start of expression
   }
   ^
7 errors
Language: Java

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

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    while (sc.hasNext()) {
      if (H == 0 && W == 0) break;
      int H = Integer.parseInt(sc.next());
      int W = Integer.parseInt(sc.next());
      for (int i = 0; i < H; i++) {
        for (int j = 0; j < W; j++) {
          System.out.print("#");
        }
        System.out.print("\n");
      }
    }
  }
}

Compiler output:
Main.java:8: error: cannot find symbol
      if (H == 0 && W == 0) break;
          ^
  symbol:   variable H
  location: class Main
Main.java:8: error: cannot find symbol
      if (H == 0 && W == 0) break;
                    ^
  symbol:   variable W
  location: class Main
2 errors