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

#include <iostream>
using namespace std;

#define check cnt=0;for(j=0;j<6;j++)if(d[q][j]==d[r][j])cnt++;
#define m tmp=d[r][1];d[r][1]=d[r][3];d[r][3]=d[r][4];d[r][4]=d[r][2];d[r][2]=tmp;
#define y tmp=d[r][0];d[r][0]=d[r][3];d[r][3]=d[r][5];d[r][5]=d[r][2];d[r][2]=tmp;

bool same(int d[100][6],int q,int r){
 int tmp,cnt,j,a=1,i,k,l;
 check
   if(cnt==6)a=0;

 while(a){
  for(i=0;i<5;i++){
   for(k=0;k<4;k++){
    check
    if(cnt==6)break;
    m
   }
   check
   if(cnt==6)break;
   tmp=d[r][0];
   d[r][0]=d[r][1];
   d[r][1]=d[r][5];
   d[r][5]=d[r][4];
   d[r][4]=tmp;
  }
  if(cnt==6)break;
  y
  for(k=0;k<4;k++){
   check
   if(cnt==6)break;
   m
  }
  if(cnt==6)break;
  y
  y
  for(k=0;k<4;k++){
   check
   if(cnt==6)break;
   m
  }
  a=0;
 }

 if(cnt==6)return true;
 return false;

}


int main(){
 int n,tmp,cnt,j,a=1,i,k,judge;

 cin >> n;

 int d[100][6];

 for(i=0;i<n;i++){
  for(j=0;j<6;j++){
   cin >> d[i][j] ;
  }
 }

 for(i=0;i<n-1;i++){
  for(l=i+1;l<n;l++){
  int q=i;
  int r=l;
  if(same(d,q,r))judge++;
  else judge=0;
  }
 }
 if(judge>0)cout << "No" << endl ;
 else cout << "Yes" << endl ;

 return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:66:7: error: 'l' was not declared in this scope
   66 |   for(l=i+1;l<n;l++){
      |       ^
Language: C++

#include <iostream>
using namespace std;
 
#define check cnt=0;for(j=0;j<6;j++)if(d[q][j]==d[r][j])cnt++;
#define m tmp=d[r][1];d[r][1]=d[r][3];d[r][3]=d[r][4];d[r][4]=d[r][2];d[r][2]=tmp;
#define y tmp=d[r][0];d[r][0]=d[r][3];d[r][3]=d[r][5];d[r][5]=d[r][2];d[r][2]=tmp;
 
bool same(int d[][6],int q,int r){
 int tmp,cnt,j,a=1,i,k;
 check
   if(cnt==6)a=0;
 
 while(a){
  for(i=0;i<5;i++){
   for(k=0;k<4;k++){
    check
    if(cnt==6)break;
    m
   }
   check
   if(cnt==6)break;
   tmp=d[r][0];
   d[r][0]=d[r][1];
   d[r][1]=d[r][5];
   d[r][5]=d[r][4];
   d[r][4]=tmp;
  }
  if(cnt==6)break;
  y
  for(k=0;k<4;k++){
   check
   if(cnt==6)break;
   m
  }
  if(cnt==6)break;
  y
  y
  for(k=0;k<4;k++){
   check
   if(cnt==6)break;
   m
  }
  a=0;
 }
 
 if(cnt==6)return true;
 return false;
 
}
 
 
int main(){
 int n,tmp,cnt,a=1,i,j,judge=0;
 
 cin >> n;
 
 int d[n][6];
 
 for(i=0;i<n;i++){
  for(j=0;j<6;j++){
   cin >> d[i][j] ;
  }
 }
 
 for(int q=0;q<n-1;1++){
  for(r=q+1;r<n;r++){
  if(same(d,q,r))judge++;
  }
 }
 if(judge>0)cout << "No" << endl ;
 else cout << "Yes" << endl ;
 
 return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:65:20: error: lvalue required as increment operand
   65 |  for(int q=0;q<n-1;1++){
      |                    ^
a.cc:66:7: error: 'r' was not declared in this scope
   66 |   for(r=q+1;r<n;r++){
      |       ^
Language: C++

#include <iostream>
using namespace std;
 
#define check cnt=0;for(j=0;j<6;j++)if(d[q][j]==d[r][j])cnt++;
#define m tmp=d[r][1];d[r][1]=d[r][3];d[r][3]=d[r][4];d[r][4]=d[r][2];d[r][2]=tmp;
#define y tmp=d[r][0];d[r][0]=d[r][3];d[r][3]=d[r][5];d[r][5]=d[r][2];d[r][2]=tmp;
 
bool same(int d[][6],int q,int r){
 int tmp,cnt,j,a=1,i,k;
 check
   if(cnt==6)a=0;
 
 while(a){
  for(i=0;i<5;i++){
   for(k=0;k<4;k++){
    check
    if(cnt==6)break;
    m
   }
   check
   if(cnt==6)break;
   tmp=d[r][0];
   d[r][0]=d[r][1];
   d[r][1]=d[r][5];
   d[r][5]=d[r][4];
   d[r][4]=tmp;
  }
  if(cnt==6)break;
  y
  for(k=0;k<4;k++){
   check
   if(cnt==6)break;
   m
  }
  if(cnt==6)break;
  y
  y
  for(k=0;k<4;k++){
   check
   if(cnt==6)break;
   m
  }
  a=0;
 }
 
 if(cnt==6)return true;
 return false;
 
}
 
 
int main(){
 int n,tmp,cnt,a=1,i,j,judge=0;
 
 cin >> n;
 
 int d[n][6];
 
 for(i=0;i<n;i++){
  for(j=0;j<6;j++){
   cin >> d[i][j] ;
  }
 }
 
 for(q=0;q<n-1;q++){
  for(r=q+1;r<n;r++){
  if(same(d,q,r))judge++;
  }
 }
 if(judge>0)cout << "No" << endl ;
 else cout << "Yes" << endl ;
 
 return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:65:6: error: 'q' was not declared in this scope
   65 |  for(q=0;q<n-1;q++){
      |      ^
a.cc:66:7: error: 'r' was not declared in this scope
   66 |   for(r=q+1;r<n;r++){
      |       ^
Language: C++

#include <iostream>
using namespace std;
 
#define check cnt=0;for(j=0;j<6;j++)if(d[q][j]==d[r][j])cnt++;if(cnt==6)break;
#define m tmp=d[r][1];d[r][1]=d[r][3];d[r][3]=d[r][4];d[r][4]=d[r][2];d[r][2]=tmp;
#define y tmp=d[r][0];d[r][0]=d[r][3];d[r][3]=d[r][5];d[r][5]=d[r][2];d[r][2]=tmp;
 
bool same(int d[][6],int q,int r){
 int tmp,cnt,j,a=1,i,k;
 check
   if(cnt==6)a=0;
 
 while(a){
  for(i=0;i<5;i++){
   for(k=0;k<4;k++){
    check
    m
   }
   check
   tmp=d[r][0];
   d[r][0]=d[r][1];
   d[r][1]=d[r][5];
   d[r][5]=d[r][4];
   d[r][4]=tmp;
  }
  check
  y
  for(k=0;k<4;k++){
   check
   m
  }
  check
  y
  y
  for(k=0;k<4;k++){
   check
   m
  }
  a=0;
 }
 
 if(cnt==6)return true;
 return false;
 
}
 
 
int main(){
 int n,judge=0;
 
 cin >> n;
 
 int d[n][6];
 
 for(int i=0;i<n;i++){
  for(int j=0;j<6;j++){
   cin >> d[i][j] ;
  }
 }
 
 for(int q=0;q<n-1;q++){
  for(int r=q+1;r<n;r++){
  if(same(d,q,r))judge++;
  }
 }
 if(judge>0)cout << "No" << endl ;
 else cout << "Yes" << endl ;
 
 return 0;
}

Compiler output:
a.cc: In function 'bool same(int (*)[6], int, int)':
a.cc:4:73: error: break statement not within loop or switch
    4 | #define check cnt=0;for(j=0;j<6;j++)if(d[q][j]==d[r][j])cnt++;if(cnt==6)break;
      |                                                                         ^~~~~
a.cc:10:2: note: in expansion of macro 'check'
   10 |  check
      |  ^~~~~
Language: C++

#include <iostream>
using namespace std;
 
#define check cnt=0;for(j=0;j<6;j++)if(d[q][j]==d[r][j])cnt++;if(cnt==6)break;
#define m tmp=d[r][1];d[r][1]=d[r][3];d[r][3]=d[r][4];d[r][4]=d[r][2];d[r][2]=tmp;
#define y tmp=d[r][0];d[r][0]=d[r][3];d[r][3]=d[r][5];d[r][5]=d[r][2];d[r][2]=tmp;
 
bool same(int d[][6],int q,int r){
 int tmp,cnt,j,a=1,i,k;
 check
   if(cnt==6)a=0;
 
 while(a){
  for(i=0;i<5;i++){
   for(k=0;k<4;k++){
    check
    m
   }
   check
   tmp=d[r][0];
   d[r][0]=d[r][1];
   d[r][1]=d[r][5];
   d[r][5]=d[r][4];
   d[r][4]=tmp;
  }
  if(cnt==6)break;
  y
  for(k=0;k<4;k++){
   check
   m
  }
  check
  y
  y
  for(k=0;k<4;k++){
   check
   m
  }
  a=0;
 }
 
 if(cnt==6)return true;
 return false;
 
}
 
 
int main(){
 int n,judge=0;
 
 cin >> n;
 
 int d[n][6];
 
 for(int i=0;i<n;i++){
  for(int j=0;j<6;j++){
   cin >> d[i][j] ;
  }
 }
 
 for(int q=0;q<n-1;q++){
  for(int r=q+1;r<n;r++){
  if(same(d,q,r))judge++;
  }
 }
 if(judge>0)cout << "No" << endl ;
 else cout << "Yes" << endl ;
 
 return 0;
}

Compiler output:
a.cc: In function 'bool same(int (*)[6], int, int)':
a.cc:4:73: error: break statement not within loop or switch
    4 | #define check cnt=0;for(j=0;j<6;j++)if(d[q][j]==d[r][j])cnt++;if(cnt==6)break;
      |                                                                         ^~~~~
a.cc:10:2: note: in expansion of macro 'check'
   10 |  check
      |  ^~~~~
Language: C++

#include <iostream>
using namespace std;
  
#define check cnt=0;for(j=0;j<6;j++)if(d[q][j]==d[r][j])cnt++;
#define m tmp=d[r][1];d[r][1]=d[r][3];d[r][3]=d[r][4];d[r][4]=d[r][2];d[r][2]=tmp;
#define y tmp=d[r][0];d[r][0]=d[r][3];d[r][3]=d[r][5];d[r][5]=d[r][2];d[r][2]=tmp;
  
bool same(int d[][6],int q,int r){
 int tmp,cnt,j,a=1,i,k;
 check
   if(cnt==6)a=0;
  
 while(a){
  for(i=0;i<5;i++){
   for(k=0;k<4;k++){
    check
    if(cnt==6)break;
    m
   }
   check
   if(cnt==6)break;
   tmp=d[r][0];
   d[r][0]=d[r][1];
   d[r][1]=d[r][5];
   d[r][5]=d[r][4];
   d[r][4]=tmp;
  }
  if(cnt==6)break;
  y
  for(k=0;k<4;k++){
   check
   if(cnt==6)break;
   m
  }
  if(cnt==6)break;
  yy
  for(k=0;k<4;k++){
   check
   if(cnt==6)break;
   m
  }
  a=0;
 }
  
 if(cnt==6)return true;
 return false;
}

int main(){
 int n,judge=0;
 cin >> n;
 int d[n][6];
  
 for(int i=0;i<n;i++){
  for(int j=0;j<6;j++){
   cin >> d[i][j] ;
  }
 }
  
 for(int q=0;q<n-1;q++){
  for(int r=q+1;r<n;r++){
  if(same(d,q,r))judge++;
  }
 }

 if(judge>0)cout << "No" << endl ;
 else cout << "Yes" << endl ;
  
 return 0;
}

Compiler output:
a.cc: In function 'bool same(int (*)[6], int, int)':
a.cc:36:3: error: 'yy' was not declared in this scope; did you mean 'y'?
   36 |   yy
      |   ^~
      |   y
a.cc:37:18: error: expected ';' before ')' token
   37 |   for(k=0;k<4;k++){
      |                  ^
      |                  ;
Language: C++

    for(int i=0; i<n-1; i++){
        if(yen[i] == 'S'){
            cout << "No" << endl;
            break;
        }
        if(i==n-2){
        if(yen[n-2]== 'D')
            cout << "Yes" << endl;
        }
    }
    

Compiler output:
a.cc:1:5: error: expected unqualified-id before 'for'
    1 |     for(int i=0; i<n-1; i++){
      |     ^~~
a.cc:1:18: error: 'i' does not name a type
    1 |     for(int i=0; i<n-1; i++){
      |                  ^
a.cc:1:25: error: 'i' does not name a type
    1 |     for(int i=0; i<n-1; i++){
      |                         ^
Language: C++

#include <iostream>
using namespace std;

class Cube{
public:
  int f[6];
  Cube(){}
  void roll_z(){ roll(1, 2, 4, 3);}
  void roll_y(){ roll(0, 2, 5, 3);}
  void roll_x(){ roll(0, 1, 5, 4);}
  void roll(int i, int j, int k, int l){
    int t = f[i]; f[i] = f[j]; f[j]= f[k]; f[k] = f[l]; f[l] = t;
  }
};

bool eq ( Cube c1, Cube c2 ){
  for ( int i = 0; i < 6; i++ ){
    if ( c1.f[i] != c2.f[i] ) return false;
  }
  return true;
}

bool equal ( Cube c1, Cube c2 ){
  for ( int i = 0; i < 6; i++ ){
    for ( int j = 0; j < 4; j++ ){
      if ( eq(c1, c2) ) return true;
      c1.roll_z();
    }
    if ( i % 2 == 0 ) c1.roll_y();
    else c1.roll_x();
  }
  return false;
}

Cube C[100]; int n;

bool check(){
  for (int i = 0; i < n-1; i++ ){
    for ( int j = i + 1; j < n; j++ ){
      if ( equal ( C[i], C[j]) ) return false;
    }
  }
  return true;
}

int main(){
  cin >> n;

  for (int j = 0; j < n; j++ ){
    for (int i = 0; i < 6; j++ ) cin >> C[j].f[i]:
  }

  if (check()) cout << "Yes" << endl;
  else cout << "No" << endl;

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:50:50: error: expected ';' before ':' token
   50 |     for (int i = 0; i < 6; j++ ) cin >> C[j].f[i]:
      |                                                  ^
      |                                                  ;
Language: C++

#include <iostream>
#include <string>
using namespace std;

class cD
{
public:
	void N()
	{
		int nTemp = 0;
		nTemp = nD[1];
		nD[1] = nD[2];
		nD[2] = nD[6];
		nD[6] = nD[5];
		nD[5] = nTemp;
	}

	void S()
	{
		int nTemp = 0;
		nTemp = nD[1];
		nD[1] = nD[5];
		nD[5] = nD[6];
		nD[6] = nD[2];
		nD[2] = nTemp;
	}

	void W()
	{
		int nTemp = 0;
		nTemp = nD[1];
		nD[1] = nD[3];
		nD[3] = nD[6];
		nD[6] = nD[4];
		nD[4] = nTemp;
	}

	void E()
	{
		int nTemp = 0;
		nTemp = nD[1];
		nD[1] = nD[4];
		nD[4] = nD[6];
		nD[6] = nD[3];
		nD[3] = nTemp;
	}

	void Rotate()
	{
		int nTemp = 0;
		nTemp = nD[2];
		nD[2] = nD[3];
		nD[3] = nD[5];
		nD[5] = nD[4];
		nD[4] = nTemp;
	}

	void input()
	{
		for (int i = 1; i <= 6; i++)
		{
			cin >> nD[i];
		}
	}

	int nD[7] = { 0 };
};


bool check(cD D, cD D2)
{
	int nT = D2.nD[1], nF = D2.nD[2];
	for (int j = 1; j <= 6; j++)
	{
		if (nT == D.nD[j])
		{
			if (1 == j)
			{
				break;
			}
			else if (2 == j)
			{
				D.N();
			}
			else if (3 == j)
			{
				D.W();
			}
			else if (4 == j)
			{
				D.E();
			}
			else if (5 == j)
			{
				D.S();
			}
			else
			{
				D.S();
				D.S();
			}
		}
	}

	int nC = 4;
	int nFlag;
	while (nC--)
	{
		nFlag = 0;
		D.Rotate();
		for (int i = 1; i <= 6; i++)
		{
			if (D.nD[i] == D2.nD[i])
			{
				nFlag++;
			}
		}
		if (6 == nFlag)
		{
			break;
		}
	}

	nC = 4;

	if (6 != nFlag)
	{
		while (nC--)
		{
			nFlag = 0;
			D.N();
			for (int i = 1; i <= 6; i++)
			{
				if (D.nD[i] == D2.nD[i])
				{
					nFlag++;
				}
			}
			if (6 == nFlag)
			{
				break;
			}
		}
	}
	if (6 == nFlag)
	{
		return true;
	}
	else
	{
		return false;
	}
}


int main()
{
	cD D[100];
	memset(D, 0, sizeof(cD) * 100);
	int nCount;
	cin >> nCount;
	for (int i = 0; i < nCount; i++)
	{
		D[i].input();
	}
	bool bFlag = false;
	for (int i = 0; i < nCount - 1; i++)
	{
		for (int j = i + 1; j < nCount; ++j)
		{
			if (check(D[i], D[j]))
			{
				cout << "No" << endl;
				return 0;
			}
		}
	}
	cout << "Yes" << endl;
	//system("pause");
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:159:9: error: 'memset' was not declared in this scope
  159 |         memset(D, 0, sizeof(cD) * 100);
      |         ^~~~~~
a.cc:2:1: note: 'memset' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    1 | #include <iostream>
  +++ |+#include <cstring>
    2 | #include <string>
Language: C++

#include<bits/stdc++.h>
using namespace std;

int a[7];
int e=0;

void move(char i){
int b[7];
for(int n=1;n<7;n++){b[n]=a[n];}

if(i=='W'){
a[6]=b[4];
a[4]=b[1];
a[1]=b[3];
a[3]=b[6];
}

if(i=='N'){
a[6]=b[5];
a[5]=b[1];
a[1]=b[2];
a[2]=b[6];
}

if(i=='E'){
a[6]=b[3];
a[3]=b[1];
a[1]=b[4];
a[4]=b[6];
}

if(i=='S'){
a[6]=b[2];
a[2]=b[1];
a[1]=b[5];
a[5]=b[6];
}

if(i=='R'){
a[3]=b[2];
a[2]=b[4];
a[4]=b[5];
a[5]=b[3];
}}



void move2(int r){
if(r==2){move('N');}
if(r==3){move('W');}
if(r==4){move('E');}
if(r==5){move('S');}
if(r==6){move('N'); move('N');}
}



int main(){
int c[7],d[7];
for(int h=1;h<7;h++){cin>>a[h]; d[h]=a[h];}
for(int h=1;h<7;h++){cin>>c[h];}

for(int g=1;g<7;g++){
for(int n=0;n<4){

for(int l=1;l<7;l++){
if(l==6 && a[l]==c[l]){e=1;}
if(a[l]==c[l]){continue;}
break;
}

if(e==1){break;}
move('R');
}
if(e==1){break;}
for(int h=1;h<7;h++){a[h]=d[h];}
move2(g);
}

if(e==1){cout<<"Yes"<<endl;}
if(e==0){cout<<"No"<<endl;}

return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:64:16: error: expected ';' before ')' token
   64 | for(int n=0;n<4){
      |                ^
      |                ;
Language: C++

#include <iostream>
using namespace std;

class Cube{
 public:
 int f[6];
 Cube(){}
  void roll_z(){roll(1,2,4,3);} //
  void roll_y(){roll(0,2,5,3);} // to W
  void roll_x(){roll(0,1,5,4);} // to N
  void roll( int i, int j, int k, int l){
   int t = f[i]; f[i]=f[j]; f[j]=f[k]; f[k]=f[l]; f[l]=t;
  }
};

bool eq(Cube c1, Cube c2){
  for(int i = 0; i < 6; i++)
      if (c1.f[i] != c2.f[i]) return false;
  return true;
}

bool equal (  Cube c1, Cube c2 ){
    for (int i=0; i < 6; i++){
        for (int j=0; j < 4; j++){
          if ( eq( c1, c2) ) return true;
             c1.roll_z;
          }
          if (i % 2 == 0 ) c1. roll_y();
          else c1.roll_x();
    }
    return false;
}
Cube C[100]; int n;

bool check(){
     for  (int i = 0; i < n-1;i++)
            for (int j=i+1; j < n; j++) if (equal(C[i], C[j])) return false;
    return true;
}

int main(){
   cin >> n;

for (int j = 0; j <n; j++) 
for (int i = 0; i <6; i++) cin >> C[j]. f[i];

if  (check () ) cout << "Yes" << endl;
else cout << "No" << endl;

return 0;
}


Compiler output:
a.cc: In function 'bool equal(Cube, Cube)':
a.cc:26:17: error: invalid use of non-static member function 'void Cube::roll_z()'
   26 |              c1.roll_z;
      |              ~~~^~~~~~
a.cc:8:8: note: declared here
    8 |   void roll_z(){roll(1,2,4,3);} //
      |        ^~~~~~
Language: Java

public void 1_1_B(){
int x = input();
print(x * x * );


}


Compiler output:
Main.java:1: error: illegal underscore
public void 1_1_B(){
               ^
Main.java:3: error: class, interface, enum, or record expected
print(x * x * );
^
Main.java:6: error: class, interface, enum, or record expected
}
^
3 errors
Language: Java

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


}
}


Compiler output:
Main.java:6: error: cannot find symbol
print(a*a*a);
^
  symbol:   method print(int)
  location: class sample
1 error
Language: Java

import java.util.Scanner;
class sample{
public static void main(String args[]){
Scanner scanner = new Scanner(System.in);
int a = scanner.nextInt();
int b = a*a*a
print(b);
 
 
}
}


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

import java.util.Scanner;
class sample{
public static void main(String args[]){
Scanner scanner = new Scanner(System.in);
int a = scanner.nextInt();
int b = a*a*a;
print(b);
  
  
}
}


Compiler output:
Main.java:7: error: cannot find symbol
print(b);
^
  symbol:   method print(int)
  location: class sample
1 error
Language: Java

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


Compiler output:
Main.java:8: error: incompatible types: unexpected return value
  return 0;
         ^
1 error
Language: Java

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


Compiler output:
Main.java:1: error: class App is public, should be declared in a file named App.java
public class App {
       ^
Main.java:3: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class App
Main.java:3: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		                 ^
  symbol:   class Scanner
  location: class App
3 errors
Language: Java

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


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;

/**
 * ClassName:App <br/>
 * Function: TODO ADD FUNCTION. <br/>
 * Reason:	 TODO ADD REASON. <br/>
 * Date:     2018年7月17日 上午11:59:39 <br/>
 * @author   SongYapeng
 * @version  
 * @since    JDK 1.8
 * @see 	 
 */
public class App {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int nextInt = sc.nextInt();
		System.out.println(nextInt * nextInt * nextInt);
	}
}
	


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


public class XCubic {

	public static void main(String[] args){
		int i = Integer.parseInt(args[0]);
		System.out.println(i*i*i);
	}

}



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

class Main{
	public static void main(String[] args){
		int i = Integer.parseInt(args[0]);
		System.out.println(i*i*i);
                Return 0;
	} 
}


Compiler output:
Main.java:5: error: not a statement
                Return 0;
                ^
Main.java:5: error: ';' expected
                Return 0;
                      ^
2 errors
Language: Java

public class XCubic {

	public static void main(String[] args){
		int i = Integer.parseInt(args[0]);
		System.out.println(i*i*i);
	}

}



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

public class Main {

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

}



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

import java.util.Scanner;
public class Solution {
	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		int i = s.nextInt();
		System.out.println(i * i * i);
	}
}


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

public class Main {

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


Compiler output:
Main.java:4: error: cannot find symbol
        Scanner scanner = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class Main
Main.java:4: error: cannot find symbol
        Scanner scanner = 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 scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        int it = 3;
        int total = 0;
        scanner.close();
        System.out.println(helper(n,it,total));
    }
    public int helper(int n, int it, int total){
        if(it == 0){
          return total;
        } else {
          return helper(n, it - 1, total * n);
        }

    }
}


Compiler output:
Main.java:10: error: non-static method helper(int,int,int) cannot be referenced from a static context
        System.out.println(helper(n,it,total));
                           ^
1 error
Language: Java

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


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

class Main{
  public static void main(String args[]){
    x = 3;
    System.out.println(Integer.parsInt(Math.pow(x, 3));
  }
}


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

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

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


Compiler output:
Main.java:8: error: incompatible types: String cannot be converted to int
    int x = br.readLine();
                       ^
Main.java:9: error: incompatible types: double cannot be converted to String
    System.out.println(Integer.parseInt(Math.pow(x, 3)));
                                                ^
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
2 errors
Language: Java

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

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


Compiler output:
Main.java:10: error: incompatible types: double cannot be converted to String
    System.out.println(Integer.parseInt(Math.pow(x, 3)));
                                                ^
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
1 error
Language: Java

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

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


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.IOException;
import java.io.InputStreamReader;
 
class Main{
  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:8: error: unreported exception IOException; must be caught or declared to be thrown
    int x = Integer.parseInt(br.readLine());
                                        ^
1 error
Language: Java

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


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.*;
 
class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        System.out.println(num * num * num;);
    }
}


Compiler output:
Main.java:7: error: ')' or ',' expected
        System.out.println(num * num * num;);
                                          ^
Main.java:7: error: illegal start of expression
        System.out.println(num * num * num;);
                                           ^
2 errors
Language: Java

import java.until.Scanner;

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:1: error: package java.until does not exist
import java.until.Scanner;
                 ^
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
3 errors
Language: Java

import java.util.Scanner;

public class XCubic {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		var x = new Scanner(System.in).nextInt();
		System.out.println(Math.pow(x, 3));
	}

}



Compiler output:
Main.java:3: 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 XCubic {

	public static void main(String[] args) {
		int x = new Scanner(System.in).nextInt();
		System.out.println(Math.pow(x, 3));
	}

}



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

class HelloServlet {
    public static void main(String args[]) throws IOException {
        BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        String s = new String(in.readLine());
        int i = Integer.parseInt(s);
        if(i > 0 || i < 101){
        	System.out.print(i * i * i);
        }
        
    }
}


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

import java.util.Scanner;

public class ITP1_1_B {
    public static int pow(int num,int cnt){
        int ans = num;
        while(1 < cnt--){
            ans *= num;
        }
        return ans;
    }

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while( sc.hasNext() ){
            String[] line = sc.nextLine().split(" ");
            int inputnum = Integer.parseInt(line[0]);
            int ans = pow(inputnum,3);
            System.out.println(ans);
        }
    }
}




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.Scanner;


public class ITP1_1_B {
    public static int pow(int num,int cnt){
        int ans = num;
        while(1 < cnt--){
            ans *= num;
        }
        return ans;
    }

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while( sc.hasNext() ){
            String[] line = sc.nextLine().split(" ");
            int inputnum = Integer.parseInt(line[0]);
            int ans = pow(inputnum,3);
            System.out.println(ans);
        }
    }
}




Compiler output:
Main.java:4: 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){
       int x;
       x = System.in.read();
       System.out.println(x*x*x);
   }
}


Compiler output:
Main.java:2: error: cannot find symbol
   public static void main(string [] args){
                           ^
  symbol:   class string
  location: class Main
1 error
Language: Java

import java.util.Scanner;

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);

       sc.close;
   }
}


Compiler output:
Main.java:9: error: not a statement
       sc.close;
         ^
1 error
Language: Java

import.java.util.Scanner

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


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

import.java.util.Scanner;

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


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

import java.util.Scanner;

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


Compiler output:
Main.java:4: error: cannot find symbol
    public static void main(Strings[] args){
                            ^
  symbol:   class Strings
  location: class Main
Main.java:6: error: cannot find symbol
        x = scanner.nextInt();
        ^
  symbol:   variable x
  location: class Main
Main.java:7: error: cannot find symbol
        System.out.println(x*x*x);
                           ^
  symbol:   variable x
  location: class Main
Main.java:7: error: cannot find symbol
        System.out.println(x*x*x);
                             ^
  symbol:   variable x
  location: class Main
Main.java:7: error: cannot find symbol
        System.out.println(x*x*x);
                               ^
  symbol:   variable x
  location: class Main
5 errors
Language: Java

import java.util.Scanner;

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


Compiler output:
Main.java:4: error: cannot find symbol
    public static void main(Strings[] args){
                            ^
  symbol:   class Strings
  location: class Main
1 error
Language: Java

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


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

import java.utils.*

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


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

import java.util.*

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


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

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


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

<?php
    $input = trim(fgets(STDIN));
    $ans = pow($input, 3);
    echo $ans;
?>


Compiler output:
Main.java:1: error: class, interface, enum, or record expected
<?php
^
Main.java:3: error: class, interface, enum, or record expected
    $ans = pow($input, 3);
    ^
Main.java:4: error: unnamed classes are a preview feature and are disabled by default.
    echo $ans;
    ^
  (use --enable-preview to enable unnamed classes)
Main.java:5: error: class, interface, enum, or record expected
?>
^
4 errors
Language: Java

public class HelloWorld {

	public static void main(String[] args) {
		int line;
		double mass;
		try {
			line = Integer.parseInt(args[0]);
			if (line >= 1 & line <= 100){
				mass = Math.pow((double)line, (double)3);
				//System.out.println((int) mass);
				System.out.println(1);
			}
		}catch(Exception e) {
			System.out.println("Exception:" + e);
		}
	}

}



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

class Test{
  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: cannot find symbol
        Scanner sc = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class Test
Main.java:3: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
                         ^
  symbol:   class Scanner
  location: class Test
2 errors
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:3: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class Main
Main.java:3: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
                         ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: Java

import java.io.*;

public class AOJ2{
    public static void main(String[] args){
        String line;
        int x;
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        try{
            line = reader.readLine();
            x = Integer.parseInt(line);
            System.out.println(x*x*x);
        }catch(NumberFormatException e){
            System.out.println(e);
        }catch(IOException e){
            System.out.println(e);
        }
    }
}


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

import java.io.*;

public class Cubic{
  public static void main(String[] args) {
    String line;
    int x;

    BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
    try {
        line = reader.readLine();
        x = Integer.parseInt(line);
        System.out.println(x*x*x);
    } catch (NumberFormatException e) {
      System.out.println(e);
    } catch (IOException e) {
      System.out.println(e);
    }
  } 
}


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

import java.util.Scanner;

public cladd Main{
    ppublic 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, interface, enum, or record expected
public cladd Main{
       ^
Main.java:7: error: unnamed classes are a preview feature and are disabled by default.
        int n = sc.nextInt();
        ^
  (use --enable-preview to enable unnamed classes)
Main.java:8: error: class, interface, enum, or record expected
        System.out.println(n*n*n);
        ^
Main.java:9: error: class, interface, enum, or record expected
    }
    ^
4 errors
Language: Java

import java.util.Scanner;

public cladd 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:3: error: class, interface, enum, or record expected
public cladd 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:10: error: class, interface, enum, or record expected
}
^
3 errors
Language: Java

import java.util.Scanner

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


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

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


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

class Main {
    public void main(String[] args) {
        int x = Integer.parseInt(args[0]);
        x = Math.pow(x, 3);
        System.out.println(x);
    }
}

Compiler output:
Main.java:4: error: incompatible types: possible lossy conversion from double to int
        x = Math.pow(x, 3);
                    ^
1 error
Language: Java

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

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

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

import java.io.*;
class Main{
  public static void main(String[] args)throws java.io.IOException{
             BufferedReader input = new BufferedReader(new InputStreamReader(System.in));

             String hoge = input.readLine();
             int x = Integer.parseInt(hoge);

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

Compiler output:
Main.java:9: error: package system does not exist
             system.out.println(x*x*x);
                   ^
1 error
Language: Java

import java.util.Scanner;

public class Main1 {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int x = scanner.nextInt();
		System.out.println((int)Math.pow(x, 3.0));

	}
}

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

import java.io.*;
class Main{
public static void main(String[] args){
BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
try{
String s = input.readLine();
int x=Interger.parseInt(s);
System.out.println(Math.pow(x,3));
}catch(IOExceptin e){}
}
}

Compiler output:
Main.java:7: error: cannot find symbol
int x=Interger.parseInt(s);
      ^
  symbol:   variable Interger
  location: class Main
Main.java:9: error: cannot find symbol
}catch(IOExceptin e){}
       ^
  symbol:   class IOExceptin
  location: class Main
2 errors
Language: Java

import java.io.*;
public class Main {

	public static void main(String[] args) {
		BufferedReader input=new BufferedReader(new InputStreamReader(System.in));
		try {
			String s=args[0];
			int x=Integer.parseInt(s);
			System.out.println(Math.pow(x, 3));
		} catch (Exception e) {
			// TODO 自動生成された catch ブロック
			e.printStackTrace();
		}
		
		// TODO 自動生成されたメソッド・スタブ

	}

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

import java.io.*;

public class itp1a2{
	public static void main(String[] args) throws IOException{
		int a;
		a = System.in.read();
		System.out.println(a*a*a);
	}
}

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

import java.io.*;

public class itp11b{
	public static void main(String[] args) throws IOException{
		 BufferedReader r =
            new BufferedReader(new InputStreamReader(System.in), 1);
		String s = r.readLine();
		int a = Integer.parseInt(s);
		System.out.println(a*a*a);
	}
}

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

import java.util.*;

public class Program{
public void run(){
Scanner sc = new Scanner(System.in);
int x =sc.nextInt();
int y=1;
for(int i=0; i<3; i++) y *=x;
System.out.println(y);
}
public static void main(String[] args){
 Program p = new Program();
 p.run();
}
}

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

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

public class Q1 {
    public static void main(String[] args) {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String head;
		try {
			head = br.readLine();
		} catch (IOException e) {
			System.err.println("The input is missing. " + e.getMessage());
			return;
		}

        int n;
        try {
        	n= Integer.parseInt(head);
        } catch(NumberFormatException e) {
			System.err.println("The input is in an illegal form. " + e.getMessage());
			return;
        }

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

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

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

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

public class Main {
	public static void main(String[] args) throws IOException {
		System.out.print("数字を入力して下さい：");
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String in = br.readLine();
		double x = Math.pow(Integer.parseInt(in), 3);
		System.out.println((int)x);
	}
}

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

public class Main{
    public static void main(String[] args[]){
        BufferedReader buf = new BufferedReader (new InputStreamReader (System.in));
	String a = buf.readLine();

	int x = Integer.parseInt(a);
	x = x*x*x;
	System.out.println(x);
    }
}

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

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

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

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

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

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