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

import java.util.Scanner;

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

     Scanner sc = new Scanner(system.in);
         int x = sc.nextInt();
         int y = sc.nextInt();

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


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

import java.util.*;

public class Main{

public static void main(String [] args){

       Scanner sc = new Scanner(System.in);

int a = (leftstring(sc,1)).nextInt;
int b = (rightstring(sc,1)).nextInt;

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

}
}





Compiler output:
Main.java:9: error: cannot find symbol
int a = (leftstring(sc,1)).nextInt;
         ^
  symbol:   method leftstring(Scanner,int)
  location: class Main
Main.java:10: error: cannot find symbol
int b = (rightstring(sc,1)).nextInt;
         ^
  symbol:   method rightstring(Scanner,int)
  location: class Main
2 errors
Language: Java

import java.util.Scanner;

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

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

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


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

import java.util.*;

public class Main{

public static void main(String [] args){

       Scanner sc = new Scanner(System.in);

int a = (leftstring(sc,1)).nextInt;
int b = (rightstring(sc,1)).nextInt;

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

}
}





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

import java.util.*;

public class Main{

public static void main(String [] args){

       Scanner sc = new Scanner(System.in);

int a = (leftstring(sc,1)).nextInt;
int b = (rightstring(sc,1)).nextInt;

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

}
}





Compiler output:
Main.java:9: error: cannot find symbol
int a = (leftstring(sc,1)).nextInt;
         ^
  symbol:   method leftstring(Scanner,int)
  location: class Main
Main.java:10: error: cannot find symbol
int b = (rightstring(sc,1)).nextInt;
         ^
  symbol:   method rightstring(Scanner,int)
  location: class Main
2 errors
Language: Java

import java.util.Scanner;

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

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

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


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

import java.util.*;

public class Main{

public static void main(String [] args){

       Scanner sc = new Scanner(System.in);

int a = (leftstring(sc,1)).nextInt;
int b = (rightstring(sc,1)).nextInt;

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

}
}





Compiler output:
Main.java:9: error: cannot find symbol
int a = (leftstring(sc,1)).nextInt;
         ^
  symbol:   method leftstring(Scanner,int)
  location: class Main
Main.java:10: error: cannot find symbol
int b = (rightstring(sc,1)).nextInt;
         ^
  symbol:   method rightstring(Scanner,int)
  location: class Main
2 errors
Language: Java

import java.util.*;

public class Main{

public static void main(String [] args){

       Scanner sc = new Scanner(System.in);

int a = (leftstring(sc,1)).nextInt;
int b = (rightstring(sc,1)).nextInt;

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

}
}





Compiler output:
Main.java:9: error: cannot find symbol
int a = (leftstring(sc,1)).nextInt;
         ^
  symbol:   method leftstring(Scanner,int)
  location: class Main
Main.java:10: error: cannot find symbol
int b = (rightstring(sc,1)).nextInt;
         ^
  symbol:   method rightstring(Scanner,int)
  location: class Main
2 errors
Language: Java

import java.util.*;

public class Main{

public static void main(String [] args){

       Scanner sc = new Scanner(System.in);

String x = leftstring(sc,1);
String y = rightstring(sc,1);


int a = x.nextInt();
int b = y.nextInt();

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

}
}





Compiler output:
Main.java:9: error: cannot find symbol
String x = leftstring(sc,1);
           ^
  symbol:   method leftstring(Scanner,int)
  location: class Main
Main.java:10: error: cannot find symbol
String y = rightstring(sc,1);
           ^
  symbol:   method rightstring(Scanner,int)
  location: class Main
Main.java:13: error: cannot find symbol
int a = x.nextInt();
         ^
  symbol:   method nextInt()
  location: variable x of type String
Main.java:14: error: cannot find symbol
int b = y.nextInt();
         ^
  symbol:   method nextInt()
  location: variable y of type String
4 errors
Language: Java

import java.util.Scanner;

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

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

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


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

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int a =sc.nextInt();
        int b =sc.nextInt();
        int c = 2*a+2*b
        System.out.println(a*b+" "+c);
        //BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        //String line = br.readLine();
    }
}



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

public class forest {

	public static void main(String[] args) {
		int a=5,b=6;
		System.out.print(a*b);
		System.out.print(" ");
		System.out.print(a+a+b+b);
	}

}


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

public class Main {

  public static void main(String[] args) {

    Scanner sin = new Scanner(System.in);

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

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


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

import java.io.*;

public class C {
  public static void main(String[] args){
      System.out.println("面積と周の長さを出力します");
      BufferedReader reader = new BufferedReader(new InputStreamReader ( System . in ) ) ;
      try {
      int a,b = 0;
      String line = reader.readLine();
        a = Integer.parseInt(line);
        line = reader.readLine();
        b = Integer.parseInt(line);

      if(1<=a && a<=100 && 1<=b && b<=100){
        System.out.printf("面積は"+a*b+" ");
        System.out.println("周の長さは"+2*(a+b));
      }else{
          System.out.println("数値が範囲外です");
      }
      }catch (IOException e){
        System.out.println(e);
          }
  }
}


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

import java.util.Scanner;

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




Compiler output:
Main.java:8: error: no suitable method found for println(String,int,int)
		System.out.println("%d %d",a*b,(a+b)*2);
		          ^
    method PrintStream.println() is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(boolean) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(char) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(int) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(long) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(float) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(double) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(char[]) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(String) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(Object) is not applicable
      (actual and formal argument lists differ in length)
1 error
Language: Java

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


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

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


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

public class Main {

	public static void main(String[] args) {
		// たて a cm よこ b cm の長方形の面積と周の長さを求めるプログラム
		
		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:6: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class Main
Main.java:6: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		                 ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: Java

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

}



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
Main.java:7: error: cannot find symbol
		System.out.printf("%d %d\n".a*b,(a+b)*2);
		                           ^
  symbol:   variable a
  location: class String
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\n",a*b,(a+b)*2);
	}

}



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.ArrayList;
import java.util.List;
import java.util.Scanner;

public class Main2 {
	
	static int a;
	static int b;
	
	public static void main(String[] args) 
	{
		Scanner scanner = new Scanner(System.in);
		List<Sub> subs = new ArrayList<Sub>();
		
		subs.add(new Sub(0));
		subs.add(new Sub(1));
	}

	static class Sub
	{
		int i;
		
		public Sub(int role)
		{
			Scanner scanner2 = new Scanner(System.in);
			
			if(role==0)
			{
				a = scanner2.nextInt();
				b = scanner2.nextInt();
			}
			
			if(role==1)
			{
				System.out.println(a*b + " " + (a+b)*2);
			}
			
		}
	}
}



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

public class Main {

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

		String[] x = line.split(" ");

		int a = Integer.parseInt(x[0]);
		int b = Integer.parseInt(x[1]);

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

	}

}


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

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		String line = sc.nextLine();

		String[] value = line.split(" ");
		int a = Integer.parseInt(value[0]);
		int b = Integer.parseInt(value[1]);
		System.out.println(a * b + " " + a * 2 + b * 2);

	}

}


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

import java.util.Scanner;

public class SubstringTest {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		String line = sc.nextLine();

		String[] value = line.split(" ");
		int a = Integer.parseInt(value[0]);
		int b = Integer.parseInt(value[1]);
		System.out.println(a * b + " " + (a * 2 + b * 2));

	}

}



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

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


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

import java.util.Scanner;

public class test {

    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\n",a*b,2*(a+b));
    }
}


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

import java.util.Scanner;

public class ITP1_1_C {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String line = sc.nextLine();
		String[] n = line.split(" ");
		int a = Integer.parseInt(n[0]);
		int b = Integer.parseInt(n[1]);

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

	}

}



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

import java.util.Scanner;

class Main
{
    public static void main(String[] args)
    {
               
        int a = scan.nextInt(3);

        int b = scan.nextInt(5);
        

        System.out.println(a * b);

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



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

import java.util.Scanner;

class Main
{
    public static void main(String[] args)
    {
               
        int a = scan.nextInt();

        int b = scan.nextInt();
        

        System.out.println(a * b);

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



Compiler output:
Main.java:8: error: cannot find symbol
        int a = scan.nextInt();
                ^
  symbol:   variable scan
  location: class Main
Main.java:10: error: cannot find symbol
        int b = scan.nextInt();
                ^
  symbol:   variable scan
  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 b = scan.nextInt();
        
        System.out.println(a * b);
        
        System.out.println(a * 2 + b * 2);


Compiler output:
Main.java:15: error: reached end of file while parsing
        System.out.println(a * 2 + b * 2);
                                          ^
1 error
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 b = scan.nextInt();
        
        System.out.println(a * b);
        
        System.out.println((a * b ) * 2);


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

import java.util.Scanner;

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

        int b = scan.nextInt(5);
        

        System.out.println(a * b);

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



Compiler output:
Main.java:16: error: not a statement
        System.out.println{2(a + b)};
                  ^
Main.java:16: error: ';' expected
        System.out.println{2(a + b)};
                          ^
Main.java:16: error: not a statement
        System.out.println{2(a + b)};
                           ^
Main.java:16: error: ';' expected
        System.out.println{2(a + b)};
                            ^
Main.java:16: error: not a statement
        System.out.println{2(a + b)};
                               ^
Main.java:16: error: ';' expected
        System.out.println{2(a + b)};
                                  ^
6 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 b = scan.nextInt();
        
        System.out.println(a * b);
        
        System.out.println((a + b) * 2);


Compiler output:
Main.java:15: error: reached end of file while parsing
        System.out.println((a + b) * 2);
                                        ^
1 error
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 b = scan.nextInt();
        

        System.out.println(a * b);

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



Compiler output:
Main.java:16: error: not a statement
        System.out.println{2(a + b)};
                  ^
Main.java:16: error: ';' expected
        System.out.println{2(a + b)};
                          ^
Main.java:16: error: not a statement
        System.out.println{2(a + b)};
                           ^
Main.java:16: error: ';' expected
        System.out.println{2(a + b)};
                            ^
Main.java:16: error: not a statement
        System.out.println{2(a + b)};
                               ^
Main.java:16: error: ';' expected
        System.out.println{2(a + b)};
                                  ^
6 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 b = scan.nextInt();
        

        System.out.print(a * b);

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



Compiler output:
Main.java:16: error: not a statement
        System.out.print{2(a + b)};
                  ^
Main.java:16: error: ';' expected
        System.out.print{2(a + b)};
                        ^
Main.java:16: error: not a statement
        System.out.print{2(a + b)};
                         ^
Main.java:16: error: ';' expected
        System.out.print{2(a + b)};
                          ^
Main.java:16: error: not a statement
        System.out.print{2(a + b)};
                             ^
Main.java:16: error: ';' expected
        System.out.print{2(a + b)};
                                ^
6 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 b = scan.nextInt();
        

        System.out.print(a * b);

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



Compiler output:
Main.java:16: error: not a statement
        System.out.println{2(a + b)};
                  ^
Main.java:16: error: ';' expected
        System.out.println{2(a + b)};
                          ^
Main.java:16: error: not a statement
        System.out.println{2(a + b)};
                           ^
Main.java:16: error: ';' expected
        System.out.println{2(a + b)};
                            ^
Main.java:16: error: not a statement
        System.out.println{2(a + b)};
                               ^
Main.java:16: error: ';' expected
        System.out.println{2(a + b)};
                                  ^
6 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 b = scan.nextInt();
        
        System.out.print(a * b);
        
        System.out.println((a * 2) + (b * 2));


Compiler output:
Main.java:15: error: reached end of file while parsing
        System.out.println((a * 2) + (b * 2));
                                              ^
1 error
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 b = scan.nextInt();
        

        System.out.print(a * b);

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



Compiler output:
Main.java:16: error: not a statement
        System.out.println{2(a + b)};
                  ^
Main.java:16: error: ';' expected
        System.out.println{2(a + b)};
                          ^
Main.java:16: error: not a statement
        System.out.println{2(a + b)};
                           ^
Main.java:16: error: ';' expected
        System.out.println{2(a + b)};
                            ^
Main.java:16: error: not a statement
        System.out.println{2(a + b)};
                               ^
Main.java:16: error: ';' expected
        System.out.println{2(a + b)};
                                  ^
6 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 b = scan.nextInt();
        
        System.out.print(a * b);
        
        System.out.println(2 * (a + b);


Compiler output:
Main.java:15: error: ')' or ',' expected
        System.out.println(2 * (a + b);
                                      ^
Main.java:15: error: reached end of file while parsing
        System.out.println(2 * (a + b);
                                       ^
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 b = scan.nextInt();
        
        System.out.println(a * b);
        
        System.out.println(2 * (a + b);


Compiler output:
Main.java:15: error: ')' or ',' expected
        System.out.println(2 * (a + b);
                                      ^
Main.java:15: error: reached end of file while parsing
        System.out.println(2 * (a + b);
                                       ^
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 b = scan.nextInt();
        
        System.out.println(a * b);
        
        System.out.println(2 * (a + b));


Compiler output:
Main.java:15: error: reached end of file while parsing
        System.out.println(2 * (a + b));
                                        ^
1 error
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 b = scan.nextInt();
        
        System.out.println(a * b);
        
        System.out.println2(a * b);


Compiler output:
Main.java:15: error: reached end of file while parsing
        System.out.println2(a * b);
                                   ^
1 error
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 b = scan.nextInt();
        
        System.out.print(a * b);
        
        System.out.println2(a * b);


Compiler output:
Main.java:15: error: reached end of file while parsing
        System.out.println2(a * b);
                                   ^
1 error
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 b = scan.nextInt();
        

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



Compiler output:
Main.java:14: error: not a statement
        System.out.println{2(a + b)};
                  ^
Main.java:14: error: ';' expected
        System.out.println{2(a + b)};
                          ^
Main.java:14: error: not a statement
        System.out.println{2(a + b)};
                           ^
Main.java:14: error: ';' expected
        System.out.println{2(a + b)};
                            ^
Main.java:14: error: not a statement
        System.out.println{2(a + b)};
                               ^
Main.java:14: error: ';' expected
        System.out.println{2(a + b)};
                                  ^
6 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 b = scan.nextInt();
        
        System.out.print(a * b);
        
        System.out.println2(a * b);
    }
}


Compiler output:
Main.java:15: error: cannot find symbol
        System.out.println2(a * b);
                  ^
  symbol:   method println2(int)
  location: variable out of type PrintStream
1 error
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 b = scan.nextInt();
        

        System.out.println(a * b);

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



Compiler output:
Main.java:16: error: not a statement
        System.out.println{2 * (a + b)};
                  ^
Main.java:16: error: ';' expected
        System.out.println{2 * (a + b)};
                          ^
Main.java:16: error: not a statement
        System.out.println{2 * (a + b)};
                             ^
Main.java:16: error: ';' expected
        System.out.println{2 * (a + b)};
                                      ^
4 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 b = scan.nextInt();
        
        System.out.print(a * b);
        System.out.print(" ")
        System.out.println(2 * (a * b));
    }
}


Compiler output:
Main.java:14: error: ';' expected
        System.out.print(" ")
                             ^
1 error
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 b = scan.nextInt();
        
        System.out.print(a * b);
        
        System.out.print(" ")

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


Compiler output:
Main.java:15: error: ';' expected
        System.out.print(" ")
                             ^
1 error
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 b = scan.nextInt();
        

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



Compiler output:
Main.java:15: error: illegal character: '\u3000'
????System.out.println(" ");
^
Main.java:15: error: illegal character: '\u3000'
????System.out.println(" ");
 ^
Main.java:15: error: illegal character: '\u3000'
????System.out.println(" ");
  ^
Main.java:15: error: illegal character: '\u3000'
????System.out.println(" ");
   ^
Main.java:16: error: not a statement
        System.out.print{2 * (a + b)};
                  ^
Main.java:16: error: ';' expected
        System.out.print{2 * (a + b)};
                        ^
Main.java:16: error: not a statement
        System.out.print{2 * (a + b)};
                           ^
Main.java:16: error: ';' expected
        System.out.print{2 * (a + b)};
                                    ^
8 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 b = scan.nextInt();
        

        System.out.println(a * b);

　　　　System.out.println(" ");

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



Compiler output:
Main.java:16: error: illegal character: '\u3000'
????System.out.println(" ");
^
Main.java:16: error: illegal character: '\u3000'
????System.out.println(" ");
 ^
Main.java:16: error: illegal character: '\u3000'
????System.out.println(" ");
  ^
Main.java:16: error: illegal character: '\u3000'
????System.out.println(" ");
   ^
Main.java:18: error: not a statement
        System.out.print{2 * (a + b)};
                  ^
Main.java:18: error: ';' expected
        System.out.print{2 * (a + b)};
                        ^
Main.java:18: error: not a statement
        System.out.print{2 * (a + b)};
                           ^
Main.java:18: error: ';' expected
        System.out.print{2 * (a + b)};
                                    ^
8 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 b = scan.nextInt();
        
        System.out.print(a * b);
        
        System.out.print(" ")

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


Compiler output:
Main.java:15: error: ';' expected
        System.out.print(" ")
                             ^
1 error
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 b = scan.nextInt();
        

        System.out.println(a * b);

　　　　System.out.println(" ");

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



Compiler output:
Main.java:16: error: illegal character: '\u3000'
????System.out.println(" ");
^
Main.java:16: error: illegal character: '\u3000'
????System.out.println(" ");
 ^
Main.java:16: error: illegal character: '\u3000'
????System.out.println(" ");
  ^
Main.java:16: error: illegal character: '\u3000'
????System.out.println(" ");
   ^
Main.java:18: error: not a statement
        System.out.print(a * 2)+(b * 2);
                               ^
5 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 b = scan.nextInt();
        

        System.out.println(a * b);

　　　　System.out.println(" ");

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



Compiler output:
Main.java:16: error: illegal character: '\u3000'
????System.out.println(" ");
^
Main.java:16: error: illegal character: '\u3000'
????System.out.println(" ");
 ^
Main.java:16: error: illegal character: '\u3000'
????System.out.println(" ");
  ^
Main.java:16: error: illegal character: '\u3000'
????System.out.println(" ");
   ^
4 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 b = scan.nextInt();
        

        System.out.println(a * b);

　　　　System.out.println(" ");

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



Compiler output:
Main.java:16: error: illegal character: '\u3000'
????System.out.println(" ");
^
Main.java:16: error: illegal character: '\u3000'
????System.out.println(" ");
 ^
Main.java:16: error: illegal character: '\u3000'
????System.out.println(" ");
  ^
Main.java:16: error: illegal character: '\u3000'
????System.out.println(" ");
   ^
4 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 b = scan.nextInt();
        

        System.out.println(a * b);

　　　　System.out.print(" ");

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



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

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


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

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


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

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


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

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

        int a = scan.nextInt();

        int b = scan.nextInt();
        System.out.print( a * b );
        System.out.println( (a + b) * 2);
        
    } 
}


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

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

        int a = scan.nextInt();

        int b = scan.nextInt();
        
        System.out.print( a * b );
        System.out.print(" ");
        System.out.print( (a + b) * 2);     
    } 
}


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

import java.util.*;

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


Compiler output:
Main.java:9: error: cannot find symbol
        System.out.println(h*w + "" + 2*h + 2*W);
                                              ^
  symbol:   variable W
  location: class Main
1 error
Language: Java

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


Compiler output:
Main.java:3: error: cannot find symbol
		new Main().solve();
		          ^
  symbol:   method solve()
  location: class Main
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

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


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

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


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

        System.out.println("aの値 : "); int a =stdIn.nextInt();
        System.out.println("bの値 : "); int b =stdIn.nextInt();

        int X= a*b;
        int y=2*(a+b);
        System.out.println("面積は"+X+"です");
        System.out.println("周の長さはは"+y+"です");
    }

}


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

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

        System.out.println("aの値 : "); int a =stdIn.nextInt();
        System.out.println("bの値 : "); int b =stdIn.nextInt();

        int X= a*b;
        int y=2*(a+b);
        System.out.println("面積は"+X+"です");
        System.out.println("周の長さはは"+y+"です");
    }

}



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

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

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

        int X= a*b;
        int y=2*(a+b);
        System.out.println(X);
        System.out.println(y);
    }

}



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

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

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

        int x=a*b;
        int y =2*(a+b);
        System.out.println(x +" " + y);
    }

}


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

import java.util.Scanner;

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

 int a;
 int b;
 int c;
 int d;
Scanner s = new Scanner(System.in());
    a=s.nextInt();
    b=s.nextInt();
    c=a*b;
    d=a*2+b*2;
System.out.printf(c+" "+d);

}
}


Compiler output:
Main.java:4: error: cannot find symbol
public static void main(string[] args){
                        ^
  symbol:   class string
  location: class Main
Main.java:10: error: cannot find symbol
Scanner s = new Scanner(System.in());
                              ^
  symbol:   method in()
  location: class System
2 errors
Language: Java

import java.util.Scanner;

public class Main{
public static void main(String[] args){
 Scanner sc = new Scanner();
 int x = sc.nextInt();
 int y = sc.nextInt();

 int area = x * y;
 int length = 2(x + y);

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

}

}


Compiler output:
Main.java:10: error: ';' expected
 int length = 2(x + y);
               ^
Main.java:10: error: not a statement
 int length = 2(x + y);
                  ^
Main.java:10: error: ';' expected
 int length = 2(x + y);
                     ^
3 errors
Language: Java

import java.util.*;

public class Main{
public static void main(String[] args){
 Scanner sc = new Scanner();
 int x = sc.nextInt();
 int y = sc.nextInt();

 int area = x * y;
 int length = 2(x + y);

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

}

}


Compiler output:
Main.java:10: error: ';' expected
 int length = 2(x + y);
               ^
Main.java:10: error: not a statement
 int length = 2(x + y);
                  ^
Main.java:10: error: ';' expected
 int length = 2(x + y);
                     ^
3 errors
Language: Java

import java.util.*;

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

 int area = x * y;
 int length = 2(x + y);

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

}

}


Compiler output:
Main.java:10: error: ';' expected
 int length = 2(x + y);
               ^
Main.java:10: error: not a statement
 int length = 2(x + y);
                  ^
Main.java:10: error: ';' expected
 int length = 2(x + y);
                     ^
3 errors
Language: Java

class Main
{
  public static void main(String[] args) {
    java.io.BufferedReader reader = null;
    try {
      reader = new java.io.BufferedReader(new java.io.InputStreamReader(System.in));
      String[] inputs = reader.readLine().split(" ");
      int a = Integer.parseInt(inputs[0]);
      int b = Integer.parseInt(inputs[1]);
      int s = a * b;
      int r = a + a + b + b;
      System.out.printf("%d %d\n", s, r);
  } catch (java.io.IOException e) {
     e.printStackTrace();
  } finally {
      if (reader != null) {
        try {
          reader.close();
        } catch (java.io.IOException e) {
          e.printStackTrace();
        }
      }
  }
}
  

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

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

public class Main1 {
	public static void main(String args[]) throws IOException {
		Scanner scanner = new Scanner(System.in);
		int length = scanner.nextInt();
		int side = scanner.nextInt();
		System.out.println(length * side + " " + ((length * 2) + (side * 2)));
	}
}

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

import java.util.Scanner
import java.util.Random

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

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

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

import java.util.Scanner
import java.util.Random

public class Main {
	public static void main (String[] args) {
		int x = new Scanner(System.in).next();
		int y = new Scanner(System.in).next();

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

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

import java.util.Scanner
import java.util.Random

public class Main {
	public static void main (String[] args) {
		int x = new Scanner(System.in).next();
		int y = new Scanner(System.in).next();

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

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

public class Main {
	public static void main (String[] args) {
		int x = new java.util.Scanner(System.in).next();
		int y = new java.util.Scanner(System.in).next();

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

Compiler output:
Main.java:3: error: incompatible types: String cannot be converted to int
		int x = new java.util.Scanner(System.in).next();
		                                             ^
Main.java:4: error: incompatible types: String cannot be converted to int
		int y = new java.util.Scanner(System.in).next();
		                                             ^
2 errors