Language: Java



import java.io.*;
??
class Main{
??public static void main(String[] args) throws IOException{
????BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
??
????String[] str = br.readLine().split(" ");
??
????int x=Integer.parseInt(str[0]);
????int y=Integer.parseInt(str[1]);
??
????System.out.println(x*y + " " + (2*x+2*y));
??}
}

Compiler output:
Main.java:4: error: class, interface, enum, or record expected
??
^
Main.java:6: error: illegal start of type
??public static void main(String[] args) throws IOException{
^
Main.java:7: error: illegal start of expression
????BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
^
Main.java:7: error: illegal start of expression
????BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
 ^
Main.java:7: error: illegal start of expression
????BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
  ^
Main.java:7: error: illegal start of expression
????BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
   ^
Main.java:7: error: : expected
????BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
                  ^
Main.java:7: error: : expected
????BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
                                                                            ^
Main.java:8: error: illegal start of expression
??
^
Main.java:8: error: illegal start of expression
??
 ^
Main.java:9: error: illegal start of expression
????String[] str = br.readLine().split(" ");
^
Main.java:9: error: illegal start of expression
????String[] str = br.readLine().split(" ");
 ^
Main.java:9: error: illegal start of expression
????String[] str = br.readLine().split(" ");
  ^
Main.java:9: error: illegal start of expression
????String[] str = br.readLine().split(" ");
   ^
Main.java:9: error: '.class' expected
????String[] str = br.readLine().split(" ");
             ^
Main.java:9: error: : expected
????String[] str = br.readLine().split(" ");
                                           ^
Main.java:10: error: illegal start of expression
??
^
Main.java:10: error: illegal start of expression
??
 ^
Main.java:11: error: illegal start of expression
????int x=Integer.parseInt(str[0]);
^
Main.java:11: error: illegal start of expression
????int x=Integer.parseInt(str[0]);
 ^
Main.java:11: error: illegal start of expression
????int x=Integer.parseInt(str[0]);
  ^
Main.java:11: error: illegal start of expression
????int x=Integer.parseInt(str[0]);
   ^
Main.java:11: error: '.class' expected
????int x=Integer.parseInt(str[0]);
        ^
Main.java:11: error: : expected
????int x=Integer.parseInt(str[0]);
                                  ^
Main.java:12: error: illegal start of expression
????int y=Integer.parseInt(str[1]);
^
Main.java:12: error: illegal start of expression
????int y=Integer.parseInt(str[1]);
 ^
Main.java:12: error: illegal start of expression
????int y=Integer.parseInt(str[1]);
  ^
Main.java:12: error: illegal start of expression
????int y=Integer.parseInt(str[1]);
   ^
Main.java:12: error: '.class' expected
????int y=Integer.parseInt(str[1]);
        ^
Main.java:12: error: : expected
????int y=Integer.parseInt(str[1]);
                                  ^
Main.java:13: error: illegal start of expression
??
^
Main.java:13: error: illegal start of expression
??
 ^
Main.java:14: error: illegal start of expression
????System.out.println(x*y + " " + (2*x+2*y));
^
Main.java:14: error: illegal start of expression
????System.out.println(x*y + " " + (2*x+2*y));
 ^
Main.java:14: error: illegal start of expression
????System.out.println(x*y + " " + (2*x+2*y));
  ^
Main.java:14: error: illegal start of expression
????System.out.println(x*y + " " + (2*x+2*y));
   ^
Main.java:14: error: : expected
????System.out.println(x*y + " " + (2*x+2*y));
                                             ^
Main.java:15: error: illegal start of expression
??}
^
Main.java:15: error: illegal start of expression
??}
 ^
Main.java:15: error: illegal start of expression
??}
  ^
40 errors