criyle/codenet-compile-errors huggingface dataset:
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 b=2*(a+b);
    Syatem.out.println(c+""+b);
}
}

Compiler output:
Main.java:11: error: ';' expected
    String str2[]=str1.split("")
                                ^
1 error
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);
    Syatem.out.println(c+""+b);
}
}

Compiler output:
Main.java:11: error: ';' expected
    String str2[]=str1.split("")
                                ^
1 error
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+""+b);
}
}

Compiler output:
Main.java:11: error: ';' expected
    String str2[]=str1.split("")
                                ^
1 error
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:11: error: ';' expected
    String str2[]=str1.split("")
                                ^
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:11: error: ';' expected
    String str2[]=str1.split("")
                                ^
1 error
Language: Java

import java.util.Scanner;

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

		//????????£?????????????????§????????????????????????
		//????????\???
		Scanner sc = new Scanner(System.in);

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

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

		System.out.print(x+" "+ y???);
		
	}
}

Compiler output:
Main.java:13: error: illegal start of expression
		System.out.print(x+" "+ y???);
		                          ^
Main.java:13: error: illegal start of expression
		System.out.print(x+" "+ y???);
		                           ^
Main.java:13: error: illegal start of expression
		System.out.print(x+" "+ y???);
		                            ^
3 errors
Language: Java

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

Compiler output:
Main.java:2: error: <identifier> expected
 public static void(String[] args) {
                   ^
Main.java:7: error: ')' or ',' expected
  System.out.println("men + " " +sys");
                             ^
2 errors
Language: Java

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

Compiler output:
Main.java:2: error: <identifier> expected
 public static void(String[] args) {
                   ^
Main.java:7: error: ')' or ',' expected
  System.out.println("men + " " + sys");
                             ^
2 errors
Language: Java

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

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

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

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

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

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

public class Main {
 public static void main(String[] args) {
  int men = 0;
  int sys = 0;
  int a = new java.util.Scanner(System.in).next.Int();
  int b = new.java.util.Scanner(System.in).next.Int();
  System.out.println(a + " " + b);
  }
}

Compiler output:
Main.java:6: error: <identifier> expected
  int b = new.java.util.Scanner(System.in).next.Int();
             ^
1 error
Language: Java

public class Main {
 public static void main(String[] args) {
  int men = 0;
  int sys = 0;
  int a = new java.util.Scanner(System.in).next.Int();
  int b = new java.util.Scanner(System.in).next.Int();
  System.out.println(a + " " + b);
  }
}

Compiler output:
Main.java:5: error: cannot find symbol
  int a = new java.util.Scanner(System.in).next.Int();
                                          ^
  symbol:   variable next
  location: class Scanner
Main.java:6: error: cannot find symbol
  int b = new java.util.Scanner(System.in).next.Int();
                                          ^
  symbol:   variable next
  location: class Scanner
2 errors
Language: Java

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

Compiler output:
Main.java:5: error: cannot find symbol
  int a = new java.util.Scanner(System.in).next.Int();
                                          ^
  symbol:   variable next
  location: class Scanner
Main.java:6: error: cannot find symbol
  int b = new java.util.Scanner(System.in).next.Int();
                                          ^
  symbol:   variable next
  location: class Scanner
2 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();

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

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

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

import java.util.Scanner;

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

}

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

import java.util.Scanner;

class Main {
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        String str = s.nextLine();
        String[] array = str.split(" ");
        int a = Integer.perseInt(array[0]), b = Integer.perseInt(array[1]);
        System.out.println(a * b + " " + a * 2 + b * 2);
    }

}

Compiler output:
Main.java:8: error: cannot find symbol
        int a = Integer.perseInt(array[0]), b = Integer.perseInt(array[1]);
                       ^
  symbol:   method perseInt(String)
  location: class Integer
Main.java:8: error: cannot find symbol
        int a = Integer.perseInt(array[0]), b = Integer.perseInt(array[1]);
                                                       ^
  symbol:   method perseInt(String)
  location: class Integer
2 errors
Language: Java

import java.util.Scanner;

public class Main1 {

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



}

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

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

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


import java.io.*;

public class Main {

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

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

     String[] strAry = str.split(" ");

Compiler output:
Main.java:11: error: reached end of file while parsing
     String[] strAry = str.split(" ");
                                      ^
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));
              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:16: error: ')' or ',' expected
              System.out.println(x*y + " " 2* (x+y));
                                          ^
Main.java:16: error: not a statement
              System.out.println(x*y + " " 2* (x+y));
                                                ^
Main.java:16: error: ';' expected
              System.out.println(x*y + " " 2* (x+y));
                                                  ^
3 errors
Language: Java


import java.io.*;

public 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:13: error: cannot find symbol
     int x = Integer.ParseInt(strAry[0]);
                    ^
  symbol:   method ParseInt(String)
  location: class Integer
Main.java:14: error: cannot find symbol
     int y = Integer.ParseInt(strAry[1]);
                    ^
  symbol:   method ParseInt(String)
  location: class Integer
2 errors
Language: Java


import java.io.*;

public class Main {

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

     BufferedReader br = new BufferedReader(new InputStreamReader(System.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:13: error: cannot find symbol
     int x = Integer.ParseInt(strAry[0]);
                    ^
  symbol:   method ParseInt(String)
  location: class Integer
Main.java:14: error: cannot find symbol
     int y = Integer.ParseInt(strAry[1]);
                    ^
  symbol:   method ParseInt(String)
  location: class Integer
2 errors
Language: Java

import java.util.*;
public class Main(
    public static void main(String[] args) {
        Scanner sr = new Scanner(System.in);
        int a = Integer.parseInt(sr.nextLine());
        int b = Integer.parseInt(sr.nextLine());
        System.out.println(a + b);
    }
}

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

class Main{
    public static void main(String args[]){
        Scanner sc = new Scanner(System.in);
        int v = Integer.valueOf(sc.next());
        int h = Integer.valueOf(sc.next());
        System.out.println(v*h + " " + 2*(v+h));
        sc.close();
    }
}

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

import java.util.Scanner;
class Main{
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		
		int h = a/3600;
		int m =a%3600 / 60;
		int s =a%3600 % 60/60;
		
		System.out.println(h+":"+m":"+s);
	}
}

Compiler output:
Main.java:11: error: ')' or ',' expected
		System.out.println(h+":"+m":"+s);
		                          ^
Main.java:11: error: not a statement
		System.out.println(h+":"+m":"+s);
		                              ^
Main.java:11: error: ';' expected
		System.out.println(h+":"+m":"+s);
		                               ^
3 errors
Language: Java

import java.util.Scanner;

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

        Scanner a = new Scanner(System.in);
        Scanner b = 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:8: error: variable a is already defined in method main(String[])
        int a = scan.nextInt();
            ^
Main.java:8: error: cannot find symbol
        int a = scan.nextInt();
                ^
  symbol:   variable scan
  location: class Main
Main.java:9: error: variable b is already defined in method main(String[])
        int b = scan.nextInt();
            ^
Main.java:9: error: cannot find symbol
        int b = scan.nextInt();
                ^
  symbol:   variable scan
  location: class Main
4 errors
Language: Java

import java.io.*;
class Main {
    public static void main(String[] args) throws IOException {
        try{
          BufferedReader r = new BufferedReader(new InputStreamReader(System.in), 1);
          String s = r.readLine();
          int a = Integer.parseInt(s);

          BufferedReader r2 = new BufferedReader(new InputStreamReader(System.in), 1);
          String s2 = r2.readLine();
          int b = Integer.parseInt(s2);
        
          System.out.print(a*b);
          System.out.println(" " + (2*a+2*b));
        }
        catch{
          System.out.println("Error");
        }
    }
}

Compiler output:
Main.java:16: error: '(' expected
        catch{
             ^
1 error
Language: Java

import java.util.Scanner;

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

        Scanner as = new Scanner(System.in);
        Scanner bs = new Scanner(System.in);
        int a = as.nextInt();
        int b = bs.nextInt();
        
 
        System.out.println((as*bs)+" "+((as*2)+(bs*2)));
 
 
   }
 
 
}

Compiler output:
Main.java:12: error: bad operand types for binary operator '*'
        System.out.println((as*bs)+" "+((as*2)+(bs*2)));
                              ^
  first type:  Scanner
  second type: Scanner
Main.java:12: error: bad operand types for binary operator '*'
        System.out.println((as*bs)+" "+((as*2)+(bs*2)));
                                           ^
  first type:  Scanner
  second type: int
Main.java:12: error: bad operand types for binary operator '*'
        System.out.println((as*bs)+" "+((as*2)+(bs*2)));
                                                  ^
  first type:  Scanner
  second type: int
3 errors
Language: Java

import java.util.Scanner;

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

        Scanner as = new Scanner(System.in);
        int a = as.nextInt();
        Scanner bs = new Scanner(System.in);
        int b = bs.nextInt();
        
 
        System.out.println(+(a*b)+" "+((a*2)+(b*2))+);
 
 
   }
 
 
}

Compiler output:
Main.java:12: error: illegal start of expression
        System.out.println(+(a*b)+" "+((a*2)+(b*2))+);
                                                    ^
1 error
Language: Java

import java.util.Scanner;
class Main {
    public static void main(String[] args) throws IOException {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextlnt();
        int b = sc.nextlnt();

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

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:5: error: cannot find symbol
        int a = sc.nextlnt();
                  ^
  symbol:   method nextlnt()
  location: variable sc of type Scanner
Main.java:6: error: cannot find symbol
        int b = sc.nextlnt();
                  ^
  symbol:   method nextlnt()
  location: variable sc of type Scanner
3 errors
Language: Java

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

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

Compiler output:
Main.java:5: error: cannot find symbol
        int a = sc.nextlnt();
                  ^
  symbol:   method nextlnt()
  location: variable sc of type Scanner
Main.java:6: error: cannot find symbol
        int b = sc.nextlnt();
                  ^
  symbol:   method nextlnt()
  location: variable sc of type Scanner
2 errors
Language: Java

import java.util.Scanner;

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

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

Compiler output:
Main.java:4: error: cannot find symbol
    public static void main(String[] args) throws IOException {
                                                  ^
  symbol:   class IOException
  location: class Main
Main.java:6: error: cannot find symbol
        int a = sc.nextlnt();
                  ^
  symbol:   method nextlnt()
  location: variable sc of type Scanner
Main.java:7: error: cannot find symbol
        int b = sc.nextlnt();
                  ^
  symbol:   method nextlnt()
  location: variable sc of type Scanner
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));
int a,b;
int large,perimeter;

a=Integer.parseInt(br.readLine());
b=Integer.parseInt(br.readLine());

large = a*b;
perimeter=2*(a+b)
System.out.println(large perimeter);

}

}

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

a=Integer.parseInt(br.readLine());
b=Integer.parseInt(br.readLine());

large = a*b;
perimeter=2*(a+b);
System.out.println(large perimeter);

}

}

Compiler output:
Main.java:16: error: ')' or ',' expected
System.out.println(large perimeter);
                        ^
Main.java:16: error: not a statement
System.out.println(large perimeter);
                         ^
Main.java:16: error: ';' expected
System.out.println(large perimeter);
                                  ^
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[] line = reader.readLine().split(" ");
 int a = Integer.parseInt(br.readLine());
 int b = Integer.parseInt(br.readLine());
  
 int area = a * b;
 int areaLength = ( a + b ) * 2;
 System.out.println(area + " " + areaLength);

}

}

Compiler output:
Main.java:7: error: cannot find symbol
 String[] line = reader.readLine().split(" ");
                 ^
  symbol:   variable reader
  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));
 
 int a = Integer.parseInt(br.readLine());
 int b = Integer.parseInt(br.readLine());
  
 int area = a * b;
 int areaLength = ( a + b ) * 2;
 System.out.println(area areaLength);

}

}

Compiler output:
Main.java:13: error: ')' or ',' expected
 System.out.println(area areaLength);
                        ^
Main.java:13: error: not a statement
 System.out.println(area areaLength);
                         ^
Main.java:13: error: ';' expected
 System.out.println(area areaLength);
                                   ^
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));
 int a; 
 int b;
 a=br.readLine();
 b=br.readLine();

 }

}

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

import java.io.*;

class Main{
 public static void maun(string[] args) throws Exception{
  int x;
  BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); 


 } 


}

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

import java.io.*;

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


 } 


}

Compiler output:
Main.java:4: error: cannot find symbol
 public static void main(string[] args) throws Exception{
                         ^
  symbol:   class string
  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));
int x;
int result;
x=Integer.parseInt(br.readLine());
result = x*x*x;
System.out.println(result);
??
}
??
}

Compiler output:
Main.java:3: error: illegal start of type
??
^
Main.java:5: error: illegal start of expression
??
^
Main.java:5: error: illegal start of expression
??
 ^
Main.java:6: error: : expected
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
              ^
Main.java:6: error: : expected
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
                                                                      ^
Main.java:12: error: illegal start of expression
??
^
Main.java:12: error: illegal start of expression
??
 ^
Main.java:13: error: illegal start of expression
}
^
Main.java:14: error: illegal start of type
??
^
9 errors
Language: Java

import java.io.*;
class Main{
public static void main(String [] args)throws IOException{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
int a,b;

a=Integer.parseInt(br.readLine());

System.out.println(a);
}

return 0;
}

Compiler output:
Main.java:12: error: illegal start of type
return 0;
^
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();
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:4: error: illegal start of expression
public static void main(String[] args)throws IOException{??????????
                                                         ^
Main.java:4: error: illegal start of expression
public static void main(String[] args)throws IOException{??????????
                                                          ^
Main.java:4: error: illegal start of expression
public static void main(String[] args)throws IOException{??????????
                                                           ^
Main.java:4: error: illegal start of expression
public static void main(String[] args)throws IOException{??????????
                                                            ^
Main.java:4: error: illegal start of expression
public static void main(String[] args)throws IOException{??????????
                                                             ^
Main.java:4: error: illegal start of expression
public static void main(String[] args)throws IOException{??????????
                                                              ^
Main.java:4: error: illegal start of expression
public static void main(String[] args)throws IOException{??????????
                                                               ^
Main.java:4: error: illegal start of expression
public static void main(String[] args)throws IOException{??????????
                                                                ^
Main.java:4: error: illegal start of expression
public static void main(String[] args)throws IOException{??????????
                                                                 ^
Main.java:4: error: illegal start of expression
public static void main(String[] args)throws IOException{??????????
                                                                  ^
Main.java:5: error: : expected
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
              ^
Main.java:5: error: : expected
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
                                                                        ^
12 errors
Language: Java

import java.io.*;
class Main {
    public static void main(String[] args) throws IOException {
        String s1, s2;
        int x, y;
        BufferedReader r = new BufferedReader(new InputStreamReader(System.in), 1);
        s1 = r.readLine();
        s2 = r.readLine();
        a = Integer.parseInt(s1);
        b = Integer.parseInt(s2);

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

Compiler output:
Main.java:9: error: cannot find symbol
        a = Integer.parseInt(s1);
        ^
  symbol:   variable a
  location: class Main
Main.java:10: error: cannot find symbol
        b = Integer.parseInt(s2);
        ^
  symbol:   variable b
  location: class Main
Main.java:12: error: cannot find symbol
        System.out.println((a*b) + " " + (2*a+2*b));
                            ^
  symbol:   variable a
  location: class Main
Main.java:12: error: cannot find symbol
        System.out.println((a*b) + " " + (2*a+2*b));
                              ^
  symbol:   variable b
  location: class Main
Main.java:12: error: cannot find symbol
        System.out.println((a*b) + " " + (2*a+2*b));
                                            ^
  symbol:   variable a
  location: class Main
Main.java:12: error: cannot find symbol
        System.out.println((a*b) + " " + (2*a+2*b));
                                                ^
  symbol:   variable b
  location: class Main
6 errors
Language: Java

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

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

import java.util.Scanner;
public class main {
	
	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		
		// TODO Auto-generated method stub
		int a;
		a = scanner.nextInt();
		int b;
		b = scanner.nextInt();		
		
		System.out.println(a*b);
		System.out.println(2*a+2*b);
	}

}

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

class main {
	
	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		
		// TODO Auto-generated method stub
		int a;
		a = scanner.nextInt();
		int b;
		b = scanner.nextInt();		
		
		System.out.println(a*b+" "+2*(a+b));
		
	}

}

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

class Main {
	
	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		
		// TODO Auto-generated method stub
		int a;
		a = scanner.nextInt();
		int b;
		b = scanner.nextInt();		
		
		System.out.println(a*b+" "+2*(a+b));
		
	}

}

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

import java.util.Scanner

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

Compiler output:
Main.java:1: error: ';' expected
import java.util.Scanner
                        ^
Main.java:10: error: ')' or ',' expected
    System.out.println(area length);
                           ^
Main.java:10: error: not a statement
    System.out.println(area length);
                            ^
Main.java:10: error: ';' expected
    System.out.println(area length);
                                  ^
4 errors
Language: Java

import java.util.Scanner;

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

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

Compiler output:
Main.java:10: error: cannot find symbol
      System.out.priontln(area+""+length);
                ^
  symbol:   method priontln(String)
  location: variable out of type PrintStream
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.nextIn();
  int b=sc.nextIn();
  int S=a*b;System.out.println(S);
 }
}
  

Compiler output:
Main.java:6: error: cannot find symbol
  int a=sc.nextIn();
          ^
  symbol:   method nextIn()
  location: variable sc of type Scanner
Main.java:7: error: cannot find symbol
  int b=sc.nextIn();
          ^
  symbol:   method nextIn()
  location: variable sc of type 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=sc.nextInt();
  int b=sc.nextInt();
  int S=a*b;
  int l=2*a+2*b;
  System.out.println(S+" "+l);
 }
}
  

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 Main {
 public static void main(String[] args) {
  Scanner sc = new Scanner(System.in);
  int a = sc nextInt();
  int b = sc nextInt();
  int area = a*b;
  int length = 2*(a+b);
  System.out.println(area + "" + length);
 }
}

Compiler output:
Main.java:6: error: ';' expected
  int a = sc nextInt();
            ^
Main.java:7: error: ';' expected
  int b = sc nextInt();
            ^
2 errors
Language: Java

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

		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int area = a * b;
		int lenght = (a + b) * 2;
		System.out.println(area + " " + lenght);

	}

}

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

import java.util.Scanner;

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

Compiler output:
Main.java:6: error: cannot find symbol
 int a = sc.nextInt;
           ^
  symbol:   variable nextInt
  location: variable sc of type Scanner
Main.java:7: error: cannot find symbol
 int b = sc.nextInt;
           ^
  symbol:   variable nextInt
  location: variable sc of type Scanner
2 errors
Language: Java

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

Compiler output:
Main.java:2: error: class, interface, enum, or record expected
??
^
Main.java:4: error: illegal start of type
??public static void main(String[] args){
^
Main.java:5: error: illegal start of expression
??Scanner sc = new Scanner(System.in);
^
Main.java:5: error: illegal start of expression
??Scanner sc = new Scanner(System.in);
 ^
Main.java:5: error: : expected
??Scanner sc = new Scanner(System.in);
         ^
Main.java:5: error: : expected
??Scanner sc = new Scanner(System.in);
                                     ^
Main.java:6: error: illegal start of expression
??int a = sc.nextInt();
^
Main.java:6: error: illegal start of expression
??int a = sc.nextInt();
 ^
Main.java:6: error: '.class' expected
??int a = sc.nextInt();
      ^
Main.java:6: error: : expected
??int a = sc.nextInt();
                      ^
Main.java:7: error: illegal start of expression
??int b = sc.nextInt();
^
Main.java:7: error: illegal start of expression
??int b = sc.nextInt();
 ^
Main.java:7: error: '.class' expected
??int b = sc.nextInt();
      ^
Main.java:7: error: : expected
??int b = sc.nextInt();
                      ^
Main.java:8: error: illegal start of expression
??int area = a * b;
^
Main.java:8: error: illegal start of expression
??int area = a * b;
 ^
Main.java:8: error: '.class' expected
??int area = a * b;
      ^
Main.java:8: error: : expected
??int area = a * b;
                  ^
Main.java:9: error: illegal start of expression
??int length = 2 * (a + b);
^
Main.java:9: error: illegal start of expression
??int length = 2 * (a + b);
 ^
Main.java:9: error: '.class' expected
??int length = 2 * (a + b);
      ^
Main.java:9: error: : expected
??int length = 2 * (a + b);
                          ^
Main.java:10: error: illegal start of expression
??System.out.println(area + "" + length);
^
Main.java:10: error: illegal start of expression
??System.out.println(area + "" + length);
 ^
Main.java:10: error: : expected
??System.out.println(area + "" + length);
                                        ^
Main.java:11: error: illegal start of expression
??}
^
Main.java:11: error: illegal start of expression
??}
 ^
Main.java:11: error: illegal start of expression
??}
  ^
28 errors
Language: Java

import java.util.Scanner;
public class main{

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

}

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

import java.util.Scanner;
public class main {

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

}

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

import java.util.*;

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.print(a+" "+b);
		
		if(a>=1 && a<=100){
			if(b>=1 && b<=100){
				System.out.print(a*b+" ");
				System.out.println(a*2+b*2);
			}
		}
		
	}
	
}

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

import java.util.Scanner;

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.print(a+" "+b);
		
		if(a>=1 && a<=100){
			if(b>=1 && b<=100){
				System.out.print(a*b+" ");
				System.out.println(a*2+b*2);
			}
		}
		
	}
	
}

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

import java.util.Scanner;

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

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

import java.util.Scanner;

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

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

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

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

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

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

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

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

<?php
	$line = fgets(STDIN);
	$param = sscanf($line, "%d %d");
	echo ($param[0] * $param[1]). " ". (2 * ($param[0] + $param[1])). "\n";

Compiler output:
Main.java:1: error: class, interface, enum, or record expected
<?php
^
Main.java:3: error: class, interface, enum, or record expected
	$param = sscanf($line, "%d %d");
	^
Main.java:4: error: class, interface, enum, or record expected
	echo ($param[0] * $param[1]). " ". (2 * ($param[0] + $param[1])). "\n";
	^
3 errors
Language: Java

import java.io.*;  

public class RectArea {
    public static void main(String[] args) throws IOException {
	int height;                                         // ?????°?????£?¨??????????
	int width;                                          // ?????°?????£?¨?????¨????
	int area;                                           // ?????°?????£?¨??????¢??????
    int l;
	/* ??\???????????? */
	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

	/* ?????????????????\??? */
	//System.out.println("?????????????????\?????????????????????");
	height = Integer.parseInt(br.readLine());         

	/* ?¨???????????????\??? */
	//System.out.println("?¨???????????????\?????????????????????");
	width = Integer.parseInt(br.readLine());           

	/* ??¢???????±?????????¨??? */
	area = height * width;                              
	// System.out.println("??¢??????" + area); 
    l =  height + width+height + width;
    System.out.println(l+" "+ area );
    
    }
}

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

import java.util.Scanner;

public class a {

	public static void main(String[] arges) {
		Scanner sc = new Scanner(System.in);
		String line = sc.nextLine();
		String[] k = line.split(" ");
		int a = Integer.parseInt(k[0]);
		int b = Integer.parseInt(k[1]);
		int g = a * b;
		int y = 2 * a + 2 * b;
		System.out.print(g + " " + y);
	}
}

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

import java.io.*;
  
class Main{
    public static void main(String[] args) throws Exception{
        Integer[] x;
      
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        x = br.readLine().Sprit(" ");

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

Compiler output:
Main.java:8: error: cannot find symbol
        x = br.readLine().Sprit(" ");
                         ^
  symbol:   method Sprit(String)
  location: class String
1 error
Language: Java

import java.io.*;  

public class RectArea {
    public static void main(String[] args) throws IOException {
	int height;                                         // ?????°?????£?¨??????????
	int width;                                          // ?????°?????£?¨?????¨????
	int area;                                           // ?????°?????£?¨??????¢??????
    int l;
	/* ??\???????????? */
	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	String buf = br.readLine();
    String[] x = buf.split(" ",0);
    	//for(int i=0;i<x.length;i++){
        //System.out.println(x[i]);
    	//}
    	
    	height=Integer.parseInt(x[0]);
    	width=Integer.parseInt(x[1]);
	    area = height*width;
	    l = height + width+height + width;
	    System.out.println(l+" "+ area );
    
	
    }
    
}

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

import java.io.*;  

public class RectArea {
    public static void main(String[] args) throws IOException {
	int height;                                         // ?????°?????£?¨??????????
	int width;                                          // ?????°?????£?¨?????¨????
	int area;                                           // ?????°?????£?¨??????¢??????
    int l;
	/* ??\???????????? */
	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	String buf = br.readLine();
    String[] x = buf.split(" ",0);
    	//for(int i=0;i<x.length;i++){
        //System.out.println(x[i]);
    	//}
    	
    	height=Integer.parseInt(x[0]);
    	width=Integer.parseInt(x[1]);
	    area = height*width;
	    l = height + width+height + width;
	    System.out.println(l+" "+ area );
            return;
	
    }
    
}

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