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

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


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

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

public class Main {

	public static void main(String[] args) {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();
		String[] arr = str.split(" ");
		int x = Integer.parseInt(arr[0]);
		int y = Integer.parseInt(arr[1]);
		System.out.println(x*y);
		System.out.println(x+x+y+y);
	}
}

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

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

public class FizzBuzz {

	public static void main(String[] args) {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		try {
			String str = br.readLine();
			String[] arr = str.split(" ");
			int x = Integer.parseInt(arr[0]);
			int y = Integer.parseInt(arr[1]);
		
			System.out.println(x*y);
			System.out.println(x+x+y+y);
		} catch (IOException e) {
			// TODO 自動生成された catch ブロック
			e.printStackTrace();
		}

	}
}

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

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

public class Main {

	public static void main(String[] args) {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();
		String[] arr = str.split(" ");
		int x = Integer.parseInt(arr[0]);
		int y = Integer.parseInt(arr[1]);
		int z = x*y;
		int a = x+x+y+y;
		System.out.println(z + " " + a);

	}
}

Compiler output:
Main.java:8: 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[] args){
   
      BufferedReader input = new BufferedReader(new InputStreamReader(System.in));

      String hoge1 = input.readLine();
      int a = Integer.parseInt(hoge1);

　　　System.out.print(" ");

      String hoge2 = input.readLine();
      int b = Integer.parseInt(hoge2);

　　　System.out.println();

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

Compiler output:
Main.java:10: error: illegal character: '\u3000'
???System.out.print(" ");
^
Main.java:10: error: illegal character: '\u3000'
???System.out.print(" ");
 ^
Main.java:10: error: illegal character: '\u3000'
???System.out.print(" ");
  ^
Main.java:15: error: illegal character: '\u3000'
???System.out.println();
^
Main.java:15: error: illegal character: '\u3000'
???System.out.println();
 ^
Main.java:15: error: illegal character: '\u3000'
???System.out.println();
  ^
6 errors
Language: Java

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

Compiler output:
Main.java:10: error: illegal character: '\u3000'
??
^
Main.java:10: error: illegal character: '\u3000'
??
 ^
Main.java:15: error: illegal character: '\u3000'
??
^
Main.java:15: error: illegal character: '\u3000'
??
 ^
4 errors
Language: Java

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

Compiler output:
Main.java:10: error: illegal character: '\u3000'
???System.out.print(" ");
^
Main.java:10: error: illegal character: '\u3000'
???System.out.print(" ");
 ^
Main.java:10: error: illegal character: '\u3000'
???System.out.print(" ");
  ^
Main.java:15: error: illegal character: '\u3000'
???System.out.println();
^
Main.java:15: error: illegal character: '\u3000'
???System.out.println();
 ^
Main.java:15: error: illegal character: '\u3000'
???System.out.println();
  ^
6 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　= sc.nextInt();
int b　= sc.nextInt();

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

　　　}
}

Compiler output:
Main.java:6: error: illegal character: '\u3000'
int a?= sc.nextInt();
     ^
Main.java:7: error: illegal character: '\u3000'
int b?= sc.nextInt();
     ^
Main.java:11: error: illegal character: '\u3000'
???}
^
Main.java:11: error: illegal character: '\u3000'
???}
 ^
Main.java:11: error: illegal character: '\u3000'
???}
  ^
5 errors
Language: Java

import java.util.Scanner;

class Main{
  public static void main(String args[]){
    System.out.println("文字を入力して下さい。");

    Scanner scan = new Scanner(System.in);

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

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

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

import java.io.IOException;
import java.util.Scanner;

public class mofu {

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

}

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

import java.io.IOException;
import java.util.Scanner;

public class mofu {

	public static void main(String[] args) throws IOException {
			
	   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:4: error: class mofu is public, should be declared in a file named mofu.java
public class mofu {
       ^
1 error
Language: Java

import java.util.Scanner;
public class mofu {

	public static void main(String[] args) throws IOException {
			
	   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:2: error: class mofu is public, should be declared in a file named mofu.java
public class mofu {
       ^
Main.java:4: error: cannot find symbol
	public static void main(String[] args) throws IOException {
	                                              ^
  symbol:   class IOException
  location: class mofu
2 errors
Language: Java

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

/* Name of the class has to be "Main" only if the class is public. */
public class Main
//class Ideone
{
	public static void main (String[] args) throws java.lang.Exception
	{
		// your code goes here
		BufferedReader stdReader =
            new BufferedReader(new InputStreamReader(System.in));
        String line;
         
        line = stdReader.readLine();
        String[] nums = line.split(" ");
        
        int a = Integer.parseInt(nums[0]);
        int b = Integer.parseInt(nums[1]);
        
        System.out.println(a*b);
         
        //stdReader.close();
	}
}

Compiler output:
Main.java:1: error: class, interface, enum, or record expected
mport java.util.*;
^
Main.java:2: error: class, interface, enum, or record expected
import java.lang.*;
^
Main.java:3: error: class, interface, enum, or record expected
import java.io.*;
^
3 errors
Language: Java

import java.util.Scanner;

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

  int area = a*bl;
  int syu = 2*(a+b);
  
  System.out.println(area+" "+syu);
 }
}

Compiler output:
Main.java:11: error: cannot find symbol
  int area = a*bl;
               ^
  symbol:   variable bl
  location: class Main
1 error
Language: Java

class Main{
	public static void main(String[] args) throws IOException{
		int a = Integer.parseInt(args[0]);
		int b = Integer.parseInt(args[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
1 error
Language: Java

class Main{
	public static void main(String[] args) throws IOException{
		int a = Integer.parseInt(args[0]);
		int b = Integer.parseInt(args[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
1 error
Language: Java

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

Compiler output:
Main.java:3: error: ';' expected
	public static void main (String[] args)throws IOException NumberFormatException{
	                                                         ^
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.readLine();
		String str2 = br.readLine();

		int width = Integer.parseInt(str1);
		int hight = integer.parseInt(str2);

		int area = width * higth;
		int around = widht*2 + hight*2

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

Compiler output:
Main.java:16: error: ';' expected
		int around = widht*2 + hight*2
		                              ^
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.readLine();
		String str2 = br.readLine();

		int width = Integer.parseInt(str1);
		int hight = integer.parseInt(str2);

		int area = width * higth;
		int around = width*2 + hight*2

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

Compiler output:
Main.java:16: error: ';' expected
		int around = width*2 + hight*2
		                              ^
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.readLine();
		String str2 = br.readLine();

		int width = Integer.parseInt(str1);
		int hight = integer.parseInt(str2);

		int area = width * hight;
		int around = width*2 + hight*2

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

Compiler output:
Main.java:16: error: ';' expected
		int around = width*2 + hight*2
		                              ^
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.readLine();
		String str2 = br.readLine();

		int width = Integer.parseInt(str1);
		int hight = Integer.parseInt(str2);

		int area = width * hight;
		int around = width*2 + hight*2

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

Compiler output:
Main.java:16: error: ';' expected
		int around = width*2 + hight*2
		                              ^
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.readLine();
		String str2 = br.readLine();

		int width = Integer.parseInt(str1);
		int hight = Integer.parseInt(str2);

		int area = width * hight;
		int around = width*2 + hight*2

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

Compiler output:
Main.java:16: error: ';' expected
		int around = width*2 + hight*2
		                              ^
1 error
Language: Java

public class Main {

    public static void main(String[] args) {
        final String line = readLine();
        System.out.println(calc(line));
    }

    protected static String calc(String input) {
        String s[] = input.split(" ");

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

        int area = y * x;
        int circumference = y + y + x + x;

        return area + " " + circumference;
    }

    private static String readLine() {
        Scanner s = null;
        try {
            s = new Scanner(System.in);
            return s.nextLine();
        } finally {
            if (s != null) {
                s.close();
            }
        }
    }
}

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

package ggg;

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

public class ggss {

	public static void main(String[] args) throws IOException {
		// TODO Auto-generated method stub
		InputStreamReader isr = new InputStreamReader(System.in);
		BufferedReader bfr = new BufferedReader(isr);
		String s = bfr.readLine();
		StringTokenizer st = new StringTokenizer(s, " ");
		
		int a = Integer.parseInt(st.nextToken());
		int b = Integer.parseInt(st.nextToken());
		System.out.print(a * b);
		System.out.print(" ");
		System.out.println((a + b) * 2 );
		
		
	}

}

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

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

public class text_cases_1 {

	public static void main(String[] args) throws IOException {
		// TODO Auto-generated method stub
		InputStreamReader isr = new InputStreamReader(System.in);
		BufferedReader bfr = new BufferedReader(isr);
		String s = bfr.readLine();
		StringTokenizer st = new StringTokenizer(s, " ");
		
		int a = Integer.parseInt(st.nextToken());
		int b = Integer.parseInt(st.nextToken());
		System.out.print(a * b);
		System.out.print(" ");
		System.out.println((a + b) * 2 );
		
		
	}

}

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

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



	public static void main(String[] args) throws IOException {
		// TODO Auto-generated method stub
		InputStreamReader isr = new InputStreamReader(System.in);
		BufferedReader bfr = new BufferedReader(isr);
		String s = bfr.readLine();
		StringTokenizer st = new StringTokenizer(s, " ");
		
		int a = Integer.parseInt(st.nextToken());
		int b = Integer.parseInt(st.nextToken());
		System.out.print(a * b);
		System.out.print(" ");
		System.out.println((a + b) * 2 );
		
		
	}

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



	public static void main(String[] args) throws IOException {
		// TODO Auto-generated method stub
		InputStreamReader isr = new InputStreamReader(System.in);
		BufferedReader bfr = new BufferedReader(isr);
		String s = bfr.readLine();
		StringTokenizer st = new StringTokenizer(s, " ");
		
		int a = Integer.parseInt(st.nextToken());
		int b = Integer.parseInt(st.nextToken());
		System.out.print(a * b);
		System.out.print(" ");
		System.out.println((a + b) * 2 );
		
		
	}

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

import java.io.*;

public class Rectangle {

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

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();
		String[] strArray = str.split(" ",0);
		int num[] = new int[strArray.length];
		
		for(int i=0; i<strArray.length; i++){
			num[i] = Integer.parseInt(strArray[i]);
		}
		
		int ans1 = num[0] * num[1];
		int ans2 = 2*(num[0] + num[1]);
		
		System.out.println(ans1 + " " + ans2);

	}

}

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.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 str = br.readLine();
		String[] strArray = str.split(" ",0);
		int num[] = new int[strArray.length];

		for(int i=0; i<strArray.length; i++){
			num[i] = Integer.parseInt(strArray[i]);
		}

		int ans1 = num[0] * num[1];
		int ans2 = 2*(num[0] + num[1]);

		System.out.println(ans1 + " " + ans2);

	}

}

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

public class Rectangle {

	public static void main(String[] args){

		Scanner scan = new Scanner(System.in);
		int heigt  = scan.nextInt();
		int width = scan.nextInt();
		scan.close();

		int area = heigt * width;
		int circum = 2*(heigt + width);

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

	}

}

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

public class Rectangle {
	public static void main(String[] args) throws IOException{
		BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));
	int a,b;
	String s = buf.readLine();
	String[] strlAry =s.split(" ");
	for(int i=0;i<strlAry.length;i++){
	}	
	a= Integer.parseInt(strlAry[0]);
	b= Integer.parseInt(strlAry[1]);
	System.out.print(a*b+" "+2*(a+b));	
	}
}

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;
class Main{
    int x,y,men,seki;  
    public void yatary() {
        Scanner sc = new Scanner(System.in);
        x = sc.nextInt();
        y = sc.nextInt();
        men = x + x + y + y;
        seki = x * y;
        System.out.println(seki" "men);   
    }
    public static void main(String[] args){
    new Main().yatary();
    }
}

Compiler output:
Main.java:10: error: ')' or ',' expected
        System.out.println(seki" "men);   
                               ^
Main.java:10: error: not a statement
        System.out.println(seki" "men);   
                                  ^
Main.java:10: error: ';' expected
        System.out.println(seki" "men);   
                                     ^
3 errors
Language: Java

import java.util.Scanner;
class Main{
    public void kozueteacher() {
    Scanner sc = new Scanner(System.in); 
    int x = sc.nextInt();
    int y = sc.nextInt();
        int z = x * y;
        int w = x + y + x + y;
        System.out.println(z" "w);
    }
    public static void main(String[] args) {
        new Main().kozueteacher();
    }
}

Compiler output:
Main.java:9: error: ')' or ',' expected
        System.out.println(z" "w);
                            ^
Main.java:9: error: not a statement
        System.out.println(z" "w);
                               ^
Main.java:9: error: ';' expected
        System.out.println(z" "w);
                                ^
3 errors
Language: Java

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

		Scanner sc = new Scanner(System.in);
		int x = sc.nextInt();
		int y = sc.nextInt();
		System.out.println(x*y+" "+(x+y)*2);
	}
}

Compiler output:
Main.java:6: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class Main
Main.java:6: 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 Test { 
	public static void main(String[] args){
		String str;
		int i1, i2;;

		Scanner scan = new Scanner(System.in);

		str = scan.next();
		i1 = Integer.parseInt(str);
		
		str = scan.next();
		i2 = Integer.parseInt(str);

		System.out.println(i1*i2 + " " + 2*(i1+i2));
	}
}

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

Compiler output:
Main.java:10: error: ')' or ',' expected
	System.out.println(c d);
	                    ^
Main.java:10: error: not a statement
	System.out.println(c d);
	                     ^
Main.java:10: error: ';' expected
	System.out.println(c d);
	                      ^
3 errors
Language: Java

import java.util.Scanner;

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

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

import java.util.Scanner;
public class Main{
 int tate;
 int yoko;
 int s=0;
 int syu=0;
  
  public void solve(){
    Scanner sc= new Scanner(System.in);
    tate= sc.nextInt();
    yoko= sc.nextInt();
    s=tate*yoko;
      syu=tate*2+yoko*2;
    System.out.println(s);
    System.out.print(syuu);
}


public static void main(String[] args){
    Main obj=new Main();
    obj.solve();
}
}

Compiler output:
Main.java:15: error: cannot find symbol
    System.out.print(syuu);
                     ^
  symbol:   variable syuu
  location: class Main
1 error
Language: Java

import java.util.Scanner;
public class Main{
 int tate;
 int yoko;
 int s=0;
 int syu=0;
  
  public void solve(){
    Scanner sc= new Scanner(System.in);
    tate= sc.nextInt();
    yoko= sc.nextInt();
    s=tate*yoko;
      syu=tate*2+yoko*2;
    System.out.println(s);
    System.out.print(\t+syu);
}


public static void main(String[] args){
    Main obj=new Main();
    obj.solve();
}
}

Compiler output:
Main.java:15: error: illegal character: '\'
    System.out.print(\t+syu);
                     ^
Main.java:15: error: not a statement
    System.out.print(\t+syu);
                       ^
Main.java:15: error: ';' expected
    System.out.print(\t+syu);
                           ^
3 errors
Language: Java

import java.io.*;

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

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

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

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

import java.io.BufferedReader;

class Main {
	public static void main(String args[]) {
		String str  = null;

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

			String str1 = new String(str);
			String[] str1Ary = str1.split(" ");
			int a = Integer.parseInt(str1Ary[0]);
			int b = Integer.parseInt(str1Ary[1]);

			System.out.println(a*b +" " +2*(a+b));
			
		}catch(IOException e){
			System.out.println(e.getMessage());
		}
	}
}

Compiler output:
Main.java:7: error: cannot find symbol
		try(BufferedReader br = new BufferedReader (new InputStreamReader (System.in))){
		                                                ^
  symbol:   class InputStreamReader
  location: class Main
Main.java:17: error: cannot find symbol
		}catch(IOException e){
		       ^
  symbol:   class IOException
  location: class Main
2 errors
Language: Java

import java.io.BufferedReader;
import java.io.IOException;
class Main {
	public static void main(String args[]) {
		String str  = null;

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

			String str1 = new String(str);
			String[] str1Ary = str1.split(" ");
			int a = Integer.parseInt(str1Ary[0]);
			int b = Integer.parseInt(str1Ary[1]);

			System.out.println(a*b +" " +2*(a+b));
			
		}catch(IOException e){
			System.out.println(e.getMessage());
		}
	}
}

Compiler output:
Main.java:7: error: cannot find symbol
		try(BufferedReader br = new BufferedReader (new InputStreamReader (System.in))){
		                                                ^
  symbol:   class InputStreamReader
  location: class Main
1 error
Language: Java

mport java.util.Scanner;

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

		Scanner scanner = new Scanner(System.in);

		int height = scanner.nextInt();
		int width = scanner.nextInt();

		// ??¢???
		int area = height * width;

		// ??¨????????????
		int lengthOfAround = (height * 2) + (width * 2);

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

}

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

import java.util.Scanner;

public class Main{
     
    public void solve(){
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        System.out.print("%d %d\n", calcRectangleArea(a, b), calcRectangleAround(a, b));
        
    }
     
    public static void main(String[] args){
        Main obj = new Main();
        obj.solve();
    }
    
    public int calcRectangleArea(int height, int width){
        return height * width;
    }
    
    public int calcRectangleAround(int height, int width){
        return (height + width) * 2;
    }
}

Compiler output:
Main.java:9: error: no suitable method found for print(String,int,int)
        System.out.print("%d %d\n", calcRectangleArea(a, b), calcRectangleAround(a, b));
                  ^
    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;
public class Main6{
    int tate,yoko;
	int men,syu;
	
	public void solve(){
		Scanner sc = new Scanner(System.in);
		tate = sc.nextInt();
		yoko = sc.nextInt();
		System.out.print(tate*yoko);
		System.out.print(" "+(tate+yoko)*2);
		}
    public static void main(String[] args){
        Main6 obj = new Main6();
        obj.solve();
    }
}

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

import java.util.Scanner;
class Main{
    int a;
    int b;
    int men;
    public void solve(){
        a = sc.nextInt();
        b = sc.nextInt();
        men = a*b;
    }
    public static void main(String[] args){
        Main obj = new Main();
        obj.solve();
    }
}

Compiler output:
Main.java:7: error: cannot find symbol
        a = sc.nextInt();
            ^
  symbol:   variable sc
  location: class Main
Main.java:8: error: cannot find symbol
        b = sc.nextInt();
            ^
  symbol:   variable sc
  location: class Main
2 errors
Language: Java

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

public class Main{
	public static void main(string[] args){
		Scanner scan = new Scanner(System.in);
		int a = 0, int b = 0;
		String temp;
		try{
			temp = scan.next();
			a = Integer.parseInt(temp);
			temp = scan.next();
			b = Integer.parseInt(temp);
		}catch( NoSuchElementException e ){
			System.out.println(e);
		}catch( IllegalStateException e ){
			System.out.println(e);
		}
		System.out.println(a*b);
		return;
	}
}

Compiler output:
Main.java:7: error: <identifier> expected
		int a = 0, int b = 0;
		          ^
1 error
Language: Java

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

public class Main{
	public static void main(string[] args){
		Scanner scan = new Scanner(System.in);
		int a = 0, b = 0;
		String temp;
		try{
			temp = scan.next();
			a = Integer.parseInt(temp);
			temp = scan.next();
			b = Integer.parseInt(temp);
		}catch( NoSuchElementException e ){
			System.out.println(e);
		}catch( IllegalStateException e ){
			System.out.println(e);
		}
		System.out.println(a*b);
		return;
	}
}

Compiler output:
Main.java:1: error: cannot find symbol
import java.io;
           ^
  symbol:   class io
  location: package java
Main.java:5: error: cannot find symbol
	public static void main(string[] args){
	                        ^
  symbol:   class string
  location: class Main
Main.java:14: error: cannot find symbol
		}catch( NoSuchElementException e ){
		        ^
  symbol:   class NoSuchElementException
  location: class Main
3 errors
Language: Java

import java.util.Scanner;

public class Main{
	public static void main(string[] args){
		Scanner scan = new Scanner(System.in);
		int a = 0, b = 0;
		String temp;
		try{
			temp = scan.next();
			a = Integer.parseInt(temp);
			temp = scan.next();
			b = Integer.parseInt(temp);
		}catch( NoSuchElementException e ){
			System.out.println(e);
		}catch( IllegalStateException e ){
			System.out.println(e);
		}
		System.out.println(a*b);
		return;
	}
}

Compiler output:
Main.java:4: error: cannot find symbol
	public static void main(string[] args){
	                        ^
  symbol:   class string
  location: class Main
Main.java:13: error: cannot find symbol
		}catch( NoSuchElementException e ){
		        ^
  symbol:   class NoSuchElementException
  location: class Main
2 errors
Language: Java

import java.util.Scanner;

public class Main{
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int a = 0, b = 0;
		String temp;
		try{
			temp = scan.next();
			a = Integer.parseInt(temp);
			temp = scan.next();
			b = Integer.parseInt(temp);
		}catch( NoSuchElementException ){
			System.out.println("");
		}catch( IllegalStateException e ){
			System.out.println(e);
		}
		System.out.println(a * b);
		System.out.println(2 * (a + b));
		return;
	}
}

Compiler output:
Main.java:13: error: <identifier> expected
		}catch( NoSuchElementException ){
		                              ^
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 = 0, b = 0;
		String temp;
		try{
			temp = scan.next();
			a = Integer.parseInt(temp);
			temp = scan.next();
			b = Integer.parseInt(temp);
		}catch( IllegalStateException e ){
			System.out.println(e);
		}
		System.out.print(a * b & " " & 2 * (a + b));
		return;
	}
}

Compiler output:
Main.java:16: error: bad operand types for binary operator '&'
		System.out.print(a * b & " " & 2 * (a + b));
		                       ^
  first type:  int
  second type: String
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 x,y;
		x=a*2+b*2;
		y=a*b;
		System.out.println(+ y + " " + x);
	
}

}

Compiler output:
Main.java:3: 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[] inputNumber = br.readLine().split(" ");

		int height =  Integer.parseInt(inputNumber[0]);
		int width =  Integer.parseInt(inputNumber[1]);
		int area = height * width;
		int totalLength = (height*2) + (width*2);
		System.out.print(area + " " + totalLength);
	}


}

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

public class Rectangle {

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

		int height =  Integer.parseInt(inputNumber[0]);
		int width =  Integer.parseInt(inputNumber[1]);
		int area = height * width;
		int totalLength = (height*2) + (width*2);
		System.out.println(area + " " + totalLength);
	}


}

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

public class Main {

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

		int height =  Integer.parseInt(inputNumber[0]);
		int width =  Integer.parseInt(inputNumber[1]);
		int area = height * width;
		int totalLength = (height*2) + (width*2);
		System.out.println(area + " " + totalLength);
	}


}

Compiler output:
Main.java:3: error: cannot find symbol
	public static void main(String[] args) throws IOException {
	                                              ^
  symbol:   class IOException
  location: class Main
Main.java:4: error: cannot find symbol
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		^
  symbol:   class BufferedReader
  location: class Main
Main.java:4: error: cannot find symbol
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		                        ^
  symbol:   class BufferedReader
  location: class Main
Main.java:4: 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.*;
import java.util.Scanner;

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

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

Compiler output:
Main.java:5: error: cannot find symbol
        System.out.println(a * b (a + b) * 2);
                               ^
  symbol:   method b(int)
  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));
		Test m = new Test();
		String num_ = br.readLine();
		int[] num = m.splitIntChange(num_);
		int cir = num[0]*2+num[1]*2;
		int squ = num[0]*num[1];
		System.out.println(cir+" "+squ);
	}
	
	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:6: error: cannot find symbol
		Test m = new Test();
		^
  symbol:   class Test
  location: class Main
Main.java:6: error: cannot find symbol
		Test m = new Test();
		             ^
  symbol:   class Test
  location: class Main
2 errors
Language: Java

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

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
Main.java:6: error: array required, but String found
        int x =  Integer.valueOf(str[0]);
                                    ^
Main.java:7: error: array required, but String found
        int y =  Integer.valueOf(str[1]);
                                    ^
6 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 str = br.readLine();
        String[] str2 = str.split(" ",1);
        int x =  Integer.valueOf(str[0]);
        int y =  Integer.valueOf(str[1]);
        System.out.println(x*y + " "+ 2*(x+y));
        }
}

Compiler output:
Main.java:8: error: array required, but String found
        int x =  Integer.valueOf(str[0]);
                                    ^
Main.java:9: error: array required, but String found
        int y =  Integer.valueOf(str[1]);
                                    ^
2 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 str = br.readLine();
        String[] str2 = str.split(" ",1);
        int x =  Integer.purseInt(str2[0]);
        int y =  Integer.purseInt(str2[1]);
        System.out.println(x*y + " "+ 2*(x+y));
        }
}

Compiler output:
Main.java:8: error: cannot find symbol
        int x =  Integer.purseInt(str2[0]);
                        ^
  symbol:   method purseInt(String)
  location: class Integer
Main.java:9: error: cannot find symbol
        int y =  Integer.purseInt(str2[1]);
                        ^
  symbol:   method purseInt(String)
  location: class Integer
2 errors
Language: Java

import java.io.BufferedReader;
import java.io.InputStreamReader;
 
public class Main throw Exception {
  public static void main(String[] args) throws Exception{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in);
		String[] 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:4: error: '{' expected
public class Main throw Exception {
                 ^
Main.java:6: error: ')' or ',' expected
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in);
		                                                                       ^
2 errors
Language: Java

import java.io.BufferedReader;
import java.io.InputStreamReader;
 
{ublic class Main throw Exception {
  public static void main(String[] args) throws Exception{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		string[] 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:4: error: class, interface, enum, or record expected
{ublic class Main throw Exception {
^
Main.java:4: error: '{' expected
{ublic class Main throw Exception {
                 ^
2 errors
Language: Java

import java.io.BufferedReader;
import java.io.InputStreamReader;
 
public class Main throw Exception {
  public static void main(String[] args) throws Exception{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		string[] 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:4: error: '{' expected
public class Main throw Exception {
                 ^
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:8: error: cannot find symbol
		strArray = br.ReadLine().split("\s");
		             ^
  symbol:   method ReadLine()
  location: variable br of type BufferedReader
Main.java:9: error: bad operand types for binary operator '&'
		System.out.println(Integer.parseInt(strArray[0]) * Integer.parseInt(strArray[1]) & " " &
		                                                                                 ^
  first type:  int
  second type: String
2 errors
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:8: error: cannot find symbol
		strArray = br.ReadLine().split("\\s");
		             ^
  symbol:   method ReadLine()
  location: variable br of type BufferedReader
Main.java:9: error: bad operand types for binary operator '&'
		System.out.println(Integer.parseInt(strArray[0]) * Integer.parseInt(strArray[1]) & " " &
		                                                                                 ^
  first type:  int
  second type: String
2 errors
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]) & " " &
		                                                                                 ^
  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: bad operand types for binary operator '&'
		system.out.println(Integer.parseInt(strArray[0]) * Integer.parseInt(strArray[1]) & " " &
		                                                                                 ^
  first type:  int
  second type: String
Main.java:9: error: package system does not exist
		system.out.println(Integer.parseInt(strArray[0]) * Integer.parseInt(strArray[1]) & " " &
		      ^
2 errors