Language: Java

import java.util.Scanner;
??
public class Main {
??
????????public static void main(String[] args) {
????????????????Scanner scan = new Scanner(System.in);?????????? 
??
????????????????int x = scan.nextInt();
??
????????????????System.out.println(x * x * x);
??????????????????
????????????????scan.close();
??
????????}
??
}

Compiler output:
Main.java:2: error: class, interface, enum, or record expected
??
^
Main.java:4: error: illegal start of type
??
^
Main.java:6: error: illegal start of expression
????????????????Scanner scan = new Scanner(System.in);?????????? 
^
Main.java:6: error: illegal start of expression
????????????????Scanner scan = new Scanner(System.in);?????????? 
 ^
Main.java:6: error: illegal start of expression
????????????????Scanner scan = new Scanner(System.in);?????????? 
  ^
Main.java:6: error: illegal start of expression
????????????????Scanner scan = new Scanner(System.in);?????????? 
   ^
Main.java:6: error: illegal start of expression
????????????????Scanner scan = new Scanner(System.in);?????????? 
    ^
Main.java:6: error: illegal start of expression
????????????????Scanner scan = new Scanner(System.in);?????????? 
     ^
Main.java:6: error: illegal start of expression
????????????????Scanner scan = new Scanner(System.in);?????????? 
      ^
Main.java:6: error: illegal start of expression
????????????????Scanner scan = new Scanner(System.in);?????????? 
       ^
Main.java:6: error: illegal start of expression
????????????????Scanner scan = new Scanner(System.in);?????????? 
        ^
Main.java:6: error: illegal start of expression
????????????????Scanner scan = new Scanner(System.in);?????????? 
         ^
Main.java:6: error: illegal start of expression
????????????????Scanner scan = new Scanner(System.in);?????????? 
          ^
Main.java:6: error: illegal start of expression
????????????????Scanner scan = new Scanner(System.in);?????????? 
           ^
Main.java:6: error: illegal start of expression
????????????????Scanner scan = new Scanner(System.in);?????????? 
            ^
Main.java:6: error: illegal start of expression
????????????????Scanner scan = new Scanner(System.in);?????????? 
             ^
Main.java:6: error: illegal start of expression
????????????????Scanner scan = new Scanner(System.in);?????????? 
              ^
Main.java:6: error: illegal start of expression
????????????????Scanner scan = new Scanner(System.in);?????????? 
               ^
Main.java:6: error: : expected
????????????????Scanner scan = new Scanner(System.in);?????????? 
                       ^
Main.java:6: error: : expected
????????????????Scanner scan = new Scanner(System.in);?????????? 
                                                     ^
Main.java:6: error: illegal start of expression
????????????????Scanner scan = new Scanner(System.in);?????????? 
                                                      ^
Main.java:6: error: illegal start of expression
????????????????Scanner scan = new Scanner(System.in);?????????? 
                                                       ^
Main.java:6: error: illegal start of expression
????????????????Scanner scan = new Scanner(System.in);?????????? 
                                                        ^
Main.java:6: error: illegal start of expression
????????????????Scanner scan = new Scanner(System.in);?????????? 
                                                         ^
Main.java:6: error: illegal start of expression
????????????????Scanner scan = new Scanner(System.in);?????????? 
                                                          ^
Main.java:6: error: illegal start of expression
????????????????Scanner scan = new Scanner(System.in);?????????? 
                                                           ^
Main.java:6: error: illegal start of expression
????????????????Scanner scan = new Scanner(System.in);?????????? 
                                                            ^
Main.java:6: error: illegal start of expression
????????????????Scanner scan = new Scanner(System.in);?????????? 
                                                             ^
Main.java:6: error: illegal start of expression
????????????????Scanner scan = new Scanner(System.in);?????????? 
                                                              ^
Main.java:6: error: illegal start of expression
????????????????Scanner scan = new Scanner(System.in);?????????? 
                                                               ^
Main.java:7: error: illegal start of expression
??
^
Main.java:7: error: illegal start of expression
??
 ^
Main.java:8: error: illegal start of expression
????????????????int x = scan.nextInt();
^
Main.java:8: error: illegal start of expression
????????????????int x = scan.nextInt();
 ^
Main.java:8: error: illegal start of expression
????????????????int x = scan.nextInt();
  ^
Main.java:8: error: illegal start of expression
????????????????int x = scan.nextInt();
   ^
Main.java:8: error: illegal start of expression
????????????????int x = scan.nextInt();
    ^
Main.java:8: error: illegal start of expression
????????????????int x = scan.nextInt();
     ^
Main.java:8: error: illegal start of expression
????????????????int x = scan.nextInt();
      ^
Main.java:8: error: illegal start of expression
????????????????int x = scan.nextInt();
       ^
Main.java:8: error: illegal start of expression
????????????????int x = scan.nextInt();
        ^
Main.java:8: error: illegal start of expression
????????????????int x = scan.nextInt();
         ^
Main.java:8: error: illegal start of expression
????????????????int x = scan.nextInt();
          ^
Main.java:8: error: illegal start of expression
????????????????int x = scan.nextInt();
           ^
Main.java:8: error: illegal start of expression
????????????????int x = scan.nextInt();
            ^
Main.java:8: error: illegal start of expression
????????????????int x = scan.nextInt();
             ^
Main.java:8: error: illegal start of expression
????????????????int x = scan.nextInt();
              ^
Main.java:8: error: illegal start of expression
????????????????int x = scan.nextInt();
               ^
Main.java:8: error: '.class' expected
????????????????int x = scan.nextInt();
                    ^
Main.java:8: error: : expected
????????????????int x = scan.nextInt();
                                      ^
50 errors
printing javac parameters to: /w/javac.20260128_040023.args