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

#include <iostream>
#include <iomanip.h>
#include <math.h>
#define PI 3.141592653589
using namespace std;
int main(){
double r;
cin >> r;
cout << setprecision(10);
cout << pow(r,2)*PI << " " << 2*r*PI << endl;
return 0;
}

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

#include <iostream>
#include <iomanip.h>
#include <math.h>
#define PI 3.141592653589
using namespace std;
int main(){
double r;
cin >> r;
cout.setf(ios_base::fixed,ios_base::floatfield);
cout << setprecision(6) << pow(r,2)*PI << " " << 2*r*PI << endl;
return 0;
}

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

#include <iostream>
#include <iomanip>
#include <math>
#define PI 3.141592653589
using namespace std;
int main(){
double r;
cin >> r;
cout.setf(ios_base::fixed,ios_base::floatfield);
cout << setprecision(6) << pow(r,2)*PI << " " << 2*r*PI << endl;
return 0;
}

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

#include <iostream>
#include <iomanip>
#define _USE_MATH_DEFINES
#include <math.h>
using namespace std;
int main(){
double r;
cin >> r;
cout.setf(ios_base::fixed,ios_base::floatfield);
cout << setprecision(6) << pow(r,2)*M_PI << " " << 2*r*PI << endl;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:56: error: 'PI' was not declared in this scope
   10 | cout << setprecision(6) << pow(r,2)*M_PI << " " << 2*r*PI << endl;
      |                                                        ^~
Language: C++

#include<cstdio>
#include<cmath>
using namespace std;

#define PI 3.1415926535

void main(){
	double r;
	scanf("%lf", &r );
	double S = r * r * PI;
	double l = 2.0 * r * PI;
	printf("%.6f %.6f\n", S, l);
}

Compiler output:
a.cc:7:1: error: '::main' must return 'int'
    7 | void main(){
      | ^~~~
Language: C++

#include<stdio.h>
int main(){double a;scanf("%lf",&a);printf("%f %f\n",r*r*3.14159265,r*2*3.14159265);}

Compiler output:
a.cc: In function 'int main()':
a.cc:2:54: error: 'r' was not declared in this scope
    2 | int main(){double a;scanf("%lf",&a);printf("%f %f\n",r*r*3.14159265,r*2*3.14159265);}
      |                                                      ^
Language: C++

#include <stdio.h>

#define M_PI 3.14159265358979

int main(void)
{
  double N

  scanf("%lf", &N);
  printf("%lf %lf\n", (double)(2.0 * N * M_PI), (double)(N * N * M_PI));

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: expected initializer before 'scanf'
    9 |   scanf("%lf", &N);
      |   ^~~~~
a.cc:10:38: error: 'N' was not declared in this scope
   10 |   printf("%lf %lf\n", (double)(2.0 * N * M_PI), (double)(N * N * M_PI));
      |                                      ^
Language: C++

include<iostream>
#include<stdio.h>

using namespace std;

int main()
{
  int r;
  double x,y,pi;
  pi=3.141592653589;

  scanf("%d",&r);

  x=r*r*pi;
  y=(r+r)*pi;

  printf("%f %f\n",x,y);
  return 0;
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:12:3: error: 'scanf' was not declared in this scope
   12 |   scanf("%d",&r);
      |   ^~~~~
a.cc:17:3: error: 'printf' was not declared in this scope
   17 |   printf("%f %f\n",x,y);
      |   ^~~~~~
a.cc:3:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
    2 | #include<stdio.h>
  +++ |+#include <cstdio>
    3 |
Language: C++

#include<stdio.h>

int main()
{
     double r;
     scanf("%lf",&r);
     printf（”%f %f\n",r*r*3.141592653589,2*r*3.1415926535);
return 0;
}

Compiler output:
a.cc:7:6: error: extended character ” is not valid in an identifier
    7 |      printf（”%f %f\n",r*r*3.141592653589,2*r*3.1415926535);
      |      ^
a.cc:7:20: error: stray '\' in program
    7 |      printf（”%f %f\n",r*r*3.141592653589,2*r*3.1415926535);
      |                    ^
a.cc:7:22: warning: missing terminating " character
    7 |      printf（”%f %f\n",r*r*3.141592653589,2*r*3.1415926535);
      |                      ^
a.cc:7:22: error: missing terminating " character
    7 |      printf（”%f %f\n",r*r*3.141592653589,2*r*3.1415926535);
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:7:6: error: 'printf\U0000ff08\U0000201d' was not declared in this scope
    7 |      printf（”%f %f\n",r*r*3.141592653589,2*r*3.1415926535);
      |      ^~~~~~~~~
a.cc:7:16: error: 'f' was not declared in this scope
    7 |      printf（”%f %f\n",r*r*3.141592653589,2*r*3.1415926535);
      |                ^
Language: C++

#include<iostream>
#include<cstdio>
#include<math>
using namespace std;
int main(){
	double r;
	cin>>r;
	printf("%lf %lf\n",r*r*M_PI,2*r*M_PI);
	return 0;
}

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

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

int main()
{
 int x;
 double a,c,p=3.141592;
 while(cin>>x) 
 {
  a=p*x*x;
  c=2*p*x;
 }
 cin
  

Compiler output:
a.cc: In function 'int main()':
a.cc:14:5: error: expected ';' at end of input
   14 |  cin
      |     ^
      |     ;
a.cc:14:5: error: expected '}' at end of input
a.cc:6:1: note: to match this '{'
    6 | {
      | ^
Language: C++

#include<cmath>
#include<cstdio>
using namespace std;

int main()
{
	double r;
	cin >> r;
	
	printf("%6f\n",M_PI*r*r);
	
	return 0;
}

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

#include <iostream>
#include <cstdlib>
#include<cstdio>
#include <math.h>
define M_PI pi

using namespace std;

int main(){

	double r;
	cin>>r;
	cout<<2*pi*r<<" "<<pi*r*r<<endl;

	return 0;
}

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

#include <iostream>
#include <cstdlib>
#include<cstdio>
#include <math.h>
#define M_PI pi

using namespace std;

int main(){

	double r;
	cin>>r;
	cout<<2*pi*r<<" "<<pi*r*r<<endl;

	return 0;
}

Compiler output:
a.cc:5:9: warning: "M_PI" redefined
    5 | #define M_PI pi
      |         ^~~~
In file included from /usr/include/c++/14/cmath:47,
                 from /usr/include/c++/14/math.h:36,
                 from a.cc:4:
/usr/include/math.h:1121:10: note: this is the location of the previous definition
 1121 | # define M_PI           3.14159265358979323846  /* pi */
      |          ^~~~
a.cc: In function 'int main()':
a.cc:13:17: error: 'pi' was not declared in this scope
   13 |         cout<<2*pi*r<<" "<<pi*r*r<<endl;
      |                 ^~
Language: C++

#include <iostream>
#include <sstream>
#include <string>
#include <cstdio>
using namespace std;
#define PI 6*asin( 0.5 )

int main(){

		string str;
		getline(cin, str);
		double r,pi;
		istringstream is(str);
		is>>r;

		printf("%.6f %.6f\n",r*r*PI,(2*r)*PI);

		return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:14: error: 'asin' was not declared in this scope
    6 | #define PI 6*asin( 0.5 )
      |              ^~~~
a.cc:16:42: note: in expansion of macro 'PI'
   16 |                 printf("%.6f %.6f\n",r*r*PI,(2*r)*PI);
      |                                          ^~
Language: C++

#include<cstdio>
#include<iostream>
#include<algorithm>
#include<string>
#include<cmath>
#include<vector>

using namespace std;


int main()
{
  douvle x;
  cin >> x;
  printf("%lf% lf\n", x * x * M_PI, x * 2 * M_PI);
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:3: error: 'douvle' was not declared in this scope; did you mean 'double'?
   13 |   douvle x;
      |   ^~~~~~
      |   double
a.cc:14:10: error: 'x' was not declared in this scope
   14 |   cin >> x;
      |          ^
Language: C++

#include <iostream>
using namespace std;
int main()
{
	double r;
	const double PI=3.141592653589
	
	cin>>r;
	cout<<PI*r*r<<" "<<2*r*PI;
	cout<<"\n";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: expected ',' or ';' before 'cin'
    8 |         cin>>r;
      |         ^~~
Language: C++

#include <iostream>

using namespace std;
int main()
{
	double r;
	double f1,f2;
	f1=r*r*3.141592653589;
	f2=2*r*3.141592653589;
	cin >>  r ;
	cout.setf(ios::fixed,ios::floatfield);
	cout << (float)f1 << " " << (float)f2<< endl; 
	return 0;

Compiler output:
a.cc: In function 'int main()':
a.cc:13:18: error: expected '}' at end of input
   13 |         return 0;
      |                  ^
a.cc:5:1: note: to match this '{'
    5 | {
      | ^
Language: C++

#include<iostream>
using namespace std;

int main(){

double r;
int x;
cin>>r;

x=3.141592653589;

cout<<r*r*x<<" "<<2*r*x

}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:24: error: expected ';' before '}' token
   12 | cout<<r*r*x<<" "<<2*r*x
      |                        ^
      |                        ;
   13 | 
   14 | }
      | ~
Language: C++

#include<iostream>
using namespace std;

int main(){

double r;
double x;
cin>>r;

x=3.141592653589;

cout<<r*r*x<<" "<<2*r*x

}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:24: error: expected ';' before '}' token
   12 | cout<<r*r*x<<" "<<2*r*x
      |                        ^
      |                        ;
   13 | 
   14 | }
      | ~
Language: C++

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

const double PI = 3.14159265
int main()
{
double r;
cin >> r;
printf("%f %f\n", r * r * PI, 2 * r * PI);
}

Compiler output:
a.cc:6:1: error: expected ',' or ';' before 'int'
    6 | int main()
      | ^~~
Language: C++

#include<math.h>
int main()
{
	int r;
	double s,d;
	
	scanf("%d",&r);
	
	s = (double) r * r * M_PI;
	d = (double) 2 * r * M_PI;
	
	printf("%f %f\n",s,d);
	
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: 'scanf' was not declared in this scope
    7 |         scanf("%d",&r);
      |         ^~~~~
a.cc:12:9: error: 'printf' was not declared in this scope
   12 |         printf("%f %f\n",s,d);
      |         ^~~~~~
a.cc:2:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
    1 | #include<math.h>
  +++ |+#include <cstdio>
    2 | int main()
Language: C++

#include <iostream>
using namespace std;
const PI = 3.14259265359;

int main(){
	double r;
	cin >> r;
	cout << r * r * PI << " " << 2.0 * r * PI << endl;
	return 0;
}

Compiler output:
a.cc:3:7: error: 'PI' does not name a type
    3 | const PI = 3.14259265359;
      |       ^~
a.cc: In function 'int main()':
a.cc:8:25: error: 'PI' was not declared in this scope
    8 |         cout << r * r * PI << " " << 2.0 * r * PI << endl;
      |                         ^~
Language: C++

#include<iostream>
#include<iomanip>

#define PI atan(1.0)*4.0

using namespace std;

int main()
{
	double r;
	cin >> r;

	cout <<fixed<<setprecision(6)<<r*r*PI<<" "<<r*2*PI<<endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:12: error: 'atan' was not declared in this scope
    4 | #define PI atan(1.0)*4.0
      |            ^~~~
a.cc:13:44: note: in expansion of macro 'PI'
   13 |         cout <<fixed<<setprecision(6)<<r*r*PI<<" "<<r*2*PI<<endl;
      |                                            ^~
Language: C++

#include <iostream>
#include <iomanip>

using namespace std;

int main() 
{
    const double PI = atan(1.0) * 4.0;
    double r;
    cin >> r;

    cout << fixed << setprecision(6);
    cout << r * r * PI << " " << 2 * r * PI << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:23: error: 'atan' was not declared in this scope
    8 |     const double PI = atan(1.0) * 4.0;
      |                       ^~~~
Language: C++

#include<stdio.h>
using namespace std;

int main()
{
	double r;
	double f1,f2;

	cin>>r;
	f1=r*r*3.141592653589;
	f2=r*2*3.141592656589;

	printf("%.6lf", f1);
	printf(" ");
	printf("%.6lf\n", f2);
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: 'cin' was not declared in this scope
    9 |         cin>>r;
      |         ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include<stdio.h>
  +++ |+#include <iostream>
    2 | using namespace std;
Language: C++

#include<iostream>
using namespace std;
#define PI 3.1415926535897932384626433
int main()
{
   double r;
   cin >> r;
   cout << r*r*PI << " " << 2*r*PI << endl
   return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:43: error: expected ';' before 'return'
    8 |    cout << r*r*PI << " " << 2*r*PI << endl
      |                                           ^
      |                                           ;
    9 |    return 0;
      |    ~~~~~~
Language: C++

#include<iostream>
#define PI 3.1415926535897932384626433
using namesapace std;
int main()
{
   double r;
   cin >> r
   cout << r*r*PI << " " << 2*r*PI << endl
   return 0;
}

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

#include<iostream>
#define PI 3.1415926535897932384626433
using namesapace std;
int main()
{
   double r;
   cin >> r;
   cout << r*r*PI << " " << 2*r*PI << endl;
   return 0;
}

Compiler output:
a.cc:3:7: error: expected nested-name-specifier before 'namesapace'
    3 | using namesapace std;
      |       ^~~~~~~~~~
a.cc: In function 'int main()':
a.cc:7:4: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |    cin >> r;
      |    ^~~
      |    std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:8:4: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |    cout << r*r*PI << " " << 2*r*PI << endl;
      |    ^~~~
      |    std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:8:39: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |    cout << r*r*PI << " " << 2*r*PI << endl;
      |                                       ^~~~
      |                                       std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++


	printf ("%6f %6f",s,l);
	return 0;
}

Compiler output:
a.cc:2:16: error: expected constructor, destructor, or type conversion before '(' token
    2 |         printf ("%6f %6f",s,l);
      |                ^
a.cc:3:9: error: expected unqualified-id before 'return'
    3 |         return 0;
      |         ^~~~~~
a.cc:4:1: error: expected declaration before '}' token
    4 | }
      | ^
Language: C++

import math
r =float(raw_input())
cs =math.pi*r**2
cf =2*math.pi*r
print ("%.7f %.7f")%(cs,cf)

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import math
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
Language: C++

#include <iostream>
using namespace std;

int main()
{
	long long double a;
	cin >> a;
	cout << 3.141592653589*2*a << " " << 3.141592653589*a*a << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:14: error: 'long long' specified with 'double'
    6 |         long long double a;
      |              ^~~~
Language: C++

#include <iostream>
using namespace std;

int main()
{
	double a;
	cin >> a;
	cout << floor(3.141592653589*2*a*100000)/100000 << " " << floor(3.141592653589*a*a*100000)*100000 << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:17: error: 'floor' was not declared in this scope
    8 |         cout << floor(3.141592653589*2*a*100000)/100000 << " " << floor(3.141592653589*a*a*100000)*100000 << endl;
      |                 ^~~~~
Language: C++

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

int main()
{
	long double a;
	cin >> a;
	cout << foxed << setprecision(5) << 3.141592653589*2*a << " ";
	cout << foxed << setprecision(5) << 3.141592653589*a*a << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:17: error: 'foxed' was not declared in this scope
    9 |         cout << foxed << setprecision(5) << 3.141592653589*2*a << " ";
      |                 ^~~~~
Language: C++

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

int main() {
	double r,l;
cin >> r;

l=r*3.141592653589;

printf("%lf", &l);
	return 0;
}

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

int main(void)
{
    double r=0.0,s=0.0,l=0.0;
    //3.141592653589
    scanf("%lf",&r);
    s=r*r*3.141592653589;
    l=2*3.141592653589*r;
    printf("%.6lf %.6lf\n",s,l);
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:5: error: 'scanf' was not declared in this scope
    5 |     scanf("%lf",&r);
      |     ^~~~~
a.cc:8:5: error: 'printf' was not declared in this scope
    8 |     printf("%.6lf %.6lf\n",s,l);
      |     ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main(void)
Language: C++

int main(void)
{
    double r=0.0,s=0.0,l=0.0;
    scanf("%lf",&r);
    s=r*r*3.141592653589;
    l=2*3.141592653589*r;
    printf("%.6lf %.6lf\n",s,l);
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:5: error: 'scanf' was not declared in this scope
    4 |     scanf("%lf",&r);
      |     ^~~~~
a.cc:7:5: error: 'printf' was not declared in this scope
    7 |     printf("%.6lf %.6lf\n",s,l);
      |     ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main(void)
Language: C++

#include <stdio.h>
#include <stdlib.h>
#include <math.h>

int main(){
    int r;
    scanf( "%d",&r );
    printf( "%d",r * r * PI );
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:26: error: 'PI' was not declared in this scope
    8 |     printf( "%d",r * r * PI );
      |                          ^~
Language: C++

#include <stdio.h>
#include <stdlib.h>
#include <math.h>

#define PI 3.1415926535

int main(){
    float r;
    scanf( "%f",&r );
    printf( "%f %f\n,r * 2 * PI,r * r * PI );
    return 0;
}

Compiler output:
a.cc:10:13: warning: missing terminating " character
   10 |     printf( "%f %f\n,r * 2 * PI,r * r * PI );
      |             ^
a.cc:10:13: error: missing terminating " character
   10 |     printf( "%f %f\n,r * 2 * PI,r * r * PI );
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:11:5: error: expected primary-expression before 'return'
   11 |     return 0;
      |     ^~~~~~
Language: C++

#include <iostream>
#include <cstdio>

int main(void)
{
double a;
cin << a;
printf("%.7f %.7f\n", a*a*3.141579, 2*a*3.141579);
return 0;
}

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

#include<iostream>
using namespace std;

int main(){
	double a,b,r;
	cin>>r;

	a=2*r*3.141592
	b=r*r*3.141592

	cout<<a<<" "<<b<<endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:23: error: expected ';' before 'b'
    8 |         a=2*r*3.141592
      |                       ^
      |                       ;
    9 |         b=r*r*3.141592
      |         ~
Language: C++

#include <stdio.h>
#define M_PI 3.14159265358979
int main(){
	int r;
	scanf_s("%d", &r);
	printf("%f %f", (double)r*r*M_PI, (double)2 * r*M_PI);
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
    5 |         scanf_s("%d", &r);
      |         ^~~~~~~
      |         scanf
Language: Java

import java.io.*;

public class Main{
	public static void main(String[] args){
		InputStreamReader isr = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(isr);
		try{
			String str = br.readLine();
			x = Integer.parseInt(str);
		}catch(Exception e){
			x = 0;
		}

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

Compiler output:
Main.java:9: error: cannot find symbol
			x = Integer.parseInt(str);
			^
  symbol:   variable x
  location: class Main
Main.java:11: error: cannot find symbol
			x = 0;
			^
  symbol:   variable x
  location: class Main
Main.java:14: error: cannot find symbol
		System.out.println(x * x * x);
		                   ^
  symbol:   variable x
  location: class Main
Main.java:14: error: cannot find symbol
		System.out.println(x * x * x);
		                       ^
  symbol:   variable x
  location: class Main
Main.java:14: error: cannot find symbol
		System.out.println(x * x * x);
		                           ^
  symbol:   variable x
  location: class Main
5 errors
Language: Java

import java.io.*;

public class Hello{
	public static void main(String[] args){
		InputStreamReader isr = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(isr);
		int x;
		try{
			String str = br.readLine();
			x = Integer.parseInt(str);
		}catch(Exception e){
			x = 0;
		}

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

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

import java.io.*;
import java.util.Scanner;
public class xcubic {
    public static void main(String[] args) {
            Scanner in = new Scanner(System.in);
            int i = in.nextInt();
            System.out.println((int)Math.pow(i, 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.io.*;
import java.util.Scanner;
public class Xcubic {
    public static void main(String[] args) {
            Scanner in = new Scanner(System.in);
            int i = in.nextInt();
            System.out.println((int)Math.pow(i, 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

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

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

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

Compiler output:
Main.java:5: error: incompatible types: String cannot be converted to int
                 int a = scan.next();
                                  ^
1 error
Language: Java

class Main {
    final BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

    public static void main(final String[] args) throws IOException {
        final int x = Integer.parseInt(br.next());
        System.out.pritnln(x * x * x);
    }
}

Compiler output:
Main.java:2: error: cannot find symbol
    final BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
          ^
  symbol:   class BufferedReader
  location: class Main
Main.java:4: error: cannot find symbol
    public static void main(final String[] args) throws IOException {
                                                        ^
  symbol:   class IOException
  location: class Main
Main.java:2: error: cannot find symbol
    final BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
                                  ^
  symbol:   class BufferedReader
  location: class Main
Main.java:2: error: cannot find symbol
    final BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
                                                     ^
  symbol:   class InputStreamReader
  location: class Main
Main.java:5: error: non-static variable br cannot be referenced from a static context
        final int x = Integer.parseInt(br.next());
                                       ^
Main.java:6: error: cannot find symbol
        System.out.pritnln(x * x * x);
                  ^
  symbol:   method pritnln(int)
  location: variable out of type PrintStream
6 errors
Language: Java

import java.io.*;

class Main {
    final BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

    public static void main(final String[] args) throws IOException {
        final int x = Integer.parseInt(br.next());
        System.out.pritnln(x * x * x);
    }
}

Compiler output:
Main.java:7: error: non-static variable br cannot be referenced from a static context
        final int x = Integer.parseInt(br.next());
                                       ^
Main.java:7: error: cannot find symbol
        final int x = Integer.parseInt(br.next());
                                         ^
  symbol:   method next()
  location: variable br of type BufferedReader
Main.java:8: error: cannot find symbol
        System.out.pritnln(x * x * x);
                  ^
  symbol:   method pritnln(int)
  location: variable out of type PrintStream
3 errors
Language: Java

import java.io.*;

class Main {
    final BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

    public static void main(final String[] args) throws IOException {
        final int x = Integer.parseInt(br.readLine());
        System.out.pritnln(x * x * x);
    }
}

Compiler output:
Main.java:7: error: non-static variable br cannot be referenced from a static context
        final int x = Integer.parseInt(br.readLine());
                                       ^
Main.java:8: error: cannot find symbol
        System.out.pritnln(x * x * x);
                  ^
  symbol:   method pritnln(int)
  location: variable out of type PrintStream
2 errors
Language: Java

import java.io.*;

class Main {
    final BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

    public static void main(final String[] args) throws IOException {
        final int x = Integer.parseInt(br.nextLine());
        System.out.pritnln(x * x * x);
    }
}

Compiler output:
Main.java:7: error: non-static variable br cannot be referenced from a static context
        final int x = Integer.parseInt(br.nextLine());
                                       ^
Main.java:7: error: cannot find symbol
        final int x = Integer.parseInt(br.nextLine());
                                         ^
  symbol:   method nextLine()
  location: variable br of type BufferedReader
Main.java:8: error: cannot find symbol
        System.out.pritnln(x * x * x);
                  ^
  symbol:   method pritnln(int)
  location: variable out of type PrintStream
3 errors
Language: Java

import java.io.*;

class Main {
    final static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

    public static void main(final String[] args) throws IOException {
        final int x = Integer.parseInt(br.readLine());
        System.out.pritnln(x * x * x);
    }
}

Compiler output:
Main.java:8: error: cannot find symbol
        System.out.pritnln(x * x * x);
                  ^
  symbol:   method pritnln(int)
  location: variable out of type PrintStream
1 error
Language: Java

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

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

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

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

improt java.util.Scanner;

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

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

import java.io.*;

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

Compiler output:
Main.java:7: error: unreported exception IOException; must be caught or declared to be thrown
  String line = reader.readLine();
                               ^
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();
		int answer = (int)(Math.pow(x, 3)); /* ??????????????????3???????????????*/;
		System.out.println(answer);
	}
}

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

	public static void main(String[] args){



	int x =2;

	int y =3;

	System.out.println("2 no3joukekka"+(x*x*x)+"desu");

	System.out.println("3 no3joukekka"+(y*y*y)+"desu");

	}

	}

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

import java.util.Scanner;

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

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

import java.util.Scanner;
public class Sannjyou{
	public static void main(String[] args){
		Scanner sc=new Scanner(System.in);
		int x=sc.nextInt();
		int answer=x^3;
		System.out.println(answer);
	}
}

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

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

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

import java.io.*;

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

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

import java .util.Scanner;

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

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

import java.util.Scanner;

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

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

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

Compiler output:
Main.java:2: 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 class X Cubic{
	public static void main(String[] args){
	Scanner sc=new Scanner(System.in);
	int x=sc.nextInt();
	int answer =x*x*x;
	System.out.println(answer);
	}
}

Compiler output:
Main.java:2: error: '{' expected
public class X Cubic{
              ^
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();
int answer = Math.pow(x,3);
System.out.println(answer);}}

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


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

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

import java.io.*;

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

	InputStreamReader isr = new InputStreamReader(System.in);
	BufferedReader br = new BufferedReader(isr);
	
	String buf = br.readLine();
	
	int num = Integer.parseInt(buf);

	System.out.println(num);
    }
}

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

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

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

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

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

Compiler output:
Main.java:3: error: ';' expected
		int x = new java.util.Scanner (System.in).nextInt());
		                                                   ^
1 error
Language: Java

public class Main {

	public static void main(String[] args) {
		// TODO ティツ?ェテ・ツ仰陛ァツ板淌ヲツ按静」ツ?陛」ツつ古」ツ?淌」ツδ。テ」ツつステ」ツδε」ツδ嘉」ツδサテ」ツつケテ」ツつソテ」ツδ?
		System.out.println(x*x*x);
	}

}

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

public class Main {

	public static void main(String[] args) {
        BufferedReader read = new BufferedReader(
                new java.io.InputStreamReader(System.in));
        int x;
		// TODO ティツ?ェテ・ツ仰陛ァツ板淌ヲツ按静」ツ?陛」ツつ古」ツ?淌」ツδ。テ」ツつステ」ツδε」ツδ嘉」ツδサテ」ツつケテ」ツつソテ」ツδ?
		System.out.println(x*x*x);
	}

}

Compiler output:
Main.java:4: error: cannot find symbol
        BufferedReader read = new BufferedReader(
        ^
  symbol:   class BufferedReader
  location: class Main
Main.java:4: error: cannot find symbol
        BufferedReader read = new BufferedReader(
                                  ^
  symbol:   class BufferedReader
  location: class Main
2 errors
Language: Java

public class XCubic {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		System.out.println("??´??°?????\?????????????????????");
		int x = new java.util.Scanner(System.in).nextInt();
		int CubicX = x*x*x;
		System.out.println(CubicX);
		

	}

}

Compiler output:
Main.java:5: error: illegal escape character
		System.out.println("???????????\?????????????????????");
		                                ^
1 error
Language: Java

import java.io.*;

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

    BufferedReader br = new BufferedReader(new InputStreamReader(System.in),1);

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

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

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

        BufferedReader br = new BufferedReader(is);

        String str = br.readLine();
		
		int x = Integer.parseInt(str);
		
		System.out.println(x*x*x);
	}
}

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

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

        BufferedReader br = new BufferedReader(is);

        String str 
		
		try{
			str = br.readLine();
			
		}catch(Exceptin e){
		}
		int x = Integer.parseInt(str);
			
		System.out.println(x*x*x);
	}
}

Compiler output:
Main.java:9: error: ';' expected
        String str 
                  ^
1 error
Language: Java

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

        BufferedReader br = new BufferedReader(is);

        String str;
		
		try{
			str = br.readLine();
			
		}catch(Exceptin e){
		}
		int x = Integer.parseInt(str);
			
		System.out.println(x*x*x);
	}
}

Compiler output:
Main.java:14: error: cannot find symbol
		}catch(Exceptin e){
		       ^
  symbol:   class Exceptin
  location: class Main
1 error
Language: Java

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

        BufferedReader br = new BufferedReader(is);

        String str;
		
		try{
			str = br.readLine();
			
		}catch(Exception e){
		}
		int x = Integer.parseInt(str);
			
		System.out.println(x*x*x);
	}
}

Compiler output:
Main.java:16: error: variable str might not have been initialized
		int x = Integer.parseInt(str);
		                         ^
1 error
Language: Java

import java.io.*;
public class Main{
	public static void main(String[] args){
		
		int x = System.out.read();
					
		System.out.println(x*x*x);
	}
}

Compiler output:
Main.java:5: error: cannot find symbol
		int x = System.out.read();
		                  ^
  symbol:   method read()
  location: variable out of type PrintStream
1 error
Language: Java

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

Compiler output:
Main.java:7: error: unreported exception IOException; must be caught or declared to be thrown
		String s = d.readLine();
		                     ^
Note: Main.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
1 error
Language: Java

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

Compiler output:
Main.java:7: error: cannot find symbol
		System.ou.println(a*a*a);
		      ^
  symbol:   variable ou
  location: class System
1 error
Language: Java

import java.util.Scanner;

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

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

import java.util.Scanner;

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

        int x = scan.nextInt();

        System.out.println(pow(x, 3));
    }
}

Compiler output:
Main.java:9: error: cannot find symbol
        System.out.println(pow(x, 3));
                           ^
  symbol:   method pow(int,int)
  location: class Main
1 error
Language: Java

import java.util.Scanner;

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

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

import java.util.Scanner;
public class Cubic {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner sc =new Scanner(System.in);
		int x = sc.nextInt();
		int answer = x * x * x;
		System.out.println(answer);
		sc.close();
	}

}

Compiler output:
Main.java:2: 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 class Xcublic {
	public static void main(String[]args){
		Scanner sc = new Scanner(System.in);
	int x =	sc.nextInt();
	int answer = x*x*x;
	System.out.println(answer); 
	}
}

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

import java.util.Scanner;

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

Compiler output:
Main.java:3: error: class, interface, enum, or record expected
Public class Xcublic {
^
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();
	int answer = x*x*x;
	System.out.println(answer); 
	}
}

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 xcubic {
    public static void main(String[] args){
    	Scanner sc = new Scanner (System.in);

    	int x = sc.nextInt();
    	int answer = x*x*x;
        System.out.println(answer);
    }
}

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

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

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

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

import java.util.Scanner;

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

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

import java.util.Scanner;

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

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