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

import java.util.Scanner;

class Main{
   	Scanner scan = new Scanner(System.in);
    	double r = scan.nextDouble();
    	double pi = 3.141592653589;
    	
    	System.out.println(String.format("%8f", r*r*pi) + " " + String.format("%8f", 2*r*pi));
    	
     }
}

Compiler output:
Main.java:8: error: <identifier> expected
    	System.out.println(String.format("%8f", r*r*pi) + " " + String.format("%8f", 2*r*pi));
    	                  ^
Main.java:8: error: <identifier> expected
    	System.out.println(String.format("%8f", r*r*pi) + " " + String.format("%8f", 2*r*pi));
    	                                ^
Main.java:11: error: class, interface, enum, or record expected
}
^
3 errors
Language: Java

import java.util.Scanner;

class Main{
   	Scanner scan = new Scanner(System.in);
    	double r = scan.nextDouble();
    	double pi = 3.141592653589;
    	
    	System.out.println(r*r*pi + " " + 2*r*pi);
    	
     }
}

Compiler output:
Main.java:8: error: <identifier> expected
    	System.out.println(r*r*pi + " " + 2*r*pi);
    	                  ^
Main.java:8: error: <identifier> expected
    	System.out.println(r*r*pi + " " + 2*r*pi);
    	                    ^
Main.java:11: error: class, interface, enum, or record expected
}
^
3 errors
Language: Java

import java.util.Scanner;

class Main{
   	Scanner scan = new Scanner(System.in);
    	double r = scan.nextDouble();
    	double pi = 3.141592653589;
    	
    	System.out.println((r*r*pi) + " " + (2*r*pi));
    	
     }
}

Compiler output:
Main.java:8: error: <identifier> expected
    	System.out.println((r*r*pi) + " " + (2*r*pi));
    	                  ^
Main.java:8: error: illegal start of type
    	System.out.println((r*r*pi) + " " + (2*r*pi));
    	                   ^
Main.java:11: error: class, interface, enum, or record expected
}
^
3 errors
Language: Java

import java.util.Scanner;

class Main{
  public static void main(String[] args){
    Scanner num = num Scanner(System.in);
    double r = num.nextDouble();
    double pi = Math.Pi;
    double area = r * r * pi;
    double length = 2 * r * pi;
    System.out.printf("%lf %lf",area,length);
  }
}

Compiler output:
Main.java:5: error: ';' expected
    Scanner num = num Scanner(System.in);
                     ^
1 error
Language: Java

import java.util.Scanner;

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

Compiler output:
Main.java:7: error: cannot find symbol
    double pi = Math.Pi;
                    ^
  symbol:   variable Pi
  location: class Math
1 error
Language: Java

public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????

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

		BigDecimal r = new BigDecimal(Integer.parseInt(s));
		BigDecimal p = new BigDecimal(Math.PI);

		BigDecimal a = new BigDecimal(0);
		BigDecimal b = new BigDecimal(0);
		BigDecimal c = new BigDecimal(2);
		a = p.multiply(r).multiply(r);
		b = p.multiply(r).multiply(c);

		System.out.print(a);
		System.out.print(" ");
		System.out.println(b);
	}

}

Compiler output:
Main.java:6: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class Main
Main.java:6: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		                 ^
  symbol:   class Scanner
  location: class Main
Main.java:9: error: cannot find symbol
		BigDecimal r = new BigDecimal(Integer.parseInt(s));
		^
  symbol:   class BigDecimal
  location: class Main
Main.java:9: error: cannot find symbol
		BigDecimal r = new BigDecimal(Integer.parseInt(s));
		                   ^
  symbol:   class BigDecimal
  location: class Main
Main.java:10: error: cannot find symbol
		BigDecimal p = new BigDecimal(Math.PI);
		^
  symbol:   class BigDecimal
  location: class Main
Main.java:10: error: cannot find symbol
		BigDecimal p = new BigDecimal(Math.PI);
		                   ^
  symbol:   class BigDecimal
  location: class Main
Main.java:12: error: cannot find symbol
		BigDecimal a = new BigDecimal(0);
		^
  symbol:   class BigDecimal
  location: class Main
Main.java:12: error: cannot find symbol
		BigDecimal a = new BigDecimal(0);
		                   ^
  symbol:   class BigDecimal
  location: class Main
Main.java:13: error: cannot find symbol
		BigDecimal b = new BigDecimal(0);
		^
  symbol:   class BigDecimal
  location: class Main
Main.java:13: error: cannot find symbol
		BigDecimal b = new BigDecimal(0);
		                   ^
  symbol:   class BigDecimal
  location: class Main
Main.java:14: error: cannot find symbol
		BigDecimal c = new BigDecimal(2);
		^
  symbol:   class BigDecimal
  location: class Main
Main.java:14: error: cannot find symbol
		BigDecimal c = new BigDecimal(2);
		                   ^
  symbol:   class BigDecimal
  location: class Main
12 errors
Language: Java

import java.io.IOException;
import java.io.InputStreamReader;
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();
    int r = Integer.parseInt(str);
  	double c =(double) 2 * r * Math.PI;
  	double d= (double) Math.PI * r * r;

  	System.out.printf("%.5lf",c.%.5lf\n",d );
  	
  	}
}	
  		
  

Compiler output:
Main.java:15: error: <identifier> expected
  	System.out.printf("%.5lf",c.%.5lf\n",d );
  	                            ^
Main.java:15: error: ')' or ',' expected
  	System.out.printf("%.5lf",c.%.5lf\n",d );
  	                               ^
Main.java:15: error: illegal character: '\'
  	System.out.printf("%.5lf",c.%.5lf\n",d );
  	                                 ^
Main.java:15: error: unclosed string literal
  	System.out.printf("%.5lf",c.%.5lf\n",d );
  	                                   ^
Main.java:15: error: not a statement
  	System.out.printf("%.5lf",c.%.5lf\n",d );
  	                                  ^
5 errors
Language: Java

import java.io.IOException;
import java.io.InputStreamReader;
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();
    int r = Integer.parseInt(str);
  	double c =(double) 2 * r * Math.PI;
  	double d= (double) Math.PI * r * r;

  	System.out.printf("%.5f",c.%.5f\n",d );
  	
  	}
}	
  		
  

Compiler output:
Main.java:15: error: <identifier> expected
  	System.out.printf("%.5f",c.%.5f\n",d );
  	                           ^
Main.java:15: error: illegal character: '\'
  	System.out.printf("%.5f",c.%.5f\n",d );
  	                               ^
Main.java:15: error: unclosed string literal
  	System.out.printf("%.5f",c.%.5f\n",d );
  	                                 ^
Main.java:15: error: not a statement
  	System.out.printf("%.5f",c.%.5f\n",d );
  	                                ^
4 errors
Language: Java

import java.io.IOException;
import java.io.InputStreamReader;
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();
    int r = Integer.parseInt(str);
  	double c =(double) 2 * r * Math.PI;
  	double d= (double) Math.PI * r * r;

  	System.out.printf("%.5f",c.%.5f",d );
  	
  	}
}	
  		
  

Compiler output:
Main.java:15: error: <identifier> expected
  	System.out.printf("%.5f",c.%.5f",d );
  	                           ^
Main.java:15: error: unclosed string literal
  	System.out.printf("%.5f",c.%.5f",d );
  	                               ^
2 errors
Language: Java

import java.io.IOException;
import java.io.InputStreamReader;
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();
    int r = Integer.parseInt(str);
  	double c =(double) 2 * r * Math.PI;
  	double d= (double) Math.PI * r * r;

  	System.out.printf("%.5f",c."%.5f\n",d );
  	
  	}
}	
  		
  

Compiler output:
Main.java:15: error: string templates are a preview feature and are disabled by default.
  	System.out.printf("%.5f",c."%.5f\n",d );
  	                           ^
  (use --enable-preview to enable string templates)
1 error
Language: Java

import java.util.Scanner;

public class???Main {

    public static void main(String[] args) {
    	Scanner scanner = new Scanner(System.in);
    	double r = scanner.nextInt();
    	double x = 3.1416;
    	double y = 2*x*r;
    	double z = x*r*r;
    	System.out.println(String.format("%.5f",y)+" "+String.format("%.5f",z));
    }
}

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

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

/**
 *
 */

/**
 * @author cthanh
 *
 *
public class Main {

	/**
	 * @param args
	 * @throws IOException
	 */
	public static void main(String[] args) throws IOException {
		// TODO ?????????????????????????????????????????????
		 BufferedReader br = new BufferedReader(new InputStreamReader(System.in));// ??\?????????
		    String str = br.readLine();
		    double r =  Double.parseDouble( str);
		    double men = (double) r *r *Math.PI;
		    double syu = (double) r*2* Math.PI;
		    System.out.println(Math.PI);
		    System.out.printf( "%.6f %.6f", r *r *Math.PI , r*2* Math.PI );


	}

}

Compiler output:
Main.java:19: 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:32: error: class, interface, enum, or record expected
}
^
2 errors
Language: Java

public class Main {

	/**
	 * @param args
	 * @throws IOException
	 */
	public static void main(String[] args) throws IOException {
		// TODO ?????????????????????????????????????????????
		 BufferedReader br = new BufferedReader(new InputStreamReader(System.in));// ??\?????????
		    String str = br.readLine();
		    double r =  Double.parseDouble( str);
		    double men = (double) r *r *Math.PI;
		    double syu = (double) r*2* Math.PI;
		   // System.out.println(Math.PI);
		    System.out.printf( "%.6f %.6f",men , syu );


	}

}

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

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

/**
 *
 */

/**
 * @author cthanh
 *
 */
public class menseki {

	/**
	 * @param args
	 * @throws IOException
	 */
	public static void main(String[] args) throws IOException {
		// TODO ?????????????????????????????????????????????
		 BufferedReader br = new BufferedReader(new InputStreamReader(System.in));// ??\?????????
		    String str = br.readLine();
		    double r =  Double.parseDouble( str);
		    double men = (double) r *r *Math.PI;
		    double syu = (double) r*2* Math.PI;
		   // System.out.println(Math.PI);
		    System.out.printf( "%.6f %.6f",men , syu );


	}

}

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

import java.util.Scanner;

public class???Main {

    public static void main(String[] args) {
    	Scanner scanner = new Scanner(System.in);
    	double r = scanner.nextInt();
    	double x = 3.1416;
    	double y = 2*x*r;
    	double z = x*r*r;
    	System.out.println(String.format("%.6f",y)+" "+String.format("%.6f",z));
    }
}

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 scanner = new Scanner(System.in);
    	double r = scanner.nextInt();
    	double x = Math.PI;
    	double y = 2*x*r;
    	double z = x*r*r;
    	System.out.println(String.format("%.6f",y)+" "+String.format("%.6f",z));
    }
}

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

import java.io.IOException;
import java.util.ArrayList;
import java.util.Scanner;

public class Main {
	public static double circle(int r,double p){
		double cir = 2*p*r;
		return cir;
	}
	public static double area(int r, double p){
		double area = p*r*r;
		return area;
	}
	public static boolean exception(int r){
		boolean result;
		if(0 < r && r <= 10000){
			result = true;
			return result;
		}
		else{
			result = false;
			return result;
		}
	}
	public static void main(String[] args) throws IOException{
		/**
		 * ?????°?????£?¨?
		 */
		int r = 0;
		double p = 3.141592653589;
		String str;
		/**
		 * ???????????£?¨?
		 */
		ArrayList<String> st = new ArrayList<String>();
		ArrayList<Integer> parse = new ArrayList<Integer>();
		/**
		 * ?????????????????\?????¨int??????
		 */
		Scanner scan = new Scanner(System.in);
		st.add(scan.next());
		r = Integer.parseInt(st.get(0));
		parse.add(r);
		/**
		 * ????????¨????????????

Compiler output:
Main.java:44: error: unclosed comment
		/**
		^
Main.java:45: error: reached end of file while parsing
		 * ?????????????????????
		                        ^
2 errors
Language: Java

import java.util*;
public class Main{
public static void main(String[] args){
Scanner scan=new Scanner;
Formatter frm=new Formatter();
int r=sc.nextInt();
double x= Math.PI;
int S=x*r*r;
int d=2*x*r;
System.out.println(S+" "+d);
}}

Compiler output:
Main.java:1: error: ';' expected
import java.util*;
                ^
Main.java:4: error: '(' or '[' expected
Scanner scan=new Scanner;
                        ^
2 errors
Language: Java

import java.util.*;
public class Main{
public static void main(String[] args){
Scanner scan=new Scanner(System.in);
Formatter frm=new Formatter();
int r=sc.nextInt();
double x= Math.PI;
int S=x*r*r;
int d=2*x*r;
System.out.println(S+" "+d);
}}

Compiler output:
Main.java:6: error: cannot find symbol
int r=sc.nextInt();
      ^
  symbol:   variable sc
  location: class Main
Main.java:8: error: incompatible types: possible lossy conversion from double to int
int S=x*r*r;
         ^
Main.java:9: error: incompatible types: possible lossy conversion from double to int
int d=2*x*r;
         ^
3 errors
Language: Java

import java.util.*;
public class Main{
public static void main(String[] args){
Scanner scan=new Scanner(System.in);
Formatter frm=new Formatter();
double r=sc.nextInt();
double x= Math.PI;
double S=x*r*r;
double d=2*x*r;
System.out.println(S+" "+d);
}}

Compiler output:
Main.java:6: error: cannot find symbol
double r=sc.nextInt();
         ^
  symbol:   variable sc
  location: class Main
1 error
Language: Java

import java.util.*;
public class Main{
public static void main(String[] args){
Scanner scan=new Scanner(System.in);
Formatter frm=new Formatter();
double r=scan.nextDouble();
double S=Math.PI*r*r;
double d=2*Math.PI*r;
System.out.println(("%5f",S)+" "+("%5f",d));
}}

Compiler output:
Main.java:9: error: ')' expected
System.out.println(("%5f",S)+" "+("%5f",d));
                         ^
Main.java:9: error: ')' expected
System.out.println(("%5f",S)+" "+("%5f",d));
                                       ^
Main.java:9: error: not a statement
System.out.println(("%5f",S)+" "+("%5f",d));
                                ^
Main.java:9: error: not a statement
System.out.println(("%5f",S)+" "+("%5f",d));
                                        ^
Main.java:9: error: ';' expected
System.out.println(("%5f",S)+" "+("%5f",d));
                                         ^
5 errors
Language: Java

import java.util.*;
public class Main{
public static void main(String[] args){
Scanner scan=new Scanner(System.in);
Formatter frm=new Formatter();
double r=scan.nextDouble();
double S=Math.PI*r*r;
double d=2*Math.PI*r;
System.out.println(String.format("%5f",S);+" "+String.format("%5f",d));
}}

Compiler output:
Main.java:9: error: ')' or ',' expected
System.out.println(String.format("%5f",S);+" "+String.format("%5f",d));
                                         ^
Main.java:9: error: not a statement
System.out.println(String.format("%5f",S);+" "+String.format("%5f",d));
                                              ^
Main.java:9: error: ';' expected
System.out.println(String.format("%5f",S);+" "+String.format("%5f",d));
                                                                     ^
3 errors
Language: Java

import java.util.*;
public class Main{
public static void main(String[] args){
Scanner scan=new Scanner(System.in);
Formatter frm=new Formatter();
double r=scan.nextDouble();
double S=Math.PI*r*r*1.0;
double d=2*Math.PI*r*1.0;
System.out.println(String.format("%5f",S);+" "+String.format("%5f",d));
}}

Compiler output:
Main.java:9: error: ')' or ',' expected
System.out.println(String.format("%5f",S);+" "+String.format("%5f",d));
                                         ^
Main.java:9: error: not a statement
System.out.println(String.format("%5f",S);+" "+String.format("%5f",d));
                                              ^
Main.java:9: error: ';' expected
System.out.println(String.format("%5f",S);+" "+String.format("%5f",d));
                                                                     ^
3 errors
Language: Java

import java.io.*;

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

  int r = scan.nextInt();
  double pi = Math.PI;

  System.out.println(r * r * pi);
  System.out.println(r * 2 * pi);
}
}

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

import java.util.Scanner;

public class main {
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
	    double a = Double.parseDouble( scan.next());
	    double pi=Math.PI;
	    
	    double area = a * a * pi;
	    double length = 2 * a * pi;
	    
	    System.out.println(area + " "+ length);
 
	}
}

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

import java.util.*;
public class Main {
	public static void main(String[] args) throws Exception{
		Scanner sc = new Scanner(System.in);
		final double pie =  3.141592653589;
		Double d = sc.nextDouble();
		System.out.println(String.format("%.6f %.6f",d*d*pie 2*d*pie));
	}
}

Compiler output:
Main.java:7: error: ')' or ',' expected
		System.out.println(String.format("%.6f %.6f",d*d*pie 2*d*pie));
		                                                    ^
Main.java:7: error: not a statement
		System.out.println(String.format("%.6f %.6f",d*d*pie 2*d*pie));
		                                                        ^
Main.java:7: error: ';' expected
		System.out.println(String.format("%.6f %.6f",d*d*pie 2*d*pie));
		                                                            ^
3 errors
Language: Java

import java.util.Scanner;

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

		r = scan.nextInt();

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

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

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

public class Main {

	public static void main(String[] args) {


        try {
            BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
            String inputData = reader.readLine();

            BigDecimal r = new BigDecimal(inputData);
			BigDecimal bdPI = new BigDecimal(3.14159265358979323846d);

			BigDecimal area = r.pow(2).multiply(bdPI).setScale(6, BigDecimal.ROUND_HALF_UP);
			BigDecimal round = bdPI.multiply(r).multiply(new BigDecimal(2)).setScale(6, BigDecimal.ROUND_HALF_UP);

            System.out.println(area.toPlainString() + " " + round.toPlainString());

        } catch (IOException e) {
            e.printStackTrace();
        }

	}

}

Compiler output:
Main.java:11: error: cannot find symbol
            BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
            ^
  symbol:   class BufferedReader
  location: class Main
Main.java:11: error: cannot find symbol
            BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
                                        ^
  symbol:   class BufferedReader
  location: class Main
Note: Main.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
2 errors
Language: Java

import java.util.Scanner;

public class MainB {
	public static void main(String[]args){
		//????????£?????????????????????
		Scanner sc = new Scanner (System.in);
		//???????????? ??????r
		double r = sc.nextDouble();

		//???????°???
		double PI = 3.14;

		//??¢???????±??????? ??´??? ?? 3.14
		double Area = (r + r) * Math.PI;
		//?????¨????????? ?????? ?? ?????? ??3.14
		double Circle = ( r * r ) * Math.PI;

		//??¨???
		System.out.printf("%.6f %.6f", Area,Circle);
	}
}

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

import java.util.Scanner;
public class Main {
    public static void main(String[] args){
        Scanner scan = new java.util.Scanner(System.in);
       double r = scan.nextInt();
       double S = r * r * pi;
       double d = 2 * r * pi;
       System.out.printf((%.05f), S);
       System.out.print(" ");
       System.out.printf((%.05f), d);
    }
}

Compiler output:
Main.java:8: error: illegal start of expression
       System.out.printf((%.05f), S);
                          ^
Main.java:10: error: illegal start of expression
       System.out.printf((%.05f), d);
                          ^
2 errors
Language: Java

import java.util.Scanner;
public class Main {
    public static void main(String[] args){
        Scanner scan = new java.util.Scanner(System.in);
       double r = scan.nextInt();
       double S = r * r * pi;
       double d = 2 * r * pi;
       System.out.printf("%.05f", S);
       System.out.print(" ");
       System.out.printf("%.05f", d);
    }
}

Compiler output:
Main.java:6: error: cannot find symbol
       double S = r * r * pi;
                          ^
  symbol:   variable pi
  location: class Main
Main.java:7: error: cannot find symbol
       double d = 2 * r * pi;
                          ^
  symbol:   variable pi
  location: class Main
2 errors
Language: Java

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

public class ComputationCircle {

	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String data[] = br.readLine().split(" ");
		int r = Integer.parseInt(data[0]);

		double a = r * 2 * 3.14;
		double b = r * r * 3.14;

		System.out.println(a + " " + b);
	}

}

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

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

public class ComputationCircle {

	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 a = r * 2 * 3.14;
		double b = r * r * 3.14;

		System.out.println(a + " " + b);
	}

}

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

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

public class ComputationCircle {

	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 a = r * 2 * Math.PI;
		double b = Math.PI * r * r;

		System.out.println(a + " " + b);
	}

}

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

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

public class ComputationCircle {

	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);;
		System.out.printf("%6f %6f", r * r * Math.PI, r * 2 * Math.PI);
	}

}

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

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

public class Main {

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

}

Compiler output:
Main.java:11: error: no suitable method found for println(double,double)
		System.out.println(r * r * Math.PI, r * 2 * Math.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.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Circle_14 {
	public static void main(String[] args) {
		BufferedReader input = new BufferedReader(new InputStreamReader(System.in));


		  try{


			  String ab;
              
			  double r;
			  //??????
			  double pi=3.141592653589;
			  //?????¨???

			  
			  ab = input.readLine();
		      r= Double.parseDouble(ab);



			  System.out.println(r*r*pi+" "+2*pi*r);


		    }catch(IOException e) {   System.out.println("Exception : " + e);
		    }

	}
}

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

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

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


		  try{


			  String ab;
              
			  double r;
			  
			  double pi=3.14159;
			  
              double menseki=0;
              double ensyuu=0;
			  
			  ab = input.readLine();
		      r= Double.parseDouble(ab);
		      menseki=r*r*pi;
		      ensyuu=2*r*pi;


			  System.out.println(menseki+" "+ensyuu);


		    }catch(IOException e) {   System.out.println("Exception : " + e);
		    }

	}

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

import java.io.*;
 
public class Main {
 
    public static void main(String[] args) throws IOException {
        double dHankei = 0;
        double dEnsyuritu = Math.PI;
        
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str = br.readLine();
         
        r = Double.parseDouble(str);
         
        double dMenseki = r * r * dEnsyuritu; 
        double dMawari = r * 2 * dEnsyuritu;
         
        String Answer1 = String.format("%.6f", dMenseki);
        String Answer2 = String.format("%.6f", dMawari);
         
        System.out.println(Answer1 + " " + Answer2);
    }
}

Compiler output:
Main.java:12: error: cannot find symbol
        r = Double.parseDouble(str);
        ^
  symbol:   variable r
  location: class Main
Main.java:14: error: cannot find symbol
        double dMenseki = r * r * dEnsyuritu; 
                          ^
  symbol:   variable r
  location: class Main
Main.java:14: error: cannot find symbol
        double dMenseki = r * r * dEnsyuritu; 
                              ^
  symbol:   variable r
  location: class Main
Main.java:15: error: cannot find symbol
        double dMawari = r * 2 * dEnsyuritu;
                         ^
  symbol:   variable r
  location: class Main
4 errors
Language: Java

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

			a = pi * r * r;
			b = 2 * pi * r;
			System.out.println(a + " " + b);
	}
}

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

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

public class Main{
    public static void main(Stirng[] args){
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int n = Integer.parseInt(br.readLine());

        double sq = (double)n * (double)n * Math.PI;
        String ans1 = String.format("%.5f",sq);

        double len = (double)n * 2 * Math.PI;
        String ans2 = String.format("%.5f",len);

        System.out.println(ans1 + " " + ans2);


    }
}

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

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

public class Main{
    public static void main(String[] args){
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int n = Integer.parseInt(br.readLine());

        double sq = (double)n * (double)n * Math.PI;
        String ans1 = String.format("%.5f",sq);

        double len = (double)n * 2 * Math.PI;
        String ans2 = String.format("%.5f",len);

        System.out.println(ans1 + " " + ans2);


    }
}

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

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

public class Main{
    public static void main(String[] args){
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        
        String str = br.readLine();
        String[] strs = str.split("\\s");
        int n = Integer.parseInt(strs[i]);

        double sq = (double)n * (double)n * Math.PI;
        String ans1 = String.format("%.5f",sq);

        double len = (double)n * 2 * Math.PI;
        String ans2 = String.format("%.5f",len);

        System.out.println(ans1 + " " + ans2);


    }
}

Compiler output:
Main.java:10: error: cannot find symbol
        int n = Integer.parseInt(strs[i]);
                                      ^
  symbol:   variable i
  location: class Main
1 error
Language: Java

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

public class Main{
    public static void main(String[] args){
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        
        String str = br.readLine();
        String[] strs = str.split("\\s");
        int n = Integer.parseInt(strs[0]);

        double sq = (double)n * (double)n * Math.PI;
        String ans1 = String.format("%.5f",sq);

        double len = (double)n * 2 * Math.PI;
        String ans2 = String.format("%.5f",len);

        System.out.println(ans1 + " " + ans2);


    }
}

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

import java.util.*;
import java.math.*;

class Main{
  public static void main(String[] args){
    Scanner scanner = new Scanner(System.in);
    int r = scanner.nextInt();
	BigDecimal circArea = new BigDecimal(r*r*Math.PI);
	circArea.scale=5;
	BigDecimal circFere = new BigDecimal(2*r*Math.PI);
	circFere.scale=5;
	System.out.println(circArea.toPlainString()+" "+circFere.toPlainString());
  }
}
	

Compiler output:
Main.java:9: error: scale has private access in BigDecimal
	circArea.scale=5;
	        ^
Main.java:11: error: scale has private access in BigDecimal
	circFere.scale=5;
	        ^
2 errors
Language: Java

import java.util.*;
import java.math.*;

class Main{
  public static void main(String[] args){
    Scanner scanner = new Scanner(System.in);
    int r = scanner.nextInt();
	long x=Math.PI;
	BigDecimal circArea = new BigDecimal(r*r*x);
	circArea.setScale(5);
	BigDecimal circFere = new BigDecimal(2*r*x);
	circFere.setScale(5);
	System.out.println(circArea.toPlainString()+" "+circFere.toPlainString());
  }
}

Compiler output:
Main.java:8: error: incompatible types: possible lossy conversion from double to long
	long x=Math.PI;
	           ^
1 error
Language: Java

import java.util.*;
import java.Math.*;

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

Compiler output:
Main.java:2: error: package java.Math does not exist
import java.Math.*;
^
1 error
Language: Java

import java.util.*;

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

Compiler output:
Main.java:9: error: cannot find symbol
		System.out.pritn(" ");
		          ^
  symbol:   method pritn(String)
  location: variable out of type PrintStream
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 = scan.next();
double x = Math.PI * 2 * p;
double z = Math.PI * (p *p);
	System.out.println(z + x);
}
}



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

class Main{
	public static void main(String[] args){
		Scanner in = new Scanner(System.in);
		
		double a = in.nextInt();
		double b = in.nextInt();
		
		System.out.println((r*r*3.14) + " " + (2r * 3.14));
	}
}


Compiler output:
Main.java:8: error: ')' expected
		System.out.println((r*r*3.14) + " " + (2r * 3.14));
		                                        ^
Main.java:8: error: not a statement
		System.out.println((r*r*3.14) + " " + (2r * 3.14));
		                                          ^
Main.java:8: error: ';' expected
		System.out.println((r*r*3.14) + " " + (2r * 3.14));
		                                                ^
3 errors
Language: Java

class Main{
	public static void main(String[] args){
		Scanner in = new Scanner(System.in);
		
		double r = in.nextInt();
				
		System.out.println((r*r*3.14) + " " + (2r * 3.14));
	}
}


Compiler output:
Main.java:7: error: ')' expected
		System.out.println((r*r*3.14) + " " + (2r * 3.14));
		                                        ^
Main.java:7: error: not a statement
		System.out.println((r*r*3.14) + " " + (2r * 3.14));
		                                          ^
Main.java:7: error: ';' expected
		System.out.println((r*r*3.14) + " " + (2r * 3.14));
		                                                ^
3 errors
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();

		double pi = Math.PI;

		double area = r * r * pi;
		double cir = 2 * pi * r;

		System.out.println(String.format("%.6f", area) + " " + String.format("%.6f", cir));

	}

}



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

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

public class Circle {

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

		double x=Math.PI;

		double menseki=r*r*x;
		double gaisyu=2*x*r;

		System.out.println(menseki+" "+gaisyu);
	}

}


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

import java.io.IOException;
import java.util.Scanner;

public class ITP1_4_B {

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

		double a = scan.nextDouble();

		double radi = a * a * 3.141592653589;
		double circ = 2 * a * 3.141592653589;

		String radi2 = String.format("%.6f", radi);
		String circ2 = String.format("%.6f", circ);

		System.out.println(radi2 + " " + circ2);
	}
}



Compiler output:
Main.java:4: 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 Main {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		
		int r = scanner.nextDouble();
		
		System.out.println((r * r * Math.PI) + " " + (2 * r * Math.PI));
	}
} 



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


public class AAAA{
    private Double pi = 3.1415926535

    public static void main(String[] args){
        String str = getLine();
        double r = Double.parseDouble(str);
        double s = r * r * pi;
        double l = (r * 2) * pi;
        System.out.printf("%.6f %.6f\n",s,l);
    }

    public static String getLine(){
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        return br.readLine();
    }

}


Compiler output:
Main.java:3: error: ';' expected
    private Double pi = 3.1415926535
                                    ^
1 error
Language: Java


public class AAAA{
    private Double pi = 3.1415926535;

    public static void main(String[] args){
        String str = getLine();
        double r = Double.parseDouble(str);
        double s = r * r * pi;
        double l = (r * 2) * pi;
        System.out.printf("%.6f %.6f\n",s,l);
    }

    public static String getLine(){
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        return br.readLine();
    }

}




Compiler output:
Main.java:2: error: class AAAA is public, should be declared in a file named AAAA.java
public class AAAA{
       ^
Main.java:8: error: non-static variable pi cannot be referenced from a static context
        double s = r * r * pi;
                           ^
Main.java:9: error: non-static variable pi cannot be referenced from a static context
        double l = (r * 2) * pi;
                             ^
Main.java:14: error: cannot find symbol
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        ^
  symbol:   class BufferedReader
  location: class AAAA
Main.java:14: error: cannot find symbol
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
                                ^
  symbol:   class BufferedReader
  location: class AAAA
Main.java:14: error: cannot find symbol
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
                                                   ^
  symbol:   class InputStreamReader
  location: class AAAA
6 errors
Language: Java

public class ITP1_4_B{
    private Double pi = 3.1415926535;

    public static void main(String[] args){
        String str = getLine();
        double r = Double.parseDouble(str);
        double s = r * r * pi;
        double l = (r * 2) * pi;
        System.out.printf("%.6f %.6f\n",s,l);
    }

    public static String getLine(){
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        return br.readLine();
    }

}



Compiler output:
Main.java:1: error: class ITP1_4_B is public, should be declared in a file named ITP1_4_B.java
public class ITP1_4_B{
       ^
Main.java:7: error: non-static variable pi cannot be referenced from a static context
        double s = r * r * pi;
                           ^
Main.java:8: error: non-static variable pi cannot be referenced from a static context
        double l = (r * 2) * pi;
                             ^
Main.java:13: error: cannot find symbol
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        ^
  symbol:   class BufferedReader
  location: class ITP1_4_B
Main.java:13: error: cannot find symbol
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
                                ^
  symbol:   class BufferedReader
  location: class ITP1_4_B
Main.java:13: error: cannot find symbol
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
                                                   ^
  symbol:   class InputStreamReader
  location: class ITP1_4_B
6 errors
Language: Java

public class Main{
    private Double pi = 3.1415926535;

    public static void main(String[] args){
        String str = getLine();
        double r = Double.parseDouble(str);
        double s = r * r * pi;
        double l = (r * 2) * pi;
        System.out.printf("%.6f %.6f\n",s,l);
    }

    public static String getLine(){
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        return br.readLine();
    }

}




Compiler output:
Main.java:7: error: non-static variable pi cannot be referenced from a static context
        double s = r * r * pi;
                           ^
Main.java:8: error: non-static variable pi cannot be referenced from a static context
        double l = (r * 2) * pi;
                             ^
Main.java:13: error: cannot find symbol
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        ^
  symbol:   class BufferedReader
  location: class Main
Main.java:13: error: cannot find symbol
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
                                ^
  symbol:   class BufferedReader
  location: class Main
Main.java:13: error: cannot find symbol
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
                                                   ^
  symbol:   class InputStreamReader
  location: class Main
5 errors
Language: Java


public class Main{
    private static final Double pi = 3.1415926535;

    public static void main(String[] args){
        String str = getLine();
        double r = Double.parseDouble(str);
        double s = r * r * pi;
        double l = (r * 2) * pi;
        System.out.printf("%.6f %.6f\n",s,l);
    }

    public static String getLine(){
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        return br.readLine();
    }

}




Compiler output:
Main.java:14: error: cannot find symbol
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        ^
  symbol:   class BufferedReader
  location: class Main
Main.java:14: error: cannot find symbol
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
                                ^
  symbol:   class BufferedReader
  location: class Main
Main.java:14: 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.*;
public class Main { 
	public static void main(String[] args){ 
		Scanner sc = new Scanner(System.in); 
		// radius 半径
		int radius = sc.nextInt();
		// 面積 = 半径 * 半径 * Pi
		double area = radius * radius * Math.PI;
		// 円周 = 直径 * Pi
		double leng = (radius *2)* Math.PI;
		System.out.println(area & " " & leng);
	}
}




Compiler output:
Main.java:11: error: bad operand types for binary operator '&'
		System.out.println(area & " " & leng);
		                        ^
  first type:  double
  second type: String
1 error
Language: Java

import java.io.*;

public class Main{
    private static final Double pi = 3.1415926535;

    public static void main(String[] args){
        String str = getLine();
        double r = Double.parseDouble(str);
        double s = r * r * pi;
        double l = (r * 2) * pi;
        System.out.printf("%.6f %.6f\n",s,l);
    }

    public static String getLine(){
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        return br.readLine();
    }

}





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

import java.io.*;

public class Main{
    private static final Double pi = 3.1415926535;

    public static void main(String[] args){
        String str = getLine();
        double r = Double.parseDouble(str);
        double s = r * r * pi;
        double l = (r * 2) * pi;
        System.out.printf("%.6f %.6f\n",s,l);
    }

    public static String getLine(){
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str = br.readLine();
        return str;
    }

}




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