Language: Java

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

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: : 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 x=sc.nextInt();
^
Main.java:6: error: illegal start of expression
????????int x=sc.nextInt();
 ^
Main.java:6: error: illegal start of expression
????????int x=sc.nextInt();
  ^
Main.java:6: error: illegal start of expression
????????int x=sc.nextInt();
   ^
Main.java:6: error: illegal start of expression
????????int x=sc.nextInt();
    ^
Main.java:6: error: illegal start of expression
????????int x=sc.nextInt();
     ^
Main.java:6: error: illegal start of expression
????????int x=sc.nextInt();
      ^
Main.java:6: error: illegal start of expression
????????int x=sc.nextInt();
       ^
Main.java:6: error: '.class' expected
????????int x=sc.nextInt();
            ^
Main.java:6: error: : expected
????????int x=sc.nextInt();
                          ^
Main.java:8: error: illegal start of expression
????????System.out.println(answer);
^
Main.java:8: error: illegal start of expression
????????System.out.println(answer);
 ^
Main.java:8: error: illegal start of expression
????????System.out.println(answer);
  ^
Main.java:8: error: illegal start of expression
????????System.out.println(answer);
   ^
Main.java:8: error: illegal start of expression
????????System.out.println(answer);
    ^
Main.java:8: error: illegal start of expression
????????System.out.println(answer);
     ^
Main.java:8: error: illegal start of expression
????????System.out.println(answer);
      ^
Main.java:8: error: illegal start of expression
????????System.out.println(answer);
       ^
Main.java:8: error: : expected
????????System.out.println(answer);
                                  ^
Main.java:9: error: illegal start of expression
????}
^
Main.java:9: error: illegal start of expression
????}
 ^
Main.java:9: error: illegal start of expression
????}
  ^
Main.java:9: error: illegal start of expression
????}
   ^
Main.java:9: error: illegal start of expression
????}
    ^
36 errors