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

import java.io.*;
class Main{
	public static void main(String[] args){
		
		try{
		
			BufferedReader in = new BufferedReader(new InputStreamReader(System.in));


			String c = in.readLine();
			String[] str = c.split(" ");
			int[] num = new int[str.length];
			for(int i=0;i<str.length;i++){
				num[i] = Integer.parseInt(str[i]);
			}
			if(num.length == 2){
				System.out.print(num[0]*num[1] + " " +???2*(num[0]+num[1]));		
			}
		}catch(IOException e){
			e.printStackTrace();
		}

	}
}

Compiler output:
Main.java:17: error: illegal start of expression
				System.out.print(num[0]*num[1] + " " +???2*(num[0]+num[1]));		
				                                      ^
Main.java:17: error: illegal start of expression
				System.out.print(num[0]*num[1] + " " +???2*(num[0]+num[1]));		
				                                       ^
Main.java:17: error: illegal start of expression
				System.out.print(num[0]*num[1] + " " +???2*(num[0]+num[1]));		
				                                        ^
Main.java:17: error: : expected
				System.out.print(num[0]*num[1] + " " +???2*(num[0]+num[1]));		
				                                                          ^
4 errors
Language: Java

import java.io.*;
class Main{
	public static void main(String[] args){
		
		try{
		
			BufferedReader in = new BufferedReader(new InputStreamReader(System.in));


			String c = in.readLine();
			String[] str = c.split(" ");
			int[] num = new int[str.length];
			for(int i=0;i<str.length;i++){
				num[i] = Integer.parseInt(str[i]);
			}
			if(num.length == 2){
				System.out.print(num[0]*num[1] + " " +???(num[0]+num[1])*2);		
			}
		}catch(IOException e){
			e.printStackTrace();
		}

	}
}

Compiler output:
Main.java:17: error: illegal start of expression
				System.out.print(num[0]*num[1] + " " +???(num[0]+num[1])*2);		
				                                      ^
Main.java:17: error: illegal start of expression
				System.out.print(num[0]*num[1] + " " +???(num[0]+num[1])*2);		
				                                       ^
Main.java:17: error: illegal start of expression
				System.out.print(num[0]*num[1] + " " +???(num[0]+num[1])*2);		
				                                        ^
Main.java:17: error: : expected
				System.out.print(num[0]*num[1] + " " +???(num[0]+num[1])*2);		
				                                                          ^
4 errors
Language: Java

import java.io.*;
class Main{
	public static void main(String[] args){
		
		try{
		
			BufferedReader in = new BufferedReader(new InputStreamReader(System.in));


			String c = in.readLine();
			String[] str = c.split(" ");
			int[] num = new int[str.length];
			for(int i=0;i<str.length;i++){
				num[i] = Integer.parseInt(str[i]);
			}
			if(num.length == 2){
				System.out.print(num[0]*num[1] + " " );???System.out.print(num[0]+num[1])*2);		
			}
		}catch(IOException e){
			e.printStackTrace();
		}

	}
}

Compiler output:
Main.java:17: error: illegal start of expression
				System.out.print(num[0]*num[1] + " " );???System.out.print(num[0]+num[1])*2);		
				                                       ^
Main.java:17: error: illegal start of expression
				System.out.print(num[0]*num[1] + " " );???System.out.print(num[0]+num[1])*2);		
				                                        ^
Main.java:17: error: illegal start of expression
				System.out.print(num[0]*num[1] + " " );???System.out.print(num[0]+num[1])*2);		
				                                         ^
Main.java:17: error: : expected
				System.out.print(num[0]*num[1] + " " );???System.out.print(num[0]+num[1])*2);		
				                                                                           ^
4 errors
Language: Java

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

Compiler output:
Main.java:4: error: variable n is already defined in method main(String[])
                int n = new java.util.Scanner(System.in).nextInt();
                    ^
Main.java:5: error: cannot find symbol
		System.out.println(n*m);
		                     ^
  symbol:   variable m
  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 = scan.nextInt(); int b = scan.nextInt();
      System.out.println(a*b + " " + (a*2 + b*2));
   }
}

Compiler output:
Main.java:1: error: <identifier> expected
import.java.util.Scanner;
      ^
1 error
Language: Java

Import.java.util.Scanner;

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

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

import java.util.Scanner;

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

		Scanner scan = new Scanner(System.in);

		int a;
		int b;

		a = scan.nextInt();
		b = scan.nextInt();

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

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

public classMain{
	public static void main(String[] args){

		Scanner scan = new Scanner(System.in);

		int a;
		int b;

		a = scan.nextInt();
		b = scan.nextInt();

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

Compiler output:
Main.java:1: error: class, interface, enum, or record expected
public classMain{
       ^
Main.java:2: error: unnamed classes are a preview feature and are disabled by default.
	public static void main(String[] args){
	              ^
  (use --enable-preview to enable unnamed classes)
Main.java:13: error: illegal start of expression
		System.out.println(2 * ???a ??? b));
		                       ^
Main.java:13: error: illegal start of expression
		System.out.println(2 * ???a ??? b));
		                        ^
Main.java:13: error: illegal start of expression
		System.out.println(2 * ???a ??? b));
		                         ^
Main.java:13: error: illegal start of expression
		System.out.println(2 * ???a ??? b));
		                             ^
Main.java:13: error: illegal start of expression
		System.out.println(2 * ???a ??? b));
		                              ^
Main.java:13: error: : expected
		System.out.println(2 * ???a ??? b));
		                                 ^
Main.java:13: error: ';' expected
		System.out.println(2 * ???a ??? b));
		                                  ^
Main.java:15: error: class, interface, enum, or record expected
}
^
10 errors
Language: Java

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

		Scanner scan = new Scanner(System.in);

		int a;
		int b;

		a = scan.nextInt();
		b = scan.nextInt();

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

Compiler output:
Main.java:13: error: illegal start of expression
		System.out.println(2 * ???a ??? b));
		                       ^
Main.java:13: error: illegal start of expression
		System.out.println(2 * ???a ??? b));
		                        ^
Main.java:13: error: illegal start of expression
		System.out.println(2 * ???a ??? b));
		                         ^
Main.java:13: error: illegal start of expression
		System.out.println(2 * ???a ??? b));
		                             ^
Main.java:13: error: illegal start of expression
		System.out.println(2 * ???a ??? b));
		                              ^
Main.java:13: error: : expected
		System.out.println(2 * ???a ??? b));
		                                 ^
Main.java:13: error: ';' expected
		System.out.println(2 * ???a ??? b));
		                                  ^
7 errors
Language: Java

import java.util.Scanner;

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

		Scanner scan = new Scanner(System.in);

		int a;
		int b;

		a = scan.nextInt();
		b = scan.nextInt();

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

Compiler output:
Main.java:15: error: illegal start of expression
		System.out.println(2 * ???a ??? b));
		                       ^
Main.java:15: error: illegal start of expression
		System.out.println(2 * ???a ??? b));
		                        ^
Main.java:15: error: illegal start of expression
		System.out.println(2 * ???a ??? b));
		                         ^
Main.java:15: error: illegal start of expression
		System.out.println(2 * ???a ??? b));
		                             ^
Main.java:15: error: illegal start of expression
		System.out.println(2 * ???a ??? b));
		                              ^
Main.java:15: error: : expected
		System.out.println(2 * ???a ??? b));
		                                 ^
Main.java:15: error: ';' expected
		System.out.println(2 * ???a ??? b));
		                                  ^
7 errors
Language: Java

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

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

import java.util.Scanner;

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

Compiler output:
Main.java:3: error: '{' expected
public class Main(){
                 ^
Main.java:11: error: reached end of file while parsing
}
 ^
2 errors
Language: Java

import java.util.Scanner;

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

Compiler output:
Main.java:3: error: '{' expected
class Main(){
          ^
Main.java:11: error: reached end of file while parsing
}
 ^
2 errors
Language: Java

import java.util.Scanner;

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

Compiler output:
Main.java:3: error: '{' expected
class Main(){
          ^
1 error
Language: Java

import java.util.Scanner;

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

Compiler output:
Main.java:7: error: cannot find symbol
    int b = scan.netxInt();
                ^
  symbol:   method netxInt()
  location: variable scan of type Scanner
1 error
Language: Java

import java.io.*:

public class Main{
  public static void main(String[]args) throws IOException {
    int height;
    int width;
    int area;

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

    height = Integer.parseInt(br.readLine());
    width = Integer.parseInt(br.readLine());
    area = height * width;
    System.out.println(area (height + width) * 2);
 }
}

Compiler output:
Main.java:1: error: ';' expected
import java.io.*:
                ^
Main.java:9: error: ')' or ',' expected
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in);
                                                                           ^
2 errors
Language: Java

import java.io.*:

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

Compiler output:
Main.java:1: error: ';' expected
import java.io.*:
                ^
Main.java:13: error: not a statement
            e.printstackTrace89;
             ^
2 errors
Language: Java

import java.io.*;

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

Compiler output:
Main.java:13: error: not a statement
            e.printstackTrace89;
             ^
1 error
Language: Java

import java.io.*;

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

Compiler output:
Main.java:9: error: cannot find symbol
           int a = integer.parseInt(str[0]);
                   ^
  symbol:   variable integer
  location: class Main
Main.java:10: error: cannot find symbol
           int b = integer.parseInt(str[1]);
                   ^
  symbol:   variable integer
  location: class Main
Main.java:13: error: cannot find symbol
            e.printstackTrace();
             ^
  symbol:   method printstackTrace()
  location: variable e of type IOException
3 errors
Language: Java

import java.io.*;

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

Compiler output:
Main.java:9: error: cannot find symbol
           int a = integer.parseInt(str[0]);
                   ^
  symbol:   variable integer
  location: class Main
Main.java:10: error: cannot find symbol
           int b = integer.parseInt(str[1]);
                   ^
  symbol:   variable integer
  location: class Main
Main.java:13: error: cannot find symbol
            e.printstackTrace();
             ^
  symbol:   method printstackTrace()
  location: variable e of type IOException
3 errors
Language: Java

import java.io.*;

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

Compiler output:
Main.java:9: error: cannot find symbol
           int a = integer.parseInt(str[0]);
                   ^
  symbol:   variable integer
  location: class Main
Main.java:10: error: cannot find symbol
           int b = integer.parseInt(str[1]);
                   ^
  symbol:   variable integer
  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=scan.next();
		int b=scan.next();
		
		System.out.print(a*b+" "+(a+b)*2);
	} 
}

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

public class Main3{
  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.print(a * b);
    System.out.print(" ");
    System.out.print(2 * a + 2 * b);
  }

}

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

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

   

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

}

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

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

Compiler output:
Main.java:2: error: <identifier> expected
   public static void main(args[]){
                                 ^
1 error
Language: Java

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

public class Main {
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String input = br.readline();
        String[] cut = input.split("");
        int surface = Integer.parseInt(cut[0]);
        int length = Integer.parseInt(cut[1]);
        System.out.println(surface * length + " " + 2 * ( surface + length ));
    }
}

Compiler output:
Main.java:7: error: cannot find symbol
        String input = br.readline();
                         ^
  symbol:   method readline()
  location: variable br of type BufferedReader
1 error
Language: Java

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

public class Rectangle{
  public static void main(String[] args)throws java.io.IOException{
	
        int s[] = new int[2];
	
	Scanner sc = new Scanner(System.in);
	for(int i=0;i<s.length;i++){
	System.out.println("??´??°?????\???");
	s[i] = sc.nextInt();
	}
	System.out.println(s[0]*s[1] +" "+ 2*(s[0]+s[1]));
  }
}

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

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

	String[] strAry = str.split(" ");
	
	int x = Integer.parseInt(strAry[0]);
	int y = Integer.parseInt(strAry[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 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
4 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[] strAry = str.split(" ");
	
	int x = Integer.parseInt(strAry[0]);
	int y = Integer.parseInt(strAry[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: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

class Main{

	public static void main(String[] args){

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

	}
}

Compiler output:
Main.java:8: error: variable a might not have been initialized
	System.out.println((a * b) + " " + ((a + b) * 2));
	                    ^
Main.java:8: error: variable b might not have been initialized
	System.out.println((a * b) + " " + ((a + b) * 2));
	                        ^
2 errors
Language: Java

class Main{

	public static void main(String[] args){

	int a = 0;
	int b = 0;
	
	Scanner scan = new Scanner(System.in);
	
	int val = scan.nextInt();
	a = val;
	
	val = scan.nextInt();
	b = val;
	
	System.out.print((a * b) + " " + ((a + b) * 2));
	}
}

Compiler output:
Main.java:8: error: cannot find symbol
	Scanner scan = new Scanner(System.in);
	^
  symbol:   class Scanner
  location: class Main
Main.java:8: error: cannot find symbol
	Scanner scan = 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){

	int a = 0;
	int b = 0;
	
	Scanner scan = new Scanner(System.in);
	
	  int val = scan.nextInt();
	  a = val;
	
	  val = scan.nextInt();
	  b = val;
	
	  System.out.print(a * b);
	  System.out.print(" ");
	  System.out.print((a + b) * 2));
  }
}

Compiler output:
Main.java:20: error: ';' expected
	  System.out.print((a + b) * 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 str = br.readLine();
int a =Integer.parseInt(str);
int b =Integer.parseInt(str);
           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);
                                 ^
Main.java:11: error: not a statement
           System.out.println(a*b" "a*2+b*2);
                                       ^
Main.java:11: error: ';' expected
           System.out.println(a*b" "a*2+b*2);
                                           ^
3 errors
Language: Java

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

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

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

Compiler output:
Main.java:9: error: cannot find symbol
 c = a*b;
 ^
  symbol:   variable c
  location: class Main
Main.java:10: error: cannot find symbol
 d = (a+b)*2;
 ^
  symbol:   variable d
  location: class Main
Main.java:11: error: cannot find symbol
 System.out.print(c + " " + d);
                  ^
  symbol:   variable c
  location: class Main
Main.java:11: error: cannot find symbol
 System.out.print(c + " " + d);
                            ^
  symbol:   variable d
  location: class Main
4 errors
Language: Java

import.java.util.Scanner;

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

Compiler output:
Main.java:1: error: <identifier> expected
import.java.util.Scanner;
      ^
1 error
Language: Java

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

Compiler output:
Main.java:10: error: ')' or ',' expected
            System.out.println(i o);
                                ^
Main.java:10: error: not a statement
            System.out.println(i o);
                                 ^
Main.java:10: error: ';' expected
            System.out.println(i o);
                                  ^
3 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();
		System.out.print(a*b+" "+(2*a+2*b));
	
		
	}

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

 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package plus;

import java.util.Scanner;

/**
 *
 * @author lenovo
 */
public class Main {

    public static void main(String[] args) {

        Scanner scanner = new Scanner(System.in);
        int a = scanner.nextInt();
        int b = scanner.nextInt();
        
        
        System.out.println(a*b);
        System.out.println(2*(a+b));

    }
}

Compiler output:
Main.java:1: error: class, interface, enum, or record expected
 * To change this license header, choose License Headers in Project Properties.
 ^
Main.java:7: error: class, interface, enum, or record expected
import java.util.Scanner;
^
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,b,x;
		a = sc.nextInt();
		b = sc.nextInt();
		x=a*b;
		System.out.println(x);
	}
}

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

import java.util.Scanner;

public class Rectangle {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		
		int a = scanner.nextInt();
		int b = scanner.nextInt();
		
		System.out.printf("%d %d\n", a*b, 2*a+2*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.io.*;

class Main {
    public static void main (String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str = br.readLine();
        String[] lengths = str.split(" ");
        System.out.println(lengths[0]*lengths[1] + " " + 2*(lengths[0]+lengths[1]));
    }
}

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

import java.util.*;
public class Main{
   public static void main(String[]args){

      Scanner sc = new Scanner(System.in);
      int a = sc.nextInt();
      int b = sc.nextInt();

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

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

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

Compiler output:
Main.java:4: error: variable a is already defined in method main(String[])
		int a = new java.util.Scanner(System.in).nextInt();
		    ^
Main.java:5: error: variable b is already defined in method main(String[])
		int b = new java.util.Scanner(System.in).nextInt();
		    ^
2 errors
Language: Java

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

Compiler output:
Main.java:5: error: variable a might not have been initialized
    int i = a * b;
            ^
Main.java:5: error: variable b might not have been initialized
    int i = a * b;
                ^
2 errors
Language: Java

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

Compiler output:
Main.java:4: error: ';' expected
    int a = c * c
                 ^
Main.java:5: error: ';' expected
    int b = (2 * c) + (2 * c)
                             ^
Main.java:6: error: ';' expected
    System.out.println(a + " " + b)
                                   ^
3 errors
Language: Java

public class Main {
  public static void main(String[] args) {
    Scanner scan = new Scanner(System.in);
    string aa = scan.next();
    int a = Integer.parseInt(aa);
    string bb = scan.next();
    int b = Integer.parseInt(bb);
    int pie = a * b;
    int syuu = (2 * a) + (2 * b);
    System.out.println(pie + " " + syuu);
  }
}

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
Main.java:4: error: cannot find symbol
    string aa = scan.next();
    ^
  symbol:   class string
  location: class Main
Main.java:6: error: cannot find symbol
    string bb = scan.next();
    ^
  symbol:   class string
  location: class Main
4 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[] = str1.split(" "),
int a = Integer.parseInt(str2[0]);
int b = Integer.parseInt(str2[1]);
int c = a*b
int d = 2*(a+b);
System.out.println( c + " " + d);
}
}

Compiler output:
Main.java:12: error: <identifier> expected
String str2[] = str1.split(" "),
                                ^
Main.java:15: error: ';' expected
int c = a*b
           ^
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 str1 = br.readLine();
      String str2[] = str1.sprit(" ");
      int a = Integer.parseInt(str2[0]);
      int b = Integer.parseInt(str2[1]);
      int c = a*b;
      int d = 2(a+b);

      System.out.println( c +" "+ d);
   }
}

Compiler output:
Main.java:15: error: ';' expected
      int d = 2(a+b);
               ^
Main.java:15: error: not a statement
      int d = 2(a+b);
                 ^
Main.java:15: error: ';' expected
      int d = 2(a+b);
                   ^
3 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[] = str1.split(" ");
int a = Integer.parseInt(str2[0]);
int b = Integer.parseInt(str2[1]);
int c = a*b;
int d = 2*(a+b);
System.out.println( c + " " + d);
}
}

Compiler output:
Main.java:12: error: cannot find symbol
String str2[] = str1.split(" ");
                ^
  symbol:   variable str1
  location: class Main
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[] = str1.split(" ");
      int a = Integer.parseInt(str2[0]);
      int b = Integer.parseInt(str2[1]);
      int c = a*b;
      int d = 2(a+b);

      System.out.println( c +" "+ d);
   }
}

Compiler output:
Main.java:15: error: ';' expected
      int d = 2(a+b);
               ^
Main.java:15: error: not a statement
      int d = 2(a+b);
                 ^
Main.java:15: error: ';' expected
      int d = 2(a+b);
                   ^
3 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[] =str1.split(" ");
		
		int a=Integer.parseInt(str2[0]);
                int b=Integer.parseInt(str2[1]);
                int c=a*b;
                int d=2*(a+b);


		System.out.println(c+" "+d);
	}
}

Compiler output:
Main.java:5: error: ';' expected
	public static void main(String args[]) throws IOException
	                                                         ^
Main.java:19: error: <identifier> expected
		System.out.println(c+" "+d);
		                  ^
Main.java:19: error: <identifier> expected
		System.out.println(c+" "+d);
		                    ^
Main.java:21: error: class, interface, enum, or record expected
}
^
4 errors
Language: Java

import java.io.*;

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

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

	String str1 = br.readLine();
	String str2[] = str1.split(" ");
	int a = Integer.parseInt(str2[0]);
	int b = Integer.parseInt(str2[1]);
	int c = a*b;
	int d = 2*(a+b);
	System.out.println( c + " " + d );

   }
}

Compiler output:
Main.java:5: error: ';' expected
   public static void main(String[] args) theows IOExeption
                                         ^
1 error
Language: Java

import java.io.*;

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

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

import java.util.Scanner;

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

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

import java.io.*;

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

      String str1 =br.readLine();
      Stringstr2[] =str1.split("");
      int a =Integer.parseInt(Str2[0]);
      int b=integer.parseInt(str2[1]);
      int c =a*b;
      int d =2*(a+b);
      System.out.println(c+""+d);
   }
}

Compiler output:
Main.java:10: error: not a statement
      Stringstr2[] =str1.split("");
                ^
Main.java:10: error: ';' expected
      Stringstr2[] =str1.split("");
                  ^
2 errors
Language: Java

import java.util.Scanner;

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

Compiler output:
Main.java:11: error: variable d is already defined in method main(String[])
		int d = 2*(a+b);
		    ^
Main.java:12: error: cannot find symbol
		System.out.println( c + " " + d );
		                    ^
  symbol:   variable c
  location: class Main
2 errors
Language: Java

import java.io.*;

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

      String str1 =br.readLine();
      String str2[] =str1.split("");
      int a =Integer.parseInt(Str2[0]);
      int b=integer.parseInt(str2[1]);
      int c =a*b;
      int d =2*(a+b);
      System.out.println(c+""+d);
   }
}

Compiler output:
Main.java:7: error: cannot find symbol
      BufferedReader(new InputStreamReader(System.in));
      ^
  symbol:   method BufferedReader(InputStreamReader)
  location: class Main
Main.java:9: error: cannot find symbol
      String str1 =br.readLine();
                   ^
  symbol:   variable br
  location: class Main
Main.java:11: error: cannot find symbol
      int a =Integer.parseInt(Str2[0]);
                              ^
  symbol:   variable Str2
  location: class Main
Main.java:12: error: cannot find symbol
      int b=integer.parseInt(str2[1]);
            ^
  symbol:   variable integer
  location: class Main
4 errors
Language: Java

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

	String str1 = br.readline();
	String str2[] = str1.split(" ");
	int a = Integer.parseInt(str2[0]);
	int b = Integer.parseInt(str2[1]);
	int c = a*b;
	int d = 2*(a+b);
	System.out.println( c + " " + d );

	}
}

Compiler output:
Main.java:6: error: ')' or ',' expected
		 new BufferedReader(new InputStreamReader(System in));
		                                                ^
Main.java:6: error: not a statement
		 new BufferedReader(new InputStreamReader(System in));
		                                                 ^
Main.java:6: error: ';' expected
		 new BufferedReader(new InputStreamReader(System in));
		                                                   ^
3 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[] =str1.split(" ");
       int a =Integer.parseInt(str2[0]);
       int b =Integer.parseInt(str2[1]);
       int c =2*(a+b);

       System.out.println(c + " " + d);

    }
}

Compiler output:
Main.java:17: error: cannot find symbol
       System.out.println(c + " " + d);
                                    ^
  symbol:   variable d
  location: class Main
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[] = str1.split(" ");
	int a = Integer.parseInt(str2[0])
	int b = Integer.parseInt(str2[1])
	int c = a*b;
	int d = 2*(a+b);
	System.out.println( c + " " + d );
	
	}
}

Compiler output:
Main.java:13: error: ';' expected
	int a = Integer.parseInt(str2[0])
	                                 ^
Main.java:14: error: ';' expected
	int b = Integer.parseInt(str2[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 str1 = br.readline();
	String str2[] = str1.split(" ");
	int a = Integer.parseInt(str2[0]);
	int b = Integer.parseInt(str2[1]);
	int c = a*b;
	int d = 2*(a+b);
	System.out.println( c + " " + d );

	}
}

Compiler output:
Main.java:8: error: ')' or ',' expected
		 new BufferedReader(new InputStreamReader(System in));
		                                                ^
Main.java:8: error: not a statement
		 new BufferedReader(new InputStreamReader(System in));
		                                                 ^
Main.java:8: error: ';' expected
		 new BufferedReader(new InputStreamReader(System in));
		                                                   ^
3 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[] =str1.split("");
      int a =Integer.parseInt(Str2[0]);
      int b=integer.parseInt(str2[1]);
      int c =a*b;
      int d =2*(a+b);
      System.out.println(c+""+d);
   }
}

Compiler output:
Main.java:12: error: cannot find symbol
      int a =Integer.parseInt(Str2[0]);
                              ^
  symbol:   variable Str2
  location: class Main
Main.java:13: error: cannot find symbol
      int b=integer.parseInt(str2[1]);
            ^
  symbol:   variable integer
  location: class Main
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 str1 =br.readLine();
      String str2[] =str1.split(" ");
      int a = Integer.parseInt(Str2[0]);
      int b = Integer.parseInt(str2[1]);
      int c = a*b;
      int d = 2*(a+b);
      System.out.println(c+" "+d);
   }
}

Compiler output:
Main.java:12: error: cannot find symbol
      int a = Integer.parseInt(Str2[0]);
                               ^
  symbol:   variable Str2
  location: class Main
1 error
Language: Java

import java.untill Scanner;

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

	String str1 = br.readline();
	String str2[] = str1.split(" ");
	int a = Integer.parseInt(str2[0]);
	int b = Integer.parseInt(str2[1]);
	int c = a*b;
	int d = 2*(a+b);
	System.out.println( c + " " + d );

	}
}

Compiler output:
Main.java:1: error: ';' expected
import java.untill Scanner;
                  ^
Main.java:8: error: ')' or ',' expected
		 new BufferedReader(new InputStreamReader(System in));
		                                                ^
Main.java:8: error: not a statement
		 new BufferedReader(new InputStreamReader(System in));
		                                                 ^
Main.java:8: error: ';' expected
		 new BufferedReader(new InputStreamReader(System in));
		                                                   ^
4 errors
Language: Java

import java.utill Scanner;

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

	String str1 = br.readline();
	String str2[] = str1.split(" ");
	int a = Integer.parseInt(str2[0]);
	int b = Integer.parseInt(str2[1]);
	int c = a*b;
	int d = 2*(a+b);
	System.out.println( c + " " + d );

	}
}

Compiler output:
Main.java:1: error: ';' expected
import java.utill Scanner;
                 ^
Main.java:8: error: ')' or ',' expected
		 new BufferedReader(new InputStreamReader(System in));
		                                                ^
Main.java:8: error: not a statement
		 new BufferedReader(new InputStreamReader(System in));
		                                                 ^
Main.java:8: error: ';' expected
		 new BufferedReader(new InputStreamReader(System in));
		                                                   ^
4 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[] = str1.split(" ");
                int a = Integer.parseInt(str2[0]);
                int b = Integer.parseInt(str2[0]);
                int c = a*b;
                int d = 2*(a+b);
		System.out.println( c + " " + d););

	}
}

Compiler output:
Main.java:16: error: illegal start of expression
		System.out.println( c + " " + d););
		                                 ^
1 error
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();
	int c = a*b;
	int d = 2*(a+b);
	System.out.println( c + " " + d );

	}
}

Compiler output:
Main.java:1: error: ';' expected
import java.util Scanner;
                ^
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[] = str1.split(" ");
                int a = Integer.parseInt(str2[0]);
                int b = Integer.parseInt(str2[1]);
                int c = a*b;
                int d = 2*(a+b);
		System.out.println( c + " " + d); );
	}
}

Compiler output:
Main.java:16: error: illegal start of expression
		System.out.println( c + " " + d); );
		                                  ^
1 error
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();
	int c = a*b;
	int d = 2*(a+b);
	System.out.println( c + " " + d );

	}
}

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

mport 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();
	int c = a*b;
	int d = 2*(a+b);
	System.out.println(c+""+d);
	 }

}

Compiler output:
Main.java:1: error: class, interface, enum, or record expected
mport java.util.Scanner;
^
1 error
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();
		int c = a*b;
		int d = 2*(a+b);
		System.out.println( c + " " + d );

	}

Compiler output:
Main.java:1: error: ';' expected
import java.util Scanner;
                ^
Main.java:15: error: reached end of file while parsing
	}
	 ^
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 str1 = br.readLine();
	String str2[] = str1.splint("");
	int a = Integer.parseInt(str2[0]);
	int b = Integer.parseInt(str2[1]);
	int c = a*b;
	int d = 2*(a+b);
	System.out.println(c+""+d);
	 
	}
}

Compiler output:
Main.java:11: error: cannot find symbol
	String str2[] = str1.splint("");
	                    ^
  symbol:   method splint(String)
  location: variable str1 of type String
1 error