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

import java.io.BufferedReader;
import java.io.InputStreamReader;
 
public class Main{
  public static void main(String[] args) throws Exception{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String[] strArray;
		strArray = br.readLine().split("\\s");
		System.out.println(Integer.parseInt(strArray[0]) * Integer.parseInt(strArray[1]) & " " & Integer.parseInt(strArray[0]) * 2 + Integer.parseInt(strArray[1]) * 2);
	}
}

Compiler output:
Main.java:9: error: bad operand types for binary operator '&'
		System.out.println(Integer.parseInt(strArray[0]) * Integer.parseInt(strArray[1]) & " " & Integer.parseInt(strArray[0]) * 2 + Integer.parseInt(strArray[1]) * 2);
		                                                                                 ^
  first type:  int
  second type: String
1 error
Language: Java

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

Compiler output:
Main.java:9: error: ')' or ',' expected
		System.out.println(Integer.parseInt(strArray[0]) * Integer.parseInt(strArray[1])  " " + Integer.parseInt(strArray[0]) * 2 + Integer.parseInt(strArray[1]) * 2);
		                                                                                ^
Main.java:9: error: not a statement
		System.out.println(Integer.parseInt(strArray[0]) * Integer.parseInt(strArray[1])  " " + Integer.parseInt(strArray[0]) * 2 + Integer.parseInt(strArray[1]) * 2);
		                                                                                                                          ^
Main.java:9: error: ';' expected
		System.out.println(Integer.parseInt(strArray[0]) * Integer.parseInt(strArray[1])  " " + Integer.parseInt(strArray[0]) * 2 + Integer.parseInt(strArray[1]) * 2);
		                                                                                                                                                             ^
3 errors
Language: Java

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

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

import java.io.*;

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

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

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

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

public class Rectangle {
	public static void main(String[] args) {
		int a = 3;
		int b = 5;
		System.out.println(a*b);
		System.out.println((2*a)+(2*b));
		
		

	}

}

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 main {
	public static void main(String[] args) {
		int a = 3;
		int b = 5;
		System.out.println(a*b);
		System.out.println((2*a)+(2*b));
		
		

	}

}

Compiler output:
Main.java:1: error: class main is public, should be declared in a file named main.java
public class main {
       ^
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+2*b);
 }
}

Compiler output:
Main.java:5: error: ')' or ',' expected
  System.out.println(a*b 2*a+2*b);
                        ^
Main.java:5: error: not a statement
  System.out.println(a*b 2*a+2*b);
                            ^
Main.java:5: error: ';' expected
  System.out.println(a*b 2*a+2*b);
                                ^
3 errors
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();
  message=a*b+' '+2*a+2*b;
  System.out.println(message);
 }
}

Compiler output:
Main.java:5: error: cannot find symbol
  message=a*b+' '+2*a+2*b;
  ^
  symbol:   variable message
  location: class Main
Main.java:6: error: cannot find symbol
  System.out.println(message);
                     ^
  symbol:   variable message
  location: class Main
2 errors
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();
  message=a*b+" "+2*a+2*b;
  System.out.println(message);
 }
}

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

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

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

import java.util.Scanner;

class Main {

   public static void main(String[] args){
      Scanner stdIn = new Scanner(System.in);

      int a = stdIn.nextInt();
      int b = stdIn.nextInt();

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

   }
}

Compiler output:
Main.java:12: error: no suitable method found for print(no arguments)
      System.out.print();
                ^
    method PrintStream.print(boolean) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.print(char) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.print(int) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.print(long) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.print(float) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.print(double) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.print(char[]) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.print(String) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.print(Object) is not applicable
      (actual and formal argument lists differ in length)
1 error
Language: Java

import java.util.Scanner;

class Main {

   public static void main{
      Scanner stdIn = new Scanner(System.in);

      int a = stdIn.nextInt();
      int b = stdIn.nextInt();

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

   }
}

Compiler output:
Main.java:5: error: '(' expected
   public static void main{
                          ^
1 error
Language: Java

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

Compiler output:
Main.java:2: error: <identifier> expected
public class 1Main {
            ^
1 error
Language: Java

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

Compiler output:
Main.java:3: error: illegal start of expression
		int[] input = new java.util.Scanner(System.in).nextLine( , );
		                                                         ^
Main.java:3: error: illegal start of expression
		int[] input = new java.util.Scanner(System.in).nextLine( , );
		                                                           ^
2 errors
Language: Java

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

Compiler output:
Main.java:3: error: cannot find symbol
		Scanner in = new java.util.Scanner(System.in);
		^
  symbol:   class Scanner
  location: class Main
Main.java:6: error: cannot find symbol
		menseki = a * b;
		^
  symbol:   variable menseki
  location: class Main
Main.java:6: error: bad operand types for binary operator '*'
		menseki = a * b;
		            ^
  first type:  String
  second type: String
Main.java:7: error: cannot find symbol
		mawari = 2 * (a + b);
		^
  symbol:   variable mawari
  location: class Main
Main.java:7: error: bad operand types for binary operator '*'
		mawari = 2 * (a + b);
		           ^
  first type:  int
  second type: String
Main.java:8: error: cannot find symbol
		System.out.println(menseki + " " + mawari);
		                   ^
  symbol:   variable menseki
  location: class Main
Main.java:8: error: cannot find symbol
		System.out.println(menseki + " " + mawari);
		                                   ^
  symbol:   variable mawari
  location: class Main
7 errors
Language: Java

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

Compiler output:
Main.java:3: error: cannot find symbol
		Scanner in = new java.util.Scanner(System.in);
		^
  symbol:   class Scanner
  location: class Main
Main.java:6: error: cannot find symbol
		menseki = a * b;
		^
  symbol:   variable menseki
  location: class Main
Main.java:7: error: cannot find symbol
		mawari = 2 * (a + b);
		^
  symbol:   variable mawari
  location: class Main
Main.java:8: error: cannot find symbol
		System.out.println(menseki + " " + mawari);
		                   ^
  symbol:   variable menseki
  location: class Main
Main.java:8: error: cannot find symbol
		System.out.println(menseki + " " + mawari);
		                                   ^
  symbol:   variable mawari
  location: class Main
5 errors
Language: Java

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

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

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

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

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

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

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

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

public class Main {
	public static void main(String[] args) {
		Scanner in = new java.util.Scanner(System.in);
		int[] s = new int[1];
		
		for(int i = 0 ; i<2 ; i++) {
			s[i] = in.nextInt();
		}
		int a = s[0];
		int b = s[1];
		
		int menseki = a * b;
		int mawari = 2 * (a + b);
		System.out.println(menseki + "と" + mawari);
	}
}

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

public class Main {
	public static void main(String[] args) {
		Scanner in = new java.util.Scanner(System.in);
		int[] s = new int[1];
		
		for(int i = 0 ; i<2 ; i++) {
			s = in.nextInt();
		}
		
		int a = s[0];
		int b = s[1];
		
		int menseki = a * b;
		int mawari = 2 * (a + b);
		System.out.println(menseki + "と" + mawari);
	}
}

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

import java.io.*;

class Main {
    public static void main(String[] arg){
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str = br.readLine();
        String[] div = str.split(" ");
        int s =  Integer.parseInt(div[0]);
        int l =  Integer.parseInt(div[1]);
        System.out.println(s*l + " "+ 2*(s+l));
    }   
}

Compiler output:
Main.java:6: error: unreported exception IOException; must be caught or declared to be thrown
        String str = br.readLine();
                                ^
1 error
Language: Java

import java.io.*;

class Main {
	public static void main(String[] arg){
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();
		String[] div = str.split(" ");
		int s =  Integer.parseInt(div[0]);
		int l =  Integer.parseInt(div[1]);
		System.out.println(s*l + " "+ 2*(s+l));
    }   
}

Compiler output:
Main.java:6: error: unreported exception IOException; must be caught or declared to be thrown
		String str = br.readLine();
		                        ^
1 error
Language: Java

import java.util.Scanner;
public class ITP1_1_C
{
	public static void main(String args[])
	{
		int n, m;
		Scanner input = new Scanner(System.in);
		n = input.nextInt();
		m = input.nextInt();
		System.out.println(n*m + " " + 2*(n+m));md
	}
}

Compiler output:
Main.java:10: error: not a statement
		System.out.println(n*m + " " + 2*(n+m));md
		                                        ^
Main.java:10: error: ';' expected
		System.out.println(n*m + " " + 2*(n+m));md
		                                          ^
2 errors
Language: Java

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

Compiler output:
Main.java:10: error: not a statement
		System.out.println(n*m + " " + 2*(n+m));md
		                                        ^
Main.java:10: error: ';' expected
		System.out.println(n*m + " " + 2*(n+m));md
		                                          ^
2 errors
Language: Java

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

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

public class Main {  
	public static void main(String[] args)throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		Main m = new Main();
		String line = br.readLine();
		int[] num = m.splitIntChange(line);
		int area = num[0]*num[1];
		int cir = (num[0]+num[1])*2;
		System.out.println(area+" "+cir);
		
	}
	
	public int[] splitIntChange(String str){
		String[] str_ = str.split(" ");
		int strlen = str_.length;
		int[] numarray = new int[strlen];
		
		for(int i = 0;i < strlen;i++){
			numarray[i] = Integer.parseInt(str_[i]); 
		}
		
		return numarray;
	}
}

Compiler output:
Main.java:2: error: cannot find symbol
	public static void main(String[] args)throws IOException{
	                                             ^
  symbol:   class IOException
  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 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
4 errors
Language: Java

import java.io.*;

class Main {
    public static void main(String[] args) throws IOException {
        int[] side = new int[2];
        BufferedReader reader =
            new BufferedReader(new InputStreamReader(System.in));

        for (int i = 0; side.length; i++) {
            String line = reader.readLine();
            side[i] = Integer.parseInt(line);
        }

        int area = side[0] * side[1];
        int areaLength = ( side[0] + side[1] ) * 2;

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

Compiler output:
Main.java:9: error: incompatible types: int cannot be converted to boolean
        for (int i = 0; side.length; i++) {
                            ^
1 error
Language: Java

import java.io.*;

class Main {
    public static void main(String[] args) {
        int[] side = new int[2];
        
        for (int i = 0; side.length; i++) {
            side[i] = Integer.parseInt(args[i]);
        }

        int area = side[0] * side[1];
        int areaLength = ( side[0] + side[1] ) * 2;

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

Compiler output:
Main.java:7: error: incompatible types: int cannot be converted to boolean
        for (int i = 0; side.length; i++) {
                            ^
1 error
Language: Java

class Main {
    public static void main(String[] args) {
        int[] side = new int[2];
        
        for (int i = 0; side.length; i++) {
            side[i] = Integer.parseInt(args[i]);
        }

        int area = side[0] * side[1];
        int areaLength = ( side[0] + side[1] ) * 2;

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

Compiler output:
Main.java:5: error: incompatible types: int cannot be converted to boolean
        for (int i = 0; side.length; i++) {
                            ^
1 error
Language: Java

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

        String line = reader.readLine();
        int[] side = Integer.parseInt(line.split(" "));
        
        int area = side[0] * side[1];
        int areaLength = ( side[0] + side[1] ) * 2;

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

Compiler output:
Main.java:2: error: cannot find symbol
    public static void main(String[] args) throws IOException {
                                                  ^
  symbol:   class IOException
  location: class Main
Main.java:3: error: cannot find symbol
        BufferedReader reader =
        ^
  symbol:   class BufferedReader
  location: class Main
Main.java:4: error: cannot find symbol
            new BufferedReader(new InputStreamReader(System.in));
                ^
  symbol:   class BufferedReader
  location: class Main
Main.java:4: error: cannot find symbol
            new BufferedReader(new InputStreamReader(System.in));
                                   ^
  symbol:   class InputStreamReader
  location: class Main
Main.java:7: error: incompatible types: String[] cannot be converted to String
        int[] side = Integer.parseInt(line.split(" "));
                                                ^
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
5 errors
Language: Java

import java.io.*;

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

        String line = reader.readLine();
        int[] side = Integer.parseInt(line.split(" "));
        
        int area = side[0] * side[1];
        int areaLength = ( side[0] + side[1] ) * 2;

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

Compiler output:
Main.java:9: error: incompatible types: String[] cannot be converted to String
        int[] side = Integer.parseInt(line.split(" "));
                                                ^
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
1 error
Language: Java

imput java.util.Scanner;

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

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

input java.util.Scanner;

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

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

import util.Scanner;

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

}

Compiler output:
Main.java:1: error: package util does not exist
import util.Scanner;
           ^
Main.java:7: error: cannot find symbol
     Scanner in=new Scanner(System.in);
     ^
  symbol:   class Scanner
  location: class Main
Main.java:7: error: cannot find symbol
     Scanner in=new Scanner(System.in);
                    ^
  symbol:   class Scanner
  location: class Main
3 errors
Language: Java

import java.util..Scanner;

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

}

Compiler output:
Main.java:1: error: illegal '.'
import java.util..Scanner;
                 ^
1 error
Language: Java

import java.io.*;
public class ja{
public static void main(String[] agrs)throws IOException
{
BufferedReader br= new BufferedReader(new InputStreamReader(System.in));
String str=br.readLine();
int a=Integer.parseInt(str);
String str1=br.readLine();
int a1=Integer.parseInt(str);
System.out.println(a*a1+" "+a+a+a1+a1);
}
}

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

class Main
{
	
	public static void main(String[] agrs)throws IOException
	{
	BufferedReader br= new BufferedReader(new InputStreamReader(System.in));
	String str=br.readLine();
	String str1=br.readLine();
	int a=Integer.parseInt(str);
	int a1=Integer.parseInt(str1);
	
	System.out.println(a*a1+" "+(a*2+a1*2));
	}
	}

Compiler output:
Main.java:4: error: cannot find symbol
	public static void main(String[] agrs)throws IOException
	                                             ^
  symbol:   class IOException
  location: class Main
Main.java:6: error: cannot find symbol
	BufferedReader br= new BufferedReader(new InputStreamReader(System.in));
	^
  symbol:   class BufferedReader
  location: class Main
Main.java:6: error: cannot find symbol
	BufferedReader br= new BufferedReader(new InputStreamReader(System.in));
	                       ^
  symbol:   class BufferedReader
  location: class Main
Main.java:6: error: cannot find symbol
	BufferedReader br= new BufferedReader(new InputStreamReader(System.in));
	                                          ^
  symbol:   class InputStreamReader
  location: class Main
4 errors
Language: Java

import java.util.Scanner;
public class sample03 {

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

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

}

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

inport java.*;
public class Main{
  public static void main (String[]args)throws IOException{
    BufferedReadder br = new BufferedReader (new InputStreamReader(System));
    int a = Integer.parseInt( br.readLine() );
    int b = Integer.parseInt( br.readLine() );
    System.out.println( "a*b");
     System.out.println( "2*a+2*b" ); 
  }
}
 

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

Inport java.*;
public class Main{
  public static void main (String[]args)throws IOException{
    BufferedReadder br = new BufferedReader (new InputStreamReader(System));
    int a = Integer.parseInt( br.readLine() );
    int b = Integer.parseInt( br.readLine() );
    System.out.println( "a*b");
     System.out.println( "2*a+2*b" ); 
  }
}
 

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

Inport Java.*;
public class Main{
  public static void main (String[]args)throws IOException{
    BufferedReadder br = new BufferedReader (new InputStreamReader(System));
    int a = Integer.parseInt( br.readLine() );
    int b = Integer.parseInt( br.readLine() );
    System.out.println( "a*b");
     System.out.println( "2*a+2*b" ); 
  }
}
 

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

Inport java.io.*;
public class Main{
  public static void main (String[]args)throws IOException{
    BufferedReadder br = new BufferedReader (new InputStreamReader(System));
    int a = Integer.parseInt( br.readLine() );
    int b = Integer.parseInt( br.readLine() );
    System.out.println( "a*b");
     System.out.println( "2*a+2*b" ); 
  }
}
 

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

inport java.io.*;
public class Main{
  public static void main (String[]args)throws IOException{
    BufferedReadder br = new BufferedReader (new InputStreamReader(System));
    int a = Integer.parseInt( br.readLine() );
    int b = Integer.parseInt( br.readLine() );
    System.out.println( "a*b");
     System.out.println( "2*a+2*b" ); 
  }
}
 

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

inport java.io.*;
public class Main{
  public static void main (String[]args)throws IOException{
    BufferedReadder br = new BufferedReader (new InputStreamReader(System));
    int a = Integer.parseInt( br.readLine() );
    int b = Integer.parseInt( br.readLine() );
    System.out.println( "a*b");
     System.out.println( "2*a+2*b" ); 
}

 

Compiler output:
Main.java:1: error: class, interface, enum, or record expected
inport java.io.*;
^
Main.java:9: error: reached end of file while parsing
}
 ^
2 errors
Language: Java

import java.io.*;
public class Main{
  public static void main (String[]args)throws IOException{
    BufferedReadder br = new BufferedReader (new InputStreamReader(System));
    int a = Integer.parseInt( br.readLine() );
    int b = Integer.parseInt( br.readLine() );
    System.out.println( "a*b");
     System.out.println( "2*a+2*b" ); 
  }
}

 

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

import java.io.*;
public class Main{
  public static void main (String[]args)throws IOException{
    BufferedReader br = new BufferedReader (new InputStreamReader(System));
    int a = Integer.parseInt( br.readLine() );
    int b = Integer.parseInt( br.readLine() );
    System.out.println( "a*b");
     System.out.println( "2*a+2*b" ); 
  }
}

 

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

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

Compiler output:
Main.java:7: error: ')' or ',' expected
    System.out.println( a*b"");
                           ^
1 error
Language: Java

import java.util.Scanner;
public class Main{
    public static void main(String[] args) {
	Scanner scan = new Scanner(System.in);
	String input = scan.next();
	String[] parts = input.split(" ");
	int a = parts[0];
	int b = parts[1];
	int area = a * b;
	int length = (a + b) * 2
	System.out.println(area + " " + length);
    }
}

Compiler output:
Main.java:10: error: ';' expected
	int length = (a + b) * 2
	                        ^
1 error
Language: Java

import java.util.Scanner;
public class Main{
    public static void main(String[] args) {
	Scanner scan = new Scanner(System.in);
	String input = scan.next();
	String[] parts = input.split(" ");
	int a = parts[0];
	int b = parts[1];
	int area = a * b;
	int length = (a + b) * 2;
	System.out.println(area + " " + length);
    }
}

Compiler output:
Main.java:7: error: incompatible types: String cannot be converted to int
	int a = parts[0];
	             ^
Main.java:8: error: incompatible types: String cannot be converted to int
	int b = parts[1];
	             ^
2 errors
Language: Java

class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		int a = sc.nextInt();
		int b = sc.nextInt();
		sc.close();
		
		int menseki,syuu;
		
		menseki = a * b;
		syuu = (a + b) * 2;
		
		System.out.println(menseki + " " + syuu);

	}

}

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 rectangle{
    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 + " " + 2*(a+b));
    }
}

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

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

Compiler output:
Main.java:2: error: cannot find symbol
    public static void main(String args[]) throws IOException {
                                                  ^
  symbol:   class IOException
  location: class Main
Main.java:3: error: cannot find symbol
    	InputStreamReader br = new InputStreamReader(System.in);
    	^
  symbol:   class InputStreamReader
  location: class Main
Main.java:3: error: cannot find symbol
    	InputStreamReader br = new InputStreamReader(System.in);
    	                           ^
  symbol:   class InputStreamReader
  location: class Main
Main.java:4: error: cannot find symbol
    	BufferedReader is = new BufferedReader(br);
    	^
  symbol:   class BufferedReader
  location: class Main
Main.java:4: error: cannot find symbol
    	BufferedReader is = new BufferedReader(br);
    	                        ^
  symbol:   class BufferedReader
  location: class Main
5 errors
Language: Java

import java.io.*;

class Main
{
 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 x=Integer.parseInt(str1);
  int y=Integer.parseInt(str2);

  System.out.println(x*y (2*x+2*y));
 }
}

Compiler output:
Main.java:15: error: cannot find symbol
  System.out.println(x*y (2*x+2*y));
                       ^
  symbol:   method y(int)
  location: class Main
1 error
Language: Java

public class Main {
    public static void main(String[] args) {
        int a = System.out.println(Integer.parseInt(args[0]) * Integer.parseInt(args[1]));
        System.out.println(a);
    }
}

Compiler output:
Main.java:3: error: incompatible types: void cannot be converted to int
        int a = System.out.println(Integer.parseInt(args[0]) * Integer.parseInt(args[1]));
                                  ^
1 error
Language: Java

public class a0003 {
    public static void main(String[] args) {
        // int a = Integer.parseInt(args[0]);
        // int b = Integer.parseInt(args[1]);
        int a = new java.util.Scanner(System.in).nextInt();
        int b = new java.util.Scanner(System.in).nextInt();

        System.out.print(a * b);
        System.out.print(' ');
        System.out.print(a + a + b + b);
        System.out.print('\n');
    }
}

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

public class a0003 {
    public static void main(String[] args) {
        int a = Integer.parseInt(args[0]);
        int b = Integer.parseInt(args[1]);
        System.out.print(a * b);
        System.out.print(" ");
        System.out.print(2 * (a + b));
        System.out.print("\n");
    }
}

Compiler output:
Main.java:1: error: class a0003 is public, should be declared in a file named a0003.java
public class a0003 {
       ^
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 reader = new BufferedReader(new InputStreamReader(
				System.in));
		int height = Integer.parseInt(reader.readLine());
		int width = Integer.parseInt(reader.readLine());
		int area = height * width;
		int roundSpan = (height + width) * 2;

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

	}

}

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.*;
 
class Main{
    public static void main (String[ ] args) throws Exception{
        BufferedReader br = new BufferedReader (new InputStreamReader (System.in));
        String str = br.readLine();
        String[] strarr = str.split(" ");
        int a[] = new int[2];

        int a[0] = Integer.parseInt(strarr[0]);
        int a[1] = Integer.parseInt(strarr[1]);
        
        System.out.println(a[0]*a[1]);
    }
}

Compiler output:
Main.java:10: error: ']' expected
        int a[0] = Integer.parseInt(strarr[0]);
              ^
Main.java:11: error: ']' expected
        int a[1] = Integer.parseInt(strarr[1]);
              ^
2 errors
Language: Java

import java.util.Scanner;
class Main{
    public static void main(String args[]){
        Scanner scanner = new Scanner;
        int Longitudinal = scanner.nextInt();
        int side = scanner.nextInt();

        int area = Longitudinal * side;
        int length = (Longitudinal + side) * 2;
        
        System.out.println(area + " " + length);
    }
}

Compiler output:
Main.java:4: error: '(' or '[' expected
        Scanner scanner = new Scanner;
                                     ^
1 error
Language: Java

import java.util.Scanner;

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

Compiler output:
Main.java:5: error: ';' expected
        Scanner in = new Scanner(system.in)
                                           ^
1 error
Language: Java

import java.util.Scanner;

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

Compiler output:
Main.java:5: error: cannot find symbol
        Scanner in = new Scanner(system.in);
                                 ^
  symbol:   variable system
  location: class Main
1 error
Language: Java

import java.util.Scanner;

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

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

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

Compiler output:
Main.java:4: error: cannot find symbol
 public static void main(Strings[] args){
                         ^
  symbol:   class Strings
  location: class Main
1 error
Language: Java

import java.util.Scanner;

public class Main {

public static void main(String[] args) {

// 標準入力からデータを読み込む準備

Scanner sc = new Scanner(System.in);

// 2つの文字の固まりをそれぞれ整数値と想定して読み込む

int a = sc.nextInt();

int b = sc.nextInt();

int area = a*b;

int length = 2*a+2*b

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

}

}

Compiler output:
Main.java:19: error: ';' expected
int length = 2*a+2*b
                    ^
1 error
Language: Java

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

Compiler output:
Main.java:4: error: cannot find symbol
Scanner sc= newScanner(System.in);
            ^
  symbol:   method newScanner(InputStream)
  location: class Main
1 error
Language: Java

import java.util.Scanner;

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

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

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

Compiler output:
Main.java:3: error: class C is public, should be declared in a file named C.java
public class C {
       ^
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();
	int area=a*b;
	int length=2*a+2*b;
	System.out,println(area + "" + length);
    }
}

Compiler output:
Main.java:4: error: ',', ')', or '[' expected
    public static void main(String[] args}{
                                         ^
Main.java:4: error: class, interface, enum, or record expected
    public static void main(String[] args}{
                                          ^
Main.java:6: error: unnamed classes are a preview feature and are disabled by default.
	int a=sc.nextInt();
	^
  (use --enable-preview to enable unnamed classes)
Main.java:10: error: class, interface, enum, or record expected
	System.out,println(area + "" + length);
	^
Main.java:11: error: class, interface, enum, or record expected
    }
    ^
5 errors
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();
	int area=a*b;
	int length=2*a+2*b;
	System.out.println(area + "" + length);
    }
}

Compiler output:
Main.java:4: error: ',', ')', or '[' expected
    public static void main(String[] args}{
                                         ^
Main.java:4: error: class, interface, enum, or record expected
    public static void main(String[] args}{
                                          ^
Main.java:6: error: unnamed classes are a preview feature and are disabled by default.
	int a=sc.nextInt();
	^
  (use --enable-preview to enable unnamed classes)
Main.java:10: error: class, interface, enum, or record expected
	System.out.println(area + "" + length);
	^
Main.java:11: error: class, interface, enum, or record expected
    }
    ^
5 errors
Language: Java

public class Main {

import java.util.Scanner;

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

Compiler output:
Main.java:3: error: illegal start of type
import java.util.Scanner;
^
Main.java:3: error: <identifier> expected
import java.util.Scanner;
                        ^
Main.java:15: error: class, interface, enum, or record expected
			}}}
			  ^
3 errors
Language: Java

public class Rectangle{
    public static void main(String[] args){
		int a=Integer.parseInt(args[0]);
		int b=Integer.parseInt(args[1]);
		
		System.out.println("??¢???="+a*b);
	    System.out.println("??¨?????????="+(a*2+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=Integer.parseInt(args[0]);
		int b=Integer.parseInt(args[1]);
		
		System.out.print(a*b+""+(a*2+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=Integer.parseInt(args[0]);
		int b=Integer.parseInt(args[1]);
		
		System.out.println(a*b+" "+(a*2+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 Main{
    public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
		int b = scan.nextInt();
		
		System.out.println(a*b+" "+(a*2+b*2));
	}
}

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

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
         int a = scan.nextInt();
         int b = scan.nextInt();
         int area = a * b;
         int circ = (a + b) * 2;

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

    }
}

Compiler output:
Main.java:5: error: cannot find symbol
         int a = scan.nextInt();
                 ^
  symbol:   variable scan
  location: class Main
Main.java:6: error: cannot find symbol
         int b = scan.nextInt();
                 ^
  symbol:   variable scan
  location: class Main
2 errors
Language: Java

import java.util.Scanner;

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

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

import java.io.*;

class Main
{
	public static void main ( String[] args ) throws IOException{
		BufferedReader br = 
		new BufferedReader(new InputStreamReader(System.in));
		String str1 =   br.Lead.Line();  
		String str2 = br.Lead.Line();
		int a = Integer.parseInt(str1);
		int b = Integer.parseInt(str2);
		
		System.out.println( "????§???¢?????¢??????" + (a * b) + ???"??¨????????????" + (2+(a * b)));
	}
}

Compiler output:
Main.java:13: error: illegal start of expression
		System.out.println( "?????????????????????" + (a * b) + ???"???????????????" + (2+(a * b)));
		                                                        ^
Main.java:13: error: illegal start of expression
		System.out.println( "?????????????????????" + (a * b) + ???"???????????????" + (2+(a * b)));
		                                                         ^
Main.java:13: error: illegal start of expression
		System.out.println( "?????????????????????" + (a * b) + ???"???????????????" + (2+(a * b)));
		                                                          ^
Main.java:13: error: : expected
		System.out.println( "?????????????????????" + (a * b) + ???"???????????????" + (2+(a * b)));
		                                                                                          ^
4 errors