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

#include <iostream>
using namespace std;


int main(void){

int x,y,d,r;
float f;
cin >> x >> y;

  d = x / y;
  r = x % y;
  f = (float)x / (float)y;

std::cout << d << " " <<r  << " "  <<　f<< std::endl;
    }


Compiler output:
a.cc:15:38: error: extended character 　 is not valid in an identifier
   15 | std::cout << d << " " <<r  << " "  <<　f<< std::endl;
      |                                      ^
a.cc: In function 'int main()':
a.cc:15:38: error: '\U00003000f' was not declared in this scope
   15 | std::cout << d << " " <<r  << " "  <<　f<< std::endl;
      |                                      ^~~
Language: C++

#include <iostream>
using namespace std;


int main(void){

float x,y,d,r;
double f;
cin >> x >> y;

  d = x / y;
  r = x % y;
  f = (double)x / (double)y;

 cout << d << " " <<r  << " "  <<f<< endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:9: error: invalid operands of types 'float' and 'float' to binary 'operator%'
   12 |   r = x % y;
      |       ~ ^ ~
      |       |   |
      |       |   float
      |       float
Language: C++

#include <iostream>
using namespace std;


int main(void){

float x,y,d,r;
float f;
cin >> x >> y;

  d = x / y;
  r = x % y;
  f = (float)x / (float)y;

 cout << d << " " <<r  << " "  <<f<< endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:9: error: invalid operands of types 'float' and 'float' to binary 'operator%'
   12 |   r = x % y;
      |       ~ ^ ~
      |       |   |
      |       |   float
      |       float
Language: C++

#include<iostream>
#include<iomanip>

int main(){

int a,b;

cout << a/b << ' ' << a%b << ' ' ;
cout << fixed << setprecision(5) << (double) a / b << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 | cout << a/b << ' ' << a%b << ' ' ;
      | ^~~~
      | std::cout
In file included from a.cc:1:
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:9:9: error: 'fixed' was not declared in this scope; did you mean 'std::fixed'?
    9 | cout << fixed << setprecision(5) << (double) a / b << endl;
      |         ^~~~~
      |         std::fixed
In file included from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/bits/ios_base.h:1104:3: note: 'std::fixed' declared here
 1104 |   fixed(ios_base& __base)
      |   ^~~~~
a.cc:9:18: error: 'setprecision' was not declared in this scope; did you mean 'std::setprecision'?
    9 | cout << fixed << setprecision(5) << (double) a / b << endl;
      |                  ^~~~~~~~~~~~
      |                  std::setprecision
In file included from a.cc:2:
/usr/include/c++/14/iomanip:202:3: note: 'std::setprecision' declared here
  202 |   setprecision(int __n)
      |   ^~~~~~~~~~~~
a.cc:9:55: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 | cout << fixed << setprecision(5) << (double) a / b << endl;
      |                                                       ^~~~
      |                                                       std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include <iostream>
using namespace std;
int main(){
float x, y;
cin >> x >> y;
cout << int(x/y) << " "  << int(x%y) << " " << x/y << endl;
}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:34: error: invalid operands of types 'float' and 'float' to binary 'operator%'
    6 | cout << int(x/y) << " "  << int(x%y) << " " << x/y << endl;
      |                                 ~^~
      |                                 | |
      |                                 | float
      |                                 float
a.cc: At global scope:
a.cc:8:1: error: expected declaration before '}' token
    8 | }
      | ^
Language: C++

#include <iostream>
using namespace std;
int main(){
float x, y;
cin >> x >> y;
cout << int(x/y) << " "  << int(x)%int(y) << " " << x/y << endl;
}
}

Compiler output:
a.cc:8:1: error: expected declaration before '}' token
    8 | }
      | ^
Language: C++

#include <iostream>
using namespace std;
int main(){
float x, y;
cin >> x >> y;
cout << int(x)/int(y) << " "  << int(x)%int(y) << " " << x/y << endl;
}
}

Compiler output:
a.cc:8:1: error: expected declaration before '}' token
    8 | }
      | ^
Language: C++

#include <iostream>

int main(){
	int a, b;
	std::cin >> a >> b;
	std::cout << a/b << ' ' << a%b << ' ' << std::setprecision(3) << std::setiosflags(std::ios::scientific) << (double)a/b << std::endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:55: error: 'setprecision' is not a member of 'std'
    6 |         std::cout << a/b << ' ' << a%b << ' ' << std::setprecision(3) << std::setiosflags(std::ios::scientific) << (double)a/b << std::endl;
      |                                                       ^~~~~~~~~~~~
a.cc:2:1: note: 'std::setprecision' is defined in header '<iomanip>'; this is probably fixable by adding '#include <iomanip>'
    1 | #include <iostream>
  +++ |+#include <iomanip>
    2 | 
a.cc:6:79: error: 'setiosflags' is not a member of 'std'
    6 |         std::cout << a/b << ' ' << a%b << ' ' << std::setprecision(3) << std::setiosflags(std::ios::scientific) << (double)a/b << std::endl;
      |                                                                               ^~~~~~~~~~~
a.cc:6:79: note: 'std::setiosflags' is defined in header '<iomanip>'; this is probably fixable by adding '#include <iomanip>'
Language: C++

#include<iostream>
using namespace std;

int main(){
  int a,b,d,r;
  double f;

  cin >> a >> b;

  d = a / b;
  r = a % b;
  f = 1.00000 * a / b;

  cout << d << ' ' << r << ' ' << f << endl;

  return 0;

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

#include <iostream>
using namespace std;

int main()
{
    double a, b;
    int d, r;
    float f;

    cin >> a >> b;

    d = a / b;
    r = a % b;
    f = a / b;
    cout << d << " ";
    cout << r << " ";
    cout << fixed << f << "\n";

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:11: error: invalid operands of types 'double' and 'double' to binary 'operator%'
   13 |     r = a % b;
      |         ~ ^ ~
      |         |   |
      |         |   double
      |         double
Language: C++

#include <iostream>
using namespace std;

int main(void){
	unsigned long long int a, b;
	cin >> a >> b;
	cout << a/b << " " << a%b << " " << (double float)a/(double float)b <<endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:46: error: two or more data types in declaration of 'type name'
    7 |         cout << a/b << " " << a%b << " " << (double float)a/(double float)b <<endl;
      |                                              ^~~~~~
a.cc:7:62: error: two or more data types in declaration of 'type name'
    7 |         cout << a/b << " " << a%b << " " << (double float)a/(double float)b <<endl;
      |                                                              ^~~~~~
Language: C++

#include<iostream>
#include<cstdin>
#include<cmath>
using namespace std;
int main(){
	int a,b;
	int d,r;
	double f;
	cin >> a >> b;
	d=floor(a/b);
	r=a%b;
	f=(double)a/b;
	cout<< d << " " << r << " ";
	printf("%.5f\n",f);
	return 0;
}

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

#include<iostream>
#include<cstdin>
#include<cmath>
using namespace std;
int main(){
	int a,b;
	int d,r;
	double f;
	cin >> a >> b;
	d=floor(a/b);
	r=a%b;
	f=a/b;
	cout<< d << " " << r << " " << f << endl;
	return 0;
}

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

#include<iostream>
#include<cstdin>
using namespace std;
int main(){
	int a,b;
	int d,r;
	double f;
	cin >> a >> b;
	d=(int)a/b;
	r=a%b;
	f=((double)a)/b;
	printf("%d %d %.5f\n",d,r,f);
	return 0;
}

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

#include<iostream>
#include<cstdin>
using namespace std;
int main(){
	int a,b;
	int d,r;
	double f;
	cin >> a >> b;
	d=(int)a/b;
	r=a%b;
	f=((double)a)/b;
	printf("%d %d %.5f\n",a/b,a%b,(double)a/b);
	return 0;
}

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

#include <iostream>
using namespace std;

int main() {
int a,b,c,d,e;
cout << a << b;
c= a/b;
d= a%b;
a= a+ 0.000000001;
e= a/b;
cout << c << " " << d << " " << e<< endl;

}
	return 0;
}

Compiler output:
a.cc:14:9: error: expected unqualified-id before 'return'
   14 |         return 0;
      |         ^~~~~~
a.cc:15:1: error: expected declaration before '}' token
   15 | }
      | ^
Language: C++

#include <iostream>
using namespace std;

int main() {
int a,b,c,d,e;
cin >> a >> b;
c= a/b;
d= a%b;
a= a+ 0.000000001;
e= a/b;
cout << c << " " << d << " " << e<< endl;

}
	return 0;
}

Compiler output:
a.cc:14:9: error: expected unqualified-id before 'return'
   14 |         return 0;
      |         ^~~~~~
a.cc:15:1: error: expected declaration before '}' token
   15 | }
      | ^
Language: C++

#include <iostream>
using namespace std;

int main() {
int a,b,c,d,;
double e;
cin >> a >> b;
c= a/b;
d= a%b;
e= ((double) a)/b;
cout << c << " " << d << " " << e<< endl;

}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:13: error: expected unqualified-id before ';' token
    5 | int a,b,c,d,;
      |             ^
a.cc: At global scope:
a.cc:14:9: error: expected unqualified-id before 'return'
   14 |         return 0;
      |         ^~~~~~
a.cc:15:1: error: expected declaration before '}' token
   15 | }
      | ^
Language: C++

#include <iostream>
using namespace std;

int main() {
int a,b,c,d,;
double e;
cin >> a >> b;
c= a/b;
d= a%b;
e= ((double) a)/b;
cout << c << " " << d << " " << e << endl;
}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:13: error: expected unqualified-id before ';' token
    5 | int a,b,c,d,;
      |             ^
a.cc: At global scope:
a.cc:13:9: error: expected unqualified-id before 'return'
   13 |         return 0;
      |         ^~~~~~
a.cc:14:1: error: expected declaration before '}' token
   14 | }
      | ^
Language: C++

#include <iostream>
using namespace std;

int main() {
int a,b,c,d,;
double e;
scanf("%d %d",&a,&b);
c=a/b;
d=a%b;
e=1.0*a/b;
printf ("%d %d %f\n" ,c,d,e)
}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:13: error: expected unqualified-id before ';' token
    5 | int a,b,c,d,;
      |             ^
a.cc:11:29: error: expected ';' before '}' token
   11 | printf ("%d %d %f\n" ,c,d,e)
      |                             ^
      |                             ;
   12 | }
      | ~                            
a.cc: At global scope:
a.cc:13:9: error: expected unqualified-id before 'return'
   13 |         return 0;
      |         ^~~~~~
a.cc:14:1: error: expected declaration before '}' token
   14 | }
      | ^
Language: C++

#include <iostream>
using namespace std;

int main() {
int a,b,c,d,;
double e;
scanf("%d %d",&a,&b);
c=a/b;
d=a%b;
e=1.0*a/b;
printf ("%d %d %f\n" ,c,d,e);
}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:13: error: expected unqualified-id before ';' token
    5 | int a,b,c,d,;
      |             ^
a.cc: At global scope:
a.cc:13:9: error: expected unqualified-id before 'return'
   13 |         return 0;
      |         ^~~~~~
a.cc:14:1: error: expected declaration before '}' token
   14 | }
      | ^
Language: C++

#include <iostream>
using namespace std;

int main() {
int a,b,c,d,;
double e;
scanf("%d %d",&a,&b);
c=a/b;
d=a%b;
e=(double)a/b;
printf ("%d %d %f\n" ,c,d,e);
}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:13: error: expected unqualified-id before ';' token
    5 | int a,b,c,d,;
      |             ^
a.cc: At global scope:
a.cc:13:9: error: expected unqualified-id before 'return'
   13 |         return 0;
      |         ^~~~~~
a.cc:14:1: error: expected declaration before '}' token
   14 | }
      | ^
Language: C++

#include <iostream>
using namespace std;

int main() {
int a,b,c,d;
double e;
scanf("%d %d",&a,&b);
c=a/b;
d=a%b;
e=(double)a/b;
printf ("%d %d %f\n" ,c,d,e);
}
	return 0;
}

Compiler output:
a.cc:13:9: error: expected unqualified-id before 'return'
   13 |         return 0;
      |         ^~~~~~
a.cc:14:1: error: expected declaration before '}' token
   14 | }
      | ^
Language: C++

#include <iostream>
using namespace std;

int main() {
int a,b;
scanf("%d %d",&a,&b);
printf ("%d %d %f\n" ,a/b,a%b,(double)a/b);
}
	return 0;
}

Compiler output:
a.cc:9:9: error: expected unqualified-id before 'return'
    9 |         return 0;
      |         ^~~~~~
a.cc:10:1: error: expected declaration before '}' token
   10 | }
      | ^
Language: C++

#include <iostream>
using namespace std;

int main() {
int a,b;
scanf("%d %d",&a,&b);
printf ("%d %d %.5f\n" ,a/b,a%b,(double)a/b);
}
	return 0;
}

Compiler output:
a.cc:9:9: error: expected unqualified-id before 'return'
    9 |         return 0;
      |         ^~~~~~
a.cc:10:1: error: expected declaration before '}' token
   10 | }
      | ^
Language: C++

#include <iostream>
using namespace std;

int main() {
int a,b,d,r;
double f;
scanf("%d %d",&a,&b);
d=a/b;
r=a%b;
f=(double)a/b;
printf("%d %d %f\n",d,r,f);
}
	return 0;
}

Compiler output:
a.cc:13:9: error: expected unqualified-id before 'return'
   13 |         return 0;
      |         ^~~~~~
a.cc:14:1: error: expected declaration before '}' token
   14 | }
      | ^
Language: C++

// A/B Problem

#include <iosteam>
using namespace std;

int main(){
// Variables
int   a, b; // 1 ??? a, b ??? 10^9
int   d   ; // 1 ??? d    ??? 10^9
int   r   ; // 0 ??? r    ??? 10^9
float f   ; // 

// Read two num
cin >> a >> b ;

// Computation
d = a + b;
r = a % b;
f = a / b;

// Print
printf("%d %d %.5lf\n", d, r, f);

// RC
return 0;
}

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

// A/B Problem

#include <iosteam>
using namespace std;

int main(){
// Variables
int   a, b; 
int   d   ; 
int   r   ; 
float f   ; 

// Read two num
cin >> a >> b ;

// Computation
d = a + b;
r = a % b;
f = a / b;

// Print
printf("%d %d %.5lf\n", d, r, f);

// RC
return 0;
}

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

// A/B Problem

#include <iosteam>
#incdlue <stdio>

using namespace std;

int main(){
// Variables
int   a, b; 
int   d   ; 
int   r   ; 
float f   ; 

// Read two num
cin >> a >> b ;

// Computation
d = a + b;
r = a % b;
f = a / b;

// Print
printf("%d %d %.5lf\n", d, r, f);

// RC
return 0;
}

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

// A/B Problem

#include <iostream>
#incdlue <stdio>

using namespace std;

int main(){
// Variables
int   a, b; 
int   d   ; 
int   r   ; 
float f   ; 

// Read two num
cin >> a >> b ;

// Computation
d = a + b;
r = a % b;
f = a / b;

// Print
printf("%d %d %.5lf\n", d, r, f);

// RC
return 0;
}

Compiler output:
a.cc:4:2: error: invalid preprocessing directive #incdlue; did you mean #include?
    4 | #incdlue <stdio>
      |  ^~~~~~~
      |  include
Language: C++

// A/B Problem

#include <iosteam>
#include <stdio>

using namespace std;

int main(){
// Variables
int   a, b; 
int   d   ; 
int   r   ; 
float f   ; 

// Read two num
cin >> a >> b ;

// Computation
d = a + b;
r = a % b;
f = a / b;

// Print
printf("%d %d %.5lf\n", d, r, f);

// RC
return 0;
}

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

#include <iostream>
using namespace std;
int main (void){

  int a,b,d,r;
  double f;

  cin >>a>>b;

  d=a/b;
  r=a%b;
  f=(double)a/(double)b;


  if(1<=a && b<=10^9){
    printf("%d %d %.5lf\n",d,r,f);
  }

  return 0;

Compiler output:
a.cc: In function 'int main()':
a.cc:19:12: error: expected '}' at end of input
   19 |   return 0;
      |            ^
a.cc:3:16: note: to match this '{'
    3 | int main (void){
      |                ^
Language: C++

#include<iostream>
using namespace std;

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

  d = a/b;
  r = a%b;
  f =(double)a/(double)b;
  cout << d << " " <<  r << " " << setprecision( 5 ) << f <<endl;

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:36: error: 'setprecision' was not declared in this scope
   13 |   cout << d << " " <<  r << " " << setprecision( 5 ) << f <<endl;
      |                                    ^~~~~~~~~~~~
a.cc:2:1: note: 'std::setprecision' is defined in header '<iomanip>'; this is probably fixable by adding '#include <iomanip>'
    1 | #include<iostream>
  +++ |+#include <iomanip>
    2 | using namespace std;
Language: C++

#include <iostream> #include <iomanip>   using namespace std;   int main() {     int a, b;       cin >> a >> b;     cout << a/b << " " << a%b << " "            << fixed << setprecision(5)             << (double)a/b << endl;       return 0; } 

Compiler output:
a.cc:1:21: warning: extra tokens at end of #include directive
    1 | #include <iostream> #include <iomanip>   using namespace std;   int main() {     int a, b;       cin >> a >> b;     cout << a/b << " " << a%b << " "            << fixed << setprecision(5)             << (double)a/b << endl;       return 0; }
      |                     ^
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: Java

import java.util.Scanner;

public class Cord {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		double a =sc.nextDouble();
		System.out.printf("%.6f %.6f\n",a*a*Math.PI,2*a*Math.PI);
	}
}



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

package itp01;

import java.util.Scanner;

public class Aim {

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

		int r = stdIn.nextInt();
		
		double l = 2 * Math.PI * r;
		double s = r * r * Math.PI;
		System.out.printf("%.10f %.10f\n", l, s);
	}
}



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

package itp01;

import java.util.Scanner;

public class ITP1_04_A {

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

		int r = stdIn.nextInt();
		
		double l = 2 * Math.PI * r;
		double s = r * r * Math.PI;
		System.out.printf("%.10f %.10f\n", l, s);
	}
}



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

import java.util.Scanner;
 
public class Main
{
 
    public static void main(String[] args)
    {
        Scanner scan = new Scanner(System.in);
double r = scan.nextDouble();
double pai=3.14;
double men =r*r*pai;
double naga= r*2*pai;

System.out.printf("%f8 ,%f8"men,naga);

}
}



Compiler output:
Main.java:14: error: ')' or ',' expected
System.out.printf("%f8 ,%f8"men,naga);
                            ^
Main.java:14: error: ';' expected
System.out.printf("%f8 ,%f8"men,naga);
                               ^
Main.java:14: error: not a statement
System.out.printf("%f8 ,%f8"men,naga);
                                ^
Main.java:14: error: ';' expected
System.out.printf("%f8 ,%f8"men,naga);
                                    ^
4 errors
Language: Java

import java.util.Scanner;
 
public class Main
{
 
    public static void main(String[] args)
    {
        Scanner scan = new Scanner(System.in);
double r = scan.nextDouble();
double pai=3.14;
double men =r*r*pai;
double naga= r*2*pai;

System.out.printf("%.f8 ,%.f8"men,naga);

}
}



Compiler output:
Main.java:14: error: ')' or ',' expected
System.out.printf("%.f8 ,%.f8"men,naga);
                              ^
Main.java:14: error: ';' expected
System.out.printf("%.f8 ,%.f8"men,naga);
                                 ^
Main.java:14: error: not a statement
System.out.printf("%.f8 ,%.f8"men,naga);
                                  ^
Main.java:14: error: ';' expected
System.out.printf("%.f8 ,%.f8"men,naga);
                                      ^
4 errors
Language: Java

import java.util.Scanner;
 
public class Main
{
 
    public static void main(String[] args)
    {
        Scanner scan = new Scanner(System.in);
double r = scan.nextDouble();
double pai=3.14;
double men =r*r*pai;
double naga= r*2*pai;

System.out.printf("%.8f" "%.8f", men, naga);

}
}



Compiler output:
Main.java:14: error: ')' or ',' expected
System.out.printf("%.8f" "%.8f", men, naga);
                        ^
Main.java:14: error: not a statement
System.out.printf("%.8f" "%.8f", men, naga);
                                 ^
Main.java:14: error: ';' expected
System.out.printf("%.8f" "%.8f", men, naga);
                                    ^
Main.java:14: error: not a statement
System.out.printf("%.8f" "%.8f", men, naga);
                                      ^
Main.java:14: error: ';' expected
System.out.printf("%.8f" "%.8f", men, naga);
                                          ^
5 errors
Language: Java

import java.util.Scanner;
 
class Main{
  public static void main(String args[]){
    Scanner sc = new Scanner(System.in);
    int r = sc.nextInt();
    System.out.println(String.format("%.6f",r*r*PI));
  }
}


Compiler output:
Main.java:7: error: cannot find symbol
    System.out.println(String.format("%.6f",r*r*PI));
                                                ^
  symbol:   variable PI
  location: class Main
1 error
Language: Java

import java.io.*;

public class AOJ5{
    public static void main(String[] args){
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        try{
            String line = reader.readLine();
            double r = Double.parseDouble(line);
            double S = r * r * Math.PI;
            double L = 2 * r * Math.PI;
            System.out.println(S+" "+L);
        }catch(NumberFormatException e){
            System.out.println(e);
        }catch(IOException e){
            System.out.println(e);
        }
    }
}


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

import java.util.Scanner;

public class Main{
	public static void main(String[] args){
        
        Scanner sc = new Scanner(System.in);
        
        int r = sc.nextDouble();
        System.out.println(String.format("%.6f",r*r*3.14159265));
        System.out.println(String.format("%.6f",2*r*3.14159265));
   }
}


Compiler output:
Main.java:8: error: incompatible types: possible lossy conversion from double to int
        int r = sc.nextDouble();
                             ^
1 error
Language: Java

import java.util.Scanner;

public class MyClass{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        double x = Math.PI;
        double r = sc.nextInt();
        
        double m=r*r*x;
        double n=(r+r)*x;
        
        System.out.printf("%.6f\n",m);
            System.out.printf("%.6f\n",n);
    }
}


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

import java.util.Scanner;


public class Circle {
public static void main(String[] args){
	Scanner sc = new Scanner(System.in);
	int r = sc.nextInt();
	sc.close();
	System.out.printf("%f %f", r*r* Math.PI, 2*r* Math.PI );
}
}

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

import java.util.Scanner;


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

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

import java.util.*;


public class Main2 {
	public static void main(String[] args){
		double r, ce, cf;
		Scanner sc = new Scanner(System.in);
		r = sc.nextInt();
		//キーボードからr(半径の値)を入力
		ce = Math.pow(r,2)*Math.PI;
		//円の面積
		cf = 2*r*Math.PI;
		//円周
		System.out.printf("%f %f",ce,cf);
	}
}

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

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

public class Main2 {
	public static void main(String[] args) throws IOException{
		double r, ce, cf;
		Scanner sc = new Scanner(System.in);
		r = sc.nextInt();
		//キーボードからr(半径の値)を入出力
		ce = Math.pow(r,2)*Math.PI;
		//円の面積⇒r二乗*円周率
		cf = 2*r*Math.PI;
		//円周⇒2*r*円周率
		System.out.printf("%f %f",ce,cf);
		//計算結果を10進数の形式で出力
	}
}

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



public class Main {
	private void calc(){
		Scanner scanner = new Scanner(System.in);
		double r =scanner.nextInt();
		double s = r*r*Math.PI;
		double l = 2.0*r*Math.PI;
		System.out.printf("%05f %05f", s, l);
	}
	
	public static void main(String[] args) {
		Main run =new Main();
		run.calc();

	}
}

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

import java.util.Scanner;
public class ITP1_4_B {
	public static void main(String[] args)  {
		Scanner sc = new Scanner(System.in);
		double r = sc.nextInt();
		System.out.println(r*r*3.14159+" "+r*3.14159*2);
	}

}

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

import java.util.Scanner;
public class ITP1_4_B {
	public static void main(String[] args) {
		 Scanner sc = new Scanner(System.in);
		 double r;
		 r = sc.nextDouble();         
		 System.out.printf("%.6f %.6f\n",r*r*Math.PI,2*r*Math.PI); 
	}

}

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

import java.util.Scanner;
public class ITP1_4_B {
	public static void main(String[] args)  {
		Scanner sc = new Scanner(System.in);
		double r = sc.nextInt();
		double menseki =r*r*3.14159265,enshu =r*2*3.14159265;
		System.out.printf("%.6f %.6f\n",menseki,enshu);
	}
}

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

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.math.BigDecimal;

public class Main {
    public static void main(String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line = br.readLine();
        BigDecimal bm = new BigDecimal(line);
        BigDecimal circum = new BigDecimal(bm.toPlainString());
        circum = circum.multiply(new BigDecimal(2),MathContext.DECIMAL64).multiply(new BigDecimal(Math.PI),MathContext.DECIMAL64);
        BigDecimal area = bm.multiply(bm,MathContext.DECIMAL64).multiply(new BigDecimal(Math.PI),MathContext.DECIMAL64);

        circum = circum.setScale(6,BigDecimal.ROUND_HALF_UP);
        area = area.setScale(6,BigDecimal.ROUND_HALF_UP);
        System.out.println(circum.toPlainString() +" " + area.toPlainString());
    }
}

Compiler output:
Main.java:11: error: cannot find symbol
        circum = circum.multiply(new BigDecimal(2),MathContext.DECIMAL64).multiply(new BigDecimal(Math.PI),MathContext.DECIMAL64);
                                                                                                           ^
  symbol:   variable MathContext
  location: class Main
Main.java:11: error: cannot find symbol
        circum = circum.multiply(new BigDecimal(2),MathContext.DECIMAL64).multiply(new BigDecimal(Math.PI),MathContext.DECIMAL64);
                                                   ^
  symbol:   variable MathContext
  location: class Main
Main.java:12: error: cannot find symbol
        BigDecimal area = bm.multiply(bm,MathContext.DECIMAL64).multiply(new BigDecimal(Math.PI),MathContext.DECIMAL64);
                                                                                                 ^
  symbol:   variable MathContext
  location: class Main
Main.java:12: error: cannot find symbol
        BigDecimal area = bm.multiply(bm,MathContext.DECIMAL64).multiply(new BigDecimal(Math.PI),MathContext.DECIMAL64);
                                         ^
  symbol:   variable MathContext
  location: class Main
Note: Main.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
4 errors
Language: Java

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

        String str = br.readLine();

        double r = Double.parseDouble(str);
 
        double menseki =(double)r * (double)r * 3.141592653589;
        double ensyu =(double)2 * 3.141592653589 * (double)r;

         System.out.printf("%.6f %.6f\n", menseki, ensyu);
    }
}

Compiler output:
Main.java:1: error: class, interface, enum, or record expected
mport java.io.*;
^
1 error
Language: Java

import java.util.Scanner;

public class test00 {
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int r = scan.nextInt();
		double dbCir = (r * 2.0 * Math.PI);
		double dbArea = (r * r * Math.PI);

		System.out.println(dbCir + " " + dbArea);
		scan.close();
	}
}

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

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

Class Main{
	public static void main(String args) throws IOException {
		BufferedReader br = new BufferdReader(new InputStreamReader(System.in));
		double r = Double.parseDouble(in.readLine());
		double pi = Math.PI;
		double x = r*r*pi;
		double y = 2*r*pi;
		System.out.printf("%.6f %.6f",x,y);
	}
}

Compiler output:
Main.java:5: error: class, interface, enum, or record expected
Class Main{
^
Main.java:6: error: unnamed classes are a preview feature and are disabled by default.
	public static void main(String args) throws IOException {
	              ^
  (use --enable-preview to enable unnamed classes)
Main.java:14: error: class, interface, enum, or record expected
}
^
3 errors
Language: Java

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

Class Main{
	public static void main(String args) throws IOException {
		BufferedReader br = new BufferdReader(new InputStreamReader(System.in));
		double r = Double.parseDouble(br.readLine());
		double pi = Math.PI;
		double x = r*r*pi;
		double y = 2*r*pi;
		System.out.printf("%.6f %.6f",x,y);
	}
}

Compiler output:
Main.java:5: error: class, interface, enum, or record expected
Class Main{
^
Main.java:6: error: unnamed classes are a preview feature and are disabled by default.
	public static void main(String args) throws IOException {
	              ^
  (use --enable-preview to enable unnamed classes)
Main.java:14: error: class, interface, enum, or record expected
}
^
3 errors
Language: Java

import java.util.*;
class Main {
    public static void main(String[]args)throws Exception {
        Scanner sc = new Scanner(System.in);
        double r = sc.nextDouble();
        double a = 3.14159265358979323846 * r * r;
        double l = 3.14159265358979323846 * r * 2;

        NumberFormat format = NumberFormat.getInstance();
        format.setMaximumFractionDigits(5);
        format.setMinimumFractionDigits(5);
        format.setGroupingUsed(false);
        System.out.println("" + format.format(a) + " " + format.format(l));
    }
}

Compiler output:
Main.java:9: error: cannot find symbol
        NumberFormat format = NumberFormat.getInstance();
        ^
  symbol:   class NumberFormat
  location: class Main
Main.java:9: error: cannot find symbol
        NumberFormat format = NumberFormat.getInstance();
                              ^
  symbol:   variable NumberFormat
  location: class Main
2 errors
Language: Java

import java.util.Scanner;

public class Main{
  public static void main(String[] args){
    Scanner in = new Scanner(System.in);
    float r = in.FloatInt();
    double menseki = 3.141592 * r * r;
    double ensyu = 2 * 3.141592 * r;
    
    System.out.printf("%.6f %.6f",menseki,ensyu);
  }
}

Compiler output:
Main.java:6: error: cannot find symbol
    float r = in.FloatInt();
                ^
  symbol:   method FloatInt()
  location: variable in of type Scanner
1 error
Language: Java

import java.util.Scanner;

public class Main{
  public static void main(String[] args){
    Scanner in = new Scanner(System.in);
    double r = in.nextFloat();
    double pi = Math.PI
    double menseki = pi * r * r;
    double ensyu = 2 * pi * r;
    
    System.out.printf("%.6f %6f",menseki,ensyu);
  }
}

Compiler output:
Main.java:7: error: ';' expected
    double pi = Math.PI
                       ^
1 error
Language: Java

import java.util.Scanner;

import com.sun.org.apache.xerces.internal.impl.xpath.regex.Match;

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String str = sc.nextLine();
        int inta = Integer.parseInt(str);

        System.out.printf("%f %f", (double)inta*inta*Math.PI, (inta+inta)*Math.PI );

    }

}

Compiler output:
Main.java:3: error: package com.sun.org.apache.xerces.internal.impl.xpath.regex is not visible
import com.sun.org.apache.xerces.internal.impl.xpath.regex.Match;
                                                    ^
  (package com.sun.org.apache.xerces.internal.impl.xpath.regex is declared in module java.xml, which does not export it)
1 error
Language: Java

import java.util.Scanner;

import com.sun.org.apache.xerces.internal.impl.xpath.regex.Match;

public class Main{

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String str = sc.nextLine();
        double inta = Double.parseDouble(str);

        System.out.printf("%f %f", inta*inta*Math.PI, inta*2*Math.PI );

    }

}

Compiler output:
Main.java:3: error: package com.sun.org.apache.xerces.internal.impl.xpath.regex is not visible
import com.sun.org.apache.xerces.internal.impl.xpath.regex.Match;
                                                    ^
  (package com.sun.org.apache.xerces.internal.impl.xpath.regex is declared in module java.xml, which does not export it)
1 error
Language: Java

import java.util.Scanner;
import java.math.Math;

public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		long r = scan.nextLong();
		
		long men = 2 * r * Math.PI;
		long en = r * r * Math.PI;
		
		System.out.println(String.format("%f %f", men, en));
	}
}

Compiler output:
Main.java:2: error: cannot find symbol
import java.math.Math;
                ^
  symbol:   class Math
  location: package java.math
Main.java:9: error: incompatible types: possible lossy conversion from double to long
		long men = 2 * r * Math.PI;
		                 ^
Main.java:10: error: incompatible types: possible lossy conversion from double to long
		long en = r * r * Math.PI;
		                ^
3 errors
Language: Java

import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		long r = scan.nextLong();
		
		long men = 2 * r * Math.PI;
		long en = r * r * Math.PI;
		
		System.out.println(String.format("%f %f", men, en));
	}
}

Compiler output:
Main.java:8: error: incompatible types: possible lossy conversion from double to long
		long men = 2 * r * Math.PI;
		                 ^
Main.java:9: error: incompatible types: possible lossy conversion from double to long
		long en = r * r * Math.PI;
		                ^
2 errors
Language: Java

import java.util.Scanner;

public class Main
{

	public static void main(String[] args)
	{
		Scanner in =new Scanner(System.in);
		double r;
		double pi = 3.1415926535897932384626433 ;
		System.out.printf("%.8f %.8f", r*r*pi,2*r*pi);
		
	}

}

Compiler output:
Main.java:11: error: variable r might not have been initialized
		System.out.printf("%.8f %.8f", r*r*pi,2*r*pi);
		                               ^
1 error
Language: Java

import java.utill.Scanner;
class Main{
public static void main(String[] args){
Scanner scan=new Scanner(System.in);
int r=scan,nextInt();
double a=(double)r*(double)r*3.14;
double b=(double)r*2.0*3.14;
System.out.printf("%f %f\n",a,b);
}
}

Compiler output:
Main.java:5: error: ';' expected
int r=scan,nextInt();
                  ^
1 error
Language: Java

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		double p = 3.141592653589;
		double r = scan.nextDouble(); //????????§???????????\???
		double x = 2*r*p;
		double y = r*r*p;
		System.out.println(String.format("%.6f", x) + " " + String.format("%.6f", y));
	}

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

import java.util.Scanner;
public class Rensyu{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        double Pai= Math.PI;
        double r = sc.nextInt();
        double P = r*r*Pai;
        double E = 2*Pai*r;
        System.out.printf("%6f %6f",P,E);
    }
}

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

import java.util.Scanner;

public class sumple42 {
	@SuppressWarnings("resource")
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		float r = scan.nextFloat();
		
		float men1 = (float) (r * r * 3.14159);
		float syu1 = (float) (2 * r * 3.14159);
		
		String syu2 = String.format("%.5f", syu1);
		String men2 = String.format("%.5f", men1);
		System.out.println(men2 + " " + syu2);
		
	}
}

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

import java.text.NumberFormat;
import java.util.Scanner;

public class???Main {

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

		nfNum.setMinimumFractionDigits(1);
		nfNum.setMaximumFractionDigits(5);

		double r = scan.nextInt();
		double men = (double)r * r * 3.1459;
		double ensyu = (double)r * 2 * 3.1459;

		System.out.println(nfNum.format(men) + " " + nfNum.format(ensyu));
        scan.close();
    }

}

Compiler output:
Main.java:4: error: <identifier> expected
public class???Main {
            ^
1 error
Language: Java

import java.util.Scanner;

public class???Main {

    public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		double r = scan.nextInt();
		double men = (double)r * r * 3.1459;
		double ensyu = (double)r * 2 * 3.1459;

		System.out.println(men + " " + ensyu);
        scan.close();
    }

}

Compiler output:
Main.java:3: error: <identifier> expected
public class???Main {
            ^
1 error
Language: Java

import java.util.Scanner;

public class Main {

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

		nfNum.setMinimumFractionDigits(1);
		nfNum.setMaximumFractionDigits(5);

		double r = scan.nextInt();
		double men = (double)r * r * 3.1459;
		double ensyu = (double)r * 2 * 3.1459;

		System.out.println(nfNum.format(men) + " " + nfNum.format(ensyu));
        scan.close();
    }

}
}

Compiler output:
Main.java:21: error: class, interface, enum, or record expected
}
^
1 error
Language: Java

import java.util.Scanner;

public class Main {

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

		nfNum.setMinimumFractionDigits(1);
		nfNum.setMaximumFractionDigits(5);

		double r = scan.nextInt();
		double men = (double)r * r * 3.1459;
		double ensyu = (double)r * 2 * 3.1459;

		System.out.println(nfNum.format(men) + " " + nfNum.format(ensyu));
        scan.close();
    }

}

Compiler output:
Main.java:7: error: cannot find symbol
		NumberFormat nfNum = NumberFormat.getNumberInstance();
		^
  symbol:   class NumberFormat
  location: class Main
Main.java:7: error: cannot find symbol
		NumberFormat nfNum = NumberFormat.getNumberInstance();
		                     ^
  symbol:   variable NumberFormat
  location: class Main
2 errors
Language: Java

import java.math.BigDecimal;
import java.util.Scanner;

public class Main {

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

		double r = scan.nextDouble();//r = ??????
		double men = (double)r * r *  3.14159265358979323846264338327950288;
		double ensyu = (double)r * 2 * 3.14159265358979323846264338327950288;

	    BigDecimal bi_men = new BigDecimal(String.valueOf(men));
	    BigDecimal bi_en = new BigDecimal(String.valueOf(ensyu));
	    
	    men = bi_men.setScale(6, BigDecimal.ROUND_HALF_UP).doubleValue();
	    ensyu = bi_en.setScale(6, BigDecimal.ROUND_HALF_UP).doubleValue();
		
		System.out.println(men + " " + ensyu);
        scan.close();
    }

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



import java.util.Scanner;

public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
double r nextDouble();
double pi = Math.PI; 


double r = sc.nextInt();

double area = pi*r*r;

int length = 2*pi*r;

System.out.printf("%f %f", area, length);

}

}

Compiler output:
Main.java:8: error: ';' expected
double r nextDouble();
        ^
1 error
Language: Java

import java.util.Scanner;

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

Compiler output:
Main.java:5: error: cannot find symbol
	public static void main(String[] args) throws IOException
	                                              ^
  symbol:   class IOException
  location: class Main
1 error
Language: Java

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

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

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

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

import java.util.Scanner;

class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        
        double r = scan.nextDouble();
        
        double aoac = r * r * Math.PI;
        double cf = r + r * Math.PI;
        
        String after = String format("%.16f", aoac);
        String str = String format("%.16f", cf);
        
        System.out.println(after + " ", str);
    }
}

Compiler output:
Main.java:12: error: ';' expected
        String after = String format("%.16f", aoac);
                             ^
Main.java:13: error: ';' expected
        String str = String format("%.16f", cf);
                           ^
2 errors
Language: Java

import java.util.Scanner;

class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        
        double r = scan.nextDouble();
        
        double aoac = r * r * Math.PI;
        double cf = r + r * Math.PI;
        
        String after = String.format("%.16f", aoac);
        String str = String.format("%.16f", cf);
        
        System.out.println(after + " ", str);
    }
}

Compiler output:
Main.java:15: error: no suitable method found for println(String,String)
        System.out.println(after + " ", str);
                  ^
    method PrintStream.println() is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(boolean) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(char) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(int) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(long) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(float) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(double) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(char[]) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(String) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(Object) is not applicable
      (actual and formal argument lists differ in length)
1 error
Language: Java

import java.io.*;

class Main {
    public static void main(String[] args) {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        double r = Double.parseDouble(reader.readLine);
        
        double S = r * r * Math.PI
        double R = 2 * r * Math.PI
        
         System.out.printf("%.6f %.6f", S, R);
    }
}

Compiler output:
Main.java:8: error: ';' expected
        double S = r * r * Math.PI
                                  ^
Main.java:9: error: ';' expected
        double R = 2 * r * Math.PI
                                  ^
2 errors
Language: Java

import java.io.*;

class Main {
    public static void main(String[] args) {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        double r = Double.parseDouble(reader.readLine);
        
        double S = r * r * Math.PI;
        double R = 2 * r * Math.PI;
        
         System.out.printf("%.6f %.6f", S, R);
    }
}

Compiler output:
Main.java:6: error: cannot find symbol
        double r = Double.parseDouble(reader.readLine);
                                            ^
  symbol:   variable readLine
  location: variable reader of type BufferedReader
1 error