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

import java.util.Scanner;

class Main{
    public static void main(String[] args){
        int H,W;
    	//?¨??????\??????????????????????????§????????????
		Scanner scanner = new Scanner(System.in);
		
		while(true){
			H = scanner.nextInt();
			W = scanner.nextInt();
			for(int i = 0; i < H;i++){
				for(int j = 0; j < W; j++){
					System.out.print("#")				
				}
				System.out.print(\n);
			}
		}
    	scanner.close();
    }
}

Compiler output:
Main.java:14: error: ';' expected
					System.out.print("#")				
					                     ^
Main.java:16: error: illegal character: '\'
				System.out.print(\n);
				                 ^
Main.java:16: error: not a statement
				System.out.print(\n);
				                  ^
Main.java:16: error: ';' expected
				System.out.print(\n);
				                   ^
4 errors
Language: Java

import java.util.Scanner;

class Main{
    public static void main(String[] args){
        int H,W;
    	//?¨??????\??????????????????????????§????????????
		Scanner scanner = new Scanner(System.in);
		
		while(true){
			H = scanner.nextInt();
			W = scanner.nextInt();
			for(int i = 0; i < H;i++){
				for(int j = 0; j < W; j++){
					System.out.print("#");				
				}
				System.out.print(\n);
			}
		}
    	scanner.close();
    }
}

Compiler output:
Main.java:16: error: illegal character: '\'
				System.out.print(\n);
				                 ^
Main.java:16: error: not a statement
				System.out.print(\n);
				                  ^
Main.java:16: error: ';' expected
				System.out.print(\n);
				                   ^
3 errors
Language: Java

import java.util.Scanner;

public class main {

	public static void main(String[] args) {

		while(true){
		Scanner scan = new Scanner(System.in);
		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("\n");
	    }
	  
	   }
	}
}

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

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

public class Main {
    public static void main(String[] args) throws Exception {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        int MAX=300;
        
        while(true){
            String[] area=reader.readLine().split(" ");
            int h=Integer.parseInt(area[0);
            int w=Integer.parseInt(area[1]);
            
            if(h==0&&w==0) break;
            
            if(h<=MAX&&w<=MAX){
                for(int i=0;i<=h;i++){
                    for(int j=0;i<=w;j++) System.out.println("#");
                    System.out.println("#\n");
                }
            }
        }
    }
}

Compiler output:
Main.java:11: error: ']' expected
            int h=Integer.parseInt(area[0);
                                         ^
1 error
Language: Java

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

public class Main {
    public static void main(String[] args) throws Exception {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        StringBuilder builder = new StringBuilder();
        int MAX=300;
        
        while(true){
            String[] area=reader.readLine().split(" ");
            int h=Integer.parseInt(area[0]);
            int w=Integer.parseInt(area[1]);
            
            if(h==0&&w==0) break;
            
            if(h<=MAX&&w<=MAX){
                for(int i=0;i<h;i++){
                    for(int j=0;i<w;j++) builder.append("#");
                    builder.append("\n");
                }
                builder.append("\n")
            }
        }
         System.out.println(builder);
    }
}

Compiler output:
Main.java:22: error: ';' expected
                builder.append("\n")
                                    ^
1 error
Language: Java

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

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

        String readLine = br.readLine();
        while( readLine != null ) {
          readLine = readLine.trim();
          String[] readLineArray = readLine.split(" ");

          int h = Integer.parseInt(readLineArray[0]);
          int w = Integer.parseInt(readLineArray[1]);

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

          for (int i = 0 ; i < h ; i++) {
            for (int k = 0 ; k < w ; k++) {
              System.out.print("#");
            }
            System.out.print("\n");
          }
          System.out.print("\n");
          readLine = br.readLine();
        }
        br.close();
    } catch(FileNotFoundException e) {
      System.out.println(e);
    } catch(IOException e) {
      System.out.println(e);
    }
  }
}

Compiler output:
Main.java:32: error: cannot find symbol
    } catch(FileNotFoundException e) {
            ^
  symbol:   class FileNotFoundException
  location: class Main
1 error
Language: Java


import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import org.apache.commons.lang3.StringUtils;

public class Main {
    public static void main (String[] args ) throws IOException {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        StringBuilder builder = new StringBuilder();
        String str = "#";
        
        while(true){
            String data = reader.readLine();
            String[] number = data.split(" ");
            int x = Integer.parseInt(number[0]);
            int y = Integer.parseInt(number[1]);
            if (x == 0 && y == 0 ) {
                break;
            }
            for ( int c = 0; c < y ; c++) {
                System.out.println (StringUtils.repeat(str,x));
            }

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

Compiler output:
Main.java:5: error: package org.apache.commons.lang3 does not exist
import org.apache.commons.lang3.StringUtils;
                               ^
Main.java:22: error: cannot find symbol
                System.out.println (StringUtils.repeat(str,x));
                                    ^
  symbol:   variable StringUtils
  location: class Main
2 errors
Language: Java

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


public class AizuC {

    public static void main(String[] args) throws Exception {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        StringBuilder builder = new StringBuilder();
        while (true) {
            String data[] = reader.readLine().split(" ");
            int a = Integer.parseInt(data[0]);
            int b = Integer.parseInt(data[1]);

            if (a == 0 && b == 0) {
                break;
            }

            for (int y = 0; y < a; y++) {
                for (int x = 0; x < b; x++) {
                    builder.append("#");
                }
                builder.append("\n");
            }
            builder.append("\n");

        }
        System.out.print(builder);
    }
}

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

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

public class Main1_5A {

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

		while (true) {
			String[] str = br.readLine().split(" ");
			int H = Integer.parseInt(str[0]);
			int W = Integer.parseInt(str[1]);
			if (H == 0 && W == 0) {
				break;
			}
			for (int i = 0; i < H; i++) {
				for (int j = 0; j < W; j++) {
					sb.append("#");
				}
				sb.append("\n");
			}
			sb.append("\n");
		}
		System.out.print(sb);
	}
}

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

import java.util.Scanner;

public class Main{
  public static void main(String[] args){
    Scanner scan = new Scanner(System.in);
    int H = scan.nextInt();
    int W = scan.nextInt();
    while(!(H == 0 $$ W == 0)){
      StringBuilder sb = new StringBuider();
      for(int i=0; i<W; i++ ){
        sb.append("#");
      }
      for(int j=0; j<H; j++){
        System.out.println(sb);
      }
      System.out.println("");
      H = scan.nextInt();
      W = scan.nextInt();
    }   
  }
}

Compiler output:
Main.java:8: error: ')' expected
    while(!(H == 0 $$ W == 0)){
                  ^
Main.java:8: error: ';' expected
    while(!(H == 0 $$ W == 0)){
                       ^
Main.java:8: error: variable declaration not allowed here
    while(!(H == 0 $$ W == 0)){
                      ^
3 errors
Language: Java

import java.util.Scanner;

public class Main{
  public static void main(String[] args){
    Scanner scan = new Scanner(System.in);
    int H = scan.nextInt();
    int W = scan.nextInt();
    while(H !== 0 || W !== 0){
      StringBuilder sb = new StringBuider();
      for(int i=0; i<W; i++ ){
        sb.append("#");
      }
      for(int j=0; j<H; j++){
        System.out.println(sb);
      }
      System.out.println("");
      H = scan.nextInt();
      W = scan.nextInt();
    }
    
  }
}

Compiler output:
Main.java:8: error: illegal start of expression
    while(H !== 0 || W !== 0){
              ^
Main.java:8: error: illegal start of expression
    while(H !== 0 || W !== 0){
                         ^
2 errors
Language: Java

import java.util.Scanner;

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

		Scanner scan = new Scanner(System.in);

		int h = scan.nextInt();
		int w = scan.nextInt();

		while(true){
			if(h == 0 && w == 0){
				break;
			}else{
				for(int i = 0; i < h; i++){
					for(int i = 0; i < w; i++){
						System.out.print("#");
					}
					System.out.println("");
				}
			}
		}
	}
}

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

import java.util.Scanner;

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

		Scanner scan = new Scanner(System.in);

		for(int a = 0; a < h; a++){
			
			int h = scan.nextInt();
			int w = scan.nextInt();
			
			if(h == 0 && w == 0){
				break;
			}else{
				for(int b = 0; b < w; b++){
					System.out.print("#");
				}
				System.out.println();
			}
		}
	}
}

Compiler output:
Main.java:8: error: cannot find symbol
		for(int a = 0; a < h; a++){
		                   ^
  symbol:   variable h
  location: class Main
1 error
Language: Java

import java.util.Scanner;

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

		Scanner scan = new Scanner(System.in);

		int h = scan.nextInt();
		int w = scan.nextInt();

		import java.util.Scanner;


		for(int a = 0; a < h; a++){
			
			int h = scan.nextInt();
			int w = scan.nextInt();
			
			if(h == 0 && w == 0){
				break;
			}else{
				for(int b = 0; b < w; b++){
					System.out.print("#");
				}
				System.out.println();
			}
		}
	}
}

Compiler output:
Main.java:11: error: illegal start of expression
		import java.util.Scanner;
		^
Main.java:11: error: not a statement
		import java.util.Scanner;
		                ^
2 errors
Language: Java

import java.util.Scanner;

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

		Scanner scan = new Scanner(System.in);

		int h = scan.nextInt();
		int w = scan.nextInt();

		import java.util.Scanner;


		for(int a = 0; a < h; a++){
			
			h = scan.nextInt();
			w = scan.nextInt();
			
			if(h == 0 && w == 0){
				break;
			}else{
				for(int b = 0; b < w; b++){
					System.out.print("#");
				}
				System.out.println();
			}
		}
	}
}

Compiler output:
Main.java:11: error: illegal start of expression
		import java.util.Scanner;
		^
Main.java:11: error: not a statement
		import java.util.Scanner;
		                ^
2 errors
Language: Java

import java.util.Scanner;

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

		Scanner scan = new Scanner(System.in);

		while(true){
			int h = scan.nextInt();
			int w = scan.nextInt();

			if(h == 0 && w == 0){
				break;
			}else{
				for(int a = 0; a < h; a++){
					for(int b = 0; b < w; b++){
						System.out.print("#");
					}
					if(b == w - 1){
						break;
					}else{
						System.out.println("");
					}
				}
			}
		}
	}
}

Compiler output:
Main.java:19: error: cannot find symbol
					if(b == w - 1){
					   ^
  symbol:   variable b
  location: class Main
1 error
Language: Java

import java.io.*;
public class Main {
	public static void main(String[] args){
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		try{
        	while(true) {
        		String line = reader.readLine();
        		String[] num = line.split(" ", -1);
        		int H = Integer.parseInt(num[0]);
        		int W = Integer.parseInt(num[1]);
        		if (H == 0 && W == 0) {
        			break;
        		} else {
        			for (int i = 0; i < H; i++) {
        				for (int i = 0; i < W; i++) {
        					System.out.println("#");
        					System.out.println(""); //??????
        				}
        			} 
        		}
        	}
        } catch (IOException e) {
          System.out.println(e);
        } catch (NumberFormatException e) {
          System.out.println("error");
        }
    }
}

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

import java.io.*;
public class Swap {
	public static void main(String[] args){
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		try{
        	while(true) {
        		String line = reader.readLine();
        		String[] num = line.split(" ", -1);
        		int H = Integer.parseInt(num[0]);
        		int W = Integer.parseInt(num[1]);
        		if (H == 0 && W == 0) {
        			break;
        		} else {
        			for (int i = 0; i < H; i++) {
        				for (int j = 0; j < W; j++) {
        					System.out.println("#");
        					System.out.println(""); //??????
        				}
        			} 
        		}
        	}
        } catch (IOException e) {
          System.out.println(e);
        } catch (NumberFormatException e) {
          System.out.println("error");
        }
    }
}

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

import java.util.Scanner;
public class Main{
	public static void main(String[] args){
		Scanner in = new Scanner(System.in);
		int H = in.nextInt();
		int W = in.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:8: error: break outside switch or loop
			break;
			^
1 error
Language: Java

import java.util.*;

public class Main{
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		List<Integer> listH = new ArrayList<Integer>();
		List<Integer> listW = new ArrayList<Integer>();
		for(;;){
			int H = scan.nextInt();
			int W = scan.nextInt();
			if((H == 0) && (W == 0)){
				break;
			}
			listH.add(H);
			listW.add(W);
		}

		for(int k = 0; k < listH.size(); k++){
			int h = listH.get(i);
			int w = listW.get(i);
			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:19: error: cannot find symbol
			int h = listH.get(i);
			                  ^
  symbol:   variable i
  location: class Main
Main.java:20: error: cannot find symbol
			int w = listW.get(i);
			                  ^
  symbol:   variable i
  location: class Main
2 errors
Language: Java

public class Print {
	public static void main(String[] args){
		java.util.Scanner scan = new java.util.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 = 1;j < W;j++){
					System.out.print("#");
				}
				System.out.println("#");
			}
		System.out.println();
		}
	}
}

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

import java.util.Scanner;

public class ITP1_5_A{
	public  static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		
		int height = Integer.parseInt(sc.next());
		int wide = Integer.parseInt(sc.next());
		
		for(int i = 1; i <= height; i = i + 1){
			for(int j = 1; j <= wide; j = j + 1){
				System.out.print("#");
			}
			System.out.println("");
		}
		System.out.println("");
	}
}

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

import java.util.Scanner;

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

Compiler output:
Main.java:15: error: cannot find symbol
			scan = Scanner(System.in);
			       ^
  symbol:   method Scanner(InputStream)
  location: class Main
1 error
Language: Java

import java.util.Scanner;


public class main{

	public static void main(String []argas){
		//????????£??????????????£?¨?
		Scanner sc = new Scanner(System.in);
		//??°?????????
		while(true){
			
			//???????????????
			int H = sc.nextInt();
			//?¨??????????
			int W = sc.nextInt();
	
		
		//?????¶??????0????????°??????
		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:4: error: class main is public, should be declared in a file named main.java
public class main{
       ^
1 error
Language: Java

import java.util.Scanner;


public class main {

	public static void main(String []argas){
		//????????£??????????????£?¨?
		Scanner sc = new Scanner(System.in);
		//??°?????????
		while(true){
			
			//???????????????
			int H = sc.nextInt();
			//?¨??????????
			int W = sc.nextInt();
	
		
		//?????¶??????0????????°??????
		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:4: error: class main is public, should be declared in a file named main.java
public class main {
       ^
1 error
Language: Java

import java.util.Scanner;


public class mainA {

	public static void main(String []argas){
		//????????£??????????????£?¨?
		Scanner sc = new Scanner(System.in);
		//??°?????????
		while(true){
			
			//???????????????
			int H = sc.nextInt();
			//?¨??????????
			int W = sc.nextInt();
	
		
		//?????¶??????0????????°??????
		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:4: error: class mainA is public, should be declared in a file named mainA.java
public class mainA {
       ^
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();


		//?????¶??????0????????°??????
		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:4: error: class main is public, should be declared in a file named main.java
public class main {
       ^
1 error
Language: Java

import java.util.Scanner;


public class main {

	public static void Main(String []args){
		//????????£??????????????£?¨?
		Scanner sc = new Scanner(System.in);
		//??°?????????
		while(true){

			//???????????????
			int H = sc.nextInt();
			//?¨??????????
			int W = sc.nextInt();


		//?????¶??????0????????°??????
		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:4: error: class main is public, should be declared in a file named main.java
public class main {
       ^
1 error
Language: Java

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.*;
class Main{
	public static void main(String[] args){
	int h =0;
	int w =0;
	int t =0;
	Scanner scan = new Scanner(System.in);
	ArrayList<Integer> listw = new ArrayList<Integer>();
	ArrayList<Integer> listh = new ArrayList<Integer>();
		while(scan.hasNextLine()){
			h = scan.nextInt();			
			w = scan.nextInt();
			
			if(h==0 && w==0){
				break;
			}
			else{
				listh.add(h);
				listw.add(w);
			}
		}
		
		
		
		for(int i=0;i<listh.size();i++){
			for(int i=0;i<listw.size();i++){
				System.out.print("#");
			}
			System.out.println("");
		}
	}
}

Compiler output:
Main.java:28: error: variable i is already defined in method main(String[])
			for(int i=0;i<listw.size();i++){
			        ^
1 error
Language: Java

import java.util.Scanner;

class Main{
     public static void main(String[] args){
    	Scanner scan = new Scanner(System.in);
    	int H;
    	int W;
    	
    	for(;;){
    		H = scan.nextInt();
        	W = scan.nextInt();
        	if(H == 0 && W == 0){
        	  break;
        	}
        	
        	for(int y = 0; y < H; y++){
        	??????for(int x = 0; x < W; x++){
        		System.out.print("#");
        	??????}
        	??????System.out.print("\n");
        	}
        	
    	}
    	
     }
}

Compiler output:
Main.java:17: error: illegal start of expression
        	??????for(int x = 0; x < W; x++){
        	^
Main.java:17: error: illegal start of expression
        	??????for(int x = 0; x < W; x++){
        	 ^
Main.java:17: error: illegal start of expression
        	??????for(int x = 0; x < W; x++){
        	  ^
Main.java:17: error: illegal start of expression
        	??????for(int x = 0; x < W; x++){
        	   ^
Main.java:17: error: illegal start of expression
        	??????for(int x = 0; x < W; x++){
        	    ^
Main.java:17: error: illegal start of expression
        	??????for(int x = 0; x < W; x++){
        	     ^
Main.java:17: error: illegal start of expression
        	??????for(int x = 0; x < W; x++){
        	      ^
Main.java:19: error: illegal start of expression
        	??????}
        	^
Main.java:19: error: illegal start of expression
        	??????}
        	 ^
Main.java:19: error: illegal start of expression
        	??????}
        	  ^
Main.java:19: error: illegal start of expression
        	??????}
        	   ^
Main.java:19: error: illegal start of expression
        	??????}
        	    ^
Main.java:19: error: illegal start of expression
        	??????}
        	     ^
Main.java:19: error: illegal start of expression
        	??????}
        	      ^
Main.java:20: error: illegal start of expression
        	??????System.out.print("\n");
        	^
Main.java:20: error: illegal start of expression
        	??????System.out.print("\n");
        	 ^
Main.java:20: error: illegal start of expression
        	??????System.out.print("\n");
        	  ^
Main.java:20: error: illegal start of expression
        	??????System.out.print("\n");
        	   ^
Main.java:20: error: illegal start of expression
        	??????System.out.print("\n");
        	    ^
Main.java:20: error: illegal start of expression
        	??????System.out.print("\n");
        	     ^
Main.java:20: error: : expected
        	??????System.out.print("\n");
        	                            ^
21 errors
Language: Java


import java.util.ArrayList;
import java.util.Scanner;

public class A5 {
	public static void main(String[] args) {
		int H, W, a = 0, cnt = 0;
		ArrayList<Integer> h = new ArrayList<Integer>();
		ArrayList<Integer> w = new ArrayList<Integer>();
		Scanner sc = new Scanner(System.in);
		while(a < 300){
			H = sc.nextInt();
			W = sc.nextInt();
			if(H == 0 && W == 0)
				break;
			h.add(new Integer(H));
			w.add(new Integer(W));
			a++;
		}
		for(cnt = 0; a > cnt; cnt++){
		System.out.print("\n");
			for(int i = 0; i != h.get(new Integer(cnt)); i++){
				for(int j = 0; j != w.get(new Integer(cnt)); j++){
					System.out.print("#");
				}
				System.out.print("\n");
			}
		}
	}
}

Compiler output:
Main.java:5: error: class A5 is public, should be declared in a file named A5.java
public class A5 {
       ^
Main.java:16: warning: [removal] Integer(int) in Integer has been deprecated and marked for removal
			h.add(new Integer(H));
			      ^
Main.java:17: warning: [removal] Integer(int) in Integer has been deprecated and marked for removal
			w.add(new Integer(W));
			      ^
Main.java:22: warning: [removal] Integer(int) in Integer has been deprecated and marked for removal
			for(int i = 0; i != h.get(new Integer(cnt)); i++){
			                          ^
Main.java:23: warning: [removal] Integer(int) in Integer has been deprecated and marked for removal
				for(int j = 0; j != w.get(new Integer(cnt)); j++){
				                          ^
1 error
4 warnings
Language: Java


import java.util.ArrayList;
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		int H, W, a = 0, cnt = 0;
		ArrayList<Integer> h = new ArrayList<Integer>();
		ArrayList<Integer> w = new ArrayList<Integer>();
		Scanner sc = new Scanner(System.in);
		while(a < 300){
			H = sc.nextInt();
			W = sc.nextInt();
			if(H == 0 && W == 0)
				break;
			h.add(new Integer(H));
			w.add(new Integer(W));
			a++;
		}
		for(cnt = 0; a > cnt; cnt++){
			if(cnt != 0)
				System.out.print("\n");
			for(int i = 0; i != h.get(new Integer(cnt)); i++){
				for(int j = 0; j != w.get(new Integer(cnt)); j++){
					System.out.print("#");
				}
				System.out.print("\n");
			}
		}
		System.out.print("\n");
	}

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

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

Compiler output:
Main.java:4: error: cannot find symbol
		Scanner scanner = new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class Main
Main.java:4: error: cannot find symbol
		Scanner scanner = new Scanner(System.in);
		                      ^
  symbol:   class Scanner
  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(true){
      int a = sc.nextInt();
      int b = sc.nextInt();
      if(a == 0 || b == 0) break;

      for(int i = 0;i++;i<a){
        for(int j = 0;j++;j<b){
          System.out.print(#);
        }
        System.out.println();
      }
    }
  }
} 

Compiler output:
Main.java:11: error: not a statement
      for(int i = 0;i++;i<a){
                         ^
Main.java:12: error: not a statement
        for(int j = 0;j++;j<b){
                           ^
Main.java:13: error: illegal character: '#'
          System.out.print(#);
                           ^
3 errors
Language: Java

import java.util.Scanner;

class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    while(true){
      int a = sc.nextInt();
      int b = sc.nextInt();
      if(a == 0 && b == 0){ break;}

      for(int i = 0; i++; i < a){
        for(int j = 0; j++; j < b){
          System.out.print("#");
        }
        System.out.println();
      }
    }
  }
} 

Compiler output:
Main.java:11: error: not a statement
      for(int i = 0; i++; i < a){
                            ^
Main.java:12: error: not a statement
        for(int j = 0; j++; j < b){
                              ^
2 errors
Language: Java

import java.util.Scanner;

class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    while(true){
      int a = sc.nextInt();
      int b = sc.nextInt();
      if(a == 0 && b == 0){ break;}

      for(int i = 0; i++; i < a){
        for(int j = 0; j++; j < b
          System.out.print('#');
        System.out.println();
      }
    }
  }
} 

Compiler output:
Main.java:11: error: not a statement
      for(int i = 0; i++; i < a){
                            ^
Main.java:12: error: not a statement
        for(int j = 0; j++; j < b
                              ^
Main.java:12: error: ')' expected
        for(int j = 0; j++; j < b
                                 ^
3 errors
Language: Java

import java.util.Scanner;

class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    while(true){
      int a = sc.nextInt();
      int b = sc.nextInt();
      if(a == 0 && b == 0){ break;}

      for(int i = 0; i++; i < a){
        for(int j = 0; j++; j < b)
          System.out.print('#');
        System.out.println();
      }
    }
  }
} 

Compiler output:
Main.java:11: error: not a statement
      for(int i = 0; i++; i < a){
                            ^
Main.java:12: error: not a statement
        for(int j = 0; j++; j < b)
                              ^
2 errors
Language: Java

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

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

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

Compiler output:
Main.java:2: error: class pro25 is public, should be declared in a file named pro25.java
public class pro25{ 
       ^
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 j = 0; j < H; j++) {

				for (int i = 0; i < W; i++) {
					System.out.printf("#");

				}

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

		}

	}
}

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

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class ????????¢????????? {

	public static void main(String[] args) throws IOException {
		// TODO ?????????????????????????????????????????????
 BufferedReader br = new BufferedReader (new InputStreamReader(System.in));
  String str = br.readLine();
  String[] strAry = str.split(" ");
   int W= Integer.parseInt(strAry[0]);
   int H = Integer.parseInt(strAry[1]);
  int  i; 
  int  j ;
   for ( i =0; i < W;i++){
	   for ( j=0; j< H;j ++){
		   System.out.print("#");
	   }
	   System.out.print("\n");
	   }
	   
	   
   }

}	

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

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

Compiler output:
Main.java:3: error: '{' expected
  try (Scanner sc = new Scanner(System.in));
                                           ^
Main.java:19: error: reached end of file while parsing
}
 ^
2 errors
Language: Java

import java.util.Scanner;

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

Compiler output:
Main.java:6: error: illegal start of type
   while(true){
   ^
Main.java:20: error: ';' expected
 }
  ^
Main.java:21: error: reached end of file while parsing
}
 ^
3 errors
Language: Java

import java.util.Scanner;

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

Compiler output:
Main.java:6: error: illegal start of type
  while(true){
  ^
Main.java:20: error: ';' expected
 }
  ^
Main.java:21: error: reached end of file while parsing
}
 ^
3 errors
Language: Java

import java.util.Scanner;

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

Compiler output:
Main.java:5: error: <identifier> expected
  Scanner sc = new.Scanner(System.in);
                  ^
Main.java:20: error: reached end of file while parsing
}
 ^
2 errors
Language: Java

import java.util.Scanner;
??
public class Main{

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

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

   if(H == 0 && W == 0)break;
   for(int i = 0;i < H ;i++){
    for(int j = 0;j < W ;j++){

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

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

import java.util.*;
public class Main{
public static void main{
Scanner scan = new Scanner(System.in);
int H = scan.nextInt();
int W = scan.nextInt();
if(H = 0 && W = 0){break;
}
else {
for(int i = 0 ; i < H ; i++){
   for(int j = 0 ; j < W ; j++){
      System.out.println("#");}
}}}}

Compiler output:
Main.java:3: error: '(' expected
public static void main{
                       ^
1 error
Language: Java

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

Compiler output:
Main.java:7: error: bad operand types for binary operator '&&'
if(H = 0 && W = 0){break;
         ^
  first type:  int
  second type: int
Main.java:7: error: incompatible types: int cannot be converted to boolean
if(H = 0 && W = 0){break;
     ^
Main.java:7: error: break outside switch or loop
if(H = 0 && W = 0){break;
                   ^
3 errors
Language: Java

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

Compiler output:
Main.java:7: error: bad operand types for binary operator '&&'
if(H = 0 && W = 0){break;
         ^
  first type:  int
  second type: int
Main.java:7: error: incompatible types: int cannot be converted to boolean
if(H = 0 && W = 0){break;
     ^
Main.java:7: error: break outside switch or loop
if(H = 0 && W = 0){break;
                   ^
3 errors
Language: Java

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

Compiler output:
Main.java:7: error: bad operand types for binary operator '&&'
if(H = 0 && W = 0){break;
         ^
  first type:  int
  second type: int
Main.java:7: error: incompatible types: int cannot be converted to boolean
if(H = 0 && W = 0){break;
     ^
Main.java:7: error: break outside switch or loop
if(H = 0 && W = 0){break;
                   ^
3 errors
Language: Java

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

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

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

Compiler output:
Main.java:14: error: reached end of file while parsing
    System.out.println();}}}}
                             ^
1 error
Language: Java

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

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

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

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

import java.util.Scanner;
public class Main{
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
int H,W;

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

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

import java.util.Scanner;
public class Main{
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
int H,W;

for(;;){
H = scan.nextInt();
W = scan.nextInt();
if(H = 0 && W = 0)break;
else {
  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:10: error: bad operand types for binary operator '&&'
if(H = 0 && W = 0)break;
         ^
  first type:  int
  second type: int
Main.java:10: error: incompatible types: int cannot be converted to boolean
if(H = 0 && W = 0)break;
     ^
2 errors
Language: Java

import java.io.*;
import java.util.*;
public class Main {
    public static void main(String[] args){
      Scanner scan = new Scanner(System.in);
        int i,v;
        for(;;){
            int h = scan.nextInt();
            int w = scan.nextInt();
            if(h == 0 && w == 0)
                break;
            for(i = 1; i <= h; ++i){
              for(v = 1; v <= w; ++v){
                  System.out.print("#");
                }
                  System.out.println("");
                }
                System.out.println("");
              }
  }
}???? 

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 Scanenr(System.in);
		int h,w,i,j;
		h = sc.nextInt();
		w = sc.nextInt();
		while(h != 0 && w != 0){
			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:10: error: ';' expected
			for(int i = 0; i < h, i++){
			                    ^
1 error
Language: Java

import java.util.Scanner;

public class Main{
	public static void main(String [] args){
		Scanner sc = new Scanenr(System.in);
		int h,w,i,j;
		h = sc.nextInt();
		w = sc.nextInt();
		while(h != 0 && w != 0){
			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:5: error: cannot find symbol
		Scanner sc = new Scanenr(System.in);
		                 ^
  symbol:   class Scanenr
  location: class Main
Main.java:10: error: variable i is already defined in method main(String[])
			for(int i = 0; i < h; i++){
			        ^
Main.java:11: error: variable j is already defined in method main(String[])
				for(int j = 0; j < w; j++){
				        ^
3 errors
Language: Java

public class Main {

    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(
            new InputStreamReader(System.in));
        List<StringBuilder> list = new ArrayList<StringBuilder>();
        StringBuilder strb = new StringBuilder();
        String[] data;
        int h = 0;
        int w = 0;
        while (true) {
            data = br.readLine().split(" ");
            h = Integer.parseInt(data[0]);
            w = Integer.parseInt(data[1]);
            if (h == 0 && w == 0) {
                break;
            }
            for (int i = 0; i < h; i++) {
                for (int j = 0; j < w; j++) {
                    strb.append("#");
                }
                strb.append("\n");
            }
            list.add(strb);
        }
        for (StringBuilder sb : list) {
            System.out.print(sb);
        }
    }
}

Compiler output:
Main.java:3: error: cannot find symbol
    public static void main(String[] args) throws IOException {
                                                  ^
  symbol:   class IOException
  location: class Main
Main.java:4: error: cannot find symbol
        BufferedReader br = new BufferedReader(
        ^
  symbol:   class BufferedReader
  location: class Main
Main.java:4: error: cannot find symbol
        BufferedReader br = new BufferedReader(
                                ^
  symbol:   class BufferedReader
  location: class Main
Main.java:5: error: cannot find symbol
            new InputStreamReader(System.in));
                ^
  symbol:   class InputStreamReader
  location: class Main
Main.java:6: error: cannot find symbol
        List<StringBuilder> list = new ArrayList<StringBuilder>();
        ^
  symbol:   class List
  location: class Main
Main.java:6: error: cannot find symbol
        List<StringBuilder> list = new ArrayList<StringBuilder>();
                                       ^
  symbol:   class ArrayList
  location: class Main
6 errors
Language: Java


import java.awt.*;
import java.util.*;
import java.util.List;

/**
 * q
 * Created by khrom on 2017/06/15.
 */
public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        List<Point> rectList = new ArrayList<>();

        int h;
        int w;
        while (true) {
            h = scanner.nextInt();
            w = scanner.nextInt();
            if (h == 0 && w == 0)
                rectList.add(new Point(w, h));
        }

        for (Point point : rectList) {
            for (int i = 0; i < point.getY(); i++) {
                for (int j = 0; j < point.getX(); j++) {
                    System.out.print("#");
                }
                System.out.print("\n");
            }
            System.out.print("\n");
        }
    }
}

Compiler output:
Main.java:24: error: unreachable statement
        for (Point point : rectList) {
        ^
1 error