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

import java.util.Scanner;
import java.util.InputMismatchException;

class Main{
public static void main(String args[]){
Scanner1 scanner1 = new Scanner(System.in);
//Scanner2 scanner2 = new Scanner(System.in);
int a = scanner1.nextInt();
//int b = scanner2.nextInt();
System.out.println(a);
}
}

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

import java.util.Scanner;
import java.util.InputMismatchException;

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

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

import java.util.Scanner;
import java.util.InputMismatchException;

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

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

import java.util.Scanner;
import java.util.InputMismatchException;

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

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

public class Main {
	public static void main (String[] args) {
		Scanner sc = new Scanner(System.in);
		int intAns = 0;
		int intAns1 = 0;
		try {
		//	System.out.println("??°????????\?????????????????????");
			int intTate = sc.nextInt();
			int intYoko = sc.nextInt();
			intAns = intTate * intYoko;
			intAns1 = 2 * intTate + intYoko * 2;
			System.out.println(intAns+ " " +intAns1);
		}catch (NumberFormatException e){
			System.out.println(e);
		}
	}
}

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 intAns = 0;
		int intAns1 = 0;
		//	System.out.println("??°????????\?????????????????????");
			int intTate = sc.nextInt();
			int intYoko = sc.nextInt();
			intAns = intTate * intYoko;
			intAns1 = 2 * intTate + intYoko * 2;
			System.out.println(intAns+ " " +intAns1);
	}
}

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 intAns = 0;
		int intAns1 = 0;
		//	System.out.println("??°????????\?????????????????????");
			int intTate = sc.nextInt();
			int intYoko = sc.nextInt();
			intAns = intTate * intYoko;
			intAns1 = intTate * intTate + intYoko * intYoko;
			System.out.println(intAns+ " " +intAns1);
	}
}

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 intAns = 0;
		int intAns1 = 0;
		//	System.out.println("??°????????\?????????????????????");
			int intTate = sc.nextInt();
			int intYoko = sc.nextInt();
			intAns = intTate * intYoko;
			intAns1 = 2 * intTate + 2 * intYoko;
			System.out.println(intAns+ " " +intAns1);
	}
}

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.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Rectangle {
	public static void main(String[] args) {
		BufferedReader input = new BufferedReader(new InputStreamReader(System.in));


		  try{
              
			  String ab = input.readLine();
			  String[] strAry = ab.split(" ");
			 int x = Integer.parseInt(strAry[0]);
			  int y = Integer.parseInt(strAry[1]);

			  System.out.println(x*y +" "+ 2*(x+y));
		    }catch(IOException e) {   System.out.println("Exception : " + e);
		    }


	}

}

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

mport java.util.Scanner;
class Main {

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

	}

}

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

import java.util.Scanner;

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

Compiler output:
Main.java:9: error: no suitable method found for println(int,String,int)
		System.out.println(a*b, " ", (2*a)+(2*b));
		          ^
    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

import java.util.Scanner;

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

Compiler output:
Main.java:11: error: no suitable method found for println(int,String,int)
		System.out.println(x, " ", y);
		          ^
    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

import java.util.Scanner;

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

Compiler output:
Main.java:10: error: no suitable method found for println(int,String,int)
		System.out.println(x, " ", y);
		          ^
    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

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

Compiler output:
Main.java:1: error: ';' expected
import java.util.Scanner
                        ^
Main.java:2: error: '{' expected
class ITP1_1_C
              ^
Main.java:3: error: unnamed classes are a preview feature and are disabled by default.
 public static void main(String[] args){
               ^
  (use --enable-preview to enable unnamed classes)
Main.java:4: error: ';' expected
  Scanner scanner = new Scanner(System.in)
                                          ^
Main.java:10: error: class, interface, enum, or record expected
}
^
5 errors
Language: Java

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

Compiler output:
Main.java:1: error: ';' expected
import java.util.Scanner
                        ^
Main.java:4: error: ';' expected
  Scanner scanner = new Scanner(System.in)
                                          ^
2 errors
Language: Java

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

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

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

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

import java.util.scanner;

public class Main{
  public static void main(String args[]){
    Scanner scanner = new scanner(System.in);
    String input = scanner.nextLine();
    String[] str = input.split(" ");
    int in1 = parseInt.str[0];
    int in2 = parseInt.str[1];

    System.out.println((in1+in2)*2+" "+in1*in2);
  }
}

Compiler output:
Main.java:1: error: cannot find symbol
import java.util.scanner;
                ^
  symbol:   class scanner
  location: package java.util
Main.java:5: error: cannot find symbol
    Scanner scanner = new scanner(System.in);
    ^
  symbol:   class Scanner
  location: class Main
Main.java:5: error: cannot find symbol
    Scanner scanner = new scanner(System.in);
                          ^
  symbol:   class scanner
  location: class Main
Main.java:8: error: cannot find symbol
    int in1 = parseInt.str[0];
              ^
  symbol:   variable parseInt
  location: class Main
Main.java:9: error: cannot find symbol
    int in2 = parseInt.str[1];
              ^
  symbol:   variable parseInt
  location: class Main
5 errors
Language: Java

import java.util.*;
 
public class Main{
  public static void main(String args[]){
    Scanner scanner = new scanner(System.in);
    String input = scanner.nextLine();
    String[] str = input.split(" ");
    int in1 = parseInt.str[0];
    int in2 = parseInt.str[1];
 
    System.out.println((in1+in2)*2+" "+in1*in2);
  }
}

Compiler output:
Main.java:5: error: cannot find symbol
    Scanner scanner = new scanner(System.in);
                          ^
  symbol:   class scanner
  location: class Main
Main.java:8: error: cannot find symbol
    int in1 = parseInt.str[0];
              ^
  symbol:   variable parseInt
  location: class Main
Main.java:9: error: cannot find symbol
    int in2 = parseInt.str[1];
              ^
  symbol:   variable parseInt
  location: class Main
3 errors
Language: Java

import java.util.*;
  
public class Main{
  public static void main(String args[]){
    Scanner scanner = new Scanner(System.in);
    String input = scanner.nextLine();
    String[] str = input.split(" ");
    int in1 = parseInt.str[0];
    int in2 = parseInt.str[1];
  
    System.out.println((in1+in2)*2+" "+in1*in2);
  }
}

Compiler output:
Main.java:8: error: cannot find symbol
    int in1 = parseInt.str[0];
              ^
  symbol:   variable parseInt
  location: class Main
Main.java:9: error: cannot find symbol
    int in2 = parseInt.str[1];
              ^
  symbol:   variable parseInt
  location: class Main
2 errors
Language: Java

import java.util.*;
   
public class Main{
  public static void main(String args[]){
    Scanner scanner = new Scanner(System.in);
    String input = scanner.nextLine();
    String[] str = input.split(" ");
    int in1 = parseInt(str[0]);
    int in2 = parseInt(str[1]);
   
    System.out.println((in1+in2)*2+" "+in1*in2);
  }
}

Compiler output:
Main.java:8: error: cannot find symbol
    int in1 = parseInt(str[0]);
              ^
  symbol:   method parseInt(String)
  location: class Main
Main.java:9: error: cannot find symbol
    int in2 = parseInt(str[1]);
              ^
  symbol:   method parseInt(String)
  location: class Main
2 errors
Language: Java

public class{
public static void main (string () args){
scanner sc=new scanner(system.in);
int a;
a=sc.nextint();
int b+;
b=sc.nextint();
system.out.print(a*b);
system.out.print(2*a+2*b);
}
}

Compiler output:
Main.java:1: error: <identifier> expected
public class{
            ^
Main.java:2: error: <identifier> expected
public static void main (string () args){
                               ^
Main.java:6: error: ';' expected
int b+;
     ^
3 errors
Language: Java

public class{
public static void main (String () args){
scanner sc=new scanner(system.in);
int a;
a=sc.nextint();
int b;
b=sc.nextint();
system.out.print(a*b);
system.out.print(2*a+2*b);
}
}

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

import java.util.Scanner;

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

Compiler output:
Main.java:12: error: <identifier> expected
    System.out.println(ab + " " + syuu);
                      ^
Main.java:12: error: <identifier> expected
    System.out.println(ab + " " + syuu);
                         ^
Main.java:14: 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();
		
		System.out.println(a*b a*2+b*2);

	}

}

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

import java.util.Scanner;

public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int length = sc.nextInt();
        int breadth = sc.nestInt();
        System.out.println(length * breadth);
    }
}


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

import java.util.Scanner;

class Main{

public int area(int x, int y) {
	return x* y;
	}
public int perimeter(int x, int y) {
	return x + x + y + y;
	}
	
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int p = scanner.nextInt();
int q = scanner.nextInt();

System.out.print(area(p,q) + " " + perimeter(p,q));
}
}



Compiler output:
Main.java:17: error: non-static method area(int,int) cannot be referenced from a static context
System.out.print(area(p,q) + " " + perimeter(p,q));
                 ^
Main.java:17: error: non-static method perimeter(int,int) cannot be referenced from a static context
System.out.print(area(p,q) + " " + perimeter(p,q));
                                   ^
2 errors
Language: Java

import java.util.Scanner;

class Main{

public int area(int x, int y) {
	return x* y;
	}
public int perimeter(int x, int y) {
	return x + x + y + y;
	}
	
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int p = scanner.nextInt();
int q = scanner.nextInt();

System.out.print(perimeter(p,q) + " " + area(p,q));
}
}



Compiler output:
Main.java:17: error: non-static method perimeter(int,int) cannot be referenced from a static context
System.out.print(perimeter(p,q) + " " + area(p,q));
                 ^
Main.java:17: error: non-static method area(int,int) cannot be referenced from a static context
System.out.print(perimeter(p,q) + " " + area(p,q));
                                        ^
2 errors
Language: Java

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


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

import java.util.Scanner;

public class Main1c {

	public static void main(String[] args){

		Scanner in = new Scanner(System.in);

		int x = in.nextInt();
		int y = in.nextInt();


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

}



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

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


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

import java.io.BufferedReader;
import java.io.InputStreamReader;
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(a * b);
      System.out.printIn(2 * (a + b));
    }
    
  
    
}



Compiler output:
Main.java:11: error: cannot find symbol
      System.out.printIn(2 * (a + b));
                ^
  symbol:   method printIn(int)
  location: variable out of type PrintStream
1 error
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.println(a*b+””+2*(a+b));
 	}



Compiler output:
Main.java:6: error: illegal character: '\u201d'
	System.out.println(a*b+??+2*(a+b));
	                       ^
Main.java:6: error: illegal character: '\u201d'
	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));
	                                ^
Main.java:7: error: reached end of file while parsing
 	}
 	 ^
5 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.println(a*b+””+2*(a+b));
 	}
}


Compiler output:
Main.java:6: error: illegal character: '\u201d'
	System.out.println(a*b+??+2*(a+b));
	                       ^
Main.java:6: error: illegal character: '\u201d'
	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));
	                                ^
4 errors
Language: Java

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


Compiler output:
Main.java:1: error: class, interface, enum, or record expected
mport java.util.Scanner;
^
1 error
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.println(a*b+" "+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)throws IOException {
		Scanner sc = new Scanner(System.in);
	    int x = sc.nextInt();
	    int y = sc.nextInt();

	    // 面積
	    int area = x * y;
	    // 周の長さ
	    int cf = x*2 + y*2;

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

}



Compiler output:
Main.java:3: error: cannot find symbol
	public static void main(String[] args)throws IOException {
	                                             ^
  symbol:   class IOException
  location: class Main
Main.java:4: error: cannot find symbol
		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
3 errors
Language: Java

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

public class Rectangle {

	public static void main(String[] args) throws NumberFormatException, IOException {
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		System.out.println("a cm * b cm の長方形の外周の長さを求めます。");
		System.out.print("a=");
		int a=Integer.parseInt(br.readLine());
		System.out.print("b=");
		int b=Integer.parseInt(br.readLine());
		int z=2*a+2*b;
		System.out.println("A. "+z+"cmです。");
	}

}


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

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

public class Rectangle {

	public static void main(String[] args) throws NumberFormatException, IOException {
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		System.out.println("a cm * b cm の長方形の面積と外周の長さを求めます。");
		System.out.print("a=");
		int a=Integer.parseInt(br.readLine());
		System.out.print("b=");
		int b=Integer.parseInt(br.readLine());
		int menseki=a*b;
		int gaisyu=2*a+2*b;
		System.out.println("面積は "+menseki+"cm²です。");
		System.out.println("外周は "+gaisyu+"cmです。");
	}

}



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

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

public class Rectangle {

	public static void main(String[] args) throws NumberFormatException, IOException {
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		System.out.println("a cm * b cm の長方形の面積と外周の長さを求めます。");
		System.out.print("a=");
		int a=Integer.parseInt(br.readLine());
		System.out.print("b=");
		int b=Integer.parseInt(br.readLine());
		int menseki=a*b;
		int gaisyu=2*a+2*b;
		System.out.println(menseki+" "+gaisyu);
	}

}



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

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

public class Rectangle {

	public static void main(String[] args) throws IOException {
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		int a=Integer.parseInt(br.readLine());
		int b=Integer.parseInt(br.readLine());
		int menseki=a*b;
		int gaisyu=2*(a+b);
		System.out.print(menseki);
		System.out.print(gaisyu);
	}

}



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

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

public class Rectangle {

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

        int a=Integer.parseInt(st.nextToken());
        int b=Integer.parseInt(st.nextToken());

        int menseki=a*b;
		int gaisyu=2*(a+b);

		System.out.print(menseki);
		System.out.println(gaisyu);

	}

}



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

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



Compiler output:
Main.java:8: error: illegal character: '\u00a0'
System.out.println(a*b + (a+b)*2);??????? 			
                                  ^
Main.java:8: error: illegal character: '\u00a0'
System.out.println(a*b + (a+b)*2);??????? 			
                                   ^
Main.java:8: error: illegal character: '\u00a0'
System.out.println(a*b + (a+b)*2);??????? 			
                                    ^
Main.java:8: error: illegal character: '\u00a0'
System.out.println(a*b + (a+b)*2);??????? 			
                                     ^
Main.java:8: error: illegal character: '\u00a0'
System.out.println(a*b + (a+b)*2);??????? 			
                                      ^
Main.java:8: error: illegal character: '\u00a0'
System.out.println(a*b + (a+b)*2);??????? 			
                                       ^
Main.java:8: error: illegal character: '\u00a0'
System.out.println(a*b + (a+b)*2);??????? 			
                                        ^
Main.java:9: error: illegal character: '\u00a0'
}?????????? 			
 ^
Main.java:9: error: illegal character: '\u00a0'
}?????????? 			
  ^
Main.java:9: error: illegal character: '\u00a0'
}?????????? 			
   ^
Main.java:9: error: illegal character: '\u00a0'
}?????????? 			
    ^
Main.java:9: error: illegal character: '\u00a0'
}?????????? 			
     ^
Main.java:9: error: illegal character: '\u00a0'
}?????????? 			
      ^
Main.java:9: error: illegal character: '\u00a0'
}?????????? 			
       ^
Main.java:9: error: illegal character: '\u00a0'
}?????????? 			
        ^
Main.java:9: error: illegal character: '\u00a0'
}?????????? 			
         ^
Main.java:9: error: illegal character: '\u00a0'
}?????????? 			
          ^
Main.java:10: error: illegal start of type
}???????			
^
Main.java:10: error: illegal character: '\u00a0'
}???????			
 ^
Main.java:10: error: illegal character: '\u00a0'
}???????			
  ^
Main.java:10: error: illegal character: '\u00a0'
}???????			
   ^
Main.java:10: error: illegal character: '\u00a0'
}???????			
    ^
Main.java:10: error: illegal character: '\u00a0'
}???????			
     ^
Main.java:10: error: illegal character: '\u00a0'
}???????			
      ^
Main.java:10: error: illegal character: '\u00a0'
}???????			
       ^
Main.java:12: error: reached end of file while parsing
26 errors
Language: Java

package src;
import java.util.Scanner;
public class hello {
	@SuppressWarnings("resource")
	public static void main(String[] args){
			Scanner x = new Scanner(System.in);
			int a = x.nextInt();
			int b= x.nextInt();
			System.out.println((a*b) +" "+((a+b)*2));
	}
}



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

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



Compiler output:
Main.java:1: error: class hello is public, should be declared in a file named hello.java
public class hello {
       ^
Main.java:4: error: cannot find symbol
			Scanner x = new Scanner(System.in);
			^
  symbol:   class Scanner
  location: class hello
Main.java:4: error: cannot find symbol
			Scanner x = new Scanner(System.in);
			                ^
  symbol:   class Scanner
  location: class hello
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.println(a*b+” ”+2*(a+b));
	}
}	



Compiler output:
Main.java:6: error: illegal character: '\u201d'
	System.out.println(a*b+? ?+2*(a+b));
	                       ^
Main.java:6: error: illegal character: '\u201d'
	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));
	                                 ^
4 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);		
	Systam.out.print(" ");		
	System.out.plintln(2*(a+b));		
	}		
}			



Compiler output:
Main.java:1: error: class main is public, should be declared in a file named main.java
public class main{			
       ^
Main.java:3: error: cannot find symbol
	scanner scan = new Scanner (System.in);		
	^
  symbol:   class scanner
  location: class main
Main.java:3: error: cannot find symbol
	scanner scan = new Scanner (System.in);		
	                   ^
  symbol:   class Scanner
  location: class main
Main.java:7: error: package Systam does not exist
	Systam.out.print(" ");		
	      ^
Main.java:8: error: cannot find symbol
	System.out.plintln(2*(a+b));		
	          ^
  symbol:   method plintln(int)
  location: variable out of type PrintStream
5 errors
Language: Java

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



Compiler output:
Main.java:3: error: class main is public, should be declared in a file named main.java
public class main{			
       ^
Main.java:1: error: package java.until does not exist
import java.until.Scanner;			
                 ^
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
Main.java:8: error: cannot find symbol
	System.out.plintln(a*b+""+2*(a+b));		
	          ^
  symbol:   method plintln(String)
  location: variable out of type PrintStream
5 errors
Language: Java

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



Compiler output:
Main.java:3: error: class main is public, should be declared in a file named main.java
public 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.Scanner;			
			
public class main{			
	public static void main(String[] args){		
	scanner scan = new Scanner (System.in);		
	int a = scan.nextInt();		
	int b = scan.nextInt();		
	System.out.println(a*b+" "+2*(a+b));		
	}		
}			



Compiler output:
Main.java:3: error: class main is public, should be declared in a file named main.java
public 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

package aojWorkspace;

import java.util.Scanner;

public class Solve {

	public static void main(String[] args) {
		//ここから自動入力
		Scanner sc = new Scanner(System.in);
		String[] quiz = sc.next().split(" ");

		 int height = Integer.parseInt(quiz[0]);
		 int weight = Integer.parseInt(quiz[1]);

		 int area = height * weight;
		 int length = height * 2 + weight * 2;

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

	}

}



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

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


Compiler output:
Main.java:10: error: ')' or ',' expected
		System.out.println("s" "++" "l")
		                      ^
1 error
Language: Java

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


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

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


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

import java.io.*;
public class Main{
    public static void main(String[] args)throws IOException{
        BufferdReader input1 = new BufferedReader(new InpputStreamReader(System.in));
        String input2 = input1.readLine();
        String[] fac = input2.split("\s");
        int a = (int) fac[0];
        int b = (int) fac[1];
        int ab = a * b;
        int syu = 2 * (a + b);
        fac[0] = (String)ab;
        fac[1] = (String)syu;
        for(String w : fac){
            System.ouot.println(w + "\s");
        }
    }
}


Compiler output:
Main.java:4: error: cannot find symbol
        BufferdReader input1 = new BufferedReader(new InpputStreamReader(System.in));
        ^
  symbol:   class BufferdReader
  location: class Main
Main.java:4: error: cannot find symbol
        BufferdReader input1 = new BufferedReader(new InpputStreamReader(System.in));
                                                      ^
  symbol:   class InpputStreamReader
  location: class Main
Main.java:7: error: incompatible types: String cannot be converted to int
        int a = (int) fac[0];
                         ^
Main.java:8: error: incompatible types: String cannot be converted to int
        int b = (int) fac[1];
                         ^
Main.java:11: error: incompatible types: int cannot be converted to String
        fac[0] = (String)ab;
                         ^
Main.java:12: error: incompatible types: int cannot be converted to String
        fac[1] = (String)syu;
                         ^
Main.java:14: error: cannot find symbol
            System.ouot.println(w + "\s");
                  ^
  symbol:   variable ouot
  location: class System
7 errors
Language: Java

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


Compiler output:
Main.java:4: error: cannot find symbol
        BufferdReader input1 = new BufferedReader(new InpputStreamReader(System.in));
        ^
  symbol:   class BufferdReader
  location: class Main
Main.java:4: error: cannot find symbol
        BufferdReader input1 = new BufferedReader(new InpputStreamReader(System.in));
                                                      ^
  symbol:   class InpputStreamReader
  location: class Main
Main.java:7: error: incompatible types: String cannot be converted to int
        int a = (int) fac[0];
                         ^
Main.java:8: error: incompatible types: String cannot be converted to int
        int b = (int) fac[1];
                         ^
Main.java:11: error: incompatible types: int cannot be converted to String
        fac[0] = (String)ab;
                         ^
Main.java:12: error: incompatible types: int cannot be converted to String
        fac[1] = (String)syu;
                         ^
6 errors
Language: Java

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


Compiler output:
Main.java:4: error: cannot find symbol
        BufferdReader input1 = new BufferedReader(new InpputStreamReader(System.in));
        ^
  symbol:   class BufferdReader
  location: class Main
Main.java:4: error: cannot find symbol
        BufferdReader input1 = new BufferedReader(new InpputStreamReader(System.in));
                                                      ^
  symbol:   class InpputStreamReader
  location: class Main
Main.java:7: error: incompatible types: String cannot be converted to int
        int a = (int) fac[0];
                         ^
Main.java:8: error: incompatible types: String cannot be converted to int
        int b = (int) fac[1];
                         ^
Main.java:11: error: incompatible types: int cannot be converted to String
        fac[0] = (String)ab;
                         ^
Main.java:12: error: incompatible types: int cannot be converted to String
        fac[1] = (String)syu;
                         ^
6 errors
Language: Java

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


Compiler output:
Main.java:4: error: cannot find symbol
        BufferdReader input1 = new BufferedReader(new InpputStreamReader(System.in));
        ^
  symbol:   class BufferdReader
  location: class Main
Main.java:4: error: cannot find symbol
        BufferdReader input1 = new BufferedReader(new InpputStreamReader(System.in));
                                                      ^
  symbol:   class InpputStreamReader
  location: class Main
Main.java:7: error: incompatible types: String cannot be converted to int
        int a = (int) fac[0];
                         ^
Main.java:8: error: incompatible types: String cannot be converted to int
        int b = (int) fac[1];
                         ^
Main.java:11: error: incompatible types: int cannot be converted to String
        fac[0] = (String)ab;
                         ^
Main.java:12: error: incompatible types: int cannot be converted to String
        fac[1] = (String)syu;
                         ^
6 errors
Language: Java

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


Compiler output:
Main.java:4: error: cannot find symbol
        BufferdReader input1 = new BufferedReader(new InpputStreamReader(System.in));
        ^
  symbol:   class BufferdReader
  location: class Main
Main.java:4: error: cannot find symbol
        BufferdReader input1 = new BufferedReader(new InpputStreamReader(System.in));
                                                      ^
  symbol:   class InpputStreamReader
  location: class Main
Main.java:7: error: incompatible types: String cannot be converted to int
        int a = (int) fac[0];
                         ^
Main.java:8: error: incompatible types: String cannot be converted to int
        int b = (int) fac[1];
                         ^
Main.java:11: error: incompatible types: int cannot be converted to String
        fac[0] = (String)ab;
                         ^
Main.java:12: error: incompatible types: int cannot be converted to String
        fac[1] = (String)syu;
                         ^
6 errors
Language: Java

import java.io.*;
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:15: error: class, interface, enum, or record expected
}
^
1 error
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:15: error: class, interface, enum, or record expected
}
^
1 error