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

#include <stdio.h>

int main(void){
  int a;
  int max = 0;
  int min = 0;
  int sum = 0;
  scanf("%d", &a);
  scanf("%d", &str);
  max=min=str;
  for(int i=0; i<a; i++){
    scanf(" %d", &str);
    if(max<str){
      max=str;
    }
    if(min>str){
      min=str;
    }
    sum=sum+str;
  }
  printf("%d %d %d\n", min, max, sum);
}




Compiler output:
a.cc: In function 'int main()':
a.cc:9:16: error: 'str' was not declared in this scope; did you mean 'std'?
    9 |   scanf("%d", &str);
      |                ^~~
      |                std
Language: C++

#include <stdio.h><font></font>
<font></font>
int main(void){<font></font>
  long int a = 0;<font></font>
  long int x = 0;<font></font>
  long int max = 0;<font></font>
  long int min = 0;<font></font>
  long int sum = 0;<font></font>
  scanf("%ld", &a);<font></font>
  scanf("%ld", &x);<font></font>
  max=min=x;<font></font>
  for(int i=0; i<a-1; i++){<font></font>
    scanf("%ld", &x);<font></font>
    if(max<x){<font></font>
      max=x;<font></font>
    }<font></font>
    if(min>x){<font></font>
      min=x;<font></font>
    }<font></font>
    sum=sum+x;<font></font>
  }<font></font>
  printf("%ld %ld %ld\n", min, max, sum);<font></font>
}<font></font>


Compiler output:
a.cc:1:19: warning: extra tokens at end of #include directive
    1 | #include <stdio.h><font></font>
      |                   ^~~~~~
a.cc:2:1: error: expected unqualified-id before '<' token
    2 | <font></font>
      | ^
a.cc:23:2: error: expected unqualified-id before '<' token
   23 | }<font></font>
      |  ^
Language: C++

#include <cstdio>
#include <algorithm>
#include <cstdlib>

int main(void){
  int a, x, max, min, i, sum;
  sum = 0;
  scanf("%d", &a);
  scanf("%d", &x);
  max=min=x;
  sum = x;
  for(i=0; i<a-1; i++){
    scanf("%d", &x);
    if(max<x) max=x;
    if(min>x) min=x;
    sum+=x;
  }
  printf("%d %d %d\n", min, max, sum);
  return 0;
}
　



Compiler output:
a.cc:21:1: error: extended character 　 is not valid in an identifier
   21 | 　
      | ^
a.cc:21:1: error: '\U00003000' does not name a type
   21 | 　
      | ^~
Language: C++

#include<iostream>
#include<stdio.h>
using namespace std;

int main(){
int a,b=10000000,c=10000000;
long long sum=0;
cin>>n;
int i,d;
for(i=0;i<n;i++){
cin>>d;
b=min(b,d);
c=MAX(c,d);
sum+=d;
}
cout<<b<<" "<<c<<" "<<sum<<endl;
return=0;
}






Compiler output:
a.cc: In function 'int main()':
a.cc:8:6: error: 'n' was not declared in this scope
    8 | cin>>n;
      |      ^
a.cc:13:3: error: 'MAX' was not declared in this scope
   13 | c=MAX(c,d);
      |   ^~~
a.cc:17:7: error: expected primary-expression before '=' token
   17 | return=0;
      |       ^
Language: C++

#include<iostream>
#include<stdio.h>
using namespace std;

int main(){
int a,mi=10000000,ma=10000000;
long long sum=0;
cin>>n;
int i,b;
for(i=0;i<n;i++){
cin>>b;
ma=min(mi,b);
mi=MAX(ma,b);
sum+=d;
}
cout<<b<<" "<<c<<" "<<sum<<endl;
return=0;
}






Compiler output:
a.cc: In function 'int main()':
a.cc:8:6: error: 'n' was not declared in this scope
    8 | cin>>n;
      |      ^
a.cc:13:4: error: 'MAX' was not declared in this scope
   13 | mi=MAX(ma,b);
      |    ^~~
a.cc:14:6: error: 'd' was not declared in this scope
   14 | sum+=d;
      |      ^
a.cc:16:15: error: 'c' was not declared in this scope
   16 | cout<<b<<" "<<c<<" "<<sum<<endl;
      |               ^
a.cc:17:7: error: expected primary-expression before '=' token
   17 | return=0;
      |       ^
Language: C++




import java.util.Scanner;

public class Main {
  public static void main(String... args) {

    Scanner scan = new Scanner(System.in) ;

    int n = scan.nextInt() ;

    int[] arr = new int[n];

    scan = new Scanner(System.in) ;

    for (int i=0; i<n; i++) arr[i] = scan.nextInt() ;

    int max = Integer.MIN_VALUE ;
    int min = Integer.MAX_VALUE ;
    int sum = 0 ;

    for (int i: arr) {

      if(i > max) max = i ;
      if(i < min) min = i ;
      sum += i ;
    }

    System.out.println(min + " " + max + " " + sum ) ;

  }
}


Compiler output:
a.cc:4:1: error: 'import' does not name a type
    4 | import java.util.Scanner;
      | ^~~~~~
a.cc:4:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:6:1: error: expected unqualified-id before 'public'
    6 | public class Main {
      | ^~~~~~
Language: C++




import java.util.Scanner;

public class Main {
  public static void main(String... args) {

    Scanner scan = new Scanner(System.in) ;

    int n = scan.nextInt() ;

    int[] arr = new int[n];

    scan = new Scanner(System.in) ;

    for (int i=0; i<n; i++) arr[i] = scan.nextInt() ;

    int max = Integer.MIN_VALUE ;
    int min = Integer.MAX_VALUE ;
    int sum = 0 ;

    for (int i: arr) {

      if(i > max) max = i ;
      if(i < min) min = i ;
      sum += i ;
    }

    System.out.println(min + " " + max + " " + sum ) ;

  }
}



Compiler output:
a.cc:4:1: error: 'import' does not name a type
    4 | import java.util.Scanner;
      | ^~~~~~
a.cc:4:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:6:1: error: expected unqualified-id before 'public'
    6 | public class Main {
      | ^~~~~~
Language: C++

#include <stdio.h> #include <algorithm>
 using namespace std;
 int main(){ int n,max_num = -1000001,min_num = 1000001,tmp;
 long long int sum = 0;
 scanf("%d",&n);
 for(int i = 0; i < n; i++){ scanf("%d",&tmp);
 sum += tmp;
 max_num = max(max_num,tmp);
 min_num = min(min_num,tmp);
 }
 printf("%d %d %lld\n",min_num,max_num,sum); } 



 



Compiler output:
a.cc:1:20: warning: extra tokens at end of #include directive
    1 | #include <stdio.h> #include <algorithm>
      |                    ^
a.cc: In function 'int main()':
a.cc:8:12: error: 'max' was not declared in this scope
    8 |  max_num = max(max_num,tmp);
      |            ^~~
a.cc:9:12: error: 'min' was not declared in this scope; did you mean 'main'?
    9 |  min_num = min(min_num,tmp);
      |            ^~~
      |            main
Language: C++

#include <stdio.h> #include <algorithm>
 using namespace std;
 int main(){ int n,max_num = -1000001,min_num = 1000001,tmp;
 long long int sum = 0;
 scanf("%d",&n);
 for(int i = 0; i < n; i++)
{ scanf("%d",&tmp);
 sum += tmp;
 max_num = max(max_num,tmp);
 min_num = min(min_num,tmp);
 }
 printf("%d %d %lld\n",min_num,max_num,sum); } 



 



Compiler output:
a.cc:1:20: warning: extra tokens at end of #include directive
    1 | #include <stdio.h> #include <algorithm>
      |                    ^
a.cc: In function 'int main()':
a.cc:9:12: error: 'max' was not declared in this scope
    9 |  max_num = max(max_num,tmp);
      |            ^~~
a.cc:10:12: error: 'min' was not declared in this scope; did you mean 'main'?
   10 |  min_num = min(min_num,tmp);
      |            ^~~
      |            main
Language: C++

#include<iostream>
#include<vector>
using namespace std;
int main() {
	int n;
	cin >> n;
	vector<int> v(n);
	int min = INT_MAX;
	int max = INT_MIN;
	int sum = 0;
	for (int i = 0; i < n; i++) {
		cin >> v[i];
		sum += v[i];
		if (max < v[i])
			max = v[i];
		if (min > v[i])
			min = v[i];
	}
	cout << min << " " << max << " " << max << endl;



	//cin >> n;

	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:19: error: 'INT_MAX' was not declared in this scope
    8 |         int min = INT_MAX;
      |                   ^~~~~~~
a.cc:3:1: note: 'INT_MAX' is defined in header '<climits>'; this is probably fixable by adding '#include <climits>'
    2 | #include<vector>
  +++ |+#include <climits>
    3 | using namespace std;
a.cc:9:19: error: 'INT_MIN' was not declared in this scope
    9 |         int max = INT_MIN;
      |                   ^~~~~~~
a.cc:9:19: note: 'INT_MIN' is defined in header '<climits>'; this is probably fixable by adding '#include <climits>'
Language: C++

#include 

int main(){
  int n,max,min;
  long long sum =0;
  int a[10001];
  cin >> n;

  for (int i=1; i <= n; i++){
    cin >> a[i];
    if (i== 1)
      {
	max = a[i];
	min = a[i];
      }
    else{
      if (a[i] > max){
	max =a[i];
      }
      if (a[i] <min){
	min= a[i];
      }
    }
    sum += a[i];
  }
  cout <<min<< ``<<max<< `` <<sum <<endl;






  return 0;
}



Compiler output:
a.cc:1:10: error: #include expects "FILENAME" or <FILENAME>
    1 | #include
      |          ^
a.cc:26:16: error: stray '`' in program
   26 |   cout <<min<< ``<<max<< `` <<sum <<endl;
      |                ^
a.cc:26:17: error: stray '`' in program
   26 |   cout <<min<< ``<<max<< `` <<sum <<endl;
      |                 ^
a.cc:26:26: error: stray '`' in program
   26 |   cout <<min<< ``<<max<< `` <<sum <<endl;
      |                          ^
a.cc:26:27: error: stray '`' in program
   26 |   cout <<min<< ``<<max<< `` <<sum <<endl;
      |                           ^
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope; did you mean 'min'?
    7 |   cin >> n;
      |   ^~~
      |   min
a.cc:26:3: error: 'cout' was not declared in this scope
   26 |   cout <<min<< ``<<max<< `` <<sum <<endl;
      |   ^~~~
a.cc:26:18: error: expected primary-expression before '<<' token
   26 |   cout <<min<< ``<<max<< `` <<sum <<endl;
      |                  ^~
a.cc:26:29: error: expected primary-expression before '<<' token
   26 |   cout <<min<< ``<<max<< `` <<sum <<endl;
      |                             ^~
a.cc:26:37: error: 'endl' was not declared in this scope
   26 |   cout <<min<< ``<<max<< `` <<sum <<endl;
      |                                     ^~~~
Language: C++

#include <iostream>
#include <string>
using namespace std;


int main(void){

int a[10000];
int ans,min,max;
int n;

max = 0
min = 10000;
cin >> n;

for(int i =0; i < n; i++){
    cin >> a[i];
    ans = a[i] + ans;
    
   if(a[i] < min){
       min = a[i];
   }
   if(a[i] > max){
       max = a[i];
   }
   
}

 cout << min << " " << max  << " " << ans <<  " "<< endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:8: error: expected ';' before 'min'
   12 | max = 0
      |        ^
      |        ;
   13 | min = 10000;
      | ~~~
Language: C++

#include<iostream>
using namespace std;

int main(){
	int Min = 1000000, Max = -1000000, sum = 0, n , i = 0, x;

	cin >> n;

	while(i < n){

		cin >> x;
		if(Min > a) Min = x;
		if(Max < a) Max = x;
		sum += x;
		i++
	}


}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:26: error: 'a' was not declared in this scope
   12 |                 if(Min > a) Min = x;
      |                          ^
a.cc:13:26: error: 'a' was not declared in this scope
   13 |                 if(Max < a) Max = x;
      |                          ^
a.cc:15:20: error: expected ';' before '}' token
   15 |                 i++
      |                    ^
      |                    ;
   16 |         }
      |         ~
Language: C++

#include<iostream>
using namespace std;

int main(){
	int Min = 1000000, Max = -1000000, sum = 0, n , i = 0, x;

	cin >> n;

	while(i < n){

		cin >> x;
		if(Min > x) Min = x;
		if(Max < x) Max = x;
		sum += x;
		i++
	}


}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:20: error: expected ';' before '}' token
   15 |                 i++
      |                    ^
      |                    ;
   16 |         }
      |         ~
Language: C++

#include <iostream>
#include <vector>
using namespace std;
    
int main(){
 int n;
 cin >> n;
 vector<int> a(10010);
 for(int i=0;i<n;i++){
  cin >> a.at(i);
 }
 for(int j=0;j<n;j++){
  cout << min(x.at(j),y.at(j)) << " " << max(x.at(j),y.at(j)) << endl;
 }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:15: error: 'x' was not declared in this scope
   13 |   cout << min(x.at(j),y.at(j)) << " " << max(x.at(j),y.at(j)) << endl;
      |               ^
a.cc:13:23: error: 'y' was not declared in this scope
   13 |   cout << min(x.at(j),y.at(j)) << " " << max(x.at(j),y.at(j)) << endl;
      |                       ^
Language: C++

#include<iosrtream>
using namespace std;

int main() {
	static int sum = 0, max = -1000000, min = 1000000, a[1000000],n, i, j, k, l;
	cin >> n;
	for (i = 1; i <= n; i++) {
		cin >> a[i];
	}
	for (j = 1; j <= n; j++) {
		sum += a[j];
	}
	for (k = 1; k <= n; k++) {
		if (max < a[k]) {
			max = a[k];
		}
	}

	for (l = 1; l <= n; l++) {
		if (min > a[l]) {
			min = a[l];
		}
	}
	cout << min << " " << max << " " << sum << endl;

}


Compiler output:
a.cc:1:9: fatal error: iosrtream: No such file or directory
    1 | #include<iosrtream>
      |         ^~~~~~~~~~~
compilation terminated.
Language: C++

#include <iostream>
#include <algorithm>
#include <cassert>
using namespace std;

const int MAX = 1000000;

int main(){
  int n, x, sum = 0, maxi = -MAX, mini = MAX;
  cin >> n;
  assert(n <= 10000);
  for(int i=0;i<n;i++){
    cin >> x;
    maxi = max(maxi, x);
    mini = min(mini, x);
    assert((long long)sum + (long long)x < INT_MAX);
    sum += x;
  }
  cout << mini << ' ' << maxi << ' ' << sum << endl;
}

Compiler output:
In file included from /usr/include/c++/14/cassert:44,
                 from a.cc:3:
a.cc: In function 'int main()':
a.cc:16:44: error: 'INT_MAX' was not declared in this scope
   16 |     assert((long long)sum + (long long)x < INT_MAX);
      |                                            ^~~~~~~
a.cc:4:1: note: 'INT_MAX' is defined in header '<climits>'; this is probably fixable by adding '#include <climits>'
    3 | #include <cassert>
  +++ |+#include <climits>
    4 | using namespace std;
Language: C++

#include <cstdio>

int a[15000];

int main()
{
	int N, min = 99999999, max = -99999999
	long long int sum = 0;

	scanf(" %d", &N);

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

	for (int i = 0; i < N; ++i)
	{
		sum += a[i];
		if (max < a[i]) {
			max = a[i];
		}
		if (min > a[i]) {
			min = a[i];
		}
	}

	printf("%d %d %lld\n", min, max, sum);

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: expected ',' or ';' before 'long'
    8 |         long long int sum = 0;
      |         ^~~~
a.cc:19:17: error: 'sum' was not declared in this scope
   19 |                 sum += a[i];
      |                 ^~~
a.cc:28:42: error: 'sum' was not declared in this scope
   28 |         printf("%d %d %lld\n", min, max, sum);
      |                                          ^~~
Language: Java

import java.util.Scanner;
public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		while (true) {
			int x = sc.nextInt();
			int y = sc.nextInt();
			if (x == 0 && y == 0)
				break;
			else
				opi(x, y);
			System.out.println();
		}
		sc.close();
	}

	static void opi(int x, int y) {
		for (int i = 0; i < x; i++) {
			for (int j = 0; j < y; j++) {
				System.out.print("#");
			}
			System.out.println();
		}
	}



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

import java.util.Scanner;
public class Print_a_Rectangle {
	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		int H;
		int W;
		do {
		H=sc.nextInt();
		W=sc.nextInt();
		for(int a=0;a<H;a++) {
			for(int b=0;b<W;b++) {
				System.out.print("#");
			}
			System.out.println("");
		}
		}while(!(H==0||W==0));
	}
}



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

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




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

import java.util.Scanner;
public class a5 {

	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.print("#");
				
			}
			System.out.println("");
		 }
		System.out.println(" ");
		}
	
	
	}
	
	
	
}


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

import java.util.Scanner;

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(x = 0; x < H; x++){
        for(y = 0; y < W; y++){
          System.out.print("#");
        }
        System.ont.println("");
      }
      System.out.println("");
    }
  }
}



Compiler output:
Main.java:12: error: cannot find symbol
      for(x = 0; x < H; x++){
          ^
  symbol:   variable x
  location: class Main
Main.java:12: error: cannot find symbol
      for(x = 0; x < H; x++){
                 ^
  symbol:   variable x
  location: class Main
Main.java:12: error: cannot find symbol
      for(x = 0; x < H; x++){
                        ^
  symbol:   variable x
  location: class Main
Main.java:13: error: cannot find symbol
        for(y = 0; y < W; y++){
            ^
  symbol:   variable y
  location: class Main
Main.java:13: error: cannot find symbol
        for(y = 0; y < W; y++){
                   ^
  symbol:   variable y
  location: class Main
Main.java:13: error: cannot find symbol
        for(y = 0; y < W; y++){
                          ^
  symbol:   variable y
  location: class Main
Main.java:16: error: cannot find symbol
        System.ont.println("");
              ^
  symbol:   variable ont
  location: class System
7 errors
Language: Java

import java.util.Scanner;
 
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 x = 0; x < H; x++){
        for(int y = 0; y < W; y++){
          System.out.print("#");
        }
        System.ont.println("");
      }
      System.out.println("");
    }
  }
}


Compiler output:
Main.java:16: error: cannot find symbol
        System.ont.println("");
              ^
  symbol:   variable ont
  location: class System
1 error
Language: Java

import java.util.Scanner;
  
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 x = 0; x < H; x++){
        for(int y = 0; y < W; y++){
          System.out.print("#");
        }
      System.ont.println("");
      }
    System.out.println("");
    }
  }
}


Compiler output:
Main.java:16: error: cannot find symbol
      System.ont.println("");
            ^
  symbol:   variable ont
  location: class System
1 error
Language: Java

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


Compiler output:
Main.java:7: error: cannot find symbol
         int H = nextInt();
                 ^
  symbol:   method nextInt()
  location: class Main
Main.java:8: error: cannot find symbol
         int W = nextInt();
                 ^
  symbol:   method nextInt()
  location: class Main
2 errors
Language: Java

import java.io.*;

public class PrintRectangle{
    public static void main(String[] args) {
        int[] H;
        int[] W;
        H = new int[100000];
        W = new int[100000];
        int i, j, k, l;
        int count = 0;
    BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
    try{
        for(i=1;i<100000;i++){
        String line1 = reader.readLine();
        String line2 = reader.readLine();
        H[i] = Integer.parseInt(line1);
        W[i] = Integer.parseInt(line2);
        System.out.println();
        if (H[i]==0 && W[i]==0) break;
        count++;
        }

        for (j=1;j<=count;j++){
            for (k=1;k<=H[j];k++){
                for (l=1;l<=W[j];l++){
                    System.out.print("#");
                }
                System.out.println();
            }
            System.out.println();
        }
    } catch(IOException e){
        System.out.println(e);
    } catch(NumberFormatException e) {
        System.out.println("false");
    }
    }
}


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

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        // 標準入力からデータを読み込む準備
        Scanner sc = new Scanner(System.in);
        // 最初の文字の固まりを整数値と想定して読み込む
        while () {
            // int H = sc.nextInt();
            // int W = sc.nextInt();
            int H = 5;
            int W = 5;
            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: illegal start of expression
        while () {
               ^
1 error
Language: Java

import java.util.Scanner;

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


Compiler output:
Main.java:7: error: cannot find symbol
                     a = n.nextInt();
                     ^
  symbol:   variable a
  location: class Main
Main.java:8: error: cannot find symbol
                     b = n.nextInt();
                     ^
  symbol:   variable b
  location: class Main
Main.java:9: error: cannot find symbol
                     for(i=0;i<a;i++){
                               ^
  symbol:   variable a
  location: class Main
Main.java:10: error: cannot find symbol
                         for(j=0;j<b;j++){
                             ^
  symbol:   variable j
  location: class Main
Main.java:10: error: cannot find symbol
                         for(j=0;j<b;j++){
                                 ^
  symbol:   variable j
  location: class Main
Main.java:10: error: cannot find symbol
                         for(j=0;j<b;j++){
                                   ^
  symbol:   variable b
  location: class Main
Main.java:10: error: cannot find symbol
                         for(j=0;j<b;j++){
                                     ^
  symbol:   variable j
  location: class Main
7 errors
Language: Java

import java.util.Scanner;

public class MyClass {
	public static void main(String[] args){
        
        Scanner sc = new Scanner(System.in);
        long a,b,i,j;
		while(true){
        a = sc.nextInt();
        b = sc.nextInt();
            if(a==0||b==0)break;
		for(i=0;i<a;i++){
            for(j=0;j<b/2;j++){
            if(a!=b)System.out.print("#");
        }
      System.out.println();  
        }
        }
   }
}


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

import java.util.Scanner;

public class MyClass {
	public static void main(String[] args){
        
        Scanner sc = new Scanner(System.in);
        long a,b,i,j;
		while(true){
        a = sc.nextInt();
        b = sc.nextInt();
            if(a==0&&b==0){
                System.out.println();
                break;
            }
            if(a==0&&b==0)break;
            
		for(i=0;i<a;i++){
            for(j=0;j<b;j++){
            System.out.print("#");
        } 
         System.out.println("\n");
        }
        }
   }
}


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

import java.util.Scanner;

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


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

import java.util.Scanner;
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 == ){
                break;
            }
        
       		 for(int i=0;i<H;i++){
           		 for(int j=0;j<W/2;j++){
              		  System.out.print("#");
           		 }
           		 System.out.println();
       		 }
        }
    }
}


Compiler output:
Main.java:8: error: illegal start of expression
            if(H ==0 && W == ){
                             ^
1 error
Language: Java


import java.util.Scanner;

public class Main {
	public static void main(String[] args)
	{
		Scanner stdIn = new Scanner(System.in);
		
		while(true)
		{
			int H = stdIn.nextInt();
			int W = stdIn.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:28: 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 stdIn = new Scanner(System.in);
		
		while(true)
		{
			int H = stdIn.nextInt();
			int W = stdIn.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:27: 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 stdIn = new Scanner(System.in);
		
		while(true)
		{
			int H = stdIn.nextInt();
			int W = stdIn.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:28: error: reached end of file while parsing
}
 ^
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);
	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();
		}
        System.out.println(); 
        }
}

Compiler output:
Main.java:2: 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.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class main{

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

		while(true){
			
			String s = buf.readLine();
			String[] strlAry =s.split(" ");

			for(int i=0;i<strlAry.length;i++){
			}
			int a = Integer.parseInt(strlAry[0]);
			int b = Integer.parseInt(strlAry[1]);
			
		if(a != 0 && b != 0){
			for(int y = 1; y <= a ; y++){
				for ( int x = 1; x <= b ; x++ )	{
					System.out.print( "#" );
				}
				System.out.println();
			}
			continue;
		}
		else  if(a == 0 && b == 0){
			break;			}
		}
	}
}

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

import java.util.*;

class Main{

 static void java(int H,int W){
   for(int i = 0; i < H i++){
    for(int u = 0; u < W; u++)
    System.out.print('#');
   System.out.println();
}
}

 public static void main(String[] args){
  Scanner sc = new Scanner(System.in);
   while(sc.hasNextInt()){
 int H = sc.nextInt();
 int W = sc.nextInt();
  if(H == 0 && W == 0)break;
 java(H,W);
}
}
}

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

import java.io.*;

public class Main{
public static void main(String[] args){
try{
 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;
		}else{
			for(int i = 0; i < H; i++){
			 	for(int n = 0; n < W; n++){
				 sb.append("#");
				}
			 sb.append("\n");
			}
		}
         sb.append("?\n);
	}
	System.out.print(sb);

}catch(IOException e){
System.out.println(e);
}
}
}

Compiler output:
Main.java:24: error: unclosed string literal
         sb.append("?\n);
                   ^
1 error
Language: Java

import java.io.*;

public class Main{
public static void main(String[] args){
try{
 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;
		}else{
			for(int i = 0; i < H; i++){
			 	for(int n = 0; n < W; n++){
				 sb.append("#");
				}
			 sb.append("\n");
                }
	}
	System.out.print(sb);

}catch(IOException e){
System.out.println(e);
}
}
}

Compiler output:
Main.java:26: error: 'catch' without 'try'
}catch(IOException e){
 ^
Main.java:5: error: 'try' without 'catch', 'finally' or resource declarations
try{
^
Main.java:30: error: reached end of file while parsing
}
 ^
3 errors
Language: Java

import java.util.*;
import java.text.*;

class Main {
    public static void main(String[]args)throws Exception {
        Scanner sc = new Scanner(System.in);
        for(;;) {
            int h = sc.nextInt();
            int w = sc.nextInt();
            if(h == 0 && w == 0) break;
            String s = "";
            for(int i = 0; i < w; i++) {
                s += "#";
            }
            for(int i = 0; i < h; i++) {
                System.out.println(s);
            }
            System.out.println();
    }
}

Compiler output:
Main.java:20: 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));
		while(true){
			String line = br.readLine();
			String str = line.split(" ");
			int h = Integer.parseInt(str[0]);
			int w = Integer.parseInt(str[1]);
			if ( h == 0 && w == 0 ){ //??\????????¨??????0
				break;
			}

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

Compiler output:
Main.java:8: error: incompatible types: String[] cannot be converted to String
			String str = line.split(" ");
			                       ^
Main.java:9: error: array required, but String found
			int h = Integer.parseInt(str[0]);
			                            ^
Main.java:10: error: array required, but String found
			int w = Integer.parseInt(str[1]);
			                            ^
3 errors
Language: Java

import java.util.Scanner;
class Main{
public static void main(String[] args){
Scanner scan=new Scanner(System.in);
while(true){
int A=scan.nextInt();
int B=scan.nextint();
if(A==0&&B==0)
break;
for(int a=0;a<A;a++){
for(int b=0;b<B;b++){
System.out.print("#");
}
System.out.println();
}

}
}
}

Compiler output:
Main.java:7: error: cannot find symbol
int B=scan.nextint();
          ^
  symbol:   method nextint()
  location: variable scan of type Scanner
1 error
Language: Java

import java.util.Scanner;

class Main
{
  public static void main(String[] args)
  {
	  int l,w
	  Scanner in=new Scanner(System.in);
      l=in.nextInt();
	  w=in.nextInt();
      for(int i=0;i<l;i++)
      {
		  for(int j=0;j<w;j++)
		  {
			  System.out.print("#");
		  }
		  System.out.println("");
	  }		  

    
  }

}

Compiler output:
Main.java:7: error: ';' expected
	  int l,w
	         ^
1 error
Language: Java

import java.util.Scanner;

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

    
  }

}

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

import java.util.Scanner;

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

    
  }

}

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

import java.util.Scanner;

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

    
  }

}

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

import java.util.Scanner;

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

    
  }

}

Compiler output:
Main.java:9: error: cannot find symbol
          boolearn t=true;
          ^
  symbol:   class boolearn
  location: class Main
1 error
Language: Java

import java.util.Scanner;

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

    
  }

}

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

package test01;

import java.util.Scanner;

public class sumple51 {
	@SuppressWarnings("resource")
	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);
		
		while(true){
			//??\???
			int W = scan.nextInt();
			int H = scan.nextInt();
			//??????
			if(W == 0 && H == 0)break;
			
			for (int i = 0; i < W; i++) {
				int j = 0;
				for (; j < H; j++) {
					System.out.print("#");
				}
				System.out.println("");
			}
		}
	}
}

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

import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		try (Scanner stdIn = new Scanner(System.in)) {
			Main main = new Main();
			while (true) {
				int h = stdIn.nextInt();
				int w = stdIn.nextInt();
				if (h > 300 || w > 300) {
					throw new RuntimeException("Input Error:range 0 to 300");
				}
				if (h == 0 && w == 0) {
					break;
				}
				main.setChar('#');
				main.draw(h, w);
				System.out.println("");
			}
		} catch (Exception e) {
			System.out.println(e.getMessage());
		}
	}
}

final class Rectangle {
	private Character displayChar = '*';

	/**
	 * Set a character to draw rectangle
	 * @param displayChar a character
	 */
	protected void setChar(Character displayChar) {
		this.displayChar = displayChar;
	}

	/**
	 * Draw rectangle
	 * @param height Height of square
	 * @param width Width of square
	 */
	protected void draw(int height, int width) {
		if (height < 0 || width < 0) {
			throw new RuntimeException("Input Error:Minus value input");
		}
		for (int i = 1; i <= height; i++) {
			for (int j = 1; j <= width; j++) {
				System.out.print(this.displayChar);
			}
			System.out.println("");
		}
	}
}

Compiler output:
Main.java:16: error: cannot find symbol
				main.setChar('#');
				    ^
  symbol:   method setChar(char)
  location: variable main of type Main
Main.java:17: error: cannot find symbol
				main.draw(h, w);
				    ^
  symbol:   method draw(int,int)
  location: variable main of type Main
2 errors
Language: Java

00.26 sec    25904 KB    33 lines     637 bytes    2015-07-07 22:15
?
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
//Structured Program I - Print a Rectangle
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
 
class Main {
 
    public static void main(String[] args) throws IOException {
 
        BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
 
        String input;
         
         while (!(input = in.readLine()).equals("0 0")) {
 
             String[] HW = input.split(" ");
 
             int H = Integer.parseInt(HW[0]);
             int W = Integer.parseInt(HW[1]);
 
             for(int i=0;i<H;i++){
                 for(int j=0;j<W;j++){
                     System.out.print("#");
                 }
                 System.out.println();
             }
             System.out.println();
              
         }
 
    }
}

Compiler output:
Main.java:1: error: class, interface, enum, or record expected
00.26 sec    25904 KB    33 lines     637 bytes    2015-07-07 22:15
^
Main.java:37: error: class, interface, enum, or record expected
import java.io.IOException;
^
Main.java:38: error: class, interface, enum, or record expected
import java.io.InputStreamReader;
^
3 errors
Language: Java

import java.util.Scanner;

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

        int h;
        int w;
        
        while(true) {
            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();
            }
        }
    }
}

Compiler output:
Main.java:11: error: variable h might not have been initialized
            if(h == 0 || w == 0) {
               ^
Main.java:11: error: variable w might not have been initialized
            if(h == 0 || w == 0) {
                         ^
2 errors
Language: Java

import java.util.Scanner;

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

        int h;
        int w;
        
        while(true) {
            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();
            }
        }
    }
}

Compiler output:
Main.java:11: error: variable h might not have been initialized
            if (h == 0 || w == 0) {
                ^
Main.java:11: error: variable w might not have been initialized
            if (h == 0 || w == 0) {
                          ^
2 errors
Language: Java

import java.util.Scanner;

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

        int H;
        int W;
        
        while(true) {
            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();
            }
        }
    }
}

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;

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

        int H;
        int W;
        
        while(true) {
            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();
            }
        }
    }
}

Compiler output:
Main.java:11: error: variable H might not have been initialized
            if (H == 0 || W == 0) {
                ^
Main.java:11: error: variable W might not have been initialized
            if (H == 0 || W == 0) {
                          ^
2 errors
Language: Java

import java.io.BufferedReader;
import java.io.InputStreamReader;
 
public class Main {
    public static void main(String args[]) {
        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:9: error: unreported exception IOException; must be caught or declared to be thrown
            String data[] = reader.readLine().split(" ");
                                           ^
1 error
Language: Java

import java.util.Scanner;                                                                     
  2 class Main{
    public static void main(String[] args){
        Scanner in = new Scanner(System.in);
        int h = in.nextInt();
        int w = in.nextInt();
        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:2: error: class, interface, enum, or record expected
  2 class Main{
  ^
1 error
Language: Java

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

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

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

import java.util.Scanner;

public class 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:19: error: reached end of file while parsing
}
 ^
1 error
Language: Java

import java.util.Scanner
public class Main{
  public static void main{
    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:1: error: ';' expected
import java.util.Scanner
                        ^
Main.java:3: error: '(' expected
  public static void main{
                         ^
2 errors
Language: Java

import java.util.Scanner
public class Main{
  public static void main{
    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:1: error: ';' expected
import java.util.Scanner
                        ^
Main.java:3: error: '(' expected
  public static void main{
                         ^
2 errors
Language: Java

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

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

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

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