criyle/codenet-compile-errors huggingface dataset:
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(in.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(in.readLine);
                                      ^
  symbol:   variable in
  location: class Main
1 error
Language: Java

import java.io.*;

class Main {
    public static void main(String[] args) {
        BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        double r = Double.parseDouble(in.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: unreported exception IOException; must be caught or declared to be thrown
        double r = Double.parseDouble(in.readLine());
                                                 ^
1 error
Language: Java

import java.io.*;

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

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

import java.util.Scanner;
  2 class B4 {
  3 
  4     public static void main(String[] args){
  5         Scanner in = new Scanner(System.in);
  6           int a = in.nextInt();
  7           double c = (double)2*3.14*a;
  8           double b = (double)a*a*3.14;
  9           System.out.println(String.format("%.6f",b) + "  " +String.format("%.6f",c));        
 10     }
 11 }

Compiler output:
Main.java:2: error: class, interface, enum, or record expected
  2 class B4 {
  ^
Main.java:3: error: illegal start of type
  3 
  ^
Main.java:5: error: not a statement
  5         Scanner in = new Scanner(System.in);
  ^
Main.java:5: error: ';' expected
  5         Scanner in = new Scanner(System.in);
   ^
Main.java:6: error: not a statement
  6           int a = in.nextInt();
  ^
Main.java:6: error: ';' expected
  6           int a = in.nextInt();
   ^
Main.java:7: error: not a statement
  7           double c = (double)2*3.14*a;
  ^
Main.java:7: error: ';' expected
  7           double c = (double)2*3.14*a;
   ^
Main.java:8: error: not a statement
  8           double b = (double)a*a*3.14;
  ^
Main.java:8: error: ';' expected
  8           double b = (double)a*a*3.14;
   ^
Main.java:9: error: not a statement
  9           System.out.println(String.format("%.6f",b) + "  " +String.format("%.6f",c));        
  ^
Main.java:9: error: ';' expected
  9           System.out.println(String.format("%.6f",b) + "  " +String.format("%.6f",c));        
   ^
Main.java:10: error: not a statement
 10     }
 ^
Main.java:10: error: ';' expected
 10     }
   ^
Main.java:11: error: illegal start of type
 11 }
 ^
15 errors
Language: Java

import java.util.Scanner;
  2 class Main {
  3 
  4     public static void main(String[] args){
  5         Scanner in = new Scanner(System.in);
  6           int a = in.nextInt();
  7           double c = (double)2*3.14*a;
  8           double b = (double)a*a*3.14;
  9           System.out.println(String.format("%.6f",b) + "  " + String.format("%.6f",c));        
 10     }
 11 }

Compiler output:
Main.java:2: error: class, interface, enum, or record expected
  2 class Main {
  ^
Main.java:3: error: illegal start of type
  3 
  ^
Main.java:5: error: not a statement
  5         Scanner in = new Scanner(System.in);
  ^
Main.java:5: error: ';' expected
  5         Scanner in = new Scanner(System.in);
   ^
Main.java:6: error: not a statement
  6           int a = in.nextInt();
  ^
Main.java:6: error: ';' expected
  6           int a = in.nextInt();
   ^
Main.java:7: error: not a statement
  7           double c = (double)2*3.14*a;
  ^
Main.java:7: error: ';' expected
  7           double c = (double)2*3.14*a;
   ^
Main.java:8: error: not a statement
  8           double b = (double)a*a*3.14;
  ^
Main.java:8: error: ';' expected
  8           double b = (double)a*a*3.14;
   ^
Main.java:9: error: not a statement
  9           System.out.println(String.format("%.6f",b) + "  " + String.format("%.6f",c));        
  ^
Main.java:9: error: ';' expected
  9           System.out.println(String.format("%.6f",b) + "  " + String.format("%.6f",c));        
   ^
Main.java:10: error: not a statement
 10     }
 ^
Main.java:10: error: ';' expected
 10     }
   ^
Main.java:11: error: illegal start of type
 11 }
 ^
15 errors
Language: Java

import java.util.Scanner;
  2 class Main {
  3 
  4     public static void main(String[] args){
  5         Scanner in = new Scanner(System.in);
  6           int a = in.nextInt();
  7           double c = (double)2*3.141592653589*a;
  8           double b = (double)a*a*3.141592653589;
  9           System.out.println(String.format("%.6f",b) + "  " + String.format("%.6f",c));        
 10     }
 11 }

Compiler output:
Main.java:2: error: class, interface, enum, or record expected
  2 class Main {
  ^
Main.java:3: error: illegal start of type
  3 
  ^
Main.java:5: error: not a statement
  5         Scanner in = new Scanner(System.in);
  ^
Main.java:5: error: ';' expected
  5         Scanner in = new Scanner(System.in);
   ^
Main.java:6: error: not a statement
  6           int a = in.nextInt();
  ^
Main.java:6: error: ';' expected
  6           int a = in.nextInt();
   ^
Main.java:7: error: not a statement
  7           double c = (double)2*3.141592653589*a;
  ^
Main.java:7: error: ';' expected
  7           double c = (double)2*3.141592653589*a;
   ^
Main.java:8: error: not a statement
  8           double b = (double)a*a*3.141592653589;
  ^
Main.java:8: error: ';' expected
  8           double b = (double)a*a*3.141592653589;
   ^
Main.java:9: error: not a statement
  9           System.out.println(String.format("%.6f",b) + "  " + String.format("%.6f",c));        
  ^
Main.java:9: error: ';' expected
  9           System.out.println(String.format("%.6f",b) + "  " + String.format("%.6f",c));        
   ^
Main.java:10: error: not a statement
 10     }
 ^
Main.java:10: error: ';' expected
 10     }
   ^
Main.java:11: error: illegal start of type
 11 }
 ^
15 errors
Language: Java

import java.util.Scanner;
  2 class Main {
  3 
  4     public static void main(String[] args){
  5         Scanner in = new Scanner(System.in);
  6           int a = in.nextInt();
  7           double c = (double)2*3.141592653589*a;
  8           double b = (double)a*a*3.141592653589;
  9           System.out.print(String.format("%.6f",b) + "  " + String.format("%.6f",c));        
 10     }
 11 }

Compiler output:
Main.java:2: error: class, interface, enum, or record expected
  2 class Main {
  ^
Main.java:3: error: illegal start of type
  3 
  ^
Main.java:5: error: not a statement
  5         Scanner in = new Scanner(System.in);
  ^
Main.java:5: error: ';' expected
  5         Scanner in = new Scanner(System.in);
   ^
Main.java:6: error: not a statement
  6           int a = in.nextInt();
  ^
Main.java:6: error: ';' expected
  6           int a = in.nextInt();
   ^
Main.java:7: error: not a statement
  7           double c = (double)2*3.141592653589*a;
  ^
Main.java:7: error: ';' expected
  7           double c = (double)2*3.141592653589*a;
   ^
Main.java:8: error: not a statement
  8           double b = (double)a*a*3.141592653589;
  ^
Main.java:8: error: ';' expected
  8           double b = (double)a*a*3.141592653589;
   ^
Main.java:9: error: not a statement
  9           System.out.print(String.format("%.6f",b) + "  " + String.format("%.6f",c));        
  ^
Main.java:9: error: ';' expected
  9           System.out.print(String.format("%.6f",b) + "  " + String.format("%.6f",c));        
   ^
Main.java:10: error: not a statement
 10     }
 ^
Main.java:10: error: ';' expected
 10     }
   ^
Main.java:11: error: illegal start of type
 11 }
 ^
15 errors
Language: Java

import java.util.Scanner;                                                                     
class Main {

    public static void main(String[] args){
        Scanner in = new Scanner(System.in);
          int a = in.nextInt();
          double c = (double)2*3.141592653589*a;
          double b = (double)a*a*3.141592653589;
          System.out.println((String.format("%.6f",b) + "  " +String.format("%.6f",c));
    }
}

Compiler output:
Main.java:9: error: ')' or ',' expected
          System.out.println((String.format("%.6f",b) + "  " +String.format("%.6f",c));
                                                                                      ^
1 error
Language: Java

import java.util.Scanner;                                                                     
class Main {
 
    public static void main(String[] args){
        Scanner in = new Scanner(System.in);
          int a = in.nextDouble();
          double c = (double)2*3.141592653589*a;
          double b = (double)a*a*3.141592653589;
          System.out.println(String.format("%.6f",b) + " " +String.format("%.6f",c));
    }
}

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

import java.io.*;

class Main {
	public static void main(String[] args)throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();
		double r = Double.parseDouble(str);
		double l, S;
		
		l = 2 * Math.PI * r;
		S = Math.PI * r * r;
		System.out.println(l + " " + S);
	}

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

import java.io.*;

class Main {
	public static void main(String[] args)throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		double r = Double.parseDouble(br.readLine());
		double l, S;
		
		l = 2 * Math.PI * r;
		S = Math.PI * r * r;
		System.out.println(S + " " + l);
	}

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

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

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

		double area = (double)Math.pow(r,2) * Math.PI;
		double around =  2 * (double)r * Math.PI;

		System.out.printf("%.6f %.6f",area,around);
	}
}

Compiler output:
Main.java:2: error: cannot find symbol
import java.util.Math;
                ^
  symbol:   class Math
  location: package java.util
1 error
Language: Java

class Main
{
    public static void main (String[ ] args) throws Exception
    {
        BufferedReader br = new BufferedReader (new InputStreamReader (System.in));
         
        double r = Double.parseDouble(br.readLine());
         
        double b = Math.PI * r * r;
        double c = 2 * Math.PI * r;
 
        System.out.printf("%.5f %.5f\n", b, c);
    }
}

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

import java.util.Scanner;

public class main {

	public static void main(String[] args) {
		double pi = 3.141592653;
		double r;
		Scanner scan = new Scanner(System.in);
		r = scan.nextInt();

		System.out.printf("%6f %6f",(pi*r*r),(2*pi*r));

	}

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

import java.util.Scanner;

public class main {

	public static void main(String[] args) {
		double pi = 3.141592653;
		double r;
		Scanner scan = new Scanner(System.in);
		r = scan.nextInt();

		System.out.printf("%6f %6f",(pi*r*r),(2*pi*r));

	}
}

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

	public static void main(String[] args) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));


		String line = br.readLine();

		double r = Double.parseDouble(line);

		System.out.println(r*r*Math.PI +" "+2*r*Math.PI);
	}

}

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

import java.util.Scanner;

public class Main {
	void run(){
		Scanner s = new Scanner(System.in);
		double r = s.nextDouble();
		double pi = Math.PI;
		double area, circ;
		area = r * r * pi;
		circ = 2 * pi * r;
		System.out.println(area + " " + circ);
	}
	public static void main(String[] args) {
		/* 
		 * Main x;
		 * x = new Main();
		 * x.run();
		 * ??¨????????????
		 */
		new Main().run();
		
	}

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

import java.util.Scanner;

public class Main {
	void run(){
		Scanner s = new Scanner(System.in);
		double r = s.nextDouble();
		double pi = Math.PI;
		double area, circ;
		area = r * r * pi;
		circ = 2 * pi * r;
		System.out.printf("%f %f", area, circ);
	}
	public static void main(String[] args) {
		/* 
		 * Main x;
		 * x = new Main();
		 * x.run();
		 * ??¨????????????
		 */
		new Main().run();
		
	}

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

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

public class Main {
    public static void main(String[] args) throws Exception {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        Float r=Float.parseFloat(reader.readLine());
        Float s=r*r*3.14
        Float c=r*2*3.14
        System.out.System.out.println(s+" "c);
}

Compiler output:
Main.java:8: error: ';' expected
        Float s=r*r*3.14
                        ^
Main.java:9: error: ';' expected
        Float c=r*2*3.14
                        ^
Main.java:10: error: ')' or ',' expected
        System.out.System.out.println(s+" "c);
                                           ^
Main.java:10: error: ';' expected
        System.out.System.out.println(s+" "c);
                                            ^
Main.java:11: error: reached end of file while parsing
}
 ^
5 errors
Language: Java

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

public class Main {
    public static void main(String[] args) throws Exception {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        Float r=Float.parseFloat(reader.readLine());
        Float s=r*r*3.14
        Float c=r*2*3.14
        System.out.System.out.println(s+" "+c);
}

Compiler output:
Main.java:8: error: ';' expected
        Float s=r*r*3.14
                        ^
Main.java:9: error: ';' expected
        Float c=r*2*3.14
                        ^
Main.java:11: error: reached end of file while parsing
}
 ^
3 errors
Language: Java

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

public class Main {
    public static void main(String[] args) throws Exception {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        Float r=Float.parseFloat(reader.readLine());
        Float s=r*r*3.14
        Float c=r*2*3.14
        System.out.System.out.println(s+" "+c);
    }
}

Compiler output:
Main.java:8: error: ';' expected
        Float s=r*r*3.14
                        ^
Main.java:9: error: ';' expected
        Float c=r*2*3.14
                        ^
2 errors
Language: Java

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

public class Main {
    public static void main(String[] args) throws Exception {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        Float r=Float.parseFloat(reader.readLine());
        Float s=r*r*3.14;
        Float c=r*2*3.14;
        System.out.System.out.println(s+" "+c);
    }
}

Compiler output:
Main.java:8: error: incompatible types: double cannot be converted to Float
        Float s=r*r*3.14;
                   ^
Main.java:9: error: incompatible types: double cannot be converted to Float
        Float c=r*2*3.14;
                   ^
Main.java:10: error: cannot find symbol
        System.out.System.out.println(s+" "+c);
                  ^
  symbol:   variable System
  location: variable out of type PrintStream
3 errors
Language: Java

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

public class Main {
    public static void main(String[] args) throws Exception {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        double r=Double.parseDouble(reader.readLine());
        Double s=r*r*Math.PI;
        Double c=r*2*Math.PI;
        System.out.System.out.println(s+" "+c);
    }
}

Compiler output:
Main.java:10: error: cannot find symbol
        System.out.System.out.println(s+" "+c);
                  ^
  symbol:   variable System
  location: variable out of type PrintStream
1 error
Language: Java

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

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

Compiler output:
Main.java:10: error: no suitable method found for println(String,Double,Double)
        System.out.println("%.6f %.6f", area, circumference);
                  ^
    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)throws EXception{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        
        double r = Double.parseDouble(br.readLine());
        
        double b = Math.PI * r * r;
        double c = 2 * Math.PI * r;
        
        System.out.printf("%.5f % %.5d\n", b, c);
    }
}

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

import java.io.*;

class Main{
    public static void main(String[] args)throws EXception{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        
        double r = Double.parseDouble(br.readLine());
        
        double b = Math.PI * r * r;
        double c = 2 * Math.PI * r;
        
        System.out.printf("%.5f % %.5fd\n", b, c);
    }
}

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

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

public class Main{
	public static void main(String[] args)throws Exception{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line = br.readLine();
		StringBuilder sb = new StringBuilder()
		
		int r = Integer.parseInt(line);
		
		double area = String.format("%.6f",((double)r *(double)r * Math.PI));
		double cir = String.format("%.6f",(2 * (double)r * Math.PI));
		
		sb.append(area).append(" ").append(cir).append("\n");
		System.out.print(sb);
	}
}

Compiler output:
Main.java:8: error: ';' expected
		StringBuilder sb = new StringBuilder()
		                                      ^
1 error
Language: Java

import java.util.Scanner;

public class Main{
  public static void main(String[] args){
    Scanner scan = new Scanner(System.in);
    float r = scan.nextFloat();
    float S = r*r*Math.PI;
    float L = 2*r*Math.PI;
    System.out.println(S + " " + L);
  } 
}

Compiler output:
Main.java:7: error: incompatible types: possible lossy conversion from double to float
    float S = r*r*Math.PI;
                 ^
Main.java:8: error: incompatible types: possible lossy conversion from double to float
    float L = 2*r*Math.PI;
                 ^
2 errors
Language: Java

import java.util.Scanner;

public class Main{
  public static void main(String[] args){
    Scanner scan = new Scanner(System.in);
    float r = scan.nextFloat();
    float S = (float) r*r*Math.PI;
    float L = (float) 2*r*Math.PI;
    System.out.println(S + " " + L);
  } 
}

Compiler output:
Main.java:7: error: incompatible types: possible lossy conversion from double to float
    float S = (float) r*r*Math.PI;
                         ^
Main.java:8: error: incompatible types: possible lossy conversion from double to float
    float L = (float) 2*r*Math.PI;
                         ^
2 errors
Language: Java

class Main {
    private static Scanner sc;

	public static void main(String[] args) {
        sc = new Scanner(System.in);
        String s = sc.next();
        int r = Integer.parseInt(s);
        System.out.println(String.format("%f %f", r * r * Math.PI, 2 * r * Math.PI));
    }
}

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

import java.util.Scanner;

public classs Main {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int r = scanner.nextInt();
		Double aDouble  = 2 * Math.PI * r;
		Double bDouble = Math.pow(r, 2) * Math.PI;
		
		System.out.println(aDouble + " " + bDouble);
	}
}

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

import java.util.Scanner;
import java.math.BigDecimal;
class Main
{
	public static void main(String[] args)throws Exception
	{
		Scanner scan=new Scanner(System.in);
		
		double r=scan.nextDouble();
		double sum1=0;
		double sum2=0;
		
		BigDecimal bi = new BigDecimal(String.valueOf(r));
		double a= Double.parseDouble(reader.readLine());
		System.out.printf("%6f %6f",a*a*Math.PI,a*2*Math.PI);		
		
		
	}
}

Compiler output:
Main.java:14: error: cannot find symbol
		double a= Double.parseDouble(reader.readLine());
		                             ^
  symbol:   variable reader
  location: class Main
1 error
Language: Java

import java.util.Scanner;
import java.math.BigDecimal;
class Main
{
	public static void main(String[] args)throws Exception
	{
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		double r= Double.parseDouble(reader.readLine());
		System.out.printf("%6f %6f",r*r*Math.PI,r*2*Math.PI);		
		
		
	}
}

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

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

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

import java.util.Scanner;

import com.sun.org.apache.bcel.internal.generic.LNEG;


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

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

import java.util.Scanner;

import com.sun.org.apache.bcel.internal.generic.LNEG;


public class Main 
{
	public static void main(String[] args)
	{
		Scanner scanner = new Scanner(System.in);
		
		int r = scanner.nextInt();
		float pi = (float)Math.PI;
		System.out.printf("%1$.6f, %2$.6f", pi*r*r, 2*r*pi);
	}
}

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

import java.util.Scanner;

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

Compiler output:
Main.java:8: error: no suitable method found for println(String,double,double)
	System.out.println("%.6f %.6f",r * r * pi,2 * r * pi);
	          ^
    method PrintStream.println() is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(boolean) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(char) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(int) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(long) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(float) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(double) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(char[]) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(String) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(Object) is not applicable
      (actual and formal argument lists differ in length)
1 error
Language: Java

import java.util.Scanner;

class Main{
	public static void main(String args[]){
	Scanner scan = new Scanner(System.in);
	double pi = Math.PI;
	int r = scan.nextInt();
	double area = r *r * pi;
	double circumference = 2 * pi *r;
	System.out.print("%.6f %.6f\n",area,circumference);
	}
}

Compiler output:
Main.java:10: error: no suitable method found for print(String,double,double)
	System.out.print("%.6f %.6f\n",area,circumference);
	          ^
    method PrintStream.print(boolean) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.print(char) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.print(int) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.print(long) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.print(float) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.print(double) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.print(char[]) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.print(String) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.print(Object) is not applicable
      (actual and formal argument lists differ in length)
1 error
Language: Java

import java.util.Scanner;

class Main{
	public static void main(String args[]){
	Scanner scan = new Scanner(System.in);
	double pi = Math.PI;
	int r = scan.nextInt();
//	double area = r *r * pi;
//	double circumference = 2 * pi *r;
//	System.out.print("%.6f %.6f\n",area,circumference);
	System.out.println(MathPI * Math.PI * r + " " + Math.PI * 2 * r);
	}
}

Compiler output:
Main.java:11: error: cannot find symbol
	System.out.println(MathPI * Math.PI * r + " " + Math.PI * 2 * r);
	                   ^
  symbol:   variable MathPI
  location: 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.nextDouble();
//	double area = r *r * pi;
//	double circumference = 2 * pi *r;
//	System.out.print("%.6f %.6f\n",area,circumference);
//	System.out.println(MathPI * Math.PI * r + " " + Math.PI * 2 * r);
	System.out.print("%.6f %.6f\n",r*r*Math.PI ,r*2*Math.PI);
	}
}

Compiler output:
Main.java:11: error: no suitable method found for print(String,double,double)
	System.out.print("%.6f %.6f\n",r*r*Math.PI ,r*2*Math.PI);
	          ^
    method PrintStream.print(boolean) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.print(char) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.print(int) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.print(long) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.print(float) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.print(double) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.print(char[]) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.print(String) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.print(Object) is not applicable
      (actual and formal argument lists differ in length)
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 area = r *r * pi;
//	double circumference = 2 * pi *r;
//	System.out.print("%.6f %.6f\n",area,circumference);
//	System.out.println(MathPI * Math.PI * r + " " + Math.PI * 2 * r);
	System.out.print("%.6f %.6f\n",r*r*Math.PI ,r*2*Math.PI);
	}
}

Compiler output:
Main.java:11: error: no suitable method found for print(String,double,double)
	System.out.print("%.6f %.6f\n",r*r*Math.PI ,r*2*Math.PI);
	          ^
    method PrintStream.print(boolean) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.print(char) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.print(int) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.print(long) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.print(float) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.print(double) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.print(char[]) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.print(String) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.print(Object) is not applicable
      (actual and formal argument lists differ in length)
1 error
Language: Java

#define _USE_MATH_DEFINES
#include<stdio.h>
#include<math.h>
int main(void){
	float r, m=M_PI, men, en;
	scanf("%f", &r);
	men = r*r*m;
	en = (r * 2)*m;
	printf("%.6f %.6f\n", men, en);
	return 0;
}

Compiler output:
Main.java:1: error: illegal character: '#'
#define _USE_MATH_DEFINES
^
Main.java:2: error: illegal character: '#'
#include<stdio.h>
^
Main.java:3: error: illegal character: '#'
#include<math.h>
^
Main.java:6: error: class, interface, enum, or record expected
	scanf("%f", &r);
	^
Main.java:7: error: class, interface, enum, or record expected
	men = r*r*m;
	^
Main.java:8: error: class, interface, enum, or record expected
	en = (r * 2)*m;
	^
Main.java:9: error: class, interface, enum, or record expected
	printf("%.6f %.6f\n", men, en);
	^
Main.java:10: error: class, interface, enum, or record expected
	return 0;
	^
Main.java:11: error: class, interface, enum, or record expected
}
^
9 errors
Language: Java

import java.util.*;

public class Main{
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		String r = scan.nextLine();
		double rr = String.valueOf(r);
		double area = rr * rr * 3.14;
		double len = 2 * rr * 3.14;
		System.out.printf("%f %f\n", area, len);
		
	}
}

Compiler output:
Main.java:7: error: incompatible types: String cannot be converted to double
		double rr = String.valueOf(r);
		                          ^
1 error
Language: Java

#include<bits/stdc++.h>

using namespace std;

const double PI = acos(-1);

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

Compiler output:
Main.java:1: error: illegal character: '#'
#include<bits/stdc++.h>
^
Main.java:1: error: class, interface, enum, or record expected
#include<bits/stdc++.h>
        ^
Main.java:5: error: class, interface, enum, or record expected
const double PI = acos(-1);
^
Main.java:7: error: unnamed classes are a preview feature and are disabled by default.
int main()
^
  (use --enable-preview to enable unnamed classes)
Main.java:10: error: illegal start of expression
  scanf("%lf", &r);
               ^
5 errors
Language: Java

#include<bits/stdc++.h>

using namespace std;

const double PI = acos(-1);

int main()
{
  double r;
  scanf("%lf", &r);
  printf("%lf %lf\n", PI * r * r, 2 * PI * r);
}

Compiler output:
Main.java:1: error: illegal character: '#'
#include<bits/stdc++.h>
^
Main.java:1: error: class, interface, enum, or record expected
#include<bits/stdc++.h>
        ^
Main.java:5: error: class, interface, enum, or record expected
const double PI = acos(-1);
^
Main.java:7: error: unnamed classes are a preview feature and are disabled by default.
int main()
^
  (use --enable-preview to enable unnamed classes)
Main.java:10: error: illegal start of expression
  scanf("%lf", &r);
               ^
5 errors
Language: Java

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

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



import java.util.Scanner;

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

		//??\??????????????? ??????r
		double r =sc.nextDouble();
		//?????¨????????£?¨?
		double P = Math.PI;
		//????????¢??? ??¬??? ?????????????????????¨???
		double AreaCircle = r * r * P;
		//?????¨????????? ??¬??? ?????¨????????? = ??´??????????¨???
		double Arch =(r + r ) * P;
		//???????????¨???
		System.out.println(AreaCircle + " " + Arch);
	}
}

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

import java.io.*;
public class Circle {
    static float area(int r) {
        return r * r * (float)Math.PI;
    }

    static float circuit(int r) {
        return r * 2 * (float)Math.PI;
    }
}

public class Main {
    public static void main(String[] args) throws IOException {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        String line = reader.readLine();
        int radius = Integer.parseInt(line);
        System.out.print(Circle.area(radius));
        System.out.print(" ");
        System.out.print(Circle.circuit(radius));
        System.out.println();
    }
}

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 Main {
	public static void main(String[] args){
		Scanner in = new Scanner(System.in);
		double r=in.nextDouble();
		System.out.println(String.format("%.6f %.6f",2*r*Math.PI,Math.PI*r*r));
	}

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

import java.io.*;

class Main{
 public static void main(String[] args)throws IOException{
  double r;
  String area,rect;
   BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
  
   String str = br.readLine(); 
   String[] strAry = str.split(" ");
   r = Doubleeger.parseInt(strAry[0]);  
   area = r*r*3.141592653589;
   rect = 2*r*3.141592653589;
   area=String.format("%.5f", r*r*3.141592653589);    
   rect=String.format("%.5f", 2*r*3.141592653589);    
   
   System.out.println(area + " "+ rect); 
 }
}

Compiler output:
Main.java:11: error: cannot find symbol
   r = Doubleeger.parseInt(strAry[0]);  
       ^
  symbol:   variable Doubleeger
  location: class Main
Main.java:12: error: incompatible types: double cannot be converted to String
   area = r*r*3.141592653589;
             ^
Main.java:13: error: incompatible types: double cannot be converted to String
   rect = 2*r*3.141592653589;
             ^
3 errors
Language: Java

import java.io.*;

class Main{
 public static void main(String[] args)throws IOException{
  double r;
  String area,rect;
   BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
  
   String str = br.readLine(); 
   String[] strAry = str.split(" ");
   r = Doubleeger.parseDouble(strAry[0]);  
   area = r*r*3.141592653589;
   rect = 2*r*3.141592653589;
   area=String.format("%.5f", r*r*3.141592653589);    
   rect=String.format("%.5f", 2*r*3.141592653589);    
   
   System.out.println(area + " "+ rect); 
 }
}

Compiler output:
Main.java:11: error: cannot find symbol
   r = Doubleeger.parseDouble(strAry[0]);  
       ^
  symbol:   variable Doubleeger
  location: class Main
Main.java:12: error: incompatible types: double cannot be converted to String
   area = r*r*3.141592653589;
             ^
Main.java:13: error: incompatible types: double cannot be converted to String
   rect = 2*r*3.141592653589;
             ^
3 errors
Language: Java

import java.io.*;

class Main{
 public static void main(String[] args)throws IOException{
  double r;
  String area,rect;
   BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
  
   String str = br.readLine(); 
   String[] strAry = str.split(" ");
   r = Double.parseDouble(strAry[0]);  
   area = r*r*3.141592653589;
   rect = 2*r*3.141592653589;
   area=String.format("%.5f", r*r*3.141592653589);    
   rect=String.format("%.5f", 2*r*3.141592653589);    
   
   System.out.println(area + " "+ rect); 
 }
}

Compiler output:
Main.java:12: error: incompatible types: double cannot be converted to String
   area = r*r*3.141592653589;
             ^
Main.java:13: error: incompatible types: double cannot be converted to String
   rect = 2*r*3.141592653589;
             ^
2 errors
Language: Java

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.*;
class Main{
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		double r = scan.nextLine();
		double r2 = 1.0*r;
		
		double ensyu = r2 * 2 * 3.141592653589;
		double menseki = r2 * r2 * 3.141592653589;

		String ee =String.format("%.8f",ensyu);
		String mm =String.format("%.8f",menseki);
		System.out.println(ee+" "+mm);
	}
}

Compiler output:
Main.java:7: error: incompatible types: String cannot be converted to double
		double r = scan.nextLine();
		                        ^
1 error
Language: Java


import java.util.Scanner;
import java.text.DecimalFormat;

public class B4 {
	public static void main(String[] args){
		double r;
		DecimalFormat t = new DecimalFormat("0.000000");
		Scanner sc = new Scanner(System.in);
		r = sc.nextInt();
		r = r * r * 3.141592653589;
		System.out.println(t.format(r) + " " + t.format(r));
	}
}

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

import java.util.Scanner;
class Main {
    public static void main(String[] args){
       Scanner scan = new Scanner(System.in);
       int r = scan.nextInt();
       
       System.oout.println(String.format("%8f", r*r*3.141592653589) + " " + String.format("%8f", 2*r*3.141592653589));
    }
}

Compiler output:
Main.java:7: error: cannot find symbol
       System.oout.println(String.format("%8f", r*r*3.141592653589) + " " + String.format("%8f", 2*r*3.141592653589));
             ^
  symbol:   variable oout
  location: class System
1 error
Language: Java

import java.util.Scanner;
class Main {
    public static void main(String[] args){
       Scanner scan = new Scanner(System.in);
       int r = scan.nextInt();
       
       System.oout.println(String.format("%8f", r*r*3.14) + " " + String.format("%8f", 2*r*3.14));
    }
}

Compiler output:
Main.java:7: error: cannot find symbol
       System.oout.println(String.format("%8f", r*r*3.14) + " " + String.format("%8f", 2*r*3.14));
             ^
  symbol:   variable oout
  location: class System
1 error
Language: Java

import java.util.Scanner;
class Main {
    public static void main(String[] args){
       Scanner scan = new Scanner(System.in);
       int r = scan.nextInt();
       S = r*r*3.14;
       L = 2*r*3.14;
       
       System.oout.println(String.format("%8f", S) + " " + String.format("%8f", L));
    }
}

Compiler output:
Main.java:6: error: cannot find symbol
       S = r*r*3.14;
       ^
  symbol:   variable S
  location: class Main
Main.java:7: error: cannot find symbol
       L = 2*r*3.14;
       ^
  symbol:   variable L
  location: class Main
Main.java:9: error: cannot find symbol
       System.oout.println(String.format("%8f", S) + " " + String.format("%8f", L));
                                                ^
  symbol:   variable S
  location: class Main
Main.java:9: error: cannot find symbol
       System.oout.println(String.format("%8f", S) + " " + String.format("%8f", L));
                                                                                ^
  symbol:   variable L
  location: class Main
Main.java:9: error: cannot find symbol
       System.oout.println(String.format("%8f", S) + " " + String.format("%8f", L));
             ^
  symbol:   variable oout
  location: class System
5 errors
Language: Java

import java.util.Scanner;
class Main {
    public static void main(String[] args){
       Scanner scan = new Scanner(System.in);
       int r = scan.nextInt();
       double S = r*r*3.14;
       double L = 2*r*3.14;
       
       System.oout.println(String.format("%8f", S) + " " + String.format("%8f", L));
    }
}

Compiler output:
Main.java:9: error: cannot find symbol
       System.oout.println(String.format("%8f", S) + " " + String.format("%8f", L));
             ^
  symbol:   variable oout
  location: class System
1 error
Language: Java

import java.util.Scanner;

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

        Scanner as = new Scanner(System.in);
       
        float r,s,t;

       
           
        r = as.nextFloat();
           
           
        s=3.14*r*r;
        t=2*3.14*r;

        System.out.println(s+" "+t);           

           
 }
 
}

Compiler output:
Main.java:15: error: incompatible types: possible lossy conversion from double to float
        s=3.14*r*r;
                ^
Main.java:16: error: incompatible types: possible lossy conversion from double to float
        t=2*3.14*r;
                ^
2 errors
Language: Java

import java.util.Scanner;

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

        Scanner as = new Scanner(System.in);
       
        float r,s,t;

       
           
        r = as.nextFloat();
           
           
        s=3.141592653589*r*r;
        t=2.0*3.141592653589*r;

        System.out.println(s+" "+t);           

           
 }
 
}

Compiler output:
Main.java:15: error: incompatible types: possible lossy conversion from double to float
        s=3.141592653589*r*r;
                          ^
Main.java:16: error: incompatible types: possible lossy conversion from double to float
        t=2.0*3.141592653589*r;
                            ^
2 errors