Language: Java

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

Compiler output:
Main.java:2: error: class, interface, enum, or record expected
??
^
Main.java:4: error: illegal start of type
????????public static void main(String[] args){
^
Main.java:5: error: illegal start of expression
????????????????Scanner sc = new Scanner(System.in);
^
Main.java:5: error: illegal start of expression
????????????????Scanner sc = new Scanner(System.in);
 ^
Main.java:5: error: illegal start of expression
????????????????Scanner sc = new Scanner(System.in);
  ^
Main.java:5: error: illegal start of expression
????????????????Scanner sc = new Scanner(System.in);
   ^
Main.java:5: error: illegal start of expression
????????????????Scanner sc = new Scanner(System.in);
    ^
Main.java:5: error: illegal start of expression
????????????????Scanner sc = new Scanner(System.in);
     ^
Main.java:5: error: illegal start of expression
????????????????Scanner sc = new Scanner(System.in);
      ^
Main.java:5: error: illegal start of expression
????????????????Scanner sc = new Scanner(System.in);
       ^
Main.java:5: error: illegal start of expression
????????????????Scanner sc = new Scanner(System.in);
        ^
Main.java:5: error: illegal start of expression
????????????????Scanner sc = new Scanner(System.in);
         ^
Main.java:5: error: illegal start of expression
????????????????Scanner sc = new Scanner(System.in);
          ^
Main.java:5: error: illegal start of expression
????????????????Scanner sc = new Scanner(System.in);
           ^
Main.java:5: error: illegal start of expression
????????????????Scanner sc = new Scanner(System.in);
            ^
Main.java:5: error: illegal start of expression
????????????????Scanner sc = new Scanner(System.in);
             ^
Main.java:5: error: illegal start of expression
????????????????Scanner sc = new Scanner(System.in);
              ^
Main.java:5: error: illegal start of expression
????????????????Scanner sc = new Scanner(System.in);
               ^
Main.java:5: error: : expected
????????????????Scanner sc = new Scanner(System.in);
                       ^
Main.java:5: error: : expected
????????????????Scanner sc = new Scanner(System.in);
                                                   ^
Main.java:6: error: illegal start of expression
????????????????int h = sc.nextInt();
^
Main.java:6: error: illegal start of expression
????????????????int h = sc.nextInt();
 ^
Main.java:6: error: illegal start of expression
????????????????int h = sc.nextInt();
  ^
Main.java:6: error: illegal start of expression
????????????????int h = sc.nextInt();
   ^
Main.java:6: error: illegal start of expression
????????????????int h = sc.nextInt();
    ^
Main.java:6: error: illegal start of expression
????????????????int h = sc.nextInt();
     ^
Main.java:6: error: illegal start of expression
????????????????int h = sc.nextInt();
      ^
Main.java:6: error: illegal start of expression
????????????????int h = sc.nextInt();
       ^
Main.java:6: error: illegal start of expression
????????????????int h = sc.nextInt();
        ^
Main.java:6: error: illegal start of expression
????????????????int h = sc.nextInt();
         ^
Main.java:6: error: illegal start of expression
????????????????int h = sc.nextInt();
          ^
Main.java:6: error: illegal start of expression
????????????????int h = sc.nextInt();
           ^
Main.java:6: error: illegal start of expression
????????????????int h = sc.nextInt();
            ^
Main.java:6: error: illegal start of expression
????????????????int h = sc.nextInt();
             ^
Main.java:6: error: illegal start of expression
????????????????int h = sc.nextInt();
              ^
Main.java:6: error: illegal start of expression
????????????????int h = sc.nextInt();
               ^
Main.java:6: error: '.class' expected
????????????????int h = sc.nextInt();
                    ^
Main.java:6: error: : expected
????????????????int h = sc.nextInt();
                                    ^
Main.java:7: error: illegal start of expression
????????????????int w = sc.nextInt();
^
Main.java:7: error: illegal start of expression
????????????????int w = sc.nextInt();
 ^
Main.java:7: error: illegal start of expression
????????????????int w = sc.nextInt();
  ^
Main.java:7: error: illegal start of expression
????????????????int w = sc.nextInt();
   ^
Main.java:7: error: illegal start of expression
????????????????int w = sc.nextInt();
    ^
Main.java:7: error: illegal start of expression
????????????????int w = sc.nextInt();
     ^
Main.java:7: error: illegal start of expression
????????????????int w = sc.nextInt();
      ^
Main.java:7: error: illegal start of expression
????????????????int w = sc.nextInt();
       ^
Main.java:7: error: illegal start of expression
????????????????int w = sc.nextInt();
        ^
Main.java:7: error: illegal start of expression
????????????????int w = sc.nextInt();
         ^
Main.java:7: error: illegal start of expression
????????????????int w = sc.nextInt();
          ^
Main.java:7: error: illegal start of expression
????????????????int w = sc.nextInt();
           ^
Main.java:7: error: illegal start of expression
????????????????int w = sc.nextInt();
            ^
Main.java:7: error: illegal start of expression
????????????????int w = sc.nextInt();
             ^
Main.java:7: error: illegal start of expression
????????????????int w = sc.nextInt();
              ^
Main.java:7: error: illegal start of expression
????????????????int w = sc.nextInt();
               ^
Main.java:7: error: '.class' expected
????????????????int w = sc.nextInt();
                    ^
Main.java:7: error: : expected
????????????????int w = sc.nextInt();
                                    ^
Main.java:8: error: illegal start of expression
??????????????????
^
Main.java:8: error: illegal start of expression
??????????????????
 ^
Main.java:8: error: illegal start of expression
??????????????????
  ^
Main.java:8: error: illegal start of expression
??????????????????
   ^
Main.java:8: error: illegal start of expression
??????????????????
    ^
Main.java:8: error: illegal start of expression
??????????????????
     ^
Main.java:8: error: illegal start of expression
??????????????????
      ^
Main.java:8: error: illegal start of expression
??????????????????
       ^
Main.java:8: error: illegal start of expression
??????????????????
        ^
Main.java:8: error: illegal start of expression
??????????????????
         ^
Main.java:8: error: illegal start of expression
??????????????????
          ^
Main.java:8: error: illegal start of expression
??????????????????
           ^
Main.java:8: error: illegal start of expression
??????????????????
            ^
Main.java:8: error: illegal start of expression
??????????????????
             ^
Main.java:8: error: illegal start of expression
??????????????????
              ^
Main.java:8: error: illegal start of expression
??????????????????
               ^
Main.java:8: error: illegal start of expression
??????????????????
                ^
Main.java:8: error: illegal start of expression
??????????????????
                 ^
Main.java:9: error: illegal start of expression
????????????????while(h != 0 || w != 0){
^
Main.java:9: error: illegal start of expression
????????????????while(h != 0 || w != 0){
 ^
Main.java:9: error: illegal start of expression
????????????????while(h != 0 || w != 0){
  ^
Main.java:9: error: illegal start of expression
????????????????while(h != 0 || w != 0){
   ^
Main.java:9: error: illegal start of expression
????????????????while(h != 0 || w != 0){
    ^
Main.java:9: error: illegal start of expression
????????????????while(h != 0 || w != 0){
     ^
Main.java:9: error: illegal start of expression
????????????????while(h != 0 || w != 0){
      ^
Main.java:9: error: illegal start of expression
????????????????while(h != 0 || w != 0){
       ^
Main.java:9: error: illegal start of expression
????????????????while(h != 0 || w != 0){
        ^
Main.java:9: error: illegal start of expression
????????????????while(h != 0 || w != 0){
         ^
Main.java:9: error: illegal start of expression
????????????????while(h != 0 || w != 0){
          ^
Main.java:9: error: illegal start of expression
????????????????while(h != 0 || w != 0){
           ^
Main.java:9: error: illegal start of expression
????????????????while(h != 0 || w != 0){
            ^
Main.java:9: error: illegal start of expression
????????????????while(h != 0 || w != 0){
             ^
Main.java:9: error: illegal start of expression
????????????????while(h != 0 || w != 0){
              ^
Main.java:9: error: illegal start of expression
????????????????while(h != 0 || w != 0){
               ^
Main.java:9: error: illegal start of expression
????????????????while(h != 0 || w != 0){
                ^
91 errors
printing javac parameters to: /w/javac.20260128_043230.args