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

#include<iostream>

using namespace std;

int main(){

 int H, W;

 cin >> H >> W;

 for(i = 0; i < H; i++){
  for(j = 0; j < W; j++){
   cout << '#';
  }
  cout << endl;
 }

 return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:6: error: 'i' was not declared in this scope
   11 |  for(i = 0; i < H; i++){
      |      ^
a.cc:12:7: error: 'j' was not declared in this scope
   12 |   for(j = 0; j < W; j++){
      |       ^
Language: C++

#include<iostream>
 
using namespace std;
 
int main(){
 
 int H, W;
 
 cin >> H >> W;
 
 for(i = 0; i < H; i++){
  for(j = 0; j < W; j++){
   cout << '#';
  }
  cout << endl;
 }

 cout << endl;
 
 return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:6: error: 'i' was not declared in this scope
   11 |  for(i = 0; i < H; i++){
      |      ^
a.cc:12:7: error: 'j' was not declared in this scope
   12 |   for(j = 0; j < W; j++){
      |       ^
Language: C++

#include<iostream>
int main(){
int a,b;
while(std::cin>>a>>b,a||b){
for(;--a;){for(;--b)std::cout<<"#";std::cout<<std::endl;}
}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:20: error: expected ';' before ')' token
    5 | for(;--a;){for(;--b)std::cout<<"#";std::cout<<std::endl;}
      |                    ^
      |                    ;
Language: C++

#include <cstdio>
#include <iostream>
#define rep(i, n) for(int i = 0; i < (n); i++)
using namespace std;

int main(){
	int H, W;
	while(cin >> H >> W, H || W){
		rep(i, H){
			rep(i, W){
				cout << '#'
			}
			cout << endl;
		}
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:44: error: expected ';' before '}' token
   11 |                                 cout << '#'
      |                                            ^
      |                                            ;
   12 |                         }
      |                         ~
Language: C++

#include <cstdio>
#include <iostream>
#define rep(i, n) for(int i = 0; i < (n); i++)
using namespace std;

int main(){
	int H, W;
	while(cin >> H >> W){
		if(H == 0 && W == 0) break;
		rep(i, H){
			rep(i, W){
				cout << '#'
			}
			cout << endl;
		}
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:44: error: expected ';' before '}' token
   12 |                                 cout << '#'
      |                                            ^
      |                                            ;
   13 |                         }
      |                         ~
Language: C++

#include<iostream>
using namespace std;

int main(){
  
  int H,W;
  while(1){  
    cin >>H >>W ;
    
    if(a==0 && b==0) break;
    
    for ( int  j = 0; j < H; j++){
      for ( int i = 0; i < W; i++){
	  cout <<"#" ;
	}
	cout << endl;  
    }    
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:8: error: 'a' was not declared in this scope
   10 |     if(a==0 && b==0) break;
      |        ^
a.cc:10:16: error: 'b' was not declared in this scope
   10 |     if(a==0 && b==0) break;
      |                ^
Language: Java

import java.util.Scanner;

public class ITP15Ba {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		int[][] ty = new int[10000][2];
		int t = 1;
		int y = 1;

		int count = 0;

		for (int i = 0; t != 0 || y != 0; i++) {

			String line = sc.nextLine();
			String[] HW = line.split(" ");
			t = Integer.parseInt(HW[0]);
			y = Integer.parseInt(HW[1]);
			ty[i][0] = t;
			ty[i][1] = y;

			count++;

		}

		for (int i = 0; i < count-1; i++) {



			//ここを分岐させる
			StringBuilder x = new StringBuilder();
			for (int j = 0; j < ty[i][1]; j++) {

				x.append("#");


			}

			String z = x.toString();


			StringBuilder a = new StringBuilder();

			for (int j = 0; j < ty[i][1]; j++) {
				if (j == 0 || j== ty[i][1]-1) {
					a.append("#");
				}else{
					a.append(".");
				}

			}


			String b = a.toString();



			for (int j = 0; j < ty[i][0]; j++) {
				if (j == 0 || j== ty[i][0]-1) {
					System.out.println(z);
				} else {
					System.out.println(b);
				}

			}
			System.out.println("");


		}

	}

}



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

import java.util.Scanner;
public class Finding_Missing_Cards {
	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 i=0;i<H;i++) {
				for(int t=0;t<W;t++) {
					if(i==0||i==H-1||t==0||t==W-1){
						System.out.print("#");
					}else {
						System.out.print(".");
					}
				}
				System.out.println("");
			}
		}while(!(H==0&&W==0));
	}
}



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


Compiler output:
Main.java:25: error: illegal character: '\u3000'
?????}
^
Main.java:25: error: illegal character: '\u3000'
?????}
 ^
Main.java:25: error: illegal character: '\u3000'
?????}
  ^
Main.java:25: error: illegal character: '\u3000'
?????}
   ^
Main.java:25: error: illegal character: '\u3000'
?????}
    ^
5 errors
Language: Java

import java.util.Scanner;

public class Main{
  public static void main(String[] args) {
    Scanner scan= new Scanner(System.in);
    int a,b,i,j;
    a=scan.nextInt();
    b=scan.nextInt();

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



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

import java.util.Scanner;

public class Main{
  public static void main(String[] args) {
    Scanner scan= new Scanner(System.in);
    int a,b,i,j;
    a=scan.nextInt();
    b=scan.nextInt();

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



Compiler output:
Main.java:17: error: illegal character: '\uff1b'
      System.out.print("?")?
                           ^
1 error
Language: Java

import java.util.Scanner;

public classMain{
  public static void main(String[] args) {
    Scanner scan= new Scanner(System.in);
    int a,b,i,j;
    a=scan.nextInt();
    b=scan.nextInt();


      for (j=0;j<b ;j++ ) {
        System.out.print("#");
      }
      if (a==0&&b=0) {
        break;}else{
      System.out.println(" ");
      }
      for(i=0;i<a-2;i++){
      System.out.print("#");
      for(j=0;j<b-2;j++){
      System.out.print(".");
    }
    System.out.println("#");
  }
for(j=0;j<b;j++){  System.out.print("#");
}if (a==0&&b=0) {
  break;}else{
System.out.println(" ");
}
    }

}



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

import java.util.Scanner;

public classMain {
  public static void main(String[] args) {
    Scanner scan= new Scanner(System.in);
    int a,b,i,j;
    a=scan.nextInt();
    b=scan.nextInt();


      for (j=0;j<b ;j++ ) {
        System.out.print("#");
      }
      if (a==0&&b==0) {
        ;
      }else{
      System.out.println(" ");
      }
      for(i=0;i<a-2;i++){
      System.out.print("#");
      for(j=0;j<b-2;j++){
      System.out.print(".");
    }
    System.out.println("# ");
  }
for(j=0;j<b;j++){  System.out.print("#");
}if (a==0&&b==0) {
  ;
}else{
System.out.println(" ");
}
    }

}



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

import java.util.Scanner;

public class Flame{ 
        public static void main(String[] args){
            int i=0,j,k,count=0;
            int a[];
            int b[];
            a = new int[100000];
            b = new int[100000];
                Scanner n = new Scanner(System.in);
                while(true){
                     a[i] = n.nextInt();
                     b[i] = n.nextInt();
                     if(a[i]==0 && b[i]==0){
                         break;
                     }
                     count++;
                     i++;
                }
                i=0;
                while(count>i){
                        for(k=0;k<a[i];k++){
                            if(k==0 || k==(a[i]-1)){
                                for(j=0;j<b[i];j++){
                                    System.out.print("#");
                                }
                                System.out.printf("\n");
                            }else{
                            for(j=0;j<b[i];j++){
                                if(j==0 || j==b[i]-1){
                                System.out.print("#");
                                }else{
                                    System.out.print(".");
                                }
                            }
                            System.out.printf("\n");
                        }
                    }
                     i++;
                     System.out.printf("\n");
                }
        }
    }


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

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


Compiler output:
Main.java:10: error: variable i is already defined in method main(String[])
            for(int i = 0; i < h; i++){
                    ^
Main.java:12: error: variable j is already defined in method main(String[])
                    for(int j = 0; j < w; j++){
                            ^
Main.java:18: error: variable j is already defined in method main(String[])
                    for(int j = 1; j < w - 1; j++){
                            ^
3 errors
Language: Java

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

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



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

for ( int i = 0; i < 4; i++ ){
    for ( int j = 0; j < 8; j++ ){
        if(        ){
            System.out.print(".");
        } else {
            System.out.print("#");
        }
    }
    System.out.println("");
}


Compiler output:
Main.java:1: error: class, interface, enum, or record expected
for ( int i = 0; i < 4; i++ ){
^
Main.java:1: error: class, interface, enum, or record expected
for ( int i = 0; i < 4; i++ ){
                 ^
Main.java:1: error: class, interface, enum, or record expected
for ( int i = 0; i < 4; i++ ){
                        ^
Main.java:2: error: class, interface, enum, or record expected
    for ( int j = 0; j < 8; j++ ){
                     ^
Main.java:2: error: class, interface, enum, or record expected
    for ( int j = 0; j < 8; j++ ){
                            ^
Main.java:5: error: class, interface, enum, or record expected
        } else {
        ^
Main.java:7: error: class, interface, enum, or record expected
        }
        ^
Main.java:10: error: class, interface, enum, or record expected
}
^
8 errors
Language: Java

public class Main {
	public static void main(String[] args) throws IOException {
		BufferedReader br =new BufferedReader(new FileReader("file01.txt"));
		String[] str = null;
		for(;;) {
			str = br.readLine().split(" ");
			int h = Integer.parseInt(str[0]);
			int w = Integer.parseInt(str[1]);
			if(w==0&&h==0)break;
			for(int i=0;i<h;i++){
				System.out.print("#");
				for(int l=0;l<w-2;l++){
					if(i==0|i==h-1){System.out.print("#");
					}else System.out.print(".");
				}System.out.println("#");
				}System.out.println();
		}


	}
}

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 FileReader("file01.txt"));
		^
  symbol:   class BufferedReader
  location: class Main
Main.java:3: error: cannot find symbol
		BufferedReader br =new BufferedReader(new FileReader("file01.txt"));
		                       ^
  symbol:   class BufferedReader
  location: class Main
Main.java:3: error: cannot find symbol
		BufferedReader br =new BufferedReader(new FileReader("file01.txt"));
		                                          ^
  symbol:   class FileReader
  location: class Main
4 errors
Language: Java

import java.util.Scanner;

public class Test{
	public static void main(String[] args){
		Scanner in = new Scanner(System.in);
		int H,W;
		
		H = in.nextInt();
		W = in.nextInt();
		
		while(H!=0 || W!=0){
			for(int i=0; i<H; i++){
				for(int j=0; j<W; j++){
					if(i==0 || i==H-1){
						System.out.print('#');
					}else{
						if(j==0 || j==W-1){
							System.out.print('#');
						}else{
							System.out.print(".");
						}
					}
				}
				System.out.println();
			}
			
			System.out.println();
			H = in.nextInt();
			W = in.nextInt();
		}
	}
}

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

mport java.util.Scanner;

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

}

Compiler output:
Main.java:1: error: class, interface, enum, or record expected
mport java.util.Scanner;
^
1 error
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 = "";
            String t = "";
            for(int i = 0; i < w; i++) {
                s += "#";
                t += (i == 0 || i == (w-1)) ? "#" : ".";
            }
            for(int i = 0; i < h; i++) {
                System.out.println((i == 0 || i == (h-1)) ? s : t;
);
            }
            System.out.println();
        }
    }
}

Compiler output:
Main.java:18: error: ')' or ',' expected
                System.out.println((i == 0 || i == (h-1)) ? s : t;
                                                                 ^
Main.java:19: error: illegal start of expression
);
^
2 errors
Language: Java

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.util.StringTokenizer;

public class Main {
  static InputReader in;
  static PrintWriter out;

  static class Solution {
    void solve() throws IOException {
      while (true) {
        int H = in.nextInt();
        int W = in.nextInt();
        if (H == 0 && W == 0) break;
        
        for (int i = 0; i < H; i++) {
          if (i == 0 || i == H - 1) {            
            for (int j = 0; j < W; j++) {
              out.print("#");
            }
            out.print("\n");
          } else {
            out.print("#");
            for (int j = 1; j < W-1; j++) {
              out.print(".");
            }
            out.println("#");
        }
        
      }

  }
}

  public static void main(String[] args) throws IOException {
    in = new InputReader(System.in);
    out = new PrintWriter(System.out);
    Solution solver = new Solution();
    solver.solve();
    out.close();
}

  static class InputReader {
    public BufferedReader br;
    public StringTokenizer st;

    public InputReader(InputStream stream) {
      br = new BufferedReader(new InputStreamReader(stream));
    }

    public int nextInt() throws IOException {
      while (st == null || !st.hasMoreTokens()) {
        st = new StringTokenizer(br.readLine());
      }
      return Integer.parseInt(st.nextToken());
    }

    public long nextLong() throws IOException {
      while (st == null || !st.hasMoreTokens()) {
        st = new StringTokenizer(br.readLine());
      }
      return Long.parseLong(st.nextToken());
    }

    public String next() throws IOException {
      while (st == null || !st.hasMoreTokens()) {
        st = new StringTokenizer(br.readLine());
      }
      return st.nextToken();
    }

    public double nextDouble() throws IOException {
      while (st == null || !st.hasMoreTokens()) {
        st = new StringTokenizer(br.readLine());
      }
      return Double.parseDouble(st.nextToken());
    }

  }

}

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

import java.util.Scanner;
import java.lang.Math;
public class PrintAFrame{
    public static void main(String[] args) {
	Scanner scan = new Scanner(System.in);
	while (scan.hasNext()) {
	    String input = scan.nextLine();
	    String[] inputs = input.split(" ");
	    int height = Integer.parseInt(inputs[0]);
	    int width = Integer.parseInt(inputs[1]);
	    if (height == 0 && width == 0) {
		break;
	    }
	    printsharp(width);
	    for (int i = 0; i < height - 1; i++) {
		System.out.print("#");
		for (int j = 0; j < width - 2; j++) {
		    System.out.print(".");
		}
		System.out.println("#");
	    }
	    printsharp(width);
	    System.out.println();
	}
    }
    public static void printsharp(int width) {
	for (int i = 0; i < width; i++) {
	    System.out.print("#");
	}
	System.out.println();
    }
}

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

import java.util.Scanner;

public class Main {


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

		int hei, wid, cnt_wid;

		while(true){
			hei = scan.nextInt();//??????????????????
			wid = scan.nextInt();//?¨????????????????
			if(hei == 0 && wid == 0){//???????????????0???0????????\???????????????????????????
				break;
			}
			for(cnt_wid = 0; cnt_wid < wid; cnt_wid++){//????????????????????????
				System.out.print("#");
			}
			System.out.println();
			for(int cnt_hei = 0; cnt_hei < hei - 2; cnt_hei++){//???????????¨???????????\??????????????????¨???????????????????
				System.out.print("#");//???????????????
				for(cnt_wid = 0; cnt_wid < wid - 2; cnt_wid++){//?¨????-?????????????????????
					System.out.print(".");
				}
				System.out.print("#");//???????????????
				System.out.println();
			}
			for(cnt_wid = 0; cnt_wid < wid; cnt_wid++){//????????????????????????
				System.out.print("#");
			}
			System.out.println("\n");
		}
        scan.close();
    }

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

import java.io.*;

class Main
{
    public static void main (String[ ] args) throws Exception
    {
        BufferedReader br = new BufferedReader (new InputStreamReader (System.in));
        StringBuffer sb = new StringBuffer();
        
        while(true)
        {
            String[] strAry = (br.readLine()).split(" ");
            int h = Integer.parseInt(strAry[0]);
            int w = Integer.parseInt(strAry[1]);
        
            if(0 == h & 0 == w)
            {
                break;
            }

            for(int i = 0; i < h; i++)
            {
                sb.append("#");
                for(int j = 0; j < (w - 2; j++)
                {
                    if(0 == i || (h - 1) == i )
                    {
                        sb.append("#");
                    }
                    else
                    {
                        sb.append(".");
                    }
                }
                sb.append("#").append("\n");
            }
            sb.append("\n");
        }
        System.out.print(sb);
    }
}

Compiler output:
Main.java:24: error: ')' expected
                for(int j = 0; j < (w - 2; j++)
                                         ^
1 error
Language: Java

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

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

import java.util.Scanner;

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

Compiler output:
Main.java:11: error: bad operand types for binary operator '||'
				if (i = 1 || i = H) for (int j = 1; j <= W; j ++) System.out.print("#");
				          ^
  first type:  int
  second type: int
Main.java:11: error: incompatible types: int cannot be converted to boolean
				if (i = 1 || i = H) for (int j = 1; j <= W; j ++) System.out.print("#");
				      ^
2 errors
Language: Java

import java.io.*;

class Main{
    public static void main(String[] args) throws IOException{
        
        int h,w,i,j;
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        
        while(true){
            String[] str = br.readLine().split(" ");
            h = Integer.parseInt(str[0]);
            w = Integer.parseInt(str[1]);
            
            if(h == 0 && w ==0){
                break;
            }
            
            for(i = 0; i < h; i++){
                for(j = 0; j < w; j++){
                    if(i==0 && i==h-1){
                        System.out.printf("#");
                    }else if(j==0 && j==w-1){
                        System.out.printf("#");
                    }else{
                        System.out.printf(".");
                }
                System.out.printf("\n");
            }
            System.out.printf("\n");
        }
    }
}

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

import java.io.*;

class Main
{
    public static void main (String[ ] args) throws Exception
    {
        BufferedReader br = new BufferedReader (new InputStreamReader (System.in));
        StringBuffer sb = new StringBuffer();
        
        while(true){
            String[] strAry = (br.readLine()).split(" ");
            int h = Integer.parseInt(strAry[0]);
            int w = Integer.parseInt(strAry[1]);
            
            if(0 == h & 0 == w){
                break;
            }
            for(int i = 0; i < h; i++){
                s.append("#");
                for(int j = 0; j < (w - 2); j++){
                    if(0 == i || (h - 1) == i){
                        sb.append("#");
                    }else{
                        sb.append(".");
                    }
                }
                sb.append("#").append("\n");
            }
            sb.append("\n");
        }
        System.out.print(sb);
    }
}

Compiler output:
Main.java:19: error: cannot find symbol
                s.append("#");
                ^
  symbol:   variable s
  location: class Main
1 error
Language: Java

#include <stdio.h>
int main (void)
{
	int H,W;
	int t,y;

	while(1)
	{

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

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

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

			for(y=0;y<W;y++)
			{
				if((t==0)||(t==H-1)||(y==0)||(y==W-1))
				{
					printf("#");
				}
				else
				{	
					printf(".");
				}
			}

			printf("\n");
		}
	}

	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:5: error: class, interface, enum, or record expected
	int t,y;
	^
Main.java:7: error: class, interface, enum, or record expected
	while(1)
	^
Main.java:12: error: class, interface, enum, or record expected
		if((H==0)&&(W==0))break;
		^
Main.java:14: error: class, interface, enum, or record expected
		for(t=0;t<H;t++)
		^
Main.java:14: error: class, interface, enum, or record expected
		for(t=0;t<H;t++)
		        ^
Main.java:14: error: class, interface, enum, or record expected
		for(t=0;t<H;t++)
		            ^
Main.java:17: error: class, interface, enum, or record expected
			for(y=0;y<W;y++)
			        ^
Main.java:17: error: class, interface, enum, or record expected
			for(y=0;y<W;y++)
			            ^
Main.java:22: error: class, interface, enum, or record expected
				}
				^
Main.java:26: error: class, interface, enum, or record expected
				}
				^
Main.java:30: error: class, interface, enum, or record expected
		}
		^
Main.java:34: error: class, interface, enum, or record expected
}
^
14 errors
Language: Java

import java.util.Scanner;

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

Compiler output:
Main.java:9: error: '(' or '[' expected
      for(int i=0;i<W; i++){
      ^
Main.java:12: error: ';' expected
    System.out.println(sb2)
                           ^
Main.java:25: error: ';' expected
    System.out.println(sb2)  
                           ^
3 errors
Language: Java

import java.util.Scanner;

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

Compiler output:
Main.java:8: error: '(' or '[' expected
    StringBuilder sb2 = new String;
                                  ^
Main.java:25: error: ';' expected
    System.out.println(sb2)  
                           ^
2 errors
Language: Java

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

public class Frame {
	
	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++) {
					if(i==0 || j==0 || i==H-1 || j==W-1) {
						sb.append("#");
					} else {
						sb.append(".");
					}
				}
				sb.append("\n");
			}
			sb.append("\n");
		}
		System.out.print(sb);
	}
}

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

import java.io.*;

public class Frame {
	
	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++) {
					if(i==0 || j==0 || i==H-1 || j==W-1) {
						sb.append("#");
					} else {
						sb.append(".");
					}
				}
				sb.append("\n");
			}
			sb.append("\n");
		}
		System.out.print(sb);
	}
}

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

import java.util.Scanner;

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

		//????????¨?¨???????????????????
		Scanner sc = new Scanner(System.in);
		while(true){
			int intH = sc.nextInt();
			int intW = sc.nextInt();
			int h = intH - 1;
			int w = intW - 1;

			//??????H???W???0?????£???????????????????????????
			if((intH == 0) && (intW == 0)){
				break;
			}
			//??????

			for (int i = 0; i < intH; i++) {
				String A = "";
				for (int j = 0; j < intW; j++) {
					if (i == 0 || i == h || j == 0 || j == w ) {
						A += "#";
					}else {
						A += ".";
					}
				}
				System.out.println(A);
			}
			System.out.println("");
		}
	}
}

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

import java.util.Scanner;

public class ITP1_5_B {
	public static void main (String[] args) {
		Scanner sc = new Scanner(System.in);
		while (true) {
			int a = sc.nextInt();
			int b = sc.nextInt();
			if (a == 0 && b == 0) break;
			printFrame(a, b);
			System.out.println();
		}
		sc.close();
	}
	static void printFrame (int h, int w) {
		for (int i = 0; i < h; i++) {
			for (int j = 0; j < w; j++) {
				System.out.print(i == 0 || i == h - 1 || j == 0 || j == w - 1 ? "#" : ".");
			}
			System.out.println();
		}
	}
}

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

import java.util.Scanner;

/**
 * @author kawakami
 *
 */
public class printaframe {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner as = new Scanner(System.in);
		
		int H,W;
		
		
		
		while(true){
			H = as.nextInt();
			W = as.nextInt();
			
			if(H==0 && W==0){
				
				break;
				
			}
			
			for(int i=0;i<H;i++){
				
				if(i==0 || i==H-1){
					
					for(int j=0;j<W;j++){
						
						System.out.print("#");
						
					}
					
				}
				
				else{
					
					for(int j=0;j<W;j++){
					
						if(j==0 || j==W-1){
							
							System.out.print("#");
							
						}
						
						else{
							
							System.out.print(".");
							
						}
						
					}
					
				}
				
				System.out.println();
				
			}
			
			System.out.println();
		}
		
		

	}

}

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

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

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

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

		while (true) {
			String[] lines = sc.nextLine().split(" ");
			int height = Integer.parseInt(lines[0]);
			int width = Integer.parseInt(lines[1]);

			if(height == 0 && width == 0) {
				break;
			} else {
				for(int i = 0;i <width;i++) {
					System.out.print("#");
				}
				System.out.println();
				//height??????????¨?????????¨?????????
				for(int i = 1;i < height - 1;i++) {
					for(int j = 0;j < width;j++) {
						if(j == 0 || j == width - 1) {
						System.out.print("#");
						} else {
							System.out.print(".");
						}
					}
					System.out.println();
				}
				for(int i = 0;i <width;i++) {
					System.out.print("#");
				}
				System.out.println("\n");
			}

		}
		sc.close();
	}
}

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

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

public class Main {
	public static void main(String[] arges) {
		Scanner sc = new Scanner(System.in);
		int i = 0;
		List<String> klist = new ArrayList<String>();
		while (i < 1) {
			String line = sc.nextLine();
			klist.add(line);
			if (line.equals("0 0")) {
				break;
			}
		}
		int now = 0;
		int q = 0;
		for (String string : klist) {
			if (string.equals("0 0")) {
				break;
			}
			String[] k = string.split(" ");
			int v = Integer.parseInt(k[0]);
			int v2 = Integer.parseInt(k[1]);
			for (int j = 0; j < v; j++) {

				int count = 0;
				if (j == 0 || j == v - 1) {
					while (count < v2) {
						System.out.print("#");
						count++;
					}

				} else {
					System.out.print("#");
					count++;
					while (count < v2 - 1) {
						System.out.print(".");
						count++;
					}
					System.out.print("#");
				}
				System.out.println("");

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

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

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

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

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

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

class Main{
  public static void main(String[] args){
  Scanner scan = new Scanner(System.in);
    while(true){
      int H = scan.nextInt();
      int W = scan.nextInt();

      if(A == 0 && B == 0){
        break;
      }

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

Compiler output:
Main.java:11: error: cannot find symbol
      if(A == 0 && B == 0){
         ^
  symbol:   variable A
  location: class Main
Main.java:11: error: cannot find symbol
      if(A == 0 && B == 0){
                   ^
  symbol:   variable B
  location: class Main
Main.java:17: error: cannot find symbol
          if(a == 0 || a == H - 1 || b == 0 || b == B - 1){
             ^
  symbol:   variable a
  location: class Main
Main.java:17: error: cannot find symbol
          if(a == 0 || a == H - 1 || b == 0 || b == B - 1){
                       ^
  symbol:   variable a
  location: class Main
Main.java:17: error: cannot find symbol
          if(a == 0 || a == H - 1 || b == 0 || b == B - 1){
                                     ^
  symbol:   variable b
  location: class Main
Main.java:17: error: cannot find symbol
          if(a == 0 || a == H - 1 || b == 0 || b == B - 1){
                                               ^
  symbol:   variable b
  location: class Main
Main.java:17: error: cannot find symbol
          if(a == 0 || a == H - 1 || b == 0 || b == B - 1){
                                                    ^
  symbol:   variable B
  location: class Main
7 errors
Language: Java

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

class Main{
  public static void main(String[] args){
  Scanner scan = new Scanner(System.in);
    while(true){
      int H = scan.nextInt();
      int W = scan.nextInt();

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

      for(int h=0;h<H;h ++){
        for(int w=0;w<W;w ++){
          if(h == 0 || h == H - 1 || w == 0 || w == B - 1){
              System.out.print("#");
          } else {
            System.out.print(".");
          }
        System.out.println();
        }
      System.out.println();
      }
}
}
}

Compiler output:
Main.java:17: error: cannot find symbol
          if(h == 0 || h == H - 1 || w == 0 || w == B - 1){
                                                    ^
  symbol:   variable B
  location: class Main
1 error
Language: Java

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

import org.junit.Test;

public class Main {
	@Test
	public void testName() throws Exception {
		main(null);
	}

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

			new Main().solution(br);
		}
	}

	private void solution(BufferedReader br) throws IOException {
		for (String line = br.readLine(); Objects.nonNull(line); line = br
				.readLine()) {
			String[] strList = line.split(" ", 0);

			int num1 = Integer.parseInt(strList[0]);
			int num2 = Integer.parseInt(strList[1]);
			// String operator = strList[1];

			if (num1 == 0 && num2 == 0) {
				break;
			}

			String ans = calc(num1, num2);
			System.out.println(ans);

		}
	}

	private String calc(int height, int width) {
		String result = "";

		for (int h = 1; h <= height; h++) {
			result += "\r\n";
			for (int w = 1; w <= width; w++) {
				if (h == 1 || h == height) {
					result += "#";
				} else {
					if (w == 1 || w == width) {
						result += "#";
					} else {
						result += ".";
					}
				}
				
			}
			//result += "\r\n";
		}
		return result;

	}
}

Compiler output:
Main.java:6: error: package org.junit does not exist
import org.junit.Test;
                ^
Main.java:9: error: cannot find symbol
	@Test
	 ^
  symbol:   class Test
  location: class Main
2 errors
Language: Java

import java.util.*;

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

        Scanner sc = new Scanner(System.in);

        for(int i = 0; i < 300; i++) {
          String line = sc.nextLine();
          String[] l = line.split(" ");
          int H = Integer.parseInt(l[0]);
          int W = Integer.parseInt(l[1]);
          if(H == 0 && W == 0) {
            break;
          }

          for(int h = 0; h < H; h++) {
            for(int w = 0; w < W; w++) {
              if(h == 0 || h == H -1 || w == 0 || w == W - 1) {
                System.out.print("#");
              } else {
                System.out.print(".");
              }
            }
            System.out.println();
          }
          System.out.println();
        }
    }
}

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

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

/**
 * ??\????????????????????????H cm ?????? W cm ???????????????????????°?????????????????????????????????

##########
#........#
#........#
#........#
#........#
##########
?????????????????? 6 cm ?????? 10 cm ???????????¨??????????????????

 * @author wsKmatsuda
 *
 */
public class Main{

	public static void main(String[] args) {
		new Aoj_1_5_b().run();
	}

	public void run(){

        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        String inputData;
        List<Square> squareList = new ArrayList<Square>();
        try {
        	//??\???
	        while(true){
				inputData = reader.readLine();
	            if("0 0".equals(inputData)){
	            	break;
	            }else{
					String[] strNumber = inputData.split(" ");
					int h = Integer.parseInt(strNumber[0]);
					int w = Integer.parseInt(strNumber[1]);
					squareList.add(new Square(h,w));
	            }
	        }

	        //??????
	        for(Square square : squareList){
				outputSquare(square.h , square.w);
				System.out.println();
	        }

		} catch (IOException e) {
			e.printStackTrace();
		}

	}

	/**
	 * ????????¢?????????
	 * @param h
	 * @param w
	 */
	private void outputSquare(int h, int w) {
		StringBuilder sbLine = new StringBuilder();
		StringBuilder sbLineFastLast = new StringBuilder();
		for(int i=0;i < w ;i++){
			sbLineFastLast.append("#");
			if(i == 0 || i == w - 1){
				sbLine.append("#");
			}
			else
			{
				sbLine.append(".");
			}
		}
		for(int i=0;i < h;i++){
			if(i==0 || i == h-1){
				System.out.println(sbLineFastLast.toString());
			}else{
				System.out.println(sbLine.toString());
			}
		}
	}

	/**
	 * ????§???¢?????????
	 * h,w???????????????
	 * ??????Inner??????????????????????????§????????????????????§?????????
	 *   ?????????????????????????????§?????¬????????????????????????????????¨?????????
	 *   AOJ??????Main??????????????????submit???????????????
	 *   ?????????????????£????????§Inner?????????????????????????????????
	 */
	class Square{

		public int h;
		public int w;

		Square(int _h ,int _w){
			h = _h;
			w = _w;
		}
	}

}

Compiler output:
Main.java:24: error: cannot find symbol
		new Aoj_1_5_b().run();
		    ^
  symbol:   class Aoj_1_5_b
  location: class Main
1 error
Language: Java

import java.util.*;

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

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

    while(h != 0 || w != 0){
      StringBuilder sd = new StringBuilder();
      for (int j = 0 ;j <h;j++  ) {
          for (int i = 0;i < w ;i++ ) {
              if (i==0 || i==w-1 || j==0 || j==h-1) {
                  sd.append("#");
              }else{
                sd.append(".");
              }
          }
          sd.append("\n");
      }
      System.out.println(sd);
      h, w = scan.nextInt();
    }
  }
}

Compiler output:
Main.java:23: error: not a statement
      h, w = scan.nextInt();
      ^
Main.java:23: error: ';' expected
      h, w = scan.nextInt();
       ^
2 errors