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

public class main {


		 public static void main(String args[]){
			    double a = 9d;
			    double b = 4d;

 double ans = Math.pow(a, b);
	               
 System.out.println("ans"); 

Compiler output:
Main.java:10: error: reached end of file while parsing
 System.out.println("ans"); 
                           ^
1 error
Language: Java

import java.util.Scanner;

public class main {


	 public static void main(String args[]){
		 //??\???????????????????????????
		 Scanner scan = new Scanner(System.in);

		 //???????????§?????????????????????
		 String str = scan.next();
		 //??????????????°?????????????????????
		 int a = 2;
		 int b = 3;

		 //?¨?????????????
		 double ans = Math.pow(a, b);

		 //???????????????????????????

		 System.out.println("ans");
	    }
}

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

import java.util.Scanner;

public class main {


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

		 
		 String str = scan.next();
		
		 int a = 2;
		 int b = 3;

		 
		 double ans = Math.pow(a, b);

		

		 System.out.println("ans");
	    }
}

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

import java.util.Scanner;

public class main {


	 public static void main(String args[]){
		 //??\???????????????????????????
		 Scanner scanner = new Scanner(System.in);

		 //???????????§?????????????????????
		 int n = scanner.nextInt();



		 //??????????????°?????????????????????

		 //?¨?????????????
		int n = scanner.nextInt();

		 //???????????????????????????

	 	 System.out.println((int)Math.pow(n,3));
	 }
}

Compiler output:
Main.java:3: error: class main is public, should be declared in a file named main.java
public class main {
       ^
Main.java:18: error: variable n is already defined in method main(String[])
		int n = scanner.nextInt();
		    ^
2 errors
Language: Java

import java.util.Scanner;

public class main_{


	 public static void main(String args[]){
		 //??\???????????????????????????
		 Scanner scan= new Scanner(System.in);

		 //???????????§?????????????????????
		 int n = scan.nextInt();

		 //??????????????°?????????????????????

		 //?¨?????????????

		 //???????????????????????????

	 	 System.out.println((int)Math.pow(n,3));

}

  }

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

public class {
public static void main(String[] args) {
System.out.println(y=x**3)
print int(y)}}

Compiler output:
Main.java:1: error: <identifier> expected
public class {
            ^
Main.java:3: error: illegal start of expression
System.out.println(y=x**3)
                       ^
Main.java:3: error: ';' expected
System.out.println(y=x**3)
                          ^
Main.java:4: error: not a statement
print int(y)}}
^
Main.java:4: error: ';' expected
print int(y)}}
     ^
Main.java:4: error: not a statement
print int(y)}}
      ^
Main.java:4: error: ';' expected
print int(y)}}
         ^
Main.java:4: error: not a statement
print int(y)}}
          ^
Main.java:4: error: ';' expected
print int(y)}}
           ^
9 errors
Language: Java

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

         Scanner s = new Scanner(input).useDelimiter("\\s*fish\\s*");
         System.out.println((int) Math.pow(Integer.parseInt(s.nextInt()),3));
    }
}

Compiler output:
Main.java:4: error: cannot find symbol
         Scanner s = new Scanner(input).useDelimiter("\\s*fish\\s*");
         ^
  symbol:   class Scanner
  location: class Main
Main.java:4: error: cannot find symbol
         Scanner s = new Scanner(input).useDelimiter("\\s*fish\\s*");
                         ^
  symbol:   class Scanner
  location: class Main
Main.java:4: error: cannot find symbol
         Scanner s = new Scanner(input).useDelimiter("\\s*fish\\s*");
                                 ^
  symbol:   variable input
  location: class Main
3 errors
Language: Java

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

         Scanner s = new Scanner(input).useDelimiter("\\s*fish\\s*");
         System.out.println((int) Math.pow(Integer.parseInt(s.nextInt()),3));
         s.close();
    }
}

Compiler output:
Main.java:5: error: cannot find symbol
         Scanner s = new Scanner(input).useDelimiter("\\s*fish\\s*");
                                 ^
  symbol:   variable input
  location: class Main
Main.java:6: error: incompatible types: int cannot be converted to String
         System.out.println((int) Math.pow(Integer.parseInt(s.nextInt()),3));
                                                                     ^
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
2 errors
Language: Java

class Main{
  public static void main(String args[]){
        int i = (int) Math.pow(Integer.parseInt(scan.next()),3);
        System.out.print(i);
  }
}

Compiler output:
Main.java:3: error: cannot find symbol
        int i = (int) Math.pow(Integer.parseInt(scan.next()),3);
                                                ^
  symbol:   variable scan
  location: class Main
1 error
Language: Java

import java.util.Scanner;

class Main{
  public static void main(String args[]){
        int i = (int) Math.pow(Integer.parseInt(scan.next()),3);
        System.out.print(i);
  }
}

Compiler output:
Main.java:5: error: cannot find symbol
        int i = (int) Math.pow(Integer.parseInt(scan.next()),3);
                                                ^
  symbol:   variable scan
  location: class Main
1 error
Language: Java

class Main{
  public static void main(String args[]){
        Scanner scan = new Scanner(System.in);
        int i = (int) Math.pow(Integer.parseInt(scan.next()),3);
        System.out.print(i);
  }
}

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

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int x = sc.nextInt();
		
		System.out.println(x*x*x);

	}

}

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 i = sc.nextInt();
		i = i * i * i;
		System.out.println(i);
	}

}

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 x = sc.nextInt();
		
		System.out.println(x*x*x);

	}

}

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

public class Main {

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

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 x=sc.nextInt();
		System.out.println(x*x*x);
	}

}

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

public class Main {
	public static void main(String[] args) throws IOException {
		InputStreamReader is = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(is);
		String line = br.readLine();
		int x=Integer.parseInt(line);
		System.out.println((int)Math.pow(x, 3)2);

	}
}

Compiler output:
Main.java:11: error: ')' or ',' expected
		System.out.println((int)Math.pow(x, 3)2);
		                                      ^
1 error
Language: Java

import java.util.Scanner;

public class MyClass {
    public static void main(String args[]) {
        Scanner scanner = new Scanner(System.in);
        double n = scanner.nextDouble();
        int result = (int)Math.pow(n, 3d);
        System.out.println(result);
    }
}

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

public class a{
public static void main (String [] agg ){
var x = Math . pow (x,3);
}
}

Compiler output:
Main.java:1: error: class a is public, should be declared in a file named a.java
public class a{
       ^
Main.java:3: error: cannot infer type for local variable x
var x = Math . pow (x,3);
    ^
  (cannot use 'var' on self-referencing variable)
2 errors
Language: Java

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


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

public Main() {

public integer cube(int x) {
	return x**3;
	}
	
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int p = scanner.next();

System.out.println(cube(p));
}
}



Compiler output:
Main.java:1: error: class, interface, enum, or record expected
public Main() {
       ^
Main.java:3: error: unnamed classes are a preview feature and are disabled by default.
public integer cube(int x) {
       ^
  (use --enable-preview to enable unnamed classes)
Main.java:4: error: illegal start of expression
	return x**3;
	         ^
Main.java:13: error: class, interface, enum, or record expected
}
^
4 errors
Language: Java

 class Main {
  public static void main(String[] args){
    System.out.println(x * x * x);
  }
}


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

public class  Main() {

public integer cube(int x) {
	return x**3;
	}
	
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int p = scanner.next();

System.out.println(cube(p));
}
}



Compiler output:
Main.java:1: error: '{' expected
public class  Main() {
                  ^
Main.java:4: error: illegal start of expression
	return x**3;
	         ^
2 errors
Language: Java

public class Main() {

public integer cube(int x) {
	return x*x*x;
	}
	
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int p = scanner.next();

System.out.println(cube(p));
}
}



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

public class Main() {

public integer cube(int x) {
	return x*x*x;
	}
	
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int p = scanner.nextInt();

System.out.println(cube(p));
}
}



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

public class Main(){

public integer cube(int x) {
	return x*x*x;
	}
	
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int p = scanner.nextInt();

System.out.println(cube(p));
}
}



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

public class Main(){

public int cube(int x) {
	return x*x*x;
	}
	
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int p = scanner.nextInt();

System.out.println(cube(p));
}
}



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

public class Main(){

public static int cube(int x) {
	return x*x*x;
	}
	
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int p = sc.nextInt();

System.out.println(cube(p));
}
}



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

class Main(){

public static int cube(int x) {
	return x*x*x;
	}
	
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int p = sc.nextInt();

System.out.println(cube(p));
}
}



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

class Main{

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



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.io.* 
class Main {
   public static void main(String[] args){
     BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
     String buf = br.readLine();
     int x = Integer.parseInt(buf);
     System.out.println(x * x * x);
  }
}


Compiler output:
Main.java:1: error: ';' expected
import java.io.* 
                ^
1 error
Language: Java

import java.io.*; 
class Main {
   public static void main(String[] args){
     BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
     String buf = br.readLine();
     int x = Integer.parseInt(buf);
     System.out.println(x * x * x);
  }
}


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

public class Main{
	public static void main(String[] args){
		int x;
		int y;
		x = Integer.parseInt(args[0]);
		y = x ^ 3;
		System.out.plintln(y.toString());
	}
}




Compiler output:
Main.java:7: error: int cannot be dereferenced
		System.out.plintln(y.toString());
		                    ^
1 error
Language: Java

class Main { public static void main(String args[]) { int n=0; n=System.in.read(); System.out.println(n*n*n); } }


Compiler output:
Main.java:1: error: unreported exception IOException; must be caught or declared to be thrown
class Main { public static void main(String args[]) { int n=0; n=System.in.read(); System.out.println(n*n*n); } }
                                                                               ^
1 error
Language: Java

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


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

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


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

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


Compiler output:
Main.java:10: error: ';' expected
System.out.print(y) } }
                   ^
1 error
Language: Java

package test.java;

import java.util.Scanner;

public class Test {
	public static void main(String[] args) {
		Scanner scan=new Scanner(System.in);
		double a=scan.nextDouble();
		double b=3;
		System.out.println(" "+Math.pow(a,b)+" ");
	}
}



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

import java.util.Scanner;

public class Test {
	public static void main(String[] args) {
		Scanner scan=new Scanner(System.in);
		double a=scan.nextDouble();
		double b=3;
		System.out.println(" "+Math.pow(a,b)+" ");
	scan.close();
	}
	
}



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

import java.util.Scanner;

public class Test {
	public static void main(String[] args) {
		Scanner scan=new Scanner(System.in);
		double a=scan.nextDouble();
		System.out.println(a*a*a);
	scan.close();
	}
	
}


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

public class Main {
    public static void main(String[] args){
        int i = 2;
        cul(i);
        i = 3;
        cul(i);
    }
    
    public static void cul(int x){
        System.out.println(x * x * x);
    }
    
}
e


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

public class Main {

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



Compiler output:
Main.java:3: error: <identifier> expected
        System.out.println(x * x * x);
                          ^
Main.java:3: error: <identifier> expected
        System.out.println(x * x * x);
                            ^
Main.java:6: error: class, interface, enum, or record expected
}
^
3 errors
Language: Java

public class Main{

	public static void main(String[] args) {
     Scanner s = new Scanner(System.in);
     int x=s.nextInt();
     if(x >=1 && x<=100){
    	 System.out.println(x*x*x);
     }

	}

}


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

 class Main{

	public static void main(String[] args) {
     Scanner s = new Scanner(System.in);
     int x=s.nextInt();
     if(x >=1 && x<=100){
    	 System.out.println(x*x*x);
     }

	}

}


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

class Main{
    public static void main(String[] args){
         int intInputData = System.in.read();
         int intResult = intInputData^3;
         System.out.println(intResult.toString());
    }
}


Compiler output:
Main.java:5: error: int cannot be dereferenced
         System.out.println(intResult.toString());
                                     ^
1 error
Language: Java

using System;

public class Cubic
{
   public static void Main(string)
   {
      Console.WriteLine(x * x * x);
   }
}


Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
using System;
^
  (use --enable-preview to enable unnamed classes)
Main.java:5: error: <identifier> expected
   public static void Main(string)
                                 ^
2 errors
Language: Java

class Main{
    public static void main(String[] args){
         int intInputData = System.in.read();
         int intResult = intInputData^3;
         System.out.println(""+intResult);
    }
}


Compiler output:
Main.java:3: error: unreported exception IOException; must be caught or declared to be thrown
         int intInputData = System.in.read();
                                          ^
1 error
Language: Java

class Main{
    public static void main(String[] args){
         int intInputData = Integer.Parse(System.in.read());
         int intResult = intInputData^3;
         System.out.println(""+intResult);
    }
}


Compiler output:
Main.java:3: error: cannot find symbol
         int intInputData = Integer.Parse(System.in.read());
                                   ^
  symbol:   method Parse(int)
  location: class Integer
1 error
Language: Java

class Main{
    public static void main(String[] args){
         int intInputData = Integer.parseInt(System.in.read());
         int intResult = intInputData^3;
         System.out.println(""+intResult);
    }
}


Compiler output:
Main.java:3: error: incompatible types: int cannot be converted to String
         int intInputData = Integer.parseInt(System.in.read());
                                                           ^
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
1 error
Language: Java

import java.io.*;
class Main{
    public static void main(String[] args){
        BufferedReader r =
            new BufferedReader(new InputStreamReader(System.in), 1);
        int intInputData = parseInt(r.readLine());
        int intResult = intInputData^3;
        System.out.println(""+intResult);
    }
}


Compiler output:
Main.java:6: error: cannot find symbol
        int intInputData = parseInt(r.readLine());
                           ^
  symbol:   method parseInt(String)
  location: class Main
1 error
Language: Java

import java.io.*;
class Main{
    public static void main(String[] args){
        BufferedReader r =
            new BufferedReader(new InputStreamReader(System.in), 1);
    	String strInput r.readLine();
    	int intInputData strInput.parseInt();
        int intResult = intInputData^3;
        System.out.println(""+intResult);
    }
}


Compiler output:
Main.java:6: error: ';' expected
    	String strInput r.readLine();
    	               ^
Main.java:7: error: ';' expected
    	int intInputData strInput.parseInt();
    	                ^
2 errors
Language: Java

import java.io.*;
class Main{
    public static void main(String[] args){
        BufferedReader r =
            new BufferedReader(new InputStreamReader(System.in), 1);
    	String strInput = r.readLine();
    	int intInputData = strInput.parseInt();
        int intResult = intInputData^3;
        System.out.println(""+intResult);
    }
}


Compiler output:
Main.java:7: error: cannot find symbol
    	int intInputData = strInput.parseInt();
    	                           ^
  symbol:   method parseInt()
  location: variable strInput of type String
1 error
Language: Java

#include "stdio.h"
 
int main(x) {
    printf("%d\n", x*x*x);
}


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
}
^
3 errors
Language: Java

import java.io.*;
class Main{
    public static void main(String[] args){
        BufferedReader r =
            new BufferedReader(new InputStreamReader(System.in), 1);
    	String strInput = r.readLine();
    	int intInputData = Integer.parseInt(strInput);
        int intResult = intInputData^3;
        System.out.println(""+intResult);
    }
}


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

public class Main{			
  public static void main(String[] args){  			
int 1<=x<=100;			
N=x*x*x;			
   System.out.println(N);			
}			
}			



Compiler output:
Main.java:3: error: not a statement
int 1<=x<=100;			
^
Main.java:3: error: ';' expected
int 1<=x<=100;			
   ^
Main.java:3: error: not a statement
int 1<=x<=100;			
        ^
3 errors
Language: Java

public class Main{			
  public static void main(String[] args){  			
int x;	
   1<=x<=100;
 Scanner sc = new Scanner(System.in);
x= sc.nextINT();		
N=x*x*x;			
   System.out.println(N);			
}			
}			



Compiler output:
Main.java:4: error: not a statement
   1<=x<=100;
       ^
1 error
Language: Java

public class Main{			
  public static void main(String[] args){  			
int x;	
 Scanner sc = new Scanner(System.in);
x= sc.nextINT();		
N=x*x*x;			
   System.out.println(N);			
}			
}			



Compiler output:
Main.java:4: error: cannot find symbol
 Scanner sc = new Scanner(System.in);
 ^
  symbol:   class Scanner
  location: class Main
Main.java:4: error: cannot find symbol
 Scanner sc = new Scanner(System.in);
                  ^
  symbol:   class Scanner
  location: class Main
Main.java:6: error: cannot find symbol
N=x*x*x;			
^
  symbol:   variable N
  location: class Main
Main.java:7: error: cannot find symbol
   System.out.println(N);			
                      ^
  symbol:   variable N
  location: class Main
4 errors
Language: Java

public class TinhLapPhuong {
 
    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        int n;
        Scanner sc = new Scanner(System.in);
        n = sc.nextInt();
        lapPhuong(n);
    }
    public static void lapPhuong(int n ){
        int ketQua = n * n * n;
        System.out.println("Lap phuong cua n la : " +ketQua);
    }
    
}
Ở bài học tiếp theo, Vietpro sẽ giới thiệu đến các bạn Chương tr


Compiler output:
Main.java:19: error: class, interface, enum, or record expected
? b?i h?c ti?p theo, Vietpro s? gi?i thi?u ??n c?c b?n Ch??ng tr
^
1 error
Language: Java

package tinhlapphuong;
 
import java.util.Scanner;
 
/**
 *
 * @author Klaus
 */
public class TinhLapPhuong {
 
    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        int n;
        Scanner sc = new Scanner(System.in);
        n = sc.nextInt();
        lapPhuong(n);
    }
    public static void lapPhuong(int n ){
        int ketQua = n * n * n;
        System.out.println("Lap phuong cua n la : " +ketQua);
    }
    
}



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

public class Main{			
  public static void main(String[] args){  			
int x;	
int N=x*x*x;
 Scanner sc = new Scanner(System.in);
x= sc.nextINT();					
 System.out.println(N);			
}			
}			



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

public class Main{			
  public static void main(String[] args){  			
int x;	
 Scanner stdIn = new Scanner(System.in);
x= stdIn .nextINT();					
 System.out.println(x*x*x);			
}			
}			



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

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



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

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



Compiler output:
Main.java:3: error: cannot find symbol
 Scanner a = new Scanner(System.in);
 ^
  symbol:   class Scanner
  location: class Main
Main.java:3: error: cannot find symbol
 Scanner a = 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 a = new Scanner(System.in);
int x= a .nextINT();					
 System.out.println(x*x*x);			
}			
}			



Compiler output:
Main.java:5: error: cannot find symbol
int x= a .nextINT();					
         ^
  symbol:   method nextINT()
  location: variable a of type Scanner
1 error
Language: Java

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



Compiler output:
Main.java:5: error: cannot find symbol
int x = a .nextINT();					
          ^
  symbol:   method nextINT()
  location: variable a of type Scanner
1 error
Language: Java

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



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

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



Compiler output:
Main.java:1: error: cannot find symbol
import java.Scanner;
           ^
  symbol:   class Scanner
  location: package java
Main.java:4: error: cannot find symbol
 Scanner a = new Scanner(System.in);
 ^
  symbol:   class Scanner
  location: class Main
Main.java:4: error: cannot find symbol
 Scanner a = new Scanner(System.in);
                 ^
  symbol:   class Scanner
  location: class Main
3 errors
Language: Java

public class Main {

    public static void main(String[] args) {

        Scanner scanner = new Scanner(System.in);
        int x = scanner.nextInt();
        System.out.println(x * x * x);

    }
}



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

public class XCubic {

	public static void main(String[] args)throws IOException {

		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		String s = new String(in.readLine());
		Integer n = Integer.parseInt(s);
		System.out.println(n*n*n);

	}

}



Compiler output:
Main.java:1: error: class XCubic is public, should be declared in a file named XCubic.java
public class XCubic {
       ^
Main.java:3: error: cannot find symbol
	public static void main(String[] args)throws IOException {
	                                             ^
  symbol:   class IOException
  location: class XCubic
Main.java:5: error: cannot find symbol
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		^
  symbol:   class BufferedReader
  location: class XCubic
Main.java:5: error: cannot find symbol
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		                        ^
  symbol:   class BufferedReader
  location: class XCubic
Main.java:5: error: cannot find symbol
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		                                           ^
  symbol:   class InputStreamReader
  location: class XCubic
5 errors
Language: Java

public class Main {

	public static void main(String[] args)throws IOException {

		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		String s = new String(in.readLine());
		Integer n = Integer.parseInt(s);
		System.out.println(n*n*n);

	}

}



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

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

public class XCubic {

	public static void main(String[] args)throws IOException {

		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		String s = new String(in.readLine());
		Integer n = Integer.parseInt(s);
		System.out.println(n*n*n);

	}

}



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

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

public class Squared {

	public static void main(String[] args) throws NumberFormatException, IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		System.out.println("値を入力してください(このプログラムは値を3乗するものです)。");
		int x = Integer.parseInt(br.readLine());
		System.out.println(x*x*x);
	}

}



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

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

public class Squared {

	public static void main(String[] args) throws NumberFormatException, IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int x = Integer.parseInt(br.readLine());
		System.out.println(x*x*x);
	}

}



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

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

public class Squared {

	public static void main(String[] args) throws NumberFormatException, IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int x = Integer.parseInt(br.readLine());
		System.out.print(x*x*x);
	}

}




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

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

public class XCubic {

	public static void main(String[] args) throws NumberFormatException, IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int x = Integer.parseInt(br.readLine());
		System.out.print(x*x*x);
	}

}



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

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

public class XCubic {

	public static void main(String[] args) throws NumberFormatException, IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int x = Integer.parseInt(br.readLine());
		System.out.println(x*x*x);
	}

}



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


	public static void main(String[] args) throws NumberFormatException, IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int x = Integer.parseInt(br.readLine());
		System.out.println(x*x*x);




Compiler output:
Main.java:2: error: unnamed classes are a preview feature and are disabled by default.
	public static void main(String[] args) throws NumberFormatException, IOException {
	              ^
  (use --enable-preview to enable unnamed classes)
Main.java:5: error: reached end of file while parsing
		System.out.println(x*x*x);
		                          ^
2 errors
Language: Java

import java.io.BufferedReader;

public class XCubic {

	public static void main(String[] args) throws NumberFormatException, IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int x = Integer.parseInt(br.readLine());
		System.out.println(x*x*x);
	}

}



Compiler output:
Main.java:3: error: class XCubic is public, should be declared in a file named XCubic.java
public class XCubic {
       ^
Main.java:5: error: cannot find symbol
	public static void main(String[] args) throws NumberFormatException, IOException {
	                                                                     ^
  symbol:   class IOException
  location: class XCubic
Main.java:6: error: cannot find symbol
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		                                           ^
  symbol:   class InputStreamReader
  location: class XCubic
3 errors
Language: Java

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

public class XCubic {

	public static void main(String[] args){
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int x = Integer.parseInt(br.readLine());
		System.out.println(x*x*x);
	}

}



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

import java.io.BufferedReader;


public class XCubic {

	public static void main(String[] args){
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int x = Integer.parseInt(br.readLine());
		System.out.println(x*x*x);
	}

}



Compiler output:
Main.java:4: error: class XCubic is public, should be declared in a file named XCubic.java
public class XCubic {
       ^
Main.java:7: error: cannot find symbol
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		                                           ^
  symbol:   class InputStreamReader
  location: class XCubic
2 errors
Language: Java

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

public class XCubic {

	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int x = Integer.parseInt(br.readLine());
		System.out.println(x*x*x);
	}

}



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

import java.util.Scanner;

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


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

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

		int a = sc.nextInt(); //nという変数を作り、標準入力から数字を一つ読み取って、nに入れる
		int b = sc.nextInt(); //mという変数を作
		

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

		
	}


Compiler output:
Main.java:13: 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 ITP1_1_B {

    public static void main(String args[]) {
        String line = "";
        try {
            BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(System.in));
            while ((line = bufferedReader.readLine()) != null) {
                double volume =  Math.pow((double)Integer.parseInt(line), 3d);
                System.out.println((int)volume);
            }


        } catch (IOException e) {

        }
    }
}



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

public class Main {
    public static void main(String[] args) {
        // 自分の得意な言語で
        // Let's チャレンジ！！

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


       int x = Integer.valueOf(line);



      System.out.println(x*3);


}
}


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

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

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

       public int x;

         System.out.println(x^{3});
    }
}


Compiler output:
Main.java:11: error: illegal start of expression
       public int x;
       ^
Main.java:13: error: <identifier> expected
         System.out.println(x^{3});
                           ^
Main.java:13: error: <identifier> expected
         System.out.println(x^{3});
                             ^
Main.java:13: error: not a statement
         System.out.println(x^{3});
                               ^
Main.java:13: error: ';' expected
         System.out.println(x^{3});
                                ^
Main.java:13: error: illegal start of type
         System.out.println(x^{3});
                                 ^
Main.java:15: error: class, interface, enum, or record expected
}
^
7 errors
Language: Java

public class Main{
    public static cul int(int x){
        if(1 <= x && x <= 100){
          x = x ** 3;  
        }
        
    }
    public static void main(String[] args){
        cul(x);
        Sytem.out.println(x);
    }
}


Compiler output:
Main.java:2: error: <identifier> expected
    public static cul int(int x){
                     ^
Main.java:2: error: <identifier> expected
    public static cul int(int x){
                         ^
Main.java:4: error: illegal start of expression
          x = x ** 3;  
                 ^
3 errors
Language: Java

public class Main{
    public static cul int(int x){
       
          x = x ** 3;  
        
        
    }
    public static void main(String[] args){
        cul(x);
        Sytem.out.println(x);
    }
}


Compiler output:
Main.java:2: error: <identifier> expected
    public static cul int(int x){
                     ^
Main.java:2: error: <identifier> expected
    public static cul int(int x){
                         ^
Main.java:4: error: illegal start of expression
          x = x ** 3;  
                 ^
3 errors
Language: Java

public class Main{
    public static cul int(int x){
       
          x = x ** 3;  
        return x;
        
    }
    public static void main(String[] args){
        cul(x);
        Sytem.out.println(x);
    }
}


Compiler output:
Main.java:2: error: <identifier> expected
    public static cul int(int x){
                     ^
Main.java:2: error: <identifier> expected
    public static cul int(int x){
                         ^
Main.java:4: error: illegal start of expression
          x = x ** 3;  
                 ^
3 errors
Language: Java

public class Main{
    public static cul int(int x){
       
          x = x ** 3;  
        return x;
        
    }
    public static void main(String[] args){
        y = cul(x);
        Sytem.out.println(y);
    }
}


Compiler output:
Main.java:2: error: <identifier> expected
    public static cul int(int x){
                     ^
Main.java:2: error: <identifier> expected
    public static cul int(int x){
                         ^
Main.java:4: error: illegal start of expression
          x = x ** 3;  
                 ^
3 errors
Language: Java

public class Main{
    public static cul int(int x){
       
          x = x ** 3;  
        return x;
        
    }
    public static void main(String[] args){
        int y = cul(x);
        Sytem.out.println(y);
    }
}


Compiler output:
Main.java:2: error: <identifier> expected
    public static cul int(int x){
                     ^
Main.java:2: error: <identifier> expected
    public static cul int(int x){
                         ^
Main.java:4: error: illegal start of expression
          x = x ** 3;  
                 ^
3 errors
Language: Java

public class Main{
    public static cul int (int x){
        y = x * x * x;
        return y;
    public static void main(String[] args){
        int y = int(x);
        Sytem.out.println(y);
    }
}


Compiler output:
Main.java:2: error: <identifier> expected
    public static cul int (int x){
                     ^
Main.java:2: error: <identifier> expected
    public static cul int (int x){
                         ^
Main.java:5: error: illegal start of expression
    public static void main(String[] args){
    ^
Main.java:6: error: '.class' expected
        int y = int(x);
                   ^
Main.java:6: error: not a statement
        int y = int(x);
                    ^
Main.java:6: error: ';' expected
        int y = int(x);
                     ^
6 errors
Language: Java

public class Main{
    public static cul int (int x){
        y = x * x * x;
        return y;
    }
    public static void main(String[] args){
        int y = int(x);
        Sytem.out.println(y);
    }
}


Compiler output:
Main.java:2: error: <identifier> expected
    public static cul int (int x){
                     ^
Main.java:2: error: <identifier> expected
    public static cul int (int x){
                         ^
Main.java:7: error: '.class' expected
        int y = int(x);
                   ^
Main.java:7: error: not a statement
        int y = int(x);
                    ^
Main.java:7: error: ';' expected
        int y = int(x);
                     ^
5 errors