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

#include<cstdio>
using namespace std;
int main(){
	int x;
	cin >> x;
	printf(x*x*x);
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'cin' was not declared in this scope
    5 |         cin >> x;
      |         ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include<cstdio>
  +++ |+#include <iostream>
    2 | using namespace std;
a.cc:6:19: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
    6 |         printf(x*x*x);
      |                ~~~^~
      |                   |
      |                   int
In file included from /usr/include/c++/14/cstdio:42,
                 from a.cc:1:
/usr/include/stdio.h:363:43: note:   initializing argument 1 of 'int printf(const char*, ...)'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
Language: C++

#include<cstdio>
using namespace std;
int main(){
	int x;
	cin >> x;
	cout << x*x*x << endl;

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'cin' was not declared in this scope
    5 |         cin >> x;
      |         ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include<cstdio>
  +++ |+#include <iostream>
    2 | using namespace std;
a.cc:6:9: error: 'cout' was not declared in this scope
    6 |         cout << x*x*x << endl;
      |         ^~~~
a.cc:6:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:6:26: error: 'endl' was not declared in this scope
    6 |         cout << x*x*x << endl;
      |                          ^~~~
a.cc:2:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    1 | #include<cstdio>
  +++ |+#include <ostream>
    2 | using namespace std;
Language: C++

#include<iostream>
using namespace std;

int main(){
  int x.a;
  cin >> x;
  a = x*x*x;
  cout << a <<"\n";

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:8: error: expected initializer before '.' token
    5 |   int x.a;
      |        ^
a.cc:6:10: error: 'x' was not declared in this scope
    6 |   cin >> x;
      |          ^
a.cc:7:3: error: 'a' was not declared in this scope
    7 |   a = x*x*x;
      |   ^
Language: C++

#include <iostream>
using namespace std;

int main(){

int x;
cin>>x;
cout<<x*x*x;

return 0
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: expected ';' before '}' token
   10 | return 0
      |         ^
      |         ;
   11 | }
      | ~
Language: C++

#include <iostreams>
using namespace std;
int main(){
int x;
int cubic;

cin  >> x;
cubic=x*x*x;
cout << cubic;
return 0;
}

Compiler output:
a.cc:1:10: fatal error: iostreams: No such file or directory
    1 | #include <iostreams>
      |          ^~~~~~~~~~~
compilation terminated.
Language: C++

    #include <iostream>
    using namespace std;
     
    int main() {
    cin >> x;
    y = x*x*x;
    cout << y;
    return 0;
    }

Compiler output:
a.cc: In function 'int main()':
a.cc:5:12: error: 'x' was not declared in this scope
    5 |     cin >> x;
      |            ^
a.cc:6:5: error: 'y' was not declared in this scope
    6 |     y = x*x*x;
      |     ^
Language: C++

    #include <iostream>
    using namespace std;
     
    int main() {
    int x; 
    cin >> x;
    x = x*x*x;
    cout << x endl;
    return 0;
    }

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

#include <iostream>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:31: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |         std::cout << x*x*x << 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: C++

#include<iostream>
using namespace std;

int main () {
	cin >> x;
	cout << x*x*x+;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:16: error: 'x' was not declared in this scope
    5 |         cin >> x;
      |                ^
a.cc:6:23: error: expected primary-expression before ';' token
    6 |         cout << x*x*x+;
      |                       ^
Language: C++

#include<iostream>
using namespace std;

int main () {
	cin >> x;
	cout << x*x*x <<"\n";
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:16: error: 'x' was not declared in this scope
    5 |         cin >> x;
      |                ^
Language: C++

#include<iostream>
int main() {

  int x = 0;
  cin >> x;
  x = x ** 3;
  cout << x;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   cin >> x;
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:6:10: error: invalid type argument of unary '*' (have 'int')
    6 |   x = x ** 3;
      |          ^~~
a.cc:7:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |   cout << x;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#include<iostream>

int main(){
int x;
int y;

cin >> x ;

y=x*x*x ;

cout << y ;

return 0 ;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 | cin >> x ;
      | ^~~
      | std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:11:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 | cout << y ;
      | ^~~~
      | std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#include<iostream>


int main(){
int x;

cin >> x ;

cout << x*x*x << endl ;

return 0 ;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 | cin >> x ;
      | ^~~
      | std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:9:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 | cout << x*x*x << endl ;
      | ^~~~
      | std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:9:18: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 | cout << x*x*x << endl ;
      |                  ^~~~
      |                  std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include<iostream>
using namestream std;
int main(){
int x,y;
cin>>x;
y=x*x*x;
cout<<y<<"\n";
return 0;
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namestream'
    2 | using namestream std;
      |       ^~~~~~~~~~
a.cc: In function 'int main()':
a.cc:5:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 | cin>>x;
      | ^~~
      | std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:7:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 | cout<<y<<"\n";
      | ^~~~
      | std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#include <iostrem>

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

Compiler output:
a.cc:1:10: fatal error: iostrem: No such file or directory
    1 | #include <iostrem>
      |          ^~~~~~~~~
compilation terminated.
Language: C++

#include <iostream>
using namespace std;

int main{
int x;
cin >> x;
x = x ** 3;
cout << x;

return 0;
}

Compiler output:
a.cc:4:5: error: cannot declare '::main' to be a global variable
    4 | int main{
      |     ^~~~
a.cc:5:1: error: expected primary-expression before 'int'
    5 | int x;
      | ^~~
a.cc:5:1: error: expected '}' before 'int'
a.cc:4:9: note: to match this '{'
    4 | int main{
      |         ^
a.cc:6:1: error: 'cin' does not name a type
    6 | cin >> x;
      | ^~~
a.cc:7:1: error: 'x' does not name a type
    7 | x = x ** 3;
      | ^
a.cc:8:1: error: 'cout' does not name a type
    8 | cout << x;
      | ^~~~
a.cc:10:1: error: expected unqualified-id before 'return'
   10 | return 0;
      | ^~~~~~
a.cc:11:1: error: expected declaration before '}' token
   11 | }
      | ^
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:8:10: error: stray '\' in program
    8 | cout << x\n;
      |          ^
a.cc: In function 'int main()':
a.cc:7:8: error: invalid type argument of unary '*' (have 'int')
    7 | x = x ** 3;
      |        ^~~
a.cc:8:10: error: expected ';' before 'n'
    8 | cout << x\n;
      |          ^~
      |          ;
Language: C++

#include <stdio.h>
#include <iostream>


void main(){

int x,x_3;

std::cin >> x;
x_3 = x*x*x;
std::cout << x_3 << std::endl;

return;

}

Compiler output:
a.cc:5:1: error: '::main' must return 'int'
    5 | void main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:13:1: error: return-statement with no value, in function returning 'int' [-fpermissive]
   13 | return;
      | ^~~~~~
Language: C++

#include "stdio.h"
#include <iostream>

void main(){

 double x,x_3;

 std::cin >> x;
 x_3 = x*x*x;
 std::cout << x_3 << std::endl;

 return;

}

Compiler output:
a.cc:4:1: error: '::main' must return 'int'
    4 | void main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:12:2: error: return-statement with no value, in function returning 'int' [-fpermissive]
   12 |  return;
      |  ^~~~~~
Language: C++

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

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

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

Compiler output:
a.cc:8:15: error: stray '\' in program
    8 |  cout << x << \n;
      |               ^
a.cc: In function 'int main()':
a.cc:8:16: error: 'n' was not declared in this scope
    8 |  cout << x << \n;
      |                ^
Language: C++

#include(stdio.h>

int main(void)
{
    int x;
    scanf("%d", x);
    printf("%d",x*2);
    return 0;
}
 

Compiler output:
a.cc:1:9: error: #include expects "FILENAME" or <FILENAME>
    1 | #include(stdio.h>
      |         ^
a.cc: In function 'int main()':
a.cc:6:5: error: 'scanf' was not declared in this scope
    6 |     scanf("%d", x);
      |     ^~~~~
a.cc:7:5: error: 'printf' was not declared in this scope
    7 |     printf("%d",x*2);
      |     ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | #include(stdio.h>
Language: C++

#include <stdio.h>

int main(void)
{
    int x;
    Input a number.\n ;
    scanf("%d", &x);
    printf("%d\n",x*x*x);
    return 0 ;
}

Compiler output:
a.cc:6:20: error: stray '\' in program
    6 |     Input a number.\n ;
      |                    ^
a.cc: In function 'int main()':
a.cc:6:5: error: 'Input' was not declared in this scope
    6 |     Input a number.\n ;
      |     ^~~~~
Language: C++

#include<stdio.h>

int main(void)
{
    int x;
    scanf("%d", x);
    printf("%d \n", x * x * x);
    return0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: 'return0' was not declared in this scope
    8 |     return0;
      |     ^~~~~~~
Language: C++

#include<stdio.h>

int main(void)
{
    int x;
    scanf(%d, x);
    printf("%d\n, x*x*x);
    return 0;
}

Compiler output:
a.cc:7:12: warning: missing terminating " character
    7 |     printf("%d\n, x*x*x);
      |            ^
a.cc:7:12: error: missing terminating " character
    7 |     printf("%d\n, x*x*x);
      |            ^~~~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:6:11: error: expected primary-expression before '%' token
    6 |     scanf(%d, x);
      |           ^
a.cc:6:12: error: 'd' was not declared in this scope
    6 |     scanf(%d, x);
      |            ^
a.cc:8:5: error: expected primary-expression before 'return'
    8 |     return 0;
      |     ^~~~~~
Language: C++

#include<stdio.h>

int main(void)
{
    int x;
    scanf(%d, &x);
    printf("%d\n", x*x*x);
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:11: error: expected primary-expression before '%' token
    6 |     scanf(%d, &x);
      |           ^
a.cc:6:12: error: 'd' was not declared in this scope
    6 |     scanf(%d, &x);
      |            ^
Language: Java

#include <stdio.h>
 
int main(){
    int a,b;
    scanf("%d %d",&a,&b);
    printf("%d %d\n",a*b,2*(a+b));
}


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
    printf("%d %d\n",a*b,2*(a+b));
    ^
Main.java:7: error: class, interface, enum, or record expected
}
^
5 errors
Language: Java


int main(){
    int a,b;
    scanf("%d %d",&a,&b);
    printf("%d %d\n",a*b,2*(a+b));
}


Compiler output:
Main.java:2: error: unnamed classes are a preview feature and are disabled by default.
int main(){
^
  (use --enable-preview to enable unnamed classes)
Main.java:4: error: illegal start of expression
    scanf("%d %d",&a,&b);
                  ^
Main.java:4: error: illegal start of expression
    scanf("%d %d",&a,&b);
                     ^
3 errors
Language: Java

int a, b;
 
int main(void) {
  cin >> a >> b;
  cout << (a * b) << " " << ((a + b) * 2) << endl;
 
  return 0;
}


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

using namespace std;
int main(){
    int a,b;
    cin>>a>>b;
    cout<<a*b<<" "<<2*(a+b)<<endl;
}


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

public class Main {


	/**
	 * たてとよこの長方形面積と周の長さを求める
	 * @param args　たて、よこ
	 */
		public static void main(String[] args){
			int tate ,yoko;
			Screen scan = new Scanner(System.in);
			tate =	scan.nextInt();
			yoko = scan.nextInt();
			System.out.println(tate*yoko +"   "+(tate+yoko)*2);
		}
}



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

public class Main {


	/**
	 * たてとよこの長方形面積と周の長さを求める
	 * @param args　たて、よこ
	 */
		public static void main(String[] args){
			int tate ,yoko;
			Scanner scan = new Scanner(System.in);
			tate =	scan.nextInt();
			yoko = scan.nextInt();
			System.out.println(tate*yoko +"   "+(tate+yoko)*2);
		}
}



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

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


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

import java.util.Scanner;

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


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

import java.util.Scanner;
public class Program {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ


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


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

import java.util.Scanner

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


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

import java.util.Scanner;

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


Compiler output:
Main.java:6: error: cannot find symbol
    String[] str = scanner.split(" ");
                          ^
  symbol:   method split(String)
  location: variable scanner of type Scanner
Main.java:9: error: cannot find symbol
    System.out.println(a*b (a+b)*2);
                         ^
  symbol:   method b(int)
  location: class Main
2 errors
Language: Java

import java.util.Scanner;

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


Compiler output:
Main.java:6: error: cannot find symbol
    String[] str = scanner.split(" ");
                          ^
  symbol:   method split(String)
  location: variable scanner of type Scanner
1 error
Language: Java

import java.util.Scanner;

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


Compiler output:
Main.java:6: error: incompatible types: Scanner cannot be converted to String
    String str = scanner;
                 ^
Main.java:8: error: array required, but String found
    int a = Integer.parseInt(str[0]);
                                ^
Main.java:9: error: array required, but String found
    int b = Integer.parseInt(str[1]);
                                ^
3 errors
Language: Java

import java.util.Scanner;

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


Compiler output:
Main.java:6: error: incompatible types: Scanner cannot be converted to String
    String str = scanner;
                 ^
1 error
Language: Java

import java.util.Scanner;

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


Compiler output:
Main.java:6: error: cannot find symbol
    String str = scanner.toString;
                        ^
  symbol:   variable toString
  location: variable scanner of type Scanner
1 error
Language: Java

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

class Main{
  public static void main(String[] args){
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String str = br.readLine();
    String str2[] = str.split(" ");
    int a = Integer.parseInt(str2[0]);
    int b = Integer.parseInt(str2[1]);
    System.out.println(a*b + " " + (a+b)*2);
  }
}


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

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

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


Compiler output:
Main.java:8: error: cannot find symbol
    String str = br.nextLine();
                   ^
  symbol:   method nextLine()
  location: variable br of type BufferedReader
1 error
Language: Java

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

class Main{
  public static void main(String[] args){
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String str = br.readLine();
    String str2[] = str.split(" ");
    int a = Integer.parseInt(str2[0]);
    int b = Integer.parseInt(str2[1]);
    System.out.println(a*b + " " + (a+b)*2);
    br.close();
  }
}


Compiler output:
Main.java:8: error: unreported exception IOException; must be caught or declared to be thrown
    String str = br.readLine();
                            ^
Main.java:13: error: unreported exception IOException; must be caught or declared to be thrown
    br.close();
            ^
2 errors
Language: Java

import java.util.Scanner;

public class Main {

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


Compiler output:
Main.java:11: error: ';' expected
System.out.println(a+" "+p)
                           ^
1 error
Language: Java

import java.util.Scanner;

public class Main {

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


Compiler output:
Main.java:10: error: variable a is already defined in method main(String[])
int a = a*b;
    ^
1 error
Language: Java

import java util.Scanner;

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


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 sc = new Scanner(System.in);
      int a = sc.nextInt();
      int b = sc.nextInt();
      System.out.print(a*b\t(a+b)*2);
      sc.close();

   }
}


Compiler output:
Main.java:8: error: illegal character: '\'
      System.out.print(a*b\t(a+b)*2);
                          ^
Main.java:8: error: not a statement
      System.out.print(a*b\t(a+b)*2);
                                 ^
Main.java:8: error: ';' expected
      System.out.print(a*b\t(a+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 a = sc.nextInt();
      int b = sc.nextInt();
      System.out.print(a*b);
      System.out.println(\t(a+b)*2);
      sc.close();

   }
}


Compiler output:
Main.java:9: error: illegal character: '\'
      System.out.println(\t(a+b)*2);
                         ^
Main.java:9: error: not a statement
      System.out.println(\t(a+b)*2);
                                ^
Main.java:9: error: ';' expected
      System.out.println(\t(a+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 a = sc.nextInt();
      int b = sc.nextInt();
      System.out.print(a*b\t);
      System.out.println((a+b)*2);

      sc.close();

   }
}


Compiler output:
Main.java:8: error: illegal character: '\'
      System.out.print(a*b\t);
                          ^
Main.java:8: error: not a statement
      System.out.print(a*b\t);
                           ^
Main.java:8: error: ';' expected
      System.out.print(a*b\t);
                            ^
3 errors
Language: Java

class Main{
  public static main{
  Scanner sc = new Scanner(System.in);
  
  int tate = sc.nextInt();
  int yoko = sc.nextInt();
  
  System.out.println(tate*yoko);
  System.out.println(tate*2+yoko*2);
  }

}


Compiler output:
Main.java:2: error: <identifier> expected
  public static main{
                    ^
1 error
Language: Java

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

}


Compiler output:
Main.java:1: error: illegal character: '\u3000'
public?class Main{
      ^
Main.java:1: error: class, interface, enum, or record expected
public?class Main{
             ^
Main.java:2: error: class, interface, enum, or record expected
  public static main(String[]args){
                ^
Main.java:5: error: unnamed classes are a preview feature and are disabled by default.
  int tate = sc.nextInt();
  ^
  (use --enable-preview to enable unnamed classes)
Main.java:8: error: class, interface, enum, or record expected
  System.out.println(tate * yoko);
  ^
Main.java:9: error: class, interface, enum, or record expected
  System.out.println(tate*2 + yoko*2);
  ^
Main.java:10: error: class, interface, enum, or record expected
  }
  ^
7 errors
Language: Java

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

}


Compiler output:
Main.java:1: error: illegal character: '\u3000'
public?class Main{
      ^
Main.java:1: error: class, interface, enum, or record expected
public?class Main{
             ^
Main.java:2: 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:12: error: class, interface, enum, or record expected
}
^
4 errors
Language: Java

import java.util.Scanner;

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

}


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

import java.util.Scanner;

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


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

package step1;

import java.util.Scanner;

public class main {

	private static Scanner scanner;

	public static void main(String[] args) {
		scanner = new Scanner(System.in);
		int length = scanner.nextInt();
		int height = scanner.nextInt();
		int round = 2*height + 2*length;
		int area = length * height;

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



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

package step1;

import java.util.Scanner;

public class main{

	private static Scanner scanner;

	public static void main(String[] args) {

		int height;
		int length;

		scanner = new Scanner(System.in);

		length = scanner.nextInt();
		height = scanner.nextInt();

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

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



Compiler output:
Main.java:5: 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;
 
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.println(2a+2b);
    }
}


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

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


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

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

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


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

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

 
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:12: error: ')' or ',' expected
        System.out.println(a * b+" "+((a*2)+(b*2));
                                                  ^
1 error
Language: Java

class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String input= sc.nextLine();
		String[] inputStrArray = input.split(" ");
		int[] intputIntArray = new int[inputStrArray.length];

		for (int index = 0; index < intputIntArray.length; index++) {
			intputIntArray[index] = Integer.parseInt(inputStrArray[index]);
		}
		// 面積
		int squareSize = intputIntArray[0] * intputIntArray[1];
		// 周
		int squareLength = (intputIntArray[0] + intputIntArray[1]) * 2;

		System.out.println(squareSize + " " + squareLength );

	}
}


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 Main{

public static void main(String[ ] args){

Scanner s = new Scanner(System.in);

int a = s.next Int( );

int b = s.next Int( );

int X = a*b;

int Y = 2*(a+b);

System.out.println("X"+"Y");

}

}



Compiler output:
Main.java:1: error: ';' expected
import java.util.scanner:
                        ^
Main.java:9: error: ';' expected
int a = s.next Int( );
              ^
Main.java:11: error: ';' expected
int b = s.next Int( );
              ^
3 errors
Language: Java

import java.util.scanner:

public class Main{

public static void main(String[ ] args){

Scanner s = new Scanner(System.in);

int a = s.next Int( );

int b = s.next Int( );

int X = a*b;

int Y = 2*(a+b);

System.out.println(X, Y);

}

}



Compiler output:
Main.java:1: error: ';' expected
import java.util.scanner:
                        ^
Main.java:9: error: ';' expected
int a = s.next Int( );
              ^
Main.java:11: error: ';' expected
int b = s.next Int( );
              ^
3 errors
Language: Java

import java.util.scanner:

public class Main{

public static void main(String[ ] args){

Scanner s = new Scanner(System.in);

int a = s.next Int( );

int b = s.next Int( );

int X = a*b;

int Y = 2*(a+b);

System.out.printf("%d%d¥n"X, Y);

}

}



Compiler output:
Main.java:1: error: ';' expected
import java.util.scanner:
                        ^
Main.java:9: error: ';' expected
int a = s.next Int( );
              ^
Main.java:11: error: ';' expected
int b = s.next Int( );
              ^
Main.java:17: error: ')' or ',' expected
System.out.printf("%d%d?n"X, Y);
                          ^
Main.java:17: error: ';' expected
System.out.printf("%d%d?n"X, Y);
                           ^
Main.java:17: error: not a statement
System.out.printf("%d%d?n"X, Y);
                             ^
Main.java:17: error: ';' expected
System.out.printf("%d%d?n"X, Y);
                              ^
7 errors
Language: Java

import java.util.scanner:

public class Main{

public static void main(String[ ] args){

Scanner s = new Scanner(System.in);

int a = s.next Int( );

int b = s.next Int( );

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

}

}



Compiler output:
Main.java:1: error: ';' expected
import java.util.scanner:
                        ^
Main.java:9: error: ';' expected
int a = s.next Int( );
              ^
Main.java:11: error: ';' expected
int b = s.next Int( );
              ^
Main.java:13: error: ')' or ',' expected
System.out.printf("%d%d?n"a*b, 2*(a+b));
                          ^
Main.java:13: error: not a statement
System.out.printf("%d%d?n"a*b, 2*(a+b));
                           ^
Main.java:13: error: ';' expected
System.out.printf("%d%d?n"a*b, 2*(a+b));
                             ^
Main.java:13: error: not a statement
System.out.printf("%d%d?n"a*b, 2*(a+b));
                                   ^
Main.java:13: error: ';' expected
System.out.printf("%d%d?n"a*b, 2*(a+b));
                                     ^
8 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,2*(a+b));
    }
}


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

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+b));
  }
}



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

class Main
 {
   public static void main(String[] args)
      {
      String number = reader.readline();
      String[] result =source.sprit(" ");
      int a = Integer.valueOf(array[0]); 
      int b = Integer.varueOf(array[1]);
      System.out.println(a*b+" "+2*a+2*b);
      }
 }



Compiler output:
Main.java:5: error: cannot find symbol
      String number = reader.readline();
                      ^
  symbol:   variable reader
  location: class Main
Main.java:6: error: cannot find symbol
      String[] result =source.sprit(" ");
                       ^
  symbol:   variable source
  location: class Main
Main.java:7: error: cannot find symbol
      int a = Integer.valueOf(array[0]); 
                              ^
  symbol:   variable array
  location: class Main
Main.java:8: error: cannot find symbol
      int b = Integer.varueOf(array[1]);
                              ^
  symbol:   variable array
  location: class Main
4 errors
Language: Java

class Main
 {
   public static void main(String[] args)
      {
      String number = reader.readline();
      String[] result =source.sprit(" ");
      int a = Integer.valueOf(result[0]); 
      int b = Integer.varueOf(result[1]);
      System.out.println(a*b+" "+2*a+2*b);
      }
 }



Compiler output:
Main.java:5: error: cannot find symbol
      String number = reader.readline();
                      ^
  symbol:   variable reader
  location: class Main
Main.java:6: error: cannot find symbol
      String[] result =source.sprit(" ");
                       ^
  symbol:   variable source
  location: class Main
Main.java:8: error: cannot find symbol
      int b = Integer.varueOf(result[1]);
                     ^
  symbol:   method varueOf(String)
  location: class Integer
3 errors
Language: Java

class Main
 {
   public static void main(String[] args)
      {
      String[] stringArray = new String[3];
      String number = reader.readline();
      String[] result =source.sprit(" ");
      int a = Integer.valueOf(result[0]); 
      int b = Integer.varueOf(result[1]);
      System.out.println(a*b+" "+2*a+2*b);
      }
 }



Compiler output:
Main.java:6: error: cannot find symbol
      String number = reader.readline();
                      ^
  symbol:   variable reader
  location: class Main
Main.java:7: error: cannot find symbol
      String[] result =source.sprit(" ");
                       ^
  symbol:   variable source
  location: class Main
Main.java:9: error: cannot find symbol
      int b = Integer.varueOf(result[1]);
                     ^
  symbol:   method varueOf(String)
  location: class Integer
3 errors
Language: Java

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



Compiler output:
Main.java:9: error: cannot find symbol
      System.out.printIn(a*b+" "+2*(a+b));
                ^
  symbol:   method printIn(String)
  location: variable out of type PrintStream
1 error
Language: Java

import java.util.Scanner;



public class Java_chouhoukei {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		System.out.println("縦の長さを入力してください。");
		int a = sc.nextInt();
		System.out.println("横の長さを入れてください。");
		int b = sc.nextInt();
		System.out.println("面積は" + a*b);
		System.out.println("周の長さは" + 2*(a+b));

	}

}



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

import java.util.Scanner;



public class Java_chouhoukei {

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

	}

}



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

import java.util.*;

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


Compiler output:
Main.java:10: error: empty character literal
        System.out.println(c+''+ d );
                             ^
Main.java:10: error: not a statement
        System.out.println(c+''+ d );
                                 ^
Main.java:10: error: ';' expected
        System.out.println(c+''+ d );
                                  ^
3 errors
Language: Java

public class Main {

	public static void main(String[] args) {

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

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

}


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

import java.util.Scanner;

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


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

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

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


Compiler output:
Main.java:1: error: '{' expected
public class Main(){
                 ^
Main.java:3: error: ';' expected
  int a = 3
           ^
Main.java:4: error: ';' expected
  int b = 5
           ^
3 errors
Language: Java

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

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


Compiler output:
Main.java:3: error: ';' expected
  int a = 3
           ^
Main.java:4: error: ';' expected
  int b = 5
           ^
2 errors
Language: Java

public class Test {
	static int calc1(int a,int b) {
		return a * b;
	}

	static int calc2(int a,int b) {
		return 2 * (a * b);
	}

	public static void main(String[] args) {
		

		int a = 1000;
		int b = 2000;

		System.out.print(calc1(a,b));
		System.out.print(" ");
		System.out.print(calc2(a,b));
	}

}


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

public class Test {
	static int calc1(int a,int b) {
		return a * b;
	}

	static int calc2(int a,int b) {
		return 2 * (a + b);
	}

	public static void main(String[] args) {


		int a = 1000;
		int b = 2000;

		System.out.print(calc1(a,b));
		System.out.print(" ");
		System.out.print(calc2(a,b));
	}

}



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

public class Test {
	static int calc1(int a,int b) {
		return a * b;
	}

	static int calc2(int a,int b) {
		return 2 * (a + b);
	}

	public static void main(String[] args) {


		int a = 1000;
		int b = 2000;

		System.out.print(calc1(a,b));
		System.out.print(" ");
		System.out.print(calc2(a,b));
	}

}


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