criyle/codenet-compile-errors huggingface dataset:
Language: C++

import java.util.*;

class Main{
    private static Scanner s = new Scanner(System.in);
    public static void main(String[] args){
	int a = s.nextInt();
	int x = 1;
	for(int i = 0 ; i < 3 ; i++){
	    x *= a;
	}
	System.out.println(x);
    }
}

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.*;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:4:12: error: expected ':' before 'static'
    4 |     private static Scanner s = new Scanner(System.in);
      |            ^~~~~~~
      |            :
a.cc:4:20: error: 'Scanner' does not name a type
    4 |     private static Scanner s = new Scanner(System.in);
      |                    ^~~~~~~
a.cc:5:11: error: expected ':' before 'static'
    5 |     public static void main(String[] args){
      |           ^~~~~~~
      |           :
a.cc:5:29: error: 'String' has not been declared
    5 |     public static void main(String[] args){
      |                             ^~~~~~
a.cc:5:38: error: expected ',' or '...' before 'args'
    5 |     public static void main(String[] args){
      |                                      ^~~~
a.cc:13:2: error: expected ';' after class definition
   13 | }
      |  ^
      |  ;
a.cc: In static member function 'static void Main::main(int*)':
a.cc:6:17: error: 's' was not declared in this scope
    6 |         int a = s.nextInt();
      |                 ^
a.cc:11:9: error: 'System' was not declared in this scope
   11 |         System.out.println(x);
      |         ^~~~~~
Language: C++

#include <iostream>
using namespace std;
 
int main() {
     int x;
 
cin >> x;
 
x=x^3;
 
cout << x;	
\n
	return 0;
}

Compiler output:
a.cc:12:1: error: stray '\' in program
   12 | \n
      | ^
a.cc: In function 'int main()':
a.cc:12:2: error: 'n' was not declared in this scope
   12 | \n
      |  ^
Language: C++

#include <iostream>
using namespace std;
 
int main() {
     int x;
 
cin >> x;
 
y=x^3;
 
cout << y;

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:1: error: 'y' was not declared in this scope
    9 | y=x^3;
      | ^
Language: C++

#include <iostream>
using namespace std;
 
int main() {
     int x,y;
 
cin >> x;
 
y=x^3;
 
cout << y\n;

	return 0;
}

Compiler output:
a.cc:11:10: error: stray '\' in program
   11 | cout << y\n;
      |          ^
a.cc: In function 'int main()':
a.cc:11:10: error: expected ';' before 'n'
   11 | cout << y\n;
      |          ^~
      |          ;
Language: C++

#include<iostream>
#include<cmath>

int main()
{
  int input;
  int output;

  std::cin >> input;
  output=pow(input,3);
  std::cout << output << "\n";
  
  return 0;
}


Compiler output:
a.cc:15:1: error: stray '\27' in program
   15 | <U+0017>
      | ^~~~~~~~
Language: C++

#include<iostream>
using namespace std;

int main()[
	int a;
	cout<<a*a*a<<endl;
	return 0;
}

Compiler output:
a.cc:5:9: error: expected primary-expression before 'int'
    5 |         int a;
      |         ^~~
a.cc:4:12: error: expected ']' before 'int'
    4 | int main()[
      |            ^
      |            ]
    5 |         int a;
      |         ~~~ 
a.cc:6:9: error: 'cout' does not name a type
    6 |         cout<<a*a*a<<endl;
      |         ^~~~
a.cc:7:9: error: expected unqualified-id before 'return'
    7 |         return 0;
      |         ^~~~~~
a.cc:8:1: error: expected declaration before '}' token
    8 | }
      | ^
Language: C++

#include <iostream>

int a;

int main(){
std::cin >> a;
a = a * a * a
std::cout << a;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:14: error: expected ';' before 'std'
    7 | a = a * a * a
      |              ^
      |              ;
    8 | std::cout << a;
      | ~~~
Language: C++

#include <iostream>

int main(){
    int a = 0;    std::cin >> a;
    a = a * a * a;
    std::cout << a << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:23: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |     std::cout << a << endl;
      |                       ^~~~
      |                       std::endl
In file included from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
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+" "+(2*a+2*b);
	}
}

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

import java.util.Scanner;

public class J10002{
	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*2+b*2);
	}
}

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

import java.io.*;

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

  } catch (IOException e) {
				System.out.println(e);
			} catch (NumberFormatException e) {
				System.out.println(e);
		}
 }
}

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

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

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

import java.util.Scanner;

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

	Scanner sc = new Scanner(System.in);

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

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

import java.util.Scanner;

public class Circle{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        double r = sc.nextDouble();
        double pi = Math.PI;
        double area = pi*r*r;
        double length = 2*pi*r;
        System.out.printf(area+""+length);
    }
}

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


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

Compiler output:
Main.java:8: error: incompatible types: int cannot be converted to String
        String a = in.nextInt();
                             ^
Main.java:9: error: incompatible types: int cannot be converted to String
        String b = in.nextInt();
                             ^
Main.java:11: error: bad operand types for binary operator '*'
        System.out.println(a*b + " " + (2*a+2*b));
                            ^
  first type:  String
  second type: String
Main.java:11: error: bad operand types for binary operator '*'
        System.out.println(a*b + " " + (2*a+2*b));
                                         ^
  first type:  int
  second type: String
Main.java:11: error: bad operand types for binary operator '*'
        System.out.println(a*b + " " + (2*a+2*b));
                                             ^
  first type:  int
  second type: String
5 errors
Language: Java


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

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

public class Main {
	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();
		String[] num = str.split(" ", 0);
		int a = Integer.valueOf(num[0]);
		int b = Integer.valueOf(num[1]);
		int multiple = a * b;
		int nagasa = (a + b) * 2;

		System.out.println(multiple + " " + nagasa);
	}

}

Compiler output:
Main.java:2: error: cannot find symbol
	public static void main(String[] args) throws IOException {
	                                              ^
  symbol:   class IOException
  location: class Main
Main.java:3: error: cannot find symbol
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		^
  symbol:   class BufferedReader
  location: class Main
Main.java:3: error: cannot find symbol
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		                        ^
  symbol:   class BufferedReader
  location: class Main
Main.java:3: error: cannot find symbol
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		                                           ^
  symbol:   class InputStreamReader
  location: class Main
4 errors
Language: Java

import java.io.InputStream;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Comparator;
import java.util.InputMismatchException;
import java.util.NoSuchElementException;
import java.math.BigInteger;

public class Main{

static PrintWriter out;
static InputReader ir;

static void solve(){
 int a=ir.nextInt();
 int b=ir.nextInt();
 out.println(a*b+" "+1<<(a+b));
}

public static void main(String[] args) throws Exception{
 ir=new InputReader(System.in);
 out=new PrintWriter(System.out);
 solve();
 out.flush();
}

static class InputReader {
 private InputStream in;
 private byte[] buffer=new byte[1024];
 private int curbuf;
 private int lenbuf;

 public InputReader(InputStream in) {this.in=in; this.curbuf=this.lenbuf=0;}
 
 public boolean hasNextByte() {
  if(curbuf>=lenbuf){
   curbuf= 0;
   try{
    lenbuf=in.read(buffer);
   }catch(IOException e) {
    throw new InputMismatchException();
   }
   if(lenbuf<=0) return false;
  }
  return true;
 }

 private int readByte(){if(hasNextByte()) return buffer[curbuf++]; else return -1;}
 
 private boolean isSpaceChar(int c){return !(c>=33&&c<=126);}
 
 private void skip(){while(hasNextByte()&&isSpaceChar(buffer[curbuf])) curbuf++;}
 
 public boolean hasNext(){skip(); return hasNextByte();}
 
 public String next(){
  if(!hasNext()) throw new NoSuchElementException();
  StringBuilder sb=new StringBuilder();
  int b=readByte();
  while(!isSpaceChar(b)){
   sb.appendCodePoint(b);
   b=readByte();
  }
  return sb.toString();
 }
 
 public int nextInt() {
  if(!hasNext()) throw new NoSuchElementException();
  int c=readByte();
  while (isSpaceChar(c)) c=readByte();
  boolean minus=false;
  if (c=='-') {
   minus=true;
   c=readByte();
  }
  int res=0;
  do{
   if(c<'0'||c>'9') throw new InputMismatchException();
   res=res*10+c-'0';
   c=readByte();
  }while(!isSpaceChar(c));
  return (minus)?-res:res;
 }
 
 public long nextLong() {
  if(!hasNext()) throw new NoSuchElementException();
  int c=readByte();
  while (isSpaceChar(c)) c=readByte();
  boolean minus=false;
  if (c=='-') {
   minus=true;
   c=readByte();
  }
  long res = 0;
  do{
   if(c<'0'||c>'9') throw new InputMismatchException();
   res=res*10+c-'0';
   c=readByte();
  }while(!isSpaceChar(c));
  return (minus)?-res:res;
 }

 public double nextDouble(){return Double.parseDouble(next());}

 public int[] nextIntArray(int n){
  int[] a=new int[n];
  for(int i=0;i<n;i++) a[i]=nextInt();
  return a;
 }

 public long[] nextLongArray(int n){
  long[] a=new long[n];
  for(int i=0;i<n;i++) a[i]=nextLong();
  return a;
 }

 public char[][] nextCharMap(int n,int m){
  char[][] map=new char[n][m];
  for(int i=0;i<n;i++) map[i]=next().toCharArray();
  return map;
 }
}
}

Compiler output:
Main.java:19: error: bad operand types for binary operator '<<'
 out.println(a*b+" "+1<<(a+b));
                      ^
  first type:  String
  second type: int
1 error
Language: Java

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

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

import java.util.Scanner;

public class Main {

public static void main(String[] args) {

// ?¨??????\???????????????????????????????????????

Scanner sc = new Scanner(System.in);

// 2?????????????????????????????????????????´??°?????¨????????????????????????

int a = sc.nextInt();

int b = sc.nextInt();

int area = a*b

int length = a+a+b+b

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

}

}

Compiler output:
Main.java:17: error: ';' expected
int area = a*b
              ^
Main.java:19: error: ';' expected
int length = a+a+b+b
                    ^
2 errors
Language: Java

import java.util.Scanner;
public class Rectangle {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

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

		int area = a * b/* ここを変えて面積を求めよう */;

		int length = (a + b) * 2/* ここを変えて周囲の長さを求めよう */;

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

}

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

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

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

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

import java.util.Scanner;

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

Compiler output:
Main.java:10: error: cannot find symbol
		System.out.printlin(area + "" + length);
		          ^
  symbol:   method printlin(String)
  location: variable out of type PrintStream
1 error
Language: Java

public class Main {
    public static void main(String[] args){
    	Scanner sc =Scanner(system.in);
    	//ClassName ObjectName = new Classname(argument);
    	//materialize [ClassName] and generate object named [ObjectName] by new 
        int a = sc.nextInt();
        int b = sc.nextInt();
        int area=a*b/2 ;
        int length = 2*(a+b);
    }
}

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

public class Main {
    public static void main(String[] args){
    	Scanner sc =Scanner(system.in);
    	//ClassName ObjectName = new Classname(argument);
    	//materialize [ClassName] and generate object named [ObjectName] by new 
        int a = sc.nextInt();
        int b = sc.nextInt();
        int area=a*b;
        int length = 2*(a+b);
        system.out.println(area +" "+ length);
    }
}

Compiler output:
Main.java:3: error: cannot find symbol
    	Scanner sc =Scanner(system.in);
    	^
  symbol:   class Scanner
  location: class Main
Main.java:3: error: cannot find symbol
    	Scanner sc =Scanner(system.in);
    	                    ^
  symbol:   variable system
  location: class Main
Main.java:10: error: package system does not exist
        system.out.println(area +" "+ length);
              ^
3 errors
Language: Java

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

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

public class Main {
    public static void main(String[] args){
    	Scanner sc =Scanner(System.in);
    	//ClassName ObjectName = new Classname(argument);
    	//materialize [ClassName] and generate object named [ObjectName] by new 
        int a = sc.nextInt();
        int b = sc.nextInt();
        int area=a*b;
        int length = 2*(a+b);
        System.out.println(area +" "+ length);
    }
}

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

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

Compiler output:
Main.java:3: error: invalid method declaration; return type required
    public static voidmain(String[] args) {
                  ^
1 error
Language: Java

public static void main(String[] args) {

// ?¨??????\???????????????????????????????????????

Scanner sc = new Scanner(System.in);

// 2?????????????????????????????????????????´??°?????¨????????????????????????

int a = sc.nextInt();

int b = sc.nextInt();

int area = a*b/* ????????????????????¢???????±?????????? */;

int length =(a+b)*2 /* ????????????????????¨????????????????±?????????? */;

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

}

}

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

public static void Main(String[] args) {

// ?¨??????\???????????????????????????????????????

Scanner sc = new Scanner(System.in);

// 2?????????????????????????????????????????´??°?????¨????????????????????????

int a = sc.nextInt();

int b = sc.nextInt();

int area = a*b/* ????????????????????¢???????±?????????? */;

int length =(a+b)*2 /* ????????????????????¨????????????????±?????????? */;

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

}

}

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

import java.util.Scanner;

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

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

import java.util.Scanner;

public class Main {

public static void main(String[] args) {

// ?¨??????\???????????????????????????????????????

Scanner sc = new Scanner(System.in);

// 2?????????????????????????????????????????´??°?????¨????????????????????????

int a = sc.nextInt();

int b = sc.nextInt();

int area = /* ????????????????????¢???????±?????????? */;

int length = /* ????????????????????¨????????????????±?????????? */;

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

}

}

Compiler output:
Main.java:17: error: illegal start of expression
int area = /* ??????????????????????????????????????? */;
                                                        ^
Main.java:19: error: illegal start of expression
int length = /* ???????????????????????????????????????????????? */;
                                                                   ^
2 errors
Language: Java

import java.util.Scanner;

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

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

import java.util.Scanner;
 
 public class Main{

  public static void main (String[] args){

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



}






}

Compiler output:
Main.java:7: error: cannot find symbol
  scanner sc= new Scanner(System.in);
  ^
  symbol:   class scanner
  location: class Main
Main.java:12: error: cannot find symbol
  intlength= 2*a+2*b;
  ^
  symbol:   variable intlength
  location: class Main
Main.java:14: error: cannot find symbol
  System.out.println(area +""+ length);
                               ^
  symbol:   variable length
  location: class Main
3 errors
Language: Java

import java.util.Scanner;
 
 public class Main{

  public static void main (String[] args){

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



}

}

Compiler output:
Main.java:7: error: cannot find symbol
  scanner sc= new Scanner(System.in);
  ^
  symbol:   class scanner
  location: class Main
Main.java:12: error: cannot find symbol
  intlength= 2*a+2*b;
  ^
  symbol:   variable intlength
  location: class Main
Main.java:14: error: cannot find symbol
  System.out.println(area +" "+ length);
                                ^
  symbol:   variable length
  location: class Main
3 errors
Language: Java

import java.util.Scanner;

public class Main {

public static void main(String[] args) {

Scanner sc = new Scanner(System.in);

int a = sc.nextInt();

int b = sc.nextInt();

int area = a*b;

int length = a+a+b;b;

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

}

}

Compiler output:
Main.java:15: error: not a statement
int length = a+a+b;b;
                   ^
1 error
Language: Java

import java.util.Scanner;

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

Compiler output:
Main.java:10: error: ';' expected
System.out.println(area + "" + length)
                                      ^
1 error
Language: Java

#include<stdio.h>

int main(void){
	int a,b,x,y;
	scanf("%d %d", &a, &b);
	x=a*b;
	y=2*(a+b);
	printf("%d %d\n",x,y);
	return 0;
}

Compiler output:
Main.java:1: error: illegal character: '#'
#include<stdio.h>
^
Main.java:1: error: class, interface, enum, or record expected
#include<stdio.h>
        ^
Main.java:5: error: class, interface, enum, or record expected
	scanf("%d %d", &a, &b);
	^
Main.java:6: error: class, interface, enum, or record expected
	x=a*b;
	^
Main.java:7: error: class, interface, enum, or record expected
	y=2*(a+b);
	^
Main.java:8: error: class, interface, enum, or record expected
	printf("%d %d\n",x,y);
	^
Main.java:9: error: class, interface, enum, or record expected
	return 0;
	^
Main.java:10: error: class, interface, enum, or record expected
}
^
8 errors
Language: Java

import java.util.Scanner;

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


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

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

class Main {

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

	}

}

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

import java.util.Scanner;

public class Rectangle {

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

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

import java.util.Scanner;

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

    String str = scan.next();
	str = scan.next();
    String[] ab = str.split(" ", 0);
	int a = Integer.parseInt(ab[0]);
	int b = Integer.parseInt(ab[1]);
    str = scan.next();
    System.out.println(a*b);
  }
}

Compiler output:
Main.java:5: error: repeated modifier
  public public void main(String args[]){
         ^
1 error
Language: Java

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

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

    String str = scan.next();
	str = scan.next();
    String[] ab = str.split(" ", 0);
	int a = Integer.parseInt(ab[0]);
	int b = Integer.parseInt(ab[1]);

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

Compiler output:
Main.java:2: error: cannot find symbol
import java.io;
           ^
  symbol:   class io
  location: package java
1 error
Language: Java

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

    String str = scan.next();
    String[] ab = str.split(" ",0);
	//int a = Integer.parseInt(ab[0]);
	//int b = Integer.parseInt(ab[1]);

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

Compiler output:
Main.java:14: error: cannot find symbol
    System.out.println(a*b);
                       ^
  symbol:   variable a
  location: class Main
Main.java:14: error: cannot find symbol
    System.out.println(a*b);
                         ^
  symbol:   variable b
  location: class Main
2 errors
Language: Java

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

    String str = scan.nextstring();
    String[] ab = str.split(" ",0);
	int a = Integer.parseInt(ab[0]);
	int b = Integer.parseInt(ab[1]);

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

Compiler output:
Main.java:9: error: cannot find symbol
    String str = scan.nextstring();
                     ^
  symbol:   method nextstring()
  location: variable scan of type Scanner
1 error
Language: Java

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

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

Compiler output:
Main.java:8: error: ';' expected
		int ans1 = a*b
		              ^
1 error
Language: Java

import java.util.Scanner;

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

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

    int area = w * h;
    int length = (w + h) * 2;

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

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

import java.util.Scanner;

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

Compiler output:
Main.java:10: error: package Syatem does not exist
	Syatem.out.println(area + "" + length);
	      ^
1 error
Language: Java

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

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

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

		Scanner sc = new Scanner(System.in);
		System.out.println("input a");
		int a = sc.nextInt();
		System.out.println("input b");
		int b = sc.nextInt();
		System.out.println("??¢???:");
		System.out.println(a * b);
		System.out.println("??¨?????????:");
		System.out.println((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

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

	}
}

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

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

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

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

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

Compiler output:
Main.java:3: error: cannot find symbol
		BufferedReader br = new BufferedReader(new InputStreamReader (System.in));
		^
  symbol:   class BufferedReader
  location: class Main
Main.java:3: error: cannot find symbol
		BufferedReader br = new BufferedReader(new InputStreamReader (System.in));
		                        ^
  symbol:   class BufferedReader
  location: class Main
Main.java:3: error: cannot find symbol
		BufferedReader br = new BufferedReader(new InputStreamReader (System.in));
		                                           ^
  symbol:   class InputStreamReader
  location: class Main
Main.java:9: error: cannot find symbol
		}catch (IOException e){
		        ^
  symbol:   class IOException
  location: class Main
4 errors
Language: Java

import java.util.Scanner;

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

Compiler output:
Main.java:8: error: ';' expected
		int area = a*b
		              ^
Main.java:9: error: ';' expected
		int length = (a+b)*2
		                    ^
2 errors
Language: Java

public class Main {
	public static void main(String[] args){
		Scanner input = new Scanner(System.in);
		int a = 0, b = 0, men = 0, shu = 0;
		try{
			a = Integer.valueOf(input.next());
			b = Integer.valueOf(input.next());
		}catch(Exception e){
			System.out.println("hb");
		}
		men = a * b;
		shu = a*2 + b*2;
		System.out.println(men + " " + shu);
	}
}

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

import java.util.*;

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

Compiler output:
Main.java:7: error: non-static variable s cannot be referenced from a static context
	a = s.nextInt();
	    ^
Main.java:8: error: non-static variable s cannot be referenced from a static context
	b = s.nextInt();
	    ^
2 errors
Language: Java

import java.util.*;

public class Main
{

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

		int ans0 = x * y;
		int ans1 = (x + y) * 2;

		System.out.println(ans0 + " " + ans1);


	}

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

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

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

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

Compiler output:
Main.java:5: error: variable a might not have been initialized
    	int c = a * b;
    	        ^
Main.java:5: error: variable b might not have been initialized
    	int c = a * b;
    	            ^
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) {
		String s;
		int a=0;
		int b=0;
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		try {
			s=br.readLine();
			a=Integer.parseInt(s.substring(0,s.lastIndexOf(" ")));
			b=Integer.parseInt(s.substring(s.lastIndexOf(" ")+1,s.length()));
		} catch (NumberFormatException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		}
		System.out.print(a*b+" ");
		System.out.println(a*2+b*2);
	}

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

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


public class Main{

	public static void main(String[] args) {
		String s;
		int a=0;
		int b=0;
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		try {
			s=br.readLine();
			a=Integer.parseInt(s.substring(0,s.lastIndexOf(" ")));
			b=Integer.parseInt(s.substring(s.lastIndexOf(" ")+1,s.length()));
		} catch (NumberFormatException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		}
		System.out.print(a*b+" ");
		System.out.println(a*2+b*2);
	}

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

import java.io.*;

public class Main
{
   public static void main(String[] args)
   {
      int x=0, y=0;
      try {
         BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
         String s=br.readLine();
         StringTokenizer st=new StringTokenizer(s, " ");
         x=Integer.parseInt(st.nextToken());
         y=Integer.parseInt(st.nextToken());
         System.out.println(x*y + " " + 2*(x+y));
   }
}

Compiler output:
Main.java:8: error: 'try' without 'catch', 'finally' or resource declarations
      try {
      ^
Main.java:16: error: reached end of file while parsing
}
 ^
2 errors
Language: Java

import java.io.*;

public class Main
{
   public static void main(String[] args)
   {
      int x=0, y=0;
      try {
         BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
         String s=br.readLine();
         StringTokenizer st=new StringTokenizer(s, " ");
         x=Integer.parseInt(st.nextToken());
         y=Integer.parseInt(st.nextToken());
      }
      catch(Exception e){}
      System.out.println(x*y + " " + 2*(x+y));
   }
}

Compiler output:
Main.java:11: error: cannot find symbol
         StringTokenizer st=new StringTokenizer(s, " ");
         ^
  symbol:   class StringTokenizer
  location: class Main
Main.java:11: error: cannot find symbol
         StringTokenizer st=new StringTokenizer(s, " ");
                                ^
  symbol:   class StringTokenizer
  location: class Main
2 errors
Language: Java

import java.io.*;

public class Main
{
   public static void main(String[] args)
   {
      try {
         BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
         String s=br.readLine();
         StringTokenizer st=new StringTokenizer(s, " ");
         int a=Integer.parseInt(st.nextToken());
         int b=Integer.parseInt(st.nextToken());
         Sysmem.out.println(a*b + " " + 2*(a+b) );
      } catch(Exception e){}
   }
}

Compiler output:
Main.java:10: error: cannot find symbol
         StringTokenizer st=new StringTokenizer(s, " ");
         ^
  symbol:   class StringTokenizer
  location: class Main
Main.java:10: error: cannot find symbol
         StringTokenizer st=new StringTokenizer(s, " ");
                                ^
  symbol:   class StringTokenizer
  location: class Main
Main.java:13: error: package Sysmem does not exist
         Sysmem.out.println(a*b + " " + 2*(a+b) );
               ^
3 errors
Language: Java

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

public class Main
{
   public static void main(String[] args)
   {
      try {
         BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
         String s=br.readLine();
         StringTokenizer st=new StringTokenizer(s, " ");
         int a=Integer.parseInt(st.nextToken());
         int b=Integer.parseInt(st.nextToken());
         Sysmem.out.println(a*b + " " + 2*(a+b) );
      } catch(Exception e){}
   }
}

Compiler output:
Main.java:14: error: package Sysmem does not exist
         Sysmem.out.println(a*b + " " + 2*(a+b) );
               ^
1 error
Language: Java

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

public class Main {
    public static void main(String[] args) throws IOException
    {
    	Scanner sc = new Scanner(System.in);
    	while( sc.hasNext() ){
    		line = sc.next().line.split(" ");
    		int a = Integer.parseInt(line[0]);
    		int b = Integer.parseInt(line[1]);
    		System.out.print(a * b + " " + (a +b) * 2);
    	}    
    }
}

Compiler output:
Main.java:9: error: cannot find symbol
    		line = sc.next().line.split(" ");
    		^
  symbol:   variable line
  location: class Main
Main.java:9: error: cannot find symbol
    		line = sc.next().line.split(" ");
    		                ^
  symbol:   variable line
  location: class String
Main.java:10: error: cannot find symbol
    		int a = Integer.parseInt(line[0]);
    		                         ^
  symbol:   variable line
  location: class Main
Main.java:11: error: cannot find symbol
    		int b = Integer.parseInt(line[1]);
    		                         ^
  symbol:   variable line
  location: class Main
4 errors
Language: Java

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

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

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

		BufferedReader buf=new BufferedReader(new InputStreamReader(System.in));
		String s = buf.readLine();
		String[] str=s.split(" ");
		a = Integer.parseInt(str[0]);
		b = Integer.parseInt(str[1]);
		
		System.out.println(a*b +" "+2*(a+b));
			
	}

}

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

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

		BufferedReader buf=new BufferedReader(new InputStreamReader(System.in));
		String s = buf.readLine();
		String[] str=s.split(" ");
		a = Integer.parseInt(str[0]);
		b = Integer.parseInt(str[1]);
		
		System.out.println(a*b +" "+2*(a+b));
			
	}

}

Compiler output:
Main.java:2: error: cannot find symbol
	public static void main(String[] args) throws IOException {
	                                              ^
  symbol:   class IOException
  location: class Main
Main.java:5: error: cannot find symbol
		BufferedReader buf=new BufferedReader(new InputStreamReader(System.in));
		^
  symbol:   class BufferedReader
  location: class Main
Main.java:5: error: cannot find symbol
		BufferedReader buf=new BufferedReader(new InputStreamReader(System.in));
		                       ^
  symbol:   class BufferedReader
  location: class Main
Main.java:5: error: cannot find symbol
		BufferedReader buf=new BufferedReader(new InputStreamReader(System.in));
		                                          ^
  symbol:   class InputStreamReader
  location: class Main
4 errors
Language: Java

import java.util.Scanner;

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

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

import java.util.Scanner;

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

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

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

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

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

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