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

#include <stdio.h>

int main(void){

	int i,j,H,W;
	H = 1;
	W = 1;

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

Compiler output:
Main.java:1: error: illegal character: '#'
#include <stdio.h>
^
Main.java:1: error: class, interface, enum, or record expected
#include <stdio.h>
         ^
Main.java:6: error: class, interface, enum, or record expected
	H = 1;
	^
Main.java:7: error: class, interface, enum, or record expected
	W = 1;
	^
Main.java:9: error: class, interface, enum, or record expected
	while(H!=0 || W!=0){
	^
Main.java:11: error: class, interface, enum, or record expected
		for(i=0;i<H;i++){
		^
Main.java:11: error: class, interface, enum, or record expected
		for(i=0;i<H;i++){
		        ^
Main.java:11: error: class, interface, enum, or record expected
		for(i=0;i<H;i++){
		            ^
Main.java:12: error: class, interface, enum, or record expected
			for(j=0;j<W;j++){
			        ^
Main.java:12: error: class, interface, enum, or record expected
			for(j=0;j<W;j++){
			            ^
Main.java:15: error: class, interface, enum, or record expected
				}
				^
Main.java:18: error: class, interface, enum, or record expected
				}
				^
12 errors
Language: Java


import java.util.Scanner;

class Main {
    public static void main(String[] args) {
        StringBuilder sb = new StringBuilder();
        Scanner scan = new Scanner(System.in);
        
        while(1) {
            int h = scan.nextInt();
            int w = scan.nextInt();
            scan.nextLine();
            if (h==0 && w ==0) break;
            for (int i=0; i<h; i++) {
                for (int j=0; i<w; j++) {
                    sb.append("#");
                }
                sb.append("\n");
            }
            sb.append("\n");
        }
        System.out.print(sb);
    }
}

Compiler output:
Main.java:9: error: incompatible types: int cannot be converted to boolean
        while(1) {
              ^
1 error
Language: Java

import java.io.BufferedReader;
import java.io.InputStreamReader;
 
public class Main {
    public static void main(String[] args) {
        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:9: error: unreported exception IOException; must be caught or declared to be thrown
            String str[] = br.readLine().split(" ");
                                      ^
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){
			//?????? H???????????????
			int H = sc.nextInt();
			//?????? W???????????????
			int W = sc.nextInt();
			//W??¨H???????????????0?????´?????????
			if(H == 0 && W == 0){
				break;
			}

			//??????????????¨???
			for(int i = 1;i <= H; i++){
				System.out.print('???');
				//??????????????¨???
				for(int j = 1; j < W; j++){
					System.out.print('???');
				}
				System.out.println();
			}
			System.out.println();
		}
	}
}

Compiler output:
Main.java:21: error: unclosed character literal
				System.out.print('???');
				                 ^
Main.java:21: error: unclosed character literal
				System.out.print('???');
				                     ^
Main.java:24: error: unclosed character literal
					System.out.print('???');
					                 ^
Main.java:24: error: unclosed character literal
					System.out.print('???');
					                     ^
4 errors
Language: Java


import java.util.Scanner;

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

		//??°?????????
		while(true){
			//?????? H???????????????
			int H = sc.nextInt();
			//?????? W???????????????
			int W = sc.nextInt();
			//W??¨H???????????????0?????´?????????
			if(H == 0 && W == 0){
				break;
			}

			//??????????????¨???
			for(int i = 1;i <= H; i++){
				System.out.print('???');
				//??????????????¨???
				for(int j = 1; j < W; j++){
					System.out.print('???');
				}
				System.out.println();
			}
			System.out.println();
		}
	}
}

Compiler output:
Main.java:22: error: unclosed character literal
				System.out.print('???');
				                 ^
Main.java:22: error: unclosed character literal
				System.out.print('???');
				                     ^
Main.java:25: error: unclosed character literal
					System.out.print('???');
					                 ^
Main.java:25: error: unclosed character literal
					System.out.print('???');
					                     ^
4 errors
Language: Java

package aoj;

import java.util.Scanner;

public class Aoj4a {

	public static void main(String[] args) {
		
		int height = 0;
		int width = 0;
		
		Scanner sc = new Scanner(System.in);
		
		for(;;){
			
			String line = sc.nextLine();
			String[] array = line.split(" ");
			
			height = Integer.parseInt(array[0]);
			width = Integer.parseInt(array[1]);
			
			if(height == 0 && width == 0){
				sc.close();
				return;
			}
			else{
				for(int rowIndex = 0; rowIndex < height; rowIndex++ ){
					for(int columnIndex = 0; columnIndex < width; columnIndex++){
						System.out.print("#");
					}
					System.out.println();
				}
				System.out.println();
			}
		}
		

	}

}

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

import java.util.Scanner;

public class Aoj4a {

	public static void main(String[] args) {
		
		int height = 0;
		int width = 0;
		
		Scanner sc = new Scanner(System.in);
		
		for(;;){
			
			String line = sc.nextLine();
			String[] array = line.split(" ");
			
			height = Integer.parseInt(array[0]);
			width = Integer.parseInt(array[1]);
			
			if(height == 0 && width == 0){
				sc.close();
				return;
			}
			else{
				for(int rowIndex = 0; rowIndex < height; rowIndex++ ){
					for(int columnIndex = 0; columnIndex < width; columnIndex++){
						System.out.print("#");
					}
					System.out.println();
				}
				System.out.println();
			}
		}
		

	}

}

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

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

public class PrintRectangle{
    public static void main(String[] args)throws IOException{
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    
    
    StringTokenizer st = new StringTokenizer(br.readLine(), " ");
    int a = Integer.parseInt(st.nextToken());
    int b = Integer.parseInt(st.nextToken());
    
        for(int x = 0; x<b; x++){
            //System.out.print("#");
            
            for(int y = 0; y<a; y++){
                System.out.print("#");
            }
            
            System.out.print("\n");
        }
    
    
    
    
    }
}

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

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

public class Maine{
    public static void main(String[] args)throws IOException{
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    
    int a = 1;
    int b = 1;
    
    
        while(!(a==0&&b==0)){
        StringTokenizer st = new StringTokenizer(br.readLine(), " ");
        a = Integer.parseInt(st.nextToken());
        b = Integer.parseInt(st.nextToken());
        
        for(int x = 0; x<b; x++){
            
            
            for(int y = 0; y<a; y++){
                System.out.print("#");
            }
            
            System.out.print("\n");
        }
        
        System.out.print("\n");
        }
        System.out.print("\n");
    }
}

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

import java.io.*;
class Main{
public static void main(String[] args)throws IOException{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
boolean i=true;
while(i){
String str=br.readLine();
String[] arr=str.split(" ");
int h=Integer.parseInt(arr[0]);
int w=Integer.parseInt(arr[1]);
if(h==0 && w==0)  i=false;
else{
for(int i=0; i<h; i++){
for(int j=0; j<w; j++){
System.out.print("#");
}
System.out.println();
}
System.out.println();
}
}
br.close();
}
}

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

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

public class Main {

	public static void main(String[] args) throws java.lang.Exception
	{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		ArrayList<Integer> h = new ArrayList<Integer>();
		ArrayList<Integer> w = new ArrayList<Integer>();
		ArrayList<String> strArray = new ArrayList<String>();
		String data;
		int count = 0;
		while(true) {
			strArray.add(br.readLine());
			data = strArray.get(strArray.size() - 1);
			if(data.equals("0 0")) {
				break;
			}
			count++;
		}
		
		for(int i = 0; i < strArray.size(); i++) {
			String s = strArray.get(i);
			String [] ary = s.split(" ", 0);
			h.add(Integer.parseInt(ary[0]));
			w.add(Integer.parseInt(ary[1]));
		}
		
		for(int k = 0; k < count; k++) {
			for(int i = 0; i < h.get(k); i++) {
				for(int j = 0; j < w.get(k); j++) {
					System.out.print("#");
				}
				System.out.println();
			}
			System.out.println();
			System.out.println();
		}
	}

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

import java.io.*;

public class Main {
	public static void main(String[] args)throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		
		int flag = 0;
		
		while(flag == 0){
			String inputData = br.readLine();
			String[] inputValue = inputData.split(" ");
			int[] outputData = new int[2];
			
			outputData[0] = Integer.parseInt(inputValue[0]);
			outputData[1] = Integer.parseInt(inputValue[1]);
			if(outputData[0] != 0 && outputData[1] != 0){
				for(int i = 0; i < outputData[0] ; i++){
					for(int j = 0; j < outputData[1] ; j ++){
						if(j != outputData[1] -1 ){
						System.out.print("#");
						}else{
							System.out.println("#");
							break;
						}
					}
				}
			}else{
				flag ++;
			}
			
			System.out.println();
		}
		
		
	}

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

public class Main {
	public static void main(String[] args)throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		
		int flag = 0;
		
		while(flag == 0){
			String inputData = br.readLine();
			String[] inputValue = inputData.split(" ");
			int[] outputData = new int[2];
			
			outputData[0] = Integer.parseInt(inputValue[0]);
			outputData[1] = Integer.parseInt(inputValue[1]);
			if(outputData[0] != 0 && outputData[1] != 0){
				for(int i = 0; i < outputData[0] ; i++){
					for(int j = 0; j < outputData[1] ; j ++){
						if(j != outputData[1] -1 ){
						System.out.print("#");
						}
						System.out.println("");
					}
				}
			}else{
				flag ++;
			}
		}
		
		
	}

}

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

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

public class Main {

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

		while(flag == 0){
			String inputData = br.readLine();
			String[] InputValue = inputData.split(" ");

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

			if(h == 0 && w == 0){
				flag = flag + 1;
			}else{
				for(int i = 0; i < h; i ++){
					for(int j = 0; j < w; j++){
						sb.append("#");
					}
					sb.append("\n");
				}
			}
			sb.append("\n");
			System.out.println(sb);
			sb .setLength(0);
		}
	}

}

Compiler output:
Main.java:11: error: break outside switch or loop
                break;
                ^
1 error
Language: Java

import java.util.Scanner;
import java.util.Arrays;

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

			for(int i = 0; i < h; i++){
				for(int j = 0; j < w; j++){
					System.out.println("#")
				}
				System.getProperty("line.separator");
			}
			System.getProperty("line.separator");
		}
	}
}

Compiler output:
Main.java:18: error: ';' expected
					System.out.println("#")
					                       ^
1 error
Language: Java

import java.util.Scanner;
import java.util.Arrays;

class Main{
	public static void main(String[] args){
		Scanner scanner = new Scanner(System.in);
		
		while(true){
			int h = scanner.nextInt();
			int w = scanner.nextInt();
			StringBuilder sb = new StringBuilder();

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

Compiler output:
Main.java:25: error: cannot find symbol
		System.out.println(sb);
		                   ^
  symbol:   variable sb
  location: class Main
1 error
Language: Java

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;
  
public class PrintRectangle {
    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 PrintRectangle is public, should be declared in a file named PrintRectangle.java
public class PrintRectangle {
       ^
1 error
Language: Java

import java.util.*;

public class ITP1_5_A {
	public static void main(String args[]){
		Scanner sc = new Scanner(System.in);
	
		boolean flag = true;
		while(flag){
			String[] input=sc.nextLine().split(" ");
			int[] num= new int[input.length];
			for(int i=0;i<input.length;i++){
				num[i]=Integer.parseInt(input[i]);
			}
			if(num[0]==0 && num[1]==0){
				break;
			}
			for(int H=0;H<num[1];H++){
				for(int W=0;W<num[0];W++){
					System.out.print("#");
				}
				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) {
		Scanner scan = new Scanner(System.in);
		int H = 5;
		int W = 5;
		while(!(H == 0 && W == 0)) {
			H = scan.nextInt();
			W = scan.nextInt();
			for (int i = 0; i < H; i++) {
				for(int j = 0; j < W; j++) {
					System.out.print("#");
				} System.out.println("");
			}
			System.out.println("");
}
}
System.out.println("");
}


Compiler output:
Main.java:19: error: <identifier> expected
System.out.println("");
                  ^
Main.java:19: error: illegal start of type
System.out.println("");
                   ^
2 errors
Language: Java


import java.util.*;

public class aojT {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner cin=new Scanner(System.in);
		
		while(true) {
			int H=cin.nextInt(),W=cin.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: class aojT is public, should be declared in a file named aojT.java
public class aojT {
       ^
1 error
Language: Java

import java.util.Scanner;

public class Main {

    public static void main(String[] args) {

    	int H = 0;
    	int W = 0;

    	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.print( '#' );
    			}
    			System.out.print( "\n" );
    		}
    		System.out.print( "\n" );
    	}
		System.out.print( "\n" );
    	sc.close();
    }


Compiler output:
Main.java:30: 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  H = sc.nextInt();
	            int  W = sc.nextInt();
	            While(true){
	            if(W==0 && H==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:7: error: ';' expected
	            While(true){
	                       ^
1 error
Language: Java

import java.util.Scanner;

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



Compiler output:
Main.java:6: error: illegal character: '\uff1b'
		int H, W? 
		        ^
1 error
Language: Java

import java.util.Scanner;

public class aizu17 {
	public static void main(String [] args) {
		Scanner stdIn = new Scanner(System.in);
		int H, W; 
		
		do {
			do {
				H = stdIn.nextInt();
				W = stdIn.nextInt();
				if(H == 0 && W == 0)break;
			}while(H < 1 || H > 300 || W < 1 || W > 300);
			
			for(int i = 0; i < H; i++) {
				for(int j = 0; j < W; j++) {
					System.out.print("#");
				}
				System.out.println();
			}	
			System.out.println();
		}while(H != 0 && W != 0);			
	}
}



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

import java.util.Scanner;

Class Main {

public static void main(String[] args) {

Scanner inp = new Scanner(System.in);

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

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

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


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

public class Main {
	public static Scanner sc;
	
	public static void main(String[] args) {
		//System.out.println("Please input H and W below");
		//宣言
		sc = new Scanner(System.in);
		int H[]= new int[300];
		int W[]= new int[300];
		int i=1;
		//入力
		for(;;) {
			H[i]=sc.nextInt();
			W[i]=sc.nextInt();
			if(H[i]==0 && W[i]==0) {
				break;
			}
			i++;
		}
		i=1;
		/*System.out.printf("H[%d]=%d,W[%d]=%d\n", i,H[i],i,W[i]);*/
		//出力
		for(;;){
			if(H[i]==0 && W[i]==0) {
				break;
			}
			//長方形
			int j,k;
			for(j=1;j<=H[i];j++) {
				for(k=1;k<=W[i];k++) {
					System.out.print("#");
				}	
				System.out.print("\n");
			}
			System.out.print("\n");
			i++;
		}
	}
}



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

import java.util.Scanner;

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

		int width, height;
		int w, h;

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

		while(height != 0 || width != 0){
			for(h = 0;h < height;h++){
				for(w = 0;w < width;w++){
					System.out.print("#");
				}
				System.out.println();
			}
			System.out.println();
			height = sc.nextInt();
			width = sc.nextInt();
		}
		System.out.println();

	}
}


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


Compiler output:
Main.java:14: error: cannot find symbol
		for (int i = 0; i < H; i++){
		                    ^
  symbol:   variable H
  location: class Main
Main.java:15: 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;
import javax.sound.midi.SysexMessage;
  

 
public class Main{  

    
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int i = 1;
        for(;i<1000;i++){

            String str = sc.nextLine();
                 if(str!=null){
            String[] str2 = str.split(" ");
            int x = Integer.parseInt(str2[0]);           
                 int y = Integer.parseInt(str2[1]);

            if(x == 0 || y==0){
                        break;
            }
         

                for(int k=0;k<y;k++){
                    System.out.print("#");
                }
                System.out.print("\n");
            }
            System.out.print("\n");
        }
        
    
        }
        
    }
}              

    


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

import java.util.Scanner;
public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while (true) {
            int H = sc.nextInt();
            int W = sc.nextInt();
            if (H == 0 && W == 0) {
                break;
            }
            for (int i = 0; i < H; i++) {
                for (int j = 0; j < W; j++) {
                    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 practice{
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        boolean can=true;

        while(can){
            int H=sc.nextInt();
            int W=sc.nextInt();
            if((H==0)&&(W==0)) can=false;
            else {
                if(H==1){
                    for(int i=0;i<W;i++)System.out.print("#");
                    System.out.println();
                }
                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:2: 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 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("#");
                }
            System.out.printf("\n");
            }
　　　　System.out.println();
        }
    }
}


Compiler output:
Main.java:16: error: illegal character: '\u3000'
????System.out.println();
^
Main.java:16: error: illegal character: '\u3000'
????System.out.println();
 ^
Main.java:16: error: illegal character: '\u3000'
????System.out.println();
  ^
Main.java:16: error: illegal character: '\u3000'
????System.out.println();
   ^
4 errors
Language: Java

import java.util.Scanner;

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



Compiler output:
Main.java:4: error: <identifier> expected
public static void main(String)[] args){
                              ^
Main.java:4: error: ';' expected
public static void main(String)[] args){
                               ^
Main.java:6: error: ';' expected
for(int i=0; +i++){
                 ^
3 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();
        int i,j;
        if(a==o&&b==0){
            break;
        }


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


Compiler output:
Main.java:9: error: cannot find symbol
        if(a==o&&b==0){
              ^
  symbol:   variable o
  location: class Main
Main.java:10: error: break outside switch or loop
            break;
            ^
2 errors
Language: Java

import java.util.Scanner;

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



Compiler output:
Main.java:6: error: ';' expected
for(int i=0; +i++){
                 ^
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();
        int i,j;
        if(a==0&&b==0){
            break;
        }


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


Compiler output:
Main.java:10: error: break outside switch or loop
            break;
            ^
1 error
Language: Java

import java.util.Scanner;

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


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);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int i,j;
        if(a==0 && b==0){
            return;
        }


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


Compiler output:
Main.java:1: error: ';' 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 = sc.nextInt();
int W= sc.nextInt();
if (H == 0 && W == 0) {
break; }else{
for(int i = 0;i<H;i++){
for(int j = 0;j<W;j++){
System.out.println("#");
}
System.out.println("\n");
}}
} }
}


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

import java.util.Scanner;

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

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

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




Compiler output:
Main.java:15: error: illegal character: '#'
                System.out.println(#);
                                   ^
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{
for(int i = 0;i<H;i++){
for(int j = 0;j<W;j++){
System.out.println("#");
}
System.out.println("\n");
}
System.out.println("\n");}
} }
}


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

public class Main {
    public static void main(String[] args) {
        // 標準入力からデータを読み込む準備
        Scanner sc = new Scanner(System.in);
        // 最初の文字の固まりを整数値と想定して読み込む
        while (true) {
            int H = sc.nextInt();
            int W = sc.nextInt();
            if (H == 0 && W == 0) {
                break;
            }
            // 二重ループ(forの中にfor)を書いて、H x W個の # を表示しよう！

        }
    }
}


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

import java.util.*;

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();
    
            for(int i = 0;i<h;i++){
                for(int j = 0;j<w;j++){
                    System.out.printf("#");
                }
                System.out.printf("\n");
            }
            if(x==0 && y==0) break;
        }
    }
}


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

import java.util.Scanner;

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


        }
    }
}


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

import java.util.Scanner;
public class Main5{
    public static void main(String[] args){
        Scanner sc =new Scanner(System.in);
        int i,j,k,x,y;
        for(i=0;;i++){
            x=sc.nextInt();
            y=sc.nextInt();
            if((x==0)&&(y==0)){
                break;
            }
            for(j=0;j<x;j++){
                for(k=0;k<y;k++){
                    System.out.print("#");
                }
                System.out.print("\n");
            }
        }
    }
}


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

import java.util.*;

public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int h;
    int w;
    while ((h = sc.nextInt()) != 0 | (w = sc.nextInt()) != 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:15: error: ';' expected
      System.out.println("")
                            ^
1 error
Language: Java

import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int gyo = sc.nextInt();
		int retu = sc.nextInt();
		while (gyo != 0 && retu != 0){
			for(int i=0;i<gyo;i++){
				for(int k=0;k<retu;k++){
					System.out.print("#");
				}
			}
			int gyo = sc.nextInt();
			int retu = sc.nextInt();
		}
	}
}


Compiler output:
Main.java:14: error: variable gyo is already defined in method main(String[])
			int gyo = sc.nextInt();
			    ^
Main.java:15: error: variable retu is already defined in method main(String[])
			int retu = sc.nextInt();
			    ^
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.printf("#");
            }
            System.out.printf("\n");
        }
    }
}



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


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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 j = 0;j<W;j++){
                        System.out.printf("#");
                    }
                    System.out.printf("\n");
                }
                System.out.printf("\n");
            }
 
        }
    }
}


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

import java.util.Scanner;

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

        int[] a;
        a = new int[100];

        int[] b;
        b = new int[100];

        int i = 0;
        while(true){
            a[i] = sc.nextInt();
            b[i] = sc.nextInt();

            if(a[i]==0 && b[i]==0)
                break;

            i++;
        }

        i=0;
        while(true){
            for(int j = 0;j<a[i];j++){
                for(int k = 0;k<b[i];k++){
                    System.out.print("#");
                }
                System.out.println();
            }
            System.out.println();
            i++;
            if(a[i]==0 && b[i]==0)
                break;
        }
    }
}



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

import java.util.Scanner;

public class Main{

	public static void main(String[] args) {
	    Scanner sc = new Scanner(System.in);
		int x,y,i,j;
		
		if(x == 0&&y == 0){
		    return;
		}
		else{
		    for(i=0;i<y;i++){
		        for(j=0;j<x;j++){
		            System.out.print('#');
		        }
		        System.out,println();
		    }
		    System.out,println();
		}
		
		sc.close();
	}

}


Compiler output:
Main.java:17: error: not a statement
		        System.out,println();
		              ^
Main.java:17: error: ';' expected
		        System.out,println();
		                  ^
Main.java:19: error: not a statement
		    System.out,println();
		          ^
Main.java:19: error: ';' expected
		    System.out,println();
		              ^
4 errors
Language: Java

import java.util.Scanner;

public class Main{

	public static void main(String[] args) {
	    Scanner sc = new Scanner(System.in);
		int x,y,i,j;
		
		if(x == 0&&y == 0){
		    return;
		}
		else{
		    for(i=0;i<y;i++){
		        for(j=0;j<x;j++){
		            System.out.print('#');
		        }
		        System.out.println();
		    }
		    System.out.println();
		}
		
		sc.close();
	}

}


Compiler output:
Main.java:9: error: variable x might not have been initialized
		if(x == 0&&y == 0){
		   ^
Main.java:9: error: variable y might not have been initialized
		if(x == 0&&y == 0){
		           ^
Main.java:13: error: variable y might not have been initialized
		    for(i=0;i<y;i++){
		              ^
3 errors
Language: Java

import java.util.Scanner;

public class Main{

	public static void main(String[] args) {
	    Scanner sc = new Scanner(System.in);
		int x,y,i,j;
		
		if(x == 0 && y == 0){
		    return;
		}
		else{
		    for(i=0;i<y;i++){
		        for(j=0;j<x;j++){
		            System.out.print('#');
		        }
		        System.out.println();
		    }
		    System.out.println();
		}
		
		sc.close();
	}

}


Compiler output:
Main.java:9: error: variable x might not have been initialized
		if(x == 0 && y == 0){
		   ^
Main.java:9: error: variable y might not have been initialized
		if(x == 0 && y == 0){
		             ^
Main.java:13: error: variable y might not have been initialized
		    for(i=0;i<y;i++){
		              ^
3 errors
Language: Java

import java.util.Scanner;

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


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

import java.util.Scanner;

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


Compiler output:
Main.java:11: error: package system does not exist
            system.out.println("");
                  ^
Main.java:17: error: cannot find symbol
        Scanner sc = new scnner(System.in);
                         ^
  symbol:   class scnner
  location: class Main
Main.java:21: error: cannot find symbol
            if(H==0&&W==0)break;
                     ^
  symbol:   variable W
  location: class Main
Main.java:22: error: cannot find symbol
            else PRINT(H,W);
                         ^
  symbol:   variable W
  location: class Main
4 errors
Language: Java

import java.util.Scanner;

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


Compiler output:
Main.java:11: error: package system does not exist
            system.out.println("");
                  ^
Main.java:17: error: cannot find symbol
        Scanner sc = new Scnner(System.in);
                         ^
  symbol:   class Scnner
  location: class Main
Main.java:21: error: cannot find symbol
            if(H==0&&W==0)break;
                     ^
  symbol:   variable W
  location: class Main
Main.java:22: error: cannot find symbol
            else PRINT(H,W);
                         ^
  symbol:   variable W
  location: class Main
4 errors
Language: Java

import java.util.Scanner;

public class Main{
    
    
    static void PRINT(int x,int y){
        for(int i=0;i<x;i++){
            for(int j=0;j<y;j++){
                System.out.print("#");
            }
            System.out.println("");
        }
    }
    
    
    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 PRINT(H,W);
        }
        sc.close();
    }
    
}


Compiler output:
Main.java:21: error: cannot find symbol
            if(H==0&&W==0)break;
                     ^
  symbol:   variable W
  location: class Main
Main.java:22: error: cannot find symbol
            else PRINT(H,W);
                         ^
  symbol:   variable W
  location: class Main
2 errors
Language: Java

import java.util.Scanner;

public class Main{
    
    
    static void PRINT(int x,int y){
        for(int i=0;i<x;i++){
            for(int j=0;j<y;j++){
                System.out.print("#");
            }
            System.out.println("");
        }
    }
    
    
    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 {PRINT(H,W);}
        }
        sc.close();
    }
    
}


Compiler output:
Main.java:21: error: cannot find symbol
            if(H==0&&W==0){break;}
                     ^
  symbol:   variable W
  location: class Main
Main.java:22: error: cannot find symbol
            else {PRINT(H,W);}
                          ^
  symbol:   variable W
  location: class Main
2 errors
Language: Java

import java.util.*;
class Test {
    public static void main (String[] args) {
        Scanner sc = new Scanner(System.in);
        while(1) {
            int 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.println();
            }
            System.out.println();
        }
    }
}


Compiler output:
Main.java:5: error: incompatible types: int cannot be converted to boolean
        while(1) {
              ^
1 error
Language: Java

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


Compiler output:
Main.java:5: error: illegal start of expression
        while()true {
              ^
Main.java:5: error: not a statement
        while()true {
               ^
Main.java:5: error: ';' expected
        while()true {
                   ^
3 errors
Language: Java

import java.util.Scanner;

public class ITP1_5_A {
  private static int x, y;
  public static void main(String[] args) {
    Scanner stdIn = new Scanner(System.in);
    while (true) {
      y = stdIn.nextInt();
      x = stdIn.nextInt();
      if (x == 0 && y == 0) {
        break;
      }
      for (int i = 0;i < y; i++) {
        for (int j =0;j < x; j++) {
          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;
class Main{
 public static void main(String aegs[]){
  int w,h,i,j;
  Scanner sc - new Scanner(System,in);
  while(true){
   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.print("#")
   System.out.println();}    


Compiler output:
Main.java:5: error: ';' expected
  Scanner sc - new Scanner(System,in);
            ^
Main.java:13: error: ';' expected
     System.out.print("#")
                          ^
Main.java:14: error: reached end of file while parsing
   System.out.println();}    
                         ^
3 errors
Language: Java

import java.util.Scanner;
class Main{
 public static void main(String aegs[]){
  int w,h,i,j;
  Scanner sc = new Scanner(System,in);
  while(true){
   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.print("#");
   System.out.println();}


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