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

import java.util.*;
public class Main{
    public static void main(String[] args)throws IOException{
        Scanner input1 = new Scanner(System.in);
        String input2 = scan.nextLine();
        String[] fac = input2.split("\\s+");
        int a = Integer.parseInt(fac[0]);
        int b = Integer.parseInt(fac[1]);
        int ab = a * b;
        int syu = 2 * (a + b);
        Sytstem.out.println(ab+""+syu);

        }
    }



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
        String input2 = scan.nextLine();
                        ^
  symbol:   variable scan
  location: class Main
Main.java:11: error: package Sytstem does not exist
        Sytstem.out.println(ab+""+syu);
               ^
3 errors
Language: Java

import java.util.*;
public class Main{
    public static void main(String[] args){
        Scanner input1 = new Scanner(System.in);
        String input2 = scan.nextLine();
        String[] fac = input2.split("\\s+");
        int a = Integer.parseInt(fac[0]);
        int b = Integer.parseInt(fac[1]);
        int ab = a * b;
        int syu = 2 * (a + b);
        Sytstem.out.println(ab+""+syu);

        }
    }



Compiler output:
Main.java:5: error: cannot find symbol
        String input2 = scan.nextLine();
                        ^
  symbol:   variable scan
  location: class Main
Main.java:11: error: package Sytstem does not exist
        Sytstem.out.println(ab+""+syu);
               ^
2 errors
Language: Java

import java.util.*;
public class Main{
    public static void main(String[] args){
        Scanner input1 = new Scanner(System.in);
        String input2 = input1.nextLine();
        String[] fac = input2.split("\\s+");
        int a = Integer.parseInt(fac[0]);
        int b = Integer.parseInt(fac[1]);
        int ab = a * b;
        int syu = 2 * (a + b);
        Sytstem.out.println(ab+""+syu);

        }
    }



Compiler output:
Main.java:11: error: package Sytstem does not exist
        Sytstem.out.println(ab+""+syu);
               ^
1 error
Language: Java

import java.util.*;
public class Main{
    public static void main(String[] args){
        Scanner input1 = new Scanner(System.in);
        String input2 = input1.nextLine();
        String[] fac = input2.split("\\s+");
        int a = Integer.parseInt(fac[0]);
        int b = Integer.parseInt(fac[1]);
        int ab = a * b;
        int syu = 2 * (a + b);
        Sytstem.out.println(ab+"/s"+syu);

        }
    }



Compiler output:
Main.java:11: error: package Sytstem does not exist
        Sytstem.out.println(ab+"/s"+syu);
               ^
1 error
Language: Java

import java.util.*;
public class Main{
    public static void main(String[] args){
        Scanner input1 = new Scanner(System.in);
        String input2 = input1.nextLine();
        String[] fac = input2.split("\\s+");
        int a = Integer.parseInt(fac[0]);
        int b = Integer.parseInt(fac[1]);
        int ab = a * b;
        int syu = 2 * (a + b);
        Sytstem.out.println(ab+"\s"+syu);

        }
    }



Compiler output:
Main.java:11: error: package Sytstem does not exist
        Sytstem.out.println(ab+"\s"+syu);
               ^
1 error
Language: Java

import java.util.*;
public class Main{
    public static void main(String[] args){
        Scanner input1 = new Scanner(System.in);
        String input2 = input1.nextLine();
        String[] fac = input2.split("\\s+");
        int a = Integer.parseInt(fac[0]);
        int b = Integer.parseInt(fac[1]);
        int ab = a * b;
        int syu = 2 * (a + b);
        Sytstem.out.println(ab+"\\s+"+syu);

        }
    }



Compiler output:
Main.java:11: error: package Sytstem does not exist
        Sytstem.out.println(ab+"\\s+"+syu);
               ^
1 error
Language: Java

import java.util.*;
public class Main{
    public static void main(String[] args){
        Scanner input1 = new Scanner(System.in);
        String input2 = input1.nextLine();
        String[] fac = input2.split("\\s+");
        int a = Integer.parseInt(fac[0]);
        int b = Integer.parseInt(fac[1]);
        int ab = a * b;
        int syu = 2 * (a + b);
        Sytstem.out.println(ab+" "+syu);

        }
    }



Compiler output:
Main.java:11: error: package Sytstem does not exist
        Sytstem.out.println(ab+" "+syu);
               ^
1 error
Language: Java

import java.io.*;
public class Main{
    public static void main(String[] args)throws IOExption{
        BufferedReader input1 = new BufferdReader(new InputStreamReader(System.in));
        String input2 = input.readLine();
        String[] fac = input2.split("\\s+");
        int a = Integer.parseInt(fac[0]);
        int b = Integer.parseInt(fac[1]);
        int ab = a * b;
        int syu = 2 * (a + b);
        System.out.println(ab+" "+syu);

        }
    }



Compiler output:
Main.java:3: error: cannot find symbol
    public static void main(String[] args)throws IOExption{
                                                 ^
  symbol:   class IOExption
  location: class Main
Main.java:4: error: cannot find symbol
        BufferedReader input1 = new BufferdReader(new InputStreamReader(System.in));
                                    ^
  symbol:   class BufferdReader
  location: class Main
Main.java:5: error: cannot find symbol
        String input2 = input.readLine();
                        ^
  symbol:   variable input
  location: class Main
3 errors
Language: Java

import java.io.*;
public class Main{
    public static void main(String[] args)throws IOExption{
        BufferedReader input1 = new BufferedReader(new InputStreamReader(System.in));
        String input2 = input.readLine();
        String[] fac = input2.split("\\s+");
        int a = Integer.parseInt(fac[0]);
        int b = Integer.parseInt(fac[1]);
        int ab = a * b;
        int syu = 2 * (a + b);
        System.out.println(ab+" "+syu);

        }
    }



Compiler output:
Main.java:3: error: cannot find symbol
    public static void main(String[] args)throws IOExption{
                                                 ^
  symbol:   class IOExption
  location: class Main
Main.java:5: error: cannot find symbol
        String input2 = input.readLine();
                        ^
  symbol:   variable input
  location: class Main
2 errors
Language: Java

import java.io.*;
public class Main{
    public static void main(String[] args)throws IOExption{
        BufferedReader input1 = new BufferedReader(new InputStreamReader(System.in));
        String input2 = input1.readLine();
        String[] fac = input2.split("\\s+");
        int a = Integer.parseInt(fac[0]);
        int b = Integer.parseInt(fac[1]);
        int ab = a * b;
        int syu = 2 * (a + b);
        System.out.println(ab+" "+syu);

        }
    }



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

import java.io.*;
public class Main{
    public static void main(String[] args){
        BufferedReader input1 = new BufferedReader(new InputStreamReader(System.in));
        String input2 = input1.readLine();
        String[] fac = input2.split("\\s+");
        int a = Integer.parseInt(fac[0]);
        int b = Integer.parseInt(fac[1]);
        int ab = a * b;
        int syu = 2 * (a + b);
        System.out.println(ab+" "+syu);

        }
    }



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

import java.util.Scanner;

class Main {
  public static void main(Strting[] args) {
    Scanner ab = new Scanner(System.in);
    int a = ab[0];
    int b = ab[1];

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


Compiler output:
Main.java:4: error: cannot find symbol
  public static void main(Strting[] args) {
                          ^
  symbol:   class Strting
  location: class Main
Main.java:6: error: array required, but Scanner found
    int a = ab[0];
              ^
Main.java:7: error: array required, but Scanner found
    int b = ab[1];
              ^
3 errors
Language: Java

import java.util.Scanner;

class Main {
  public static void main(Strting[] args) {
    Scanner ab = new Scanner(System.in);
    int a = ab[0].nextInt();
    int b = ab[1].nextInt();

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


Compiler output:
Main.java:4: error: cannot find symbol
  public static void main(Strting[] args) {
                          ^
  symbol:   class Strting
  location: class Main
Main.java:6: error: array required, but Scanner found
    int a = ab[0].nextInt();
              ^
Main.java:7: error: array required, but Scanner found
    int b = ab[1].nextInt();
              ^
3 errors
Language: Java

import java.util.Scanner;

class Main {
  public static void main(Strting[] args) {
    Scanner ab[] = new Scanner(System.in);
    int a = ab[0].nextInt();
    int b = ab[1].nextInt();

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


Compiler output:
Main.java:4: error: cannot find symbol
  public static void main(Strting[] args) {
                          ^
  symbol:   class Strting
  location: class Main
Main.java:5: error: incompatible types: Scanner cannot be converted to Scanner[]
    Scanner ab[] = new Scanner(System.in);
                   ^
2 errors
Language: Java

import java.util.Scanner;

class Main {
  public static void main(Strting[] args) {
    Scanner ab = new Scanner(System.in);
    int a = ab.next();
    int b = ab.next();

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


Compiler output:
Main.java:4: error: cannot find symbol
  public static void main(Strting[] args) {
                          ^
  symbol:   class Strting
  location: class Main
Main.java:6: error: incompatible types: String cannot be converted to int
    int a = ab.next();
                   ^
Main.java:7: error: incompatible types: String cannot be converted to int
    int b = ab.next();
                   ^
3 errors
Language: Java

import java.util.Scanner;

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

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


Compiler output:
Main.java:4: error: cannot find symbol
  public static void main(Strting[] args) {
                          ^
  symbol:   class Strting
  location: class Main
Main.java:6: error: incompatible types: int cannot be converted to int[]
    int ab[] = sc.nextInt();
                         ^
2 errors
Language: Java

import java.util.Scanner;

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

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

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


Compiler output:
Main.java:4: error: cannot find symbol
  public static void main(Strting[] args) {
                          ^
  symbol:   class Strting
  location: class Main
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();
        System.out.println(a*b + " " + (2*a+2*b));
   }
}



Compiler output:
Main.java:1: error: cannot find symbol
import java.util.scanner;
                ^
  symbol:   class scanner
  location: package java.util
Main.java:6: error: cannot find symbol
        scanner sc = new scanner(System.in);
        ^
  symbol:   class scanner
  location: class Main
Main.java:6: error: cannot find symbol
        scanner sc = new scanner(System.in);
                         ^
  symbol:   class scanner
  location: class Main
3 errors
Language: Java

import java.util.Scanner;

/**
 * @author Dell
 *
 */
public class Test_2 {

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

	}

}


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



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

#include<stdio.h>
#include<stdlib.h>
#include<math.h>

int main(){
    int n,b;
    scanf("%d",&n);
    scanf("%d",&b);
    int sc = n*b;
    int li = 2*(n+b);
    printf("%d %d\n",sc,li);
    return 0;
}


Compiler output:
Main.java:1: error: illegal character: '#'
#include<stdio.h>
^
Main.java:1: error: class, interface, enum, or record expected
#include<stdio.h>
        ^
Main.java:2: error: illegal character: '#'
#include<stdlib.h>
^
Main.java:3: error: illegal character: '#'
#include<math.h>
^
Main.java:7: error: class, interface, enum, or record expected
    scanf("%d",&n);
    ^
Main.java:8: error: class, interface, enum, or record expected
    scanf("%d",&b);
    ^
Main.java:9: error: unnamed classes are a preview feature and are disabled by default.
    int sc = n*b;
    ^
  (use --enable-preview to enable unnamed classes)
Main.java:11: error: class, interface, enum, or record expected
    printf("%d %d\n",sc,li);
    ^
Main.java:12: error: class, interface, enum, or record expected
    return 0;
    ^
Main.java:13: error: class, interface, enum, or record expected
}
^
10 errors
Language: Java

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

class Main{
 public static void main (String[] args) throws java.lang.Exception
 {
 InputStreamReader is = new InputStreamReader(System.in);
 BufferedReader br = new BufferedReader(is);
 Scanner scan = new Scanner(System.in);
 int su = scan.nextInt();
 int menseki = su * su;
 int nagasa = su * 2 + su * 2;
 System.out.println(menseki+""+ nagasa);
 }
}
}


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

import java.util.Scanner;
public class Main{

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

   int area = a*b;
   int length = 2*a+2*b;

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


Compiler output:
Main.java:11: error: <identifier> expected
System.out.println(area+""+length);
                  ^
Main.java:11: error: <identifier> expected
System.out.println(area+""+length);
                       ^
Main.java:13: error: class, interface, enum, or record expected
}
^
3 errors
Language: Java

import java.util.Scanner;
public class Main{

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

   int area = a*b;
   int length = 2*a+2*b;

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


Compiler output:
Main.java:11: error: <identifier> expected
System.out.println(area + " " + length);
                  ^
Main.java:11: error: <identifier> expected
System.out.println(area + " " + length);
                       ^
Main.java:13: error: class, interface, enum, or record expected
}
^
3 errors
Language: Java

import java.util.Scanner;
public class Main{

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

   int area = a*b;
   int length = 2*a + 2*b;

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


Compiler output:
Main.java:11: error: <identifier> expected
System.out.println(area + " " + length);
                  ^
Main.java:11: error: <identifier> expected
System.out.println(area + " " + length);
                       ^
Main.java:13: error: class, interface, enum, or record expected
}
^
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();
        c=a*b;
        System.out.println(y);
    }
}


Compiler output:
Main.java:8: error: cannot find symbol
        c=a*b;
        ^
  symbol:   variable c
  location: class Main
Main.java:9: error: cannot find symbol
        System.out.println(y);
                           ^
  symbol:   variable y
  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 c=a*b;
        System.out.println(y);
    }
}


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

import java.util.Scanner;
public class Main{
   public static  void main(String [] args){
       Scanner sc = new Scanner(System.in);
       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:9: error: ')' or ',' expected
       System.out.println(area length);
                              ^
Main.java:9: error: not a statement
       System.out.println(area length);
                               ^
Main.java:9: error: ';' expected
       System.out.println(area length);
                                     ^
3 errors
Language: Java

import java.util.Scanner;

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

        int a = sc.nextInt();
        char op = sc.next().charAt(0);
        int b = sc.nextInt();

        while(op != '?')
        {
            if(op == '+')
                System.out.println(a + b);
            if(op == '-')
                System.out.println(a - b);
            if(op == '*')
                System.out.println(a * b);
            if(op == '/')
                System.out.println(a / b);

            a = sc.nextInt();
            op = sc.next().charAt(0);
            b = sc.nextInt();
        }
    }
}


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

import java.util.Scanner;

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

Scanner sc = new Scanner(System.in);

int a = sc.nextInt();
int b = sc.nextInt();
int area = a*b;
int Length = 2*a+2*b;
System.out.ptrint(area + ""+length);
}
}


Compiler output:
Main.java:4: error: cannot find symbol
 public static void main(Strnig[] args){
                         ^
  symbol:   class Strnig
  location: class Main
Main.java:12: error: cannot find symbol
System.out.ptrint(area + ""+length);
                            ^
  symbol:   variable length
  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 + 2*b;
System.out.ptrint(area + ""+length);
}
}


Compiler output:
Main.java:12: error: cannot find symbol
System.out.ptrint(area + ""+length);
                            ^
  symbol:   variable length
  location: class Main
1 error
Language: Java


import java.util.Scanner;

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

         Scanner sc = new Scanner(System.in);

            int a = sc.nextInt();
            int b = sc.nextInt();
            int area = a*b;
            int length = 2*a + 2*b;
        System.out.println(area + ""+length);
    }
}




Compiler output:
Main.java:4: error: 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 = sc.nextInt();
            int b = sc.nextInt();
            int area = a*b;
            int length = 2*a + 2*b;
        System.out.println(area + " " +length);
    }
}



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

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


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

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


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

public class hello 
{
    public static void main(String[] args) 
    {
        int a,b;        
        System.out.println((a*b) (2*(a+b)));
    }
}


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

import java.util.Scanner;

public class Main3{
    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: class Main3 is public, should be declared in a file named Main3.java
public class Main3{
       ^
1 error
Language: Java

import java.io.*;

public class Rectangle {
    public static void main(String[] args) {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        try {
            String a = reader.readLine();
            String b = reader.readLine();
            int x = Integer.parseInt(a);
            int y = Integer.parseInt(b);
            System.out.println(x * y+""+ (2 * x + 2 * y));
        } catch (IOException e) {
            System.out.println(e);
        } catch (NumberFormatException e) {
            System.out.println("エラー");
        }
    }
}



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

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


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


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

int main() {
     int a, b, x, y;
     cin << a << b;
     x = a * b;
     y = 2 * (a+b);
     cout << x << y << endl;
     return 0;
]


Compiler output:
Main.java:3: error: not a statement
     cin << a << b;
              ^
Main.java:6: error: not a statement
     cout << x << y << endl;
                    ^
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
int main() {
^
  (use --enable-preview to enable unnamed classes)
Main.java:8: error: illegal start of expression
]
^
Main.java:8: error: reached end of file while parsing
]
 ^
5 errors
Language: Java

int main() {
     int a, b, x, y;
     cin << a << b << end;
     x = a * b;
     y = 2 * (a+b);
     cout << x << y << endl;
     return 0;
]


Compiler output:
Main.java:3: error: not a statement
     cin << a << b << end;
                   ^
Main.java:6: error: not a statement
     cout << x << y << endl;
                    ^
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
int main() {
^
  (use --enable-preview to enable unnamed classes)
Main.java:8: error: illegal start of expression
]
^
Main.java:8: error: reached end of file while parsing
]
 ^
5 errors
Language: Java

import java.util.Scanner;

class Main {

    void go() {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int size = a * b;
        int length = 2 * a + 2 * b;
        System.out.println(size + " " + length);
    }

    public static void main(String[] args) {
        Rectangle cui = new Rectangle();
        cui.go();
    }
}


Compiler output:
Main.java:15: error: cannot find symbol
        Rectangle cui = new Rectangle();
        ^
  symbol:   class Rectangle
  location: class Main
Main.java:15: error: cannot find symbol
        Rectangle cui = new Rectangle();
                            ^
  symbol:   class Rectangle
  location: class Main
2 errors
Language: Java

import java.util.Scanner;

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


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

import java.util.Scanner;

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


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

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

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

fun Main(){
    val scan = Scanner(System.`in`)
    val short a = scan.nextShort()
    val short b = scan.nextShort()
    print(a*b)
    print(" ")
    print(2*a+2*b) 
}


Compiler output:
Main.java:1: error: ';' expected
import java.util.Scanner
                        ^
Main.java:4: error: illegal character: '`'
    val scan = Scanner(System.`in`)
                              ^
Main.java:4: error: illegal character: '`'
    val scan = Scanner(System.`in`)
                                 ^
3 errors
Language: Java

import java.util.Scanner;

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

        System.out.printf("%d %d",a*b, 2*a+2*b);
}


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

import java.util.Scanner;

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

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


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

import java.util.Scanner;

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

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


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

import java.util.Scanner;

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

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


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

public class Main{

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



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

import java.util.Scanner;

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


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

/* ITP1_1_C */

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

public class Main {
    public static void main (String[] args) throws java.lang.Exception {
    
    BufferedReader input = new BufferedReader (new InputStreamReader(System.in));
    String txt = input.readLine();
    String[] text = txt.split(" ");
    int A = Integer.parseInt(text[0]);
    int B = Integer.parseInt(text[1]);
    System.out.println( A*b + " " + (A+B)*2 );
    }
}



Compiler output:
Main.java:14: error: cannot find symbol
    System.out.println( A*b + " " + (A+B)*2 );
                          ^
  symbol:   variable b
  location: class Main
1 error
Language: Java

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


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

import java.io.*;
public class main
{
        public static void main(String args[])
        {
                double a, b;

                InputStreamReader isr = new InputStreamReader(System.in);
                BufferedReader br = new BufferedReader(isr);
                try{
                        String buf = br.readLine();
                        a = Double.valueOf(buf).doubleValue();
                        buf = br.readLine();
                        b = Double.valueOf(buf).doubleValue();
                }catch(Exception e){
                        x = 0.0;
                        y = 0.0;
                }
                System.out.println(a*b);
                System.out.println(2*(a+b));
        }
}


Compiler output:
Main.java:2: error: class main is public, should be declared in a file named main.java
public class main
       ^
Main.java:16: error: cannot find symbol
                        x = 0.0;
                        ^
  symbol:   variable x
  location: class main
Main.java:17: error: cannot find symbol
                        y = 0.0;
                        ^
  symbol:   variable y
  location: class main
3 errors
Language: Java

import java.io.*;
public class main
{
        public static void main(String args[])
        {
                int a, b;

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

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


Compiler output:
Main.java:12: error: <identifier> expected
                System.out.println(a*b);
                                  ^
Main.java:12: error: <identifier> expected
                System.out.println(a*b);
                                    ^
Main.java:13: error: <identifier> expected
                System.out.println(2*(a+b));
                                  ^
Main.java:13: error: illegal start of type
                System.out.println(2*(a+b));
                                   ^
Main.java:15: error: class, interface, enum, or record expected
}
^
5 errors
Language: Java

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


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

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


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

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


Compiler output:
Main.java:9: error: not a statement
        int long=2*(a+b);
        ^
Main.java:9: error: ';' expected
        int long=2*(a+b);
           ^
Main.java:9: error: not a statement
        int long=2*(a+b);
            ^
Main.java:9: error: ';' expected
        int long=2*(a+b);
                ^
Main.java:9: error: not a statement
        int long=2*(a+b);
                     ^
Main.java:9: error: ';' expected
        int long=2*(a+b);
                       ^
Main.java:10: error: ')' or ',' expected
        System.out.println(size long);
                               ^
Main.java:10: error: not a statement
        System.out.println(size long);
                                ^
Main.java:10: error: ';' expected
        System.out.println(size long);
                                    ^
9 errors
Language: Java

class Main{
    public static void main(String[] args){
        int a;
        int b;

        a=Keyboard.intValue();
        b=Keyboard.intValue();

        int size=a*b;
        int long=2*(a+b);

        System.out.print(size);
    }
}


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

class Main{
    public static void main(String[] args){
        int a;
        int b;

        a=Keyboard.intValue();
        b=Keyboard.intValue();

        int size=a*b;
        int long=2*(a+b);

        System.out.print(size long);
    }
}


Compiler output:
Main.java:10: error: not a statement
        int long=2*(a+b);
        ^
Main.java:10: error: ';' expected
        int long=2*(a+b);
           ^
Main.java:10: error: not a statement
        int long=2*(a+b);
            ^
Main.java:10: error: ';' expected
        int long=2*(a+b);
                ^
Main.java:10: error: not a statement
        int long=2*(a+b);
                     ^
Main.java:10: error: ';' expected
        int long=2*(a+b);
                       ^
Main.java:12: error: ')' or ',' expected
        System.out.print(size long);
                             ^
Main.java:12: error: not a statement
        System.out.print(size long);
                              ^
Main.java:12: error: ';' expected
        System.out.print(size long);
                                  ^
9 errors
Language: Java

import java.io.*;


public class Menseki {
	public static void main(String[] args) {
		String line;
		int a,b;
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		try {
			line = reader.readLine();
			a = Integer.parseInt(line);
			line = reader.readLine();
			b = Integer.parseInt(line);
			System.out.println(a*b+" "+(2*a+2*b));
		}catch(NumberFormatException e) {
			System.out.println(e);
		}catch(IOException e) {
			System.out.println(e);
		}
	}
}


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

import java.util.Scanner;

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


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

import java.util.Scanner;

public class AOJ0103 {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		int x,y;
		x = sc.nextInt();
		y = sc.nextInt();

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

		sc.close();

	}

}



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

public class ITP1_1_C {

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

		System.out.printf("%d %d",a * b ,2 * ( a + b ) );

		sc.close();

	}

}


Compiler output:
Main.java:1: error: class ITP1_1_C is public, should be declared in a file named ITP1_1_C.java
public class ITP1_1_C {
       ^
Main.java:4: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class ITP1_1_C
Main.java:4: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		                 ^
  symbol:   class Scanner
  location: class ITP1_1_C
3 errors
Language: Java

public class Main {

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

		System.out.printf("%d %d",a * b ,2 * ( a + b ) );

		sc.close();

	}

}


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,b,ans;
        a=sc.nextInt();
        b=sc.nextInt();
        ans = a*2+b*2;
        System.out.println(a*b ans);
    }
    
}


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


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

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


Compiler output:
Main.java:4: error: ',', ')', or '[' expected
 public static void main(String args{}) throws IOException
                                    ^
Main.java:4: error: illegal start of type
 public static void main(String args{}) throws IOException
                                      ^
Main.java:4: error: <identifier> expected
 public static void main(String args{}) throws IOException
                                                          ^
3 errors
Language: Java

#include<iostream>
using namespace std;
int main(){
cin >> a >> b;
cout << a*b << 2*(a+b) <<endl;
return 0;
}



Compiler output:
Main.java:1: error: illegal character: '#'
#include<iostream>
^
Main.java:1: error: class, interface, enum, or record expected
#include<iostream>
        ^
Main.java:4: error: not a statement
cin >> a >> b;
         ^
Main.java:5: error: not a statement
cout << a*b << 2*(a+b) <<endl;
                       ^
Main.java:3: error: unnamed classes are a preview feature and are disabled by default.
int main(){
^
  (use --enable-preview to enable unnamed classes)
5 errors
Language: Java

#include<iostream>
using namespace std;
int main(){
int a,b;
cin >> a >> b;
cout << a*b << 2*(a+b) <<endl;
return 0;
}



Compiler output:
Main.java:1: error: illegal character: '#'
#include<iostream>
^
Main.java:1: error: class, interface, enum, or record expected
#include<iostream>
        ^
Main.java:5: error: not a statement
cin >> a >> b;
         ^
Main.java:6: error: not a statement
cout << a*b << 2*(a+b) <<endl;
                       ^
Main.java:3: error: unnamed classes are a preview feature and are disabled by default.
int main(){
^
  (use --enable-preview to enable unnamed classes)
5 errors
Language: Java

import java.util.*;

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

     Scanner sc = new Scanner(system.in);
         int x = sc.nextInt();
         int y = sc.nextint();
         int a,b;
a=x * y;
b=2*(x+y);
System.out.println(x" "y)



Compiler output:
Main.java:4: error: <identifier> expected
public status void main(String[] args){
             ^
Main.java:12: error: ')' or ',' expected
System.out.println(x" "y)
                    ^
Main.java:12: error: not a statement
System.out.println(x" "y)
                       ^
Main.java:12: error: ';' expected
System.out.println(x" "y)
                        ^
Main.java:12: error: reached end of file while parsing
System.out.println(x" "y)
                         ^
5 errors
Language: Java

import java.util.*;

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

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


Compiler output:
Main.java:4: error: <identifier> expected
public status void main(String[] args){
             ^
Main.java:12: error: ')' or ',' expected
System.out.println(x" "y)
                    ^
Main.java:12: error: not a statement
System.out.println(x" "y)
                       ^
Main.java:12: error: ';' expected
System.out.println(x" "y)
                        ^
4 errors
Language: Java

import java.util.*;

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

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


Compiler output:
Main.java:4: error: <identifier> expected
public status void main(String[] args){
             ^
Main.java:12: error: ')' or ',' expected
System.out.println(x" "y);
                    ^
Main.java:12: error: not a statement
System.out.println(x" "y);
                       ^
Main.java:12: error: ';' expected
System.out.println(x" "y);
                        ^
4 errors