criyle/codenet-compile-errors huggingface dataset:
Language: Java

public class Main {
    public static void main(String args[]) {
        Scanner scan = new Scanner(System.in);
        int x = Integer.parseInt(scan.next());
        int y = Integer.parseInt(scan.next());
        System.out.println(x * y);
    }
}

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

 public static void main(String args[]) {
        Scanner scan = new Scanner(System.in);
        int x = Integer.parseInt(scan.next());
        int y = Integer.parseInt(scan.next());
        System.out.println(x * y);
    }

Compiler output:
Main.java:1: 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)
1 error
Language: Java

 public static void main(String args[]) {
        Scanner scan = new Scanner(System.in);
        int x = Integer.parseInt(scan.next());
        int y = Integer.parseInt(scan.next());
        System.out.println(x * y + (x + y) * 2);
    }

Compiler output:
Main.java:1: 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)
1 error
Language: Java

 public static void main(String args[]) {
        Scanner scan = new Scanner(System.in);
        int x = Integer.parseInt(scan.next());
        int y = Integer.parseInt(scan.next());
        int area = x * y;
        int distance = (x + y) * 2;
        System.out.print(area +" "+ distance);
    }

Compiler output:
Main.java:1: 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)
1 error
Language: Java

import java.io.*;

public class Main {

  public static void main(String[] args) throws IOException {
    try (BufferedReader reader = new BufferedReader(new InputStreamReader(System.in))) {
      final String numbers = reader.readLine().split(" ");
      final int resVal = Integer.parseInt(numbers[0]) * Integer.parseInt(numbers[1]);
      System.out.println(resVal);
    }
  }
}

Compiler output:
Main.java:7: error: incompatible types: String[] cannot be converted to String
      final String numbers = reader.readLine().split(" ");
                                                    ^
Main.java:8: error: array required, but String found
      final int resVal = Integer.parseInt(numbers[0]) * Integer.parseInt(numbers[1]);
                                                 ^
Main.java:8: error: array required, but String found
      final int resVal = Integer.parseInt(numbers[0]) * Integer.parseInt(numbers[1]);
                                                                                ^
3 errors
Language: Java

import java.io.*;

public class Main {

  public static void main(String[] args) throws IOException {
    try (BufferedReader reader = new BufferedReader(new InputStreamReader(System.in))) {
      String[] numbers = reader.readLine().split(" ");
      int h = Integer.parseInt(numbers[0]);
      int w = Integer.parseInt(numbers[1]);
      int a = h * w;
      int c = (h*2) + (w*2)
      System.out.println(String.format("%s %s", a, c));
    }
  }
}

Compiler output:
Main.java:11: error: ';' expected
      int c = (h*2) + (w*2)
                           ^
1 error
Language: Java

package test;

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

class Test{
	public static void main(String args[]) throws IOException{
		//System.out.println("hello world");
		
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));

		String str;
		while((str=br.readLine())!=null){
		String[] b=str.split(" ",0);
		int a=Integer.parseInt(b[0]);
		int c=Integer.parseInt(b[1]);
		int d=(2*a)+(2*c);
		System.out.println(a*c+" "+d);
		}
		br.close();
	}
}

Compiler output:
Main.java:7: error: cannot find symbol
	public static void main(String args[]) throws IOException{
	                                              ^
  symbol:   class IOException
  location: class Test
1 error
Language: Java

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

public class Xi {
	public static void main(String[] args) throws IOException{	
		
		 Scanner cthanh = new Scanner(System.in);
        int x;
		int y;
		x= cthanh.nextInt();
		y= cthanh.nextInt();
        System.out.println( x * y );
		
	}
}
		
    
    
   

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

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

public class Xi {
	public static void main(String[] args) throws IOException{	
		
		 Scanner cthanh = new Scanner(System.in);
        int x;
		int y;
		x= cthanh.nextInt(); y= cthanh.nextInt();
        System.out.println( x * y + " " + 2*x + 2*y  );
		
		
	}
}
		
    
    
   

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

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

public class main {

	public static void main(String[] args) throws IOException{
		// TODO ?????????????????????????????????????????????

		//????????\???
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str1 = br.readLine();
		String str2 = br.readLine();
		int a = Integer.parseInt(str1); int b = Integer.parseInt(str2);

		int area = a*b;
		int circum = (2*a)+(2*b);

		System.out.println(area+" "+circum);


	}

}

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

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

public class Rectangle {

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

		String str1 = br.readLine();
		String str2 = br.readLine();

		int a =Integer.parseInt(str1);
		int b =Integer.parseInt(str2);

		int area,cir;
		area = a*b;
		cir = (2*a)+(2*b);

		System.out.println(area+(" ")+cir);

	}

}

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

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Rectangle {

	public static void main(String[] args) throws IOException{
		// TODO ??????????????????????????????????????????

		String str;


		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		str = br.readLine();

		/*int num = str.indexOf(" ");
		String str1 = str.substring(num-1,num);
		String str2 = str.substring(num,num+1);*/

		String[] st = str.split("",0);

		int a = Integer.parseInt(st[0]);
		int b = Integer.parseInt(st[2]);

		int area = a*b;
		int cir = (2*a)+(2*b);

		System.out.println(area+(" ")+cir);

	}

}

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

public class Main{
    public static void main(String args[]){
    int length = a;
    int height = b;
    int squareArea = length * height;
    System.out.println(SquareArea);
    int round = 2 * a + 2 * b;
    System.out.println(round);
    }
}

Compiler output:
Main.java:3: error: cannot find symbol
    int length = a;
                 ^
  symbol:   variable a
  location: class Main
Main.java:4: error: cannot find symbol
    int height = b;
                 ^
  symbol:   variable b
  location: class Main
Main.java:6: error: cannot find symbol
    System.out.println(SquareArea);
                       ^
  symbol:   variable SquareArea
  location: class Main
Main.java:7: error: cannot find symbol
    int round = 2 * a + 2 * b;
                    ^
  symbol:   variable a
  location: class Main
Main.java:7: error: cannot find symbol
    int round = 2 * a + 2 * b;
                            ^
  symbol:   variable b
  location: class Main
5 errors
Language: Java

public class Main{
    public static void main(String args[]){
    int a;
    int b;
    int length = a;
    int height = b;
    int squareArea = length * height;
    System.out.println(SquareArea);
    int round = 2 * a + 2 * b;
    System.out.println(round);
    }
}

Compiler output:
Main.java:8: error: cannot find symbol
    System.out.println(SquareArea);
                       ^
  symbol:   variable SquareArea
  location: class Main
1 error
Language: Java

public class Main{
    public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int a;
    a = sc.nextInt();
    int b;
    b = sc.nextInt();
    System.out.print(a * b);
    System.out.print(2 * a + 2 * b);
}
}

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

public class Main{
    improt java.util.Scanner;
    public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int a;
    int b;
    System.out.print(a * b);
    System.out.print(2 * a + 2 * b);
}
}

Compiler output:
Main.java:2: error: ';' expected
    improt java.util.Scanner;
               ^
Main.java:2: error: <identifier> expected
    improt java.util.Scanner;
                            ^
2 errors
Language: Java

improt java.util.*;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int a;
a = sc.nextInt();
int b;
b = sc.nextInt();
System.out.print(a * b);
System.out.print(2 * a + 2 * b);
}
}

Compiler output:
Main.java:1: error: class, interface, enum, or record expected
improt java.util.*;
^
1 error
Language: Java

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

    int a = scan.next();
    int b = scan.next();

    if(a< b){
    System.out.println("a < b");
    } else if (a > b){
    System.out.println("a > b");
    } else if (a == b){
    System.out.println("a == b");
    }
}
}

Compiler output:
Main.java:1: error: class, interface, enum, or record expected
inport java.util.Scanner;
^
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 = scan.next();
    int b = scan.next();

    if(a< b){
    System.out.println("a < b");
    } else if (a > b){
    System.out.println("a > b");
    } else if (a == b){
    System.out.println("a == b");
    }
}
}

Compiler output:
Main.java:6: error: incompatible types: String cannot be converted to int
    int a = scan.next();
                     ^
Main.java:7: error: incompatible types: String cannot be converted to int
    int b = scan.next();
                     ^
2 errors
Language: Java

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String line = sc.nextLine();
		String[] ss = line.split(" ");
		int a = Integer.parseInt(ss[0]);
		int b = Integer.parseInt(ss[1]);
		System.out.println(a * b);
	}

}

Compiler output:
Main.java:4: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class Main
Main.java:4: error: cannot find symbol
		Scanner sc = 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);
		String line = sc.nextLine();
		String[] ss = line.split(" ");
		int a = Integer.parseInt(ss[0]);
		int b = Integer.parseInt(ss[1]);
		System.out.println(a * b + " " + 2 * a + 2 * b);
	}

}

Compiler output:
Main.java:4: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class Main
Main.java:4: error: cannot find symbol
		Scanner sc = 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);
		String line = sc.nextLine();
		String[] ss = line.split(" ");
		int a = Integer.parseInt(ss[0]);
		int b = Integer.parseInt(ss[1]);
		System.out.println(a * b + " " + (2 * a + 2 * b));
	}

}

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

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String x = sc.nextLine();
		String[] a = x.split(" ");
		int[] b = new int[a.length];
		for (int i = 0; i < b.length; i++) {
			b[i] = Integer.parseInt(a[i]);

		}
		System.out.println(b[0] * b[1] + " " + 2 * b[0] + 2 * b[1]);
	}

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

public class Main
{
public static void main(String[] args)
{
int height=a;
int length=b;
System.out.println(a*b + " " + 2(a;b));
}
}

Compiler output:
Main.java:7: error: ')' or ',' expected
System.out.println(a*b + " " + 2(a;b));
                                ^
Main.java:7: error: not a statement
System.out.println(a*b + " " + 2(a;b));
                                 ^
Main.java:7: error: not a statement
System.out.println(a*b + " " + 2(a;b));
                                   ^
Main.java:7: error: ';' expected
System.out.println(a*b + " " + 2(a;b));
                                    ^
4 errors
Language: Java

public class Main
{
public static void main(String[] args)
{
int height=a;
int length=b;
System.out.println(a*b + " " + 2(a+b));
}
}

Compiler output:
Main.java:7: error: ')' or ',' expected
System.out.println(a*b + " " + 2(a+b));
                                ^
Main.java:7: error: not a statement
System.out.println(a*b + " " + 2(a+b));
                                  ^
Main.java:7: error: ';' expected
System.out.println(a*b + " " + 2(a+b));
                                    ^
3 errors
Language: Java

public class Main
{
public static void main(String[] args)
{
int height=a;
int length=b;
System.out.println(a*b + " " + (2a+2b));
}
}

Compiler output:
Main.java:7: error: ')' expected
System.out.println(a*b + " " + (2a+2b));
                                 ^
Main.java:7: error: not a statement
System.out.println(a*b + " " + (2a+2b));
                                  ^
Main.java:7: error: ';' expected
System.out.println(a*b + " " + (2a+2b));
                                    ^
Main.java:7: error: ';' expected
System.out.println(a*b + " " + (2a+2b));
                                     ^
4 errors
Language: Java

public class Main
{
public static void main(String[] args)
{
int height=a;
int length=b;
System.out.print(a*b);
System.out.print(" ");
System.out.print(2*(a+b));
}
}

Compiler output:
Main.java:5: error: cannot find symbol
int height=a;
           ^
  symbol:   variable a
  location: class Main
Main.java:6: error: cannot find symbol
int length=b;
           ^
  symbol:   variable b
  location: class Main
Main.java:7: error: cannot find symbol
System.out.print(a*b);
                 ^
  symbol:   variable a
  location: class Main
Main.java:7: error: cannot find symbol
System.out.print(a*b);
                   ^
  symbol:   variable b
  location: class Main
Main.java:9: error: cannot find symbol
System.out.print(2*(a+b));
                    ^
  symbol:   variable a
  location: class Main
Main.java:9: error: cannot find symbol
System.out.print(2*(a+b));
                      ^
  symbol:   variable b
  location: class Main
6 errors
Language: Java

public class Main
{
public static void main(String[] args)
{
int height=a;
int length=b;
System.out.println(a*b);
System.out.println(" ");
System.out.println(2*(a+b));
}
}

Compiler output:
Main.java:5: error: cannot find symbol
int height=a;
           ^
  symbol:   variable a
  location: class Main
Main.java:6: error: cannot find symbol
int length=b;
           ^
  symbol:   variable b
  location: class Main
Main.java:7: error: cannot find symbol
System.out.println(a*b);
                   ^
  symbol:   variable a
  location: class Main
Main.java:7: error: cannot find symbol
System.out.println(a*b);
                     ^
  symbol:   variable b
  location: class Main
Main.java:9: error: cannot find symbol
System.out.println(2*(a+b));
                      ^
  symbol:   variable a
  location: class Main
Main.java:9: error: cannot find symbol
System.out.println(2*(a+b));
                        ^
  symbol:   variable b
  location: class Main
6 errors
Language: Java

public class Main{
public static void main(String[] args){
scanner sc=new Scanner(System.in);
int a=sc.nextInt();
int b=sc.nextInt();
System.out.println(a*b + " "+ (a+b)*2);}}

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

public class Main{
public static void main(String[] args){
Scanner sc=new Scanner(System.in);
int a=sc.nextInt();
int b=sc.nextInt();
System.out.println(a*b + " "+ (a+b)*2);}}

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.*;

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


      Scanner s  = new Scanner(System.in);
      // System.out.print("[??°???????????????????????§2?????\?????????????????????] >");
      String line = s.nextLine();
      String[] array = line.split(" ");
      int a = Integer.parseInt(array[0]);
      int b = Integer.parseInt(array[1]);
      int square = a * b;
      int length = (2*a) + (2*b);
      System.out.println(square + " " length);



  }
}

Compiler output:
Main.java:15: error: ')' or ',' expected
      System.out.println(square + " " length);
                                     ^
Main.java:15: error: not a statement
      System.out.println(square + " " length);
                                      ^
Main.java:15: error: ';' expected
      System.out.println(square + " " length);
                                            ^
3 errors
Language: Java

public class Main {
  public static void main(String[] args) {
    Scanner scan = new Scanner(System.in);
    int x = scan.nextInt();
    int y = scan.nextInt();
    int menseki = x * y;
    int syu = (2 * x)+(2 * y);
    System.out.println(menseki + " " + syu);
  }
}

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

public class Main {
  public static void main(String[] args) {
    Scanner scan = new java.util.Scanner(System.in);
    int x = scan.nextInt();
    int y = scan.nextInt();
    int menseki = x * y;
    int syu = (2 * x)+(2 * y);
    System.out.println(menseki + " " + syu);
  }
}

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

import java.util.Scanner;

class test{
   public static void main(String[] args){
       Scanner sc = new Scanner(System.in);
       sc.useDelimiter("\\s");
       int a = sc.nextInt();
       int b = sc.nextInt();
       
       System.out.print(a*b +" " + (a*2+b*2) "\n");
   }
}

Compiler output:
Main.java:10: error: ')' or ',' expected
       System.out.print(a*b +" " + (a*2+b*2) "\n");
                                            ^
1 error
Language: Java

import java.io.*;
  
public class Main {
  public static void main(String[] args) throws Exception {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String inputs = br.readLine().split(" ");
    int a = Integer.parseInt(inputs[0]), b = Integer.parseInt(inputs[1]);
    int volume = a * b;
    int length = (a + b) * 2;
  
    System.out.println(volume + " " + length);
  }
}

Compiler output:
Main.java:6: error: incompatible types: String[] cannot be converted to String
    String inputs = br.readLine().split(" ");
                                       ^
Main.java:7: error: array required, but String found
    int a = Integer.parseInt(inputs[0]), b = Integer.parseInt(inputs[1]);
                                   ^
Main.java:7: error: array required, but String found
    int a = Integer.parseInt(inputs[0]), b = Integer.parseInt(inputs[1]);
                                                                    ^
3 errors
Language: Java

import java.io.*;

class Main{
    public static void main(String[] args) throws Exception{

        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String num1 = br.readLine();
        int x = Integer.parseInt(num1);

        String num2 = br.readline();
        int y = Integer.ParseInt(num2);

        int area = x * y;
        int length = x * 2 + y * 2;

        System.out.println(area);
        System.out.println(length);
    }
}

Compiler output:
Main.java:10: error: cannot find symbol
        String num2 = br.readline();
                        ^
  symbol:   method readline()
  location: variable br of type BufferedReader
Main.java:11: error: cannot find symbol
        int y = Integer.ParseInt(num2);
                       ^
  symbol:   method ParseInt(String)
  location: class Integer
2 errors
Language: Java

import java.io.*;

class PR1_1_B{
    public static void main(String[] args) throws Exception{

        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String num1 = br.readLine();
        int x = Integer.parseInt(num1);

        String num2 = br.readline();
        int y = Integer.parseInt(num2);

        int area = x * y;
        int length = x * 2 + y * 2;

        System.out.println(area);
        System.out.println(length);
    }
}

Compiler output:
Main.java:10: error: cannot find symbol
        String num2 = br.readline();
                        ^
  symbol:   method readline()
  location: variable br of type BufferedReader
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));
        String[] num = br.readLine().aplit(" ");

        int x = Integer.parseInt(num[0]);
        int y = Integer.parseInt(num[1]);

        int area = x * y;
        int length = (x + y) * 2;

        System.out.println(area + " " + length);
    }
}

Compiler output:
Main.java:7: error: cannot find symbol
        String[] num = br.readLine().aplit(" ");
                                    ^
  symbol:   method aplit(String)
  location: class String
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));
        String num1 = br.readLine();
        String[] num2 = num1.split(" "); 

        int x = Integer.parseInt(num2[0]);
        int y = Integer.parseInt(num2[1]);

        int area = x * y;
        int length = 2 * (x + y);

        System.out.println(area + " " + length);
    }
}

Compiler output:
Main.java:1: error: illegal character: '\'
\import java.io.*;
^
Main.java:1: error: class, interface, enum, or record expected
\import java.io.*;
        ^
2 errors
Language: Java

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

		int a, b, menseki, mawari;

		Scanner scan = new Scanner(System.in);

		a = Integer.parseInt(scan.next());
		b = Integer.parseInt(scan.next());

		if ((a >= 1) && (b <= 100)) {

			menseki = a * b;
			mawari = 2 * (a + b);
			System.out.println(menseki + " " + mawari);
		}
	}
}

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

public class Main {
    public static void main(String[] args){
    System.out.print("1???100????????????????\?????????°??????????????????????????§????????£?????\????????????????????????");
    Scanner scan = new Scanner(System.in);
    int a = scan.nextInt();
    int b = scan.nextInt();
    
    if(1 <= a && a <= 100 && 1 <= b && b <= 100) {
        System.out.println(a * b + " " + (a + b) * 2);
    }
    
}

Compiler output:
Main.java:3: error: illegal escape character
    System.out.print("1???100????????????????\???????????????????????????????????????????????????\????????????????????????");
                                              ^
Main.java:3: error: illegal escape character
    System.out.print("1???100????????????????\???????????????????????????????????????????????????\????????????????????????");
                                                                                                  ^
Main.java:12: error: reached end of file while parsing
}
 ^
3 errors
Language: Java

public class Main {
    public static void main(String[] args){
    System.out.print("1???100????????????????\?????????°??????????????????????????§????????£?????\????????????????????????");
    Scanner scan = new Scanner(System.in);
    int a = scan.nextInt();
    int b = scan.nextInt();
    
    if(1 <= a && a <= 100 && 1 <= b && b <= 100) {
        System.out.println(a * b + " " + (a + b) * 2);
    }
  }  
}

Compiler output:
Main.java:3: error: illegal escape character
    System.out.print("1???100????????????????\???????????????????????????????????????????????????\????????????????????????");
                                              ^
Main.java:3: error: illegal escape character
    System.out.print("1???100????????????????\???????????????????????????????????????????????????\????????????????????????");
                                                                                                  ^
2 errors
Language: Java

import java.util.*;

public class Main {
	public static void main(String[] args) throws Exception{
		Scanner sc = new Scanner(System.in);
		short a = sc.nextInt();
		short b = sc.nextInt();
		System.out.println(a*b+" "+(2*a+2*b));
	}
}

Compiler output:
Main.java:6: error: incompatible types: possible lossy conversion from int to short
		short a = sc.nextInt();
		                    ^
Main.java:7: error: incompatible types: possible lossy conversion from int to short
		short b = sc.nextInt();
		                    ^
2 errors
Language: Java

import java.util.Scanner;

class Main{
    public static void main(String[] a){
      Scanner sc = new Scanner(System.in);
      a= sc.nextInt(); 
      b= sc.nextInt(); 
      System.out.println(a*b);
    }
}

Compiler output:
Main.java:6: error: incompatible types: int cannot be converted to String[]
      a= sc.nextInt(); 
                   ^
Main.java:7: error: cannot find symbol
      b= sc.nextInt(); 
      ^
  symbol:   variable b
  location: class Main
Main.java:8: error: cannot find symbol
      System.out.println(a*b);
                           ^
  symbol:   variable b
  location: class Main
3 errors
Language: Java

import java.util.Scanner;

class Main{
    public static void main(String[] a){
      Scanner sc = new Scanner(System.in);
      int a= sc.nextInt(); 
      int b= sc.nextInt(); 
      System.out.println(a*b);
    }
}

Compiler output:
Main.java:6: error: variable a is already defined in method main(String[])
      int a= sc.nextInt(); 
          ^
1 error
Language: Java

import java.util.Scanner;
class Main{
    public static void main(String[] a){
      Scanner sc = new Scanner(System.in);
      int a= sc.nextInt(); 
      int b= sc.nextInt(); 
      System.out.println(a*b);
      System.out.println(2*(a+b));
    }
}

Compiler output:
Main.java:5: error: variable a is already defined in method main(String[])
      int a= sc.nextInt(); 
          ^
1 error
Language: Java

public class Main{
 public static void main(String[]args){
 int a=new .java.util.Scanner(System.in).nextInt();
 int b=new .java.util.Scanner(System.in).nextInt();
 System.out.println(a*b+" "+2*(a+b));
}
}

Compiler output:
Main.java:3: error: <identifier> expected
 int a=new .java.util.Scanner(System.in).nextInt();
          ^
Main.java:4: error: <identifier> expected
 int b=new .java.util.Scanner(System.in).nextInt();
          ^
2 errors
Language: Java

import java.io.*;

class Main
{

     static String[] data = new String[2];

     static int getS() {
          return (Integer.parseInt(data[0]))*(Integer.parseInt(data[1]));
     }

     static int getL() {
          return 2*((Integer.parseInt(data[0]))+(Integer.parseInt(data[1])));
     

     public static void main (String[] args)
     {
          BufferedReader br = new BufferedReader(new InputStreamReader(Sysytem.in));
          try {
               data = (br.readLine()).split(" ");
          } catch (IOException e) {
          } finally {
               try {
                    br.close();
               } catch (IOException e) {
               }
          }
          System.out.println(getS() + " " + getL());
     }
}

Compiler output:
Main.java:16: error: illegal start of expression
     public static void main (String[] args)
     ^
1 error
Language: Java

public class Rectangle {

	public static void main(String[] args) {
		int a = 5;
		int b = 7;

		System.out.println("??¢??????" + a +  " ?? " + b + " = " + (a * b));
		System.out.println("??¨???????????????" + "(" + a + " ?? " + b + ")" + " ?? " + "2 = " + ((a * b) * 2));
	}

}

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

public class Rectangle {

	public static void main(String[] args) {
		int a = 5;
		int b = 7;

		System.out.println(a * b);
		System.out.println((a * b) * 2);
	}

}

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

class Rectangle {

	public static void main(String[] args) {
		int a = 5;
		int b = 7;

		System.out.println(a * b);
		System.out.println(a * b) * 2);
	}

}

Compiler output:
Main.java:8: error: not a statement
		System.out.println(a * b) * 2);
		                          ^
Main.java:8: error: ';' expected
		System.out.println(a * b) * 2);
		                             ^
2 errors
Language: Java

import java.util.Scanner;

public class Rectangle {

	public static void main(String[] args) {
		int a = 0;
		int b = 0;

		try(Scanner scan = new Scanner(System.in)) {
			System.out.print("???a???");
			a = scan.nextInt();
			System.out.print("???b???");
			b = scan.nextInt();

			System.out.println("??¢??????" + a +  " ?? " + b + " = " + (a * b));
			System.out.println("??¨???????????????" + "(" + a + " ?? " + b + ")" + " ?? " + "2 = " + ((a * b) * 2));
		}
	}

}

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

import java.util.Scanner;

public class Rectangle {

	public static void main(String[] args) {
		int a = 0;
		int b = 0;

		try(Scanner scan = new Scanner(System.in)) {
			a = scan.nextInt();
			b = scan.nextInt();

			System.out.println((a * b) + " " + ((a + b) * 2));
		}
	}
}

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

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

public class Rectangle {

	public static void main(String[] args) throws Exception {
		// TODO ?????????????????????????????????????????????

        try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {
            String line;
            while ((line = br.readLine()) != null&&line.length()!=0) {
            	String[] str=line.split(" ");
            	int a=Integer.parseInt(str[0]);
            	int b=Integer.parseInt(str[1]);

            	System.out.println(a*b+" "+(a*2+b*2));
            	break;
            }
         }
	}

}

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

import java.io.*;

class Main (
    public static void main( String[] args ) throws IOException
    {
        int width;
        int height;
        BufferedReader br = new BufferedReader( new InputStreamReader( System.in ) );
        String line = br.readLine();
        String[] splitStr = line.split( " ", 0 );
        width = Integer.parseInt( splitStr[ 0 ] );
        height = Integer.parseInt( splitStr[ 1 ] );
        System.out.println( width* height + " " + 2 * ( width + height ) );
    }
}

        

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

public class Main {
	public static void main(String[] args) throws Exception {
	    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

	    String line = br.readLine();
	    int x = Integer.parseInt(line.split(" ")[0]);
	    int y = Integer.parseInt(line.split(" ")[1]);

	    int area = x * y;
	    int len = (x + y) * 2;

	    System.out.println(area + " " + len);
	}
}

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

import java.util.Scanner;
public class Main{
public static void main(String[] arts){
Scanner sc = new Scanner(System.in);
int a = sc,nextInt();
int b = sc.nextInt();
System.out.println(a*b);
System.out.println(2*(a+b));
}
}

Compiler output:
Main.java:5: error: ';' expected
int a = sc,nextInt();
                  ^
1 error
Language: Java

import java.util.Scanner;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int a = sc,nextInt();
int b = sc.nextInt();
System.out.println(a*b);
System.out.println(2*(a+b));
}
}

Compiler output:
Main.java:5: error: ';' expected
int a = sc,nextInt();
                  ^
1 error
Language: Java

import java.util.Scanner;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int a = sc,nextInt();
int b = sc.nextInt();
System.out.print(a*b + " ");
System.out.println(2*(a+b));
}
}

Compiler output:
Main.java:5: error: ';' expected
int a = sc,nextInt();
                  ^
1 error
Language: Java

import java.util.Scanner;
public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int a = sc,nextInt();
		int b = sc.nextInt();
		System.out.print((a*b)+ " ");
		System.out.println(2*(a+b));
	}
}

Compiler output:
Main.java:5: error: ';' expected
		int a = sc,nextInt();
		                  ^
1 error
Language: Java

import java.util.Scanner;

pulbic class Main {

public static void main() {

    Scanner scan = new Scanner(System.in);
    int i = scan.nextInt();
    int j = scan.nextInt();
    System.out.print((i+j)*2);
    System.out.print(" ");
    System.out.print(i*j));
}

}

Compiler output:
Main.java:3: error: class, interface, enum, or record expected
pulbic class Main {
^
Main.java:12: error: ';' expected
    System.out.print(i*j));
                         ^
2 errors
Language: Java

import java.util.Scanner;

pulbic class Main {

public static void main() {

    Scanner scan = new Scanner(System.in);
    int i = scan.nextInt();
    int j = scan.nextInt();
    System.out.print((i+j)*2);
    System.out.print(" ");
    System.out.print(i*j);
}

}

Compiler output:
Main.java:3: error: class, interface, enum, or record expected
pulbic class Main {
^
1 error
Language: Java

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

public class Rectangle{
    public static void main(String[] args){
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    
    try{
        String str = br.readLine();
        StringTokenizer st = new StringTokenizer(str, " ");
    
        int x = Integer.parseInt(st.nextToken());
        int y = Integer.parseInt(st.nextToken());
        
        int n = 0;
        int m = 0;
        
        n = x * y;
        m = 2 * (x + y);
        
        
        System.out.println(n);
        System.out.println(m);
        
        
        
    }catch(IOException e){}
    
    
    




    }
}

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

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

public class Main{
  public static void main(String[] args) {
    try {
      BufferedReader stdReader =
        new BufferedReader(new InputStreamReader(System.in));
      String line0;
      line0 = stdReader.readLine();
      line1 = stdReader.readLine();
    	  int x = Integer.parseInt(line0);
    	  int y = Integer.parseInt(line1);
          System.out.println(x*y+" "+2x+2y);

      stdReader.close();
    } catch (Exception e) {
      e.getStackTrace();
      /*?????´??????0??????*/
      System.exit(0); 
    }
  }
}

Compiler output:
Main.java:14: error: ')' or ',' expected
          System.out.println(x*y+" "+2x+2y);
                                      ^
Main.java:14: error: not a statement
          System.out.println(x*y+" "+2x+2y);
                                       ^
Main.java:14: error: ';' expected
          System.out.println(x*y+" "+2x+2y);
                                         ^
Main.java:14: error: ';' expected
          System.out.println(x*y+" "+2x+2y);
                                          ^
4 errors
Language: Java

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

public class Main{
  public static void main(String[] args) {
    try {
      BufferedReader stdReader =new BufferedReader(new InputStreamReader(System.in));
      String line0;
      String line1;
      line0 = stdReader.readLine();
      line1 = stdReader.readLine();
    	  int x = Integer.parseInt(line0);
    	  int y = Integer.parseInt(line1);
          System.out.println(x*y+" "+2x+2y);

      stdReader.close();
    } catch (Exception e) {
      e.getStackTrace();
      /*?????´??????0??????*/
      System.exit(0); 
    }
  }
}

Compiler output:
Main.java:14: error: ')' or ',' expected
          System.out.println(x*y+" "+2x+2y);
                                      ^
Main.java:14: error: not a statement
          System.out.println(x*y+" "+2x+2y);
                                       ^
Main.java:14: error: ';' expected
          System.out.println(x*y+" "+2x+2y);
                                         ^
Main.java:14: error: ';' expected
          System.out.println(x*y+" "+2x+2y);
                                          ^
4 errors
Language: Java

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

public class Main{
  public static void main(String[] args) {
    try {
      BufferedReader stdReader =new BufferedReader(new InputStreamReader(System.in));
      String line0;
      String line1;
      line0 = stdReader.readLine();
      line1 = stdReader.readLine();
    	  int x = Integer.parseInt(line0);
    	  int y = Integer.parseInt(line1);
          System.out.println(x*y+" "+2(x+y));

      stdReader.close();
    } catch (Exception e) {
      e.getStackTrace();
      /*?????´??????0??????*/
      System.exit(0); 
    }
  }
}

Compiler output:
Main.java:14: error: ')' or ',' expected
          System.out.println(x*y+" "+2(x+y));
                                      ^
Main.java:14: error: not a statement
          System.out.println(x*y+" "+2(x+y));
                                        ^
Main.java:14: error: ';' expected
          System.out.println(x*y+" "+2(x+y));
                                          ^
3 errors
Language: Java

import java.util.Scanner;

public class Rectangle{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);		
		String input = sc.nextLine();
		String[] inputArray = input.split(" ");

		if(inputArray.length == 2){
			int width = Integer.parseInt(inputArray[0]);
			int height = Integer.parseInt(inputArray[1]);
			
			int menseki = width * height;
			int syuu = width * 2 + height * 2;
			System.out.println(menseki + " " + syuu);
		}else{
			System.out.println("2???????????¶??°?????\?????????????????????");
		}
	}
}

Compiler output:
Main.java:17: error: illegal escape character
			System.out.println("2????????????????????\?????????????????????");
			                                          ^
1 error
Language: Java

import java.util.*;
import java.lang.*;
import java.io.*;
??
/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
	public static void main (String[] args) throws java.lang.Exception
	{
		int price;
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		tate = Integer.parseInt(br.readLine());
                yoko = Integer.parseInt(br.readLine());
		System.out.println(tate * yoko);
                System.out.println((tate + yoko) * 2);
	}
}

Compiler output:
Main.java:4: error: class, interface, enum, or record expected
??
^
1 error
Language: Java

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

class Main
{
????????public static void main (String[] args) throws java.lang.Exception
????????{
		int a, b;
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str = br.readLine();
        String[] str1Ary = str.split(" ");
        a = Integer.parseInt(str1Ary[0]);
        b = Integer.parseInt(str1Ary[1]);
        System.out.print(a * b + " ");
        System.out.println((a + b) * 2);
????????}
}

Compiler output:
Main.java:7: error: illegal start of type
????????public static void main (String[] args) throws java.lang.Exception
^
Main.java:7: error: ';' expected
????????public static void main (String[] args) throws java.lang.Exception
                                                                          ^
Main.java:17: error: illegal start of expression
????????}
^
Main.java:17: error: illegal start of expression
????????}
 ^
Main.java:17: error: illegal start of expression
????????}
  ^
Main.java:17: error: illegal start of expression
????????}
   ^
Main.java:17: error: illegal start of expression
????????}
    ^
Main.java:17: error: illegal start of expression
????????}
     ^
Main.java:17: error: illegal start of expression
????????}
      ^
Main.java:17: error: illegal start of expression
????????}
       ^
Main.java:17: error: illegal start of expression
????????}
        ^
11 errors
Language: Java

import java.util.*;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
sc.useDelimiter("\\s");
int a;
a= sc.nextInt();
int b;
b= sc.nextInt();
System.out.println(a * b);
System.out.println(2 + (a * b));

Compiler output:
Main.java:11: error: reached end of file while parsing
System.out.println(2 + (a * b));
                                ^
1 error
Language: Java

import java.util.Scanner;

class Main{
    public static void main(String[] a){
      Scanner scan = new Scanner(System.ln);
      int a = scan.nextInt();
      int b = scan.nextInt();

      System.out.println(a);
    }
}

Compiler output:
Main.java:5: error: cannot find symbol
      Scanner scan = new Scanner(System.ln);
                                       ^
  symbol:   variable ln
  location: class System
Main.java:6: error: variable a is already defined in method main(String[])
      int a = scan.nextInt();
          ^
2 errors
Language: Java

import java.util.Scanner;

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

      System.out.println(a);
    }
}

Compiler output:
Main.java:6: error: variable a is already defined in method main(String[])
      int a = scan.nextInt();
          ^
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=scan.nextInt();
		int b=scan.nextInt();
		if(a<1){a=1;}
		if(b>100){b=100;}
		int menseki=a*b;
		int syuu=2*(a+b);
		System.out.println(menseki+""syuu);
	}
}

Compiler output:
Main.java:11: error: ')' or ',' expected
		System.out.println(menseki+""syuu);
		                             ^
Main.java:11: error: ';' expected
		System.out.println(menseki+""syuu);
		                                 ^
2 errors
Language: Java

import java.util.Scanner;

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

		int a=0;
		int b=0;
		
		
		try(Scanner scanner=new Scanner(System.in)){
			a=scanner.nextInt();
			b=scanner.nextInt();
		}
		
		if(a >= 1 && b<=100) {
		System.out.print(a*b?\t);
		System.out.println(2*a+2*b);
		}
		
	}

}

Compiler output:
Main.java:16: error: illegal character: '\'
		System.out.print(a*b?\t);
		                     ^
Main.java:16: error: not a statement
		System.out.print(a*b?\t);
		                      ^
Main.java:16: error: ';' expected
		System.out.print(a*b?\t);
		                       ^
3 errors
Language: Java

import java.util.Scanner;
public Main{
    public static void main(String[] args){
    Scanner InData = new Scanner(System.io);
    int a = InData.nextInt();
    int b = InData.nextInt();
    System.out.print(a*b);
    System.out.print((a+b)*2);
    }
}

Compiler output:
Main.java:2: error: class, interface, enum, or record expected
public Main{
       ^
Main.java:3: 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:10: error: class, interface, enum, or record expected
}
^
3 errors
Language: Java

import java.util.Scanner;
import java.util.InputMismatchException;

class Main{
public static void main(String args[]){
Scanner1 scanner1 = new Scanner(System.in);
Scanner2 scanner2 = new Scanner(System.in);
int a = scanner1.nextInt();
int b = scanner2.nextInt();
System.out.println(a*b 2a+2b);
}
}

Compiler output:
Main.java:10: error: ')' or ',' expected
System.out.println(a*b 2a+2b);
                      ^
Main.java:10: error: not a statement
System.out.println(a*b 2a+2b);
                         ^
Main.java:10: error: ';' expected
System.out.println(a*b 2a+2b);
                           ^
Main.java:10: error: ';' expected
System.out.println(a*b 2a+2b);
                            ^
4 errors