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


import java.io.*;
import java.math.BigDecimal;

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

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

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


Compiler output:
Main.java:6: error: incompatible types: double cannot be converted to BigDecimal
    private static final BigDecimal pi = 3.1415926535;
                                         ^
Main.java:10: error: incompatible types: double cannot be converted to BigDecimal
        BigDecimal r = Double.parseDouble(str);
                                         ^
Main.java:12: error: incompatible types: int cannot be converted to BigDecimal
        double l = r.multiply(2).multiply(pi).doubleValue();
                              ^
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
3 errors
Language: Java


import java.io.*;
import java.math.BigDecimal;

public class Main{
    private static final BigDecimal pi = new BigDecimal(3.1415926535);

    public static void main(String[] args) throws IOException{
        String str = getLine();
        BigDecimal r = new BigDecimal(str);
        double s = r.multiply(r).multiply(pi).doubleValue();
        double l = r.multiply(2).multiply(pi).doubleValue();
        System.out.printf("%.6f %.6f\n",s,l);
    }

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


Compiler output:
Main.java:12: error: incompatible types: int cannot be converted to BigDecimal
        double l = r.multiply(2).multiply(pi).doubleValue();
                              ^
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
1 error
Language: Java

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

public class Main { 
    public static void main(String[] args) { 
    	Scanner sc = new Scanner(System.in); 
        // radius 半径
        Stirng strRadius = sc.nextLine();
    	int radius = parse.double(strRadius);

        // 面積 = 半径 * 半径 * Pi
        double area = radius * radius * Math.PI;
        // 円周 = 直径 * Pi
        double leng = (radius *2)* Math.PI;

        System.out.println(area + " " + leng);
    }
}




Compiler output:
Main.java:9: error: <identifier> expected
    	int radius = parse.double(strRadius);
    	                   ^
Main.java:9: error: ';' expected
    	int radius = parse.double(strRadius);
    	                         ^
Main.java:9: error: not a statement
    	int radius = parse.double(strRadius);
    	                          ^
Main.java:9: error: ';' expected
    	int radius = parse.double(strRadius);
    	                                   ^
4 errors
Language: Java

import java.io.*;
import java.Math.*;

public class Main{

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

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




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

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

public class Main { 
    public static void main(String[] args) { 
    	Scanner sc = new Scanner(System.in); 
        // radius 半径
        Stirng strRadius = sc.nextLine();
    	double radius = parse.double(strRadius);

        // 面積 = 半径 * 半径 * Pi
        double area = radius * radius * Math.PI;
        // 円周 = 直径 * Pi
        double leng = (radius *2)* Math.PI;

        System.out.println(area + " " + leng);
    }
}




Compiler output:
Main.java:9: error: <identifier> expected
    	double radius = parse.double(strRadius);
    	                      ^
Main.java:9: error: ';' expected
    	double radius = parse.double(strRadius);
    	                            ^
Main.java:9: error: not a statement
    	double radius = parse.double(strRadius);
    	                             ^
Main.java:9: error: ';' expected
    	double radius = parse.double(strRadius);
    	                                      ^
4 errors
Language: Java

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

public class Main { 
    public static void main(String[] args) { 
    	Scanner sc = new Scanner(System.in); 
        // radius 半径
        double radius = sc.nextDouble();

        // 面積 = 半径 * 半径 * Pi
        double area = radius * radius * Math.PI;
        // 円周 = 直径 * Pi
        double leng = (radius *2)* Math.PI;

        //System.out.println(area + " " + leng);
 		System.out.println("%.6f %.6f\n",area,leng)
    }
}




Compiler output:
Main.java:16: error: ';' expected
 		System.out.println("%.6f %.6f\n",area,leng)
 		                                           ^
1 error
Language: Java

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

public class Main { 
	public static void main(String[] args) { 
	Scanner sc = new Scanner(System.in); 
		// radius 半径
		double radius = sc.nextDouble();

		// 面積 = 半径 * 半径 * Pi
		double area = radius * radius * Math.PI;
		// 円周 = 直径 * Pi
		double leng = (radius *2)* Math.PI;

		//System.out.println(area + " " + leng);
		System.out.println("%.6f %.6f\n",area,leng);
	}
}




Compiler output:
Main.java:16: error: no suitable method found for println(String,double,double)
		System.out.println("%.6f %.6f\n",area,leng);
		          ^
    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.*;
import java.lang.*;
public class Main { public static void main(String[] args) {
		Scanner sc = new Scanner(System.in); 
		// radius 半径
		double radius = sc.nextDouble(); 
		// 面積 = 半径 * 半径 * Pi
		double area = radius * radius * Math.PI; 
		// 円周 = 直径 * Pi 
		double leng = (radius *2)* Math.PI;
	
		//System.out.println(area + " " + leng); 
		System.out.println("%.6f %.6f\n",area,leng);
	}
} 


Compiler output:
Main.java:13: error: no suitable method found for println(String,double,double)
		System.out.println("%.6f %.6f\n",area,leng);
		          ^
    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 Text.Printf

main = do
    r <- getDouble
    let s = r * r * pi
    let l = r * 2 * pi
    putStrLn $ printf "%.6f %.6f\n" s l

getDouble :: IO (Double)
getDouble = do
    str <- getLine
    return $ read str



Compiler output:
Main.java:1: error: ';' expected
import Text.Printf
                  ^
1 error
Language: Java

import java.util.Scanner;

public class aizu14 {
	public static void main(String [] args) {
		Scanner stdIn = new Scanner(System.in);
		double S, cir;
		double r = stdIn.nextDouble();
		
		while(0 > r || r > 10000f) {
			r = stdIn.nextDouble();
		}
		
		cir = Math.PI * 2 * r;
		S = Math.PI * r * r;
		
		System.out.println(S + " " + cir);
		
		
	}
}


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

import java.io.*;

public class Circle{
    public static void main(String args[]){
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        try{
            String line = reader.readLine();
            int radius = Integer.parseInt(line);
            double area = radius * radius * Math.PI;
            double circle = 2 * radius * Math.PI;
            System.out.println(area );
            System.out.println(circle);
        } catch(IOExeption e){
            System.out.println(e);
        }
    }
}


Compiler output:
Main.java:3: error: class Circle is public, should be declared in a file named Circle.java
public class Circle{
       ^
Main.java:13: error: cannot find symbol
        } catch(IOExeption e){
                ^
  symbol:   class IOExeption
  location: class Circle
2 errors
Language: Java

import java.io.*;

public class Circle{
    public static void main(String args[]){
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        try{
            String line = reader.readLine();
            int radius = Integer.parseInt(line);
            double area = radius * radius * Math.PI;
            double circle = 2 * radius * Math.PI;
            System.out.println(area );
            System.out.println(circle);
        } catch(IOException e){
            System.out.println(e);
        }
    }
}


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

public class Main{
    public static void main(String args[]){
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
            String line = reader.readLine();
            int radius = Integer.parseInt(line);
            double area = radius * radius * Math.PI;
            double circle = 2 * radius * Math.PI;
            System.out.println(area );
            System.out.println(circle);
    }
}


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

import java.util.Scanner;

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

        double area = Math.pow(r,2)*pi;
        double length = 2*pi*r;
        System.out.printf("%f %f",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

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



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

import java.util.Scanner;

public class Circle{
    public static void main(String[] arg){
        Scanner sc = new Scanner(System.in);
        double r = sc.nextDouble();
        System.out.println(r*r*Math.PI);
    }
}


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

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

        int a = sc.nextInt();
        String op = sc.next();
        int b = sc.nextInt();

        while(op != "?")
        {
            if(op == "+")
                System.out.println(a + b);
            if(op == "-")
                System.out.println(a - b);
            if(op == "*")
                System.out.println(a * b);
            if(op == "/")
                System.out.println(a / b);

            a = sc.nextInt();
            op = sc.next();
            b = sc.nextInt();
        }
    }
}


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

import java.util.Scanner;
public class Main {
public static void main(String[] args) {

Scanner sc = new Scanner(System.in);
double r = sc.nextDouble();
//int b = sc.nextInt();
double area = r*r*pi;
double length = 2*r*pi;
System.out.printf("%f %f", area, length);
}
}


Compiler output:
Main.java:8: error: cannot find symbol
double area = r*r*pi;
                  ^
  symbol:   variable pi
  location: class Main
Main.java:9: error: cannot find symbol
double length = 2*r*pi;
                    ^
  symbol:   variable pi
  location: class Main
2 errors
Language: Java

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


Compiler output:
Main.java:5: error: incompatible types: float cannot be converted to String
    String r = Float.parseFloat(sc.next());
                               ^
Main.java:6: error: cannot find symbol
    System.out.printf("%f %f\n", Float.parseFloat(Math*PI*r*r), Float.parseFloat(2*Math*PI*r));
                                                  ^
  symbol:   variable Math
  location: class Main
Main.java:6: error: cannot find symbol
    System.out.printf("%f %f\n", Float.parseFloat(Math*PI*r*r), Float.parseFloat(2*Math*PI*r));
                                                       ^
  symbol:   variable PI
  location: class Main
Main.java:6: error: cannot find symbol
    System.out.printf("%f %f\n", Float.parseFloat(Math*PI*r*r), Float.parseFloat(2*Math*PI*r));
                                                                                   ^
  symbol:   variable Math
  location: class Main
Main.java:6: error: cannot find symbol
    System.out.printf("%f %f\n", Float.parseFloat(Math*PI*r*r), Float.parseFloat(2*Math*PI*r));
                                                                                        ^
  symbol:   variable PI
  location: class Main
5 errors
Language: Java

import java.util.Scanner;
public class Main {
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    float r = Float.parseFloat(sc.next());
    float area = Math.PI*r*r;
    float length = Math.PI*2*r;
    System.out.printf("%f %f\n", aera, length);
  }
}


Compiler output:
Main.java:6: error: incompatible types: possible lossy conversion from double to float
    float area = Math.PI*r*r;
                          ^
Main.java:7: error: incompatible types: possible lossy conversion from double to float
    float length = Math.PI*2*r;
                            ^
Main.java:8: error: cannot find symbol
    System.out.printf("%f %f\n", aera, length);
                                 ^
  symbol:   variable aera
  location: class Main
3 errors
Language: Java

import java.util.Scanner;

public class cycle {
public static void main(String[] args) {
	Scanner sc = new Scanner(System.in);
	double x= sc.nextInt();
	double a=2*Math.PI*x;
	double b=Math.PI*x*x;
	System.out.println(String.format("%1$.6f", a)+" "+String.format("%1$.6f", b));
}
}



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

package momoko1;
import java.util.Scanner;

public class helloworld{

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        double PI=Math.PI;
        double r = sc.nextInt();
        double s=PI*r*r;
        double R=2*PI*r;
        System.out.printf("%f %f\n",s,R);
    }
}


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

package momoko1;
import java.util.Scanner;

public class helloworld{

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        double PI=Math.PI;
        double r = sc.nextInt();
        double s=PI*r*r;
        double R=2*PI*r;
        System.out.printf("%f %f\n",s,R);
    }
}



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

import java.util.Scanner;
 
class Main {
    public static void main(String[] args) {
        Scanner r = new Scanner(System.in);
        double r nextDouble();
        double pi = Math.PI;
        double area = PI*r*r;
        double length = 2*PI*r;
        System.out.println(area+""+length);
    }
}


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

import java.util.Scanner;
 
class Main {
    public static void main(String[] args) {
        Scanner r = new Scanner(System.in);
        double r nextdouble();
        double pi = Math.PI;
        double area = PI*r*r;
        double length = 2*PI*r;
        System.out.println(area+""+length);
    }
}


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

package momoko1;
import java.util.Scanner;

public class helloworld{

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


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

package momoko1;
import java.util.Scanner;

public class helloworld{

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


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

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


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

package momoko1;
import java.util.Scanner;

public class helloworld{

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




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

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


Compiler output:
Main.java:6: error: variable r is already defined in method main(String[])
        double r = nextDouble();
               ^
Main.java:6: error: cannot find symbol
        double r = nextDouble();
                   ^
  symbol:   method nextDouble()
  location: class Main
Main.java:8: error: cannot find symbol
        double area = PI*r*r;
                      ^
  symbol:   variable PI
  location: class Main
Main.java:9: error: cannot find symbol
        double length = 2*PI*r;
                          ^
  symbol:   variable PI
  location: class Main
4 errors
Language: Java

import java.util.Scanner;

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

        int a = sc.nextInt();
        int b = sc.nextInt();
        int area = a * b;
        int length = 2 * (a + b);

        System.out.println(area + " " + length);
    }
}


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

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


Compiler output:
Main.java:8: error: cannot find symbol
        double area = PI*r*r;
                      ^
  symbol:   variable PI
  location: class Main
Main.java:9: error: cannot find symbol
        double length = 2*PI*r;
                          ^
  symbol:   variable PI
  location: class Main
2 errors
Language: Java

import java.io.*;

public class cycle{
    public static void main(String[] args){
        double l,s;
        int r;
        BufferedReader rbox = new BufferedReader(new InputStreamReader(System.in));
        try{
            System.out.println("Input r:");
            String line = rbox.readLine();
            r = Integer.parseInt(line);
            l = r * 2 * Math.PI;
            s = r * r * Math.PI;
            System.out.printf("%f %f\n",l,s);
        }catch(NumberFormatException e){
            System.out.println(e);
        }catch(IOException e){
            System.out.println(e);
        }
    }
}


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

package HelloWrold;

import java.util.Scanner;

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

         Scanner sc = new Scanner(System.in);

            int a = sc.nextInt();
    
            int m = a*b;
            int e = 2*a + 2*b;
        System.out.println(area + " " +length);
    }
}



Compiler output:
Main.java:12: error: cannot find symbol
            int m = a*b;
                      ^
  symbol:   variable b
  location: class Main
Main.java:13: error: cannot find symbol
            int e = 2*a + 2*b;
                            ^
  symbol:   variable b
  location: class Main
Main.java:14: error: cannot find symbol
        System.out.println(area + " " +length);
                           ^
  symbol:   variable area
  location: class Main
Main.java:14: error: cannot find symbol
        System.out.println(area + " " +length);
                                       ^
  symbol:   variable length
  location: class Main
4 errors
Language: Java

package HelloWrold;

import java.util.Scanner;

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

         Scanner sc = new Scanner(System.in);

            int a = sc.nextInt();
    
            int m = a*b;
            int e = 2*a + 2*b;
        System.out.println(area + " " +length);
    }
}



Compiler output:
Main.java:12: error: cannot find symbol
            int m = a*b;
                      ^
  symbol:   variable b
  location: class Main
Main.java:13: error: cannot find symbol
            int e = 2*a + 2*b;
                            ^
  symbol:   variable b
  location: class Main
Main.java:14: error: cannot find symbol
        System.out.println(area + " " +length);
                           ^
  symbol:   variable area
  location: class Main
Main.java:14: error: cannot find symbol
        System.out.println(area + " " +length);
                                       ^
  symbol:   variable length
  location: class Main
4 errors
Language: Java



import java.util.Scanner;

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

         Scanner sc = new Scanner(System.in);

            int a = sc.nextInt();
    
            int m = a*b;
            int e = 2*a + 2*b;
        System.out.println(area + " " +length);
    }
}



Compiler output:
Main.java:12: error: cannot find symbol
            int m = a*b;
                      ^
  symbol:   variable b
  location: class Main
Main.java:13: error: cannot find symbol
            int e = 2*a + 2*b;
                            ^
  symbol:   variable b
  location: class Main
Main.java:14: error: cannot find symbol
        System.out.println(area + " " +length);
                           ^
  symbol:   variable area
  location: class Main
Main.java:14: error: cannot find symbol
        System.out.println(area + " " +length);
                                       ^
  symbol:   variable length
  location: class Main
4 errors
Language: Java

import java.util.Scanner;

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

         Scanner sc = new Scanner(System.in);

            int a = sc.nextInt();
    
            int m = a*b;
            int e = 2*a + 2*b;
        System.out.println(area + " " +length);
    }
}



Compiler output:
Main.java:10: error: cannot find symbol
            int m = a*b;
                      ^
  symbol:   variable b
  location: class Main
Main.java:11: error: cannot find symbol
            int e = 2*a + 2*b;
                            ^
  symbol:   variable b
  location: class Main
Main.java:12: error: cannot find symbol
        System.out.println(area + " " +length);
                           ^
  symbol:   variable area
  location: class Main
Main.java:12: error: cannot find symbol
        System.out.println(area + " " +length);
                                       ^
  symbol:   variable length
  location: class Main
4 errors
Language: Java

import java.util.Scanner;

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


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

public class Main {

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


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

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class main {
  public static void main(String[] agrs){
	  System.out.println("求めたいの円の半径を入力してください：(cm)");
	    BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
	    try {
	    	String r = reader.readLine();
	    	double R = Integer.parseInt(r);
	    	double S =(Math.PI) * R * R;
	    	double D =(Math.PI) * R * 2;
	    	System.out.printf("%f\n",S);
	    	System.out.printf("%f\n",D);
	    	
	    }catch(IOException e) {
	    	 System.out.println(e);
	     }catch(NumberFormatException e) {
	    	 System.out.println("you input wrong number.");
	  
	  
  }
}
}



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

import java.io.*;

public class main{
    public static void main(String[] args){
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        try{
            String line = reader.readLine();
            double r=Integer.parseInt(line);
            System.out.printf("%6f %6f",2*Math.PI*r,Math.PI*r*r);
        }catch (IOException e){
	    System.out.println(e);
        }
    }
}
  


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



public class Main{
    public static void main(String[] args){
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        try{
            String line = reader.readLine();
            double r=Integer.parseInt(line);
            System.out.printf("%6f %6f",2*Math.PI*r,Math.PI*r*r);
        }catch (IOException e){
	    System.out.println(e);
        }
    }
}
  


Compiler output:
Main.java:5: error: cannot find symbol
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        ^
  symbol:   class BufferedReader
  location: class Main
Main.java:5: error: cannot find symbol
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
                                    ^
  symbol:   class BufferedReader
  location: class Main
Main.java:5: error: cannot find symbol
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
                                                       ^
  symbol:   class InputStreamReader
  location: class Main
Main.java:10: error: cannot find symbol
        }catch (IOException e){
                ^
  symbol:   class IOException
  location: class Main
4 errors
Language: Java

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



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

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


Compiler output:
Main.java:5: error: 'try' without 'catch', 'finally' or resource declarations
        try{
        ^
Main.java:10: error: reached end of file while parsing
}
 ^
2 errors
Language: Java

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


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

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


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

import java.io.*;

public class Circle{
    public static void main(String[] args){
        double r,S,C;
        String line;
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        try{
            System.out.print("r:");
            line=reader.readLine();
            r=Double.parseDouble(line);

            S=r*r*Math.PI;
            C=2.0*r*Math.PI;
            
            System.out.println(S);
            System.out.println(C);

        }catch(NumberFormatException e){
            System.out.println(e);
        }catch(IOException e){
            System.out.println(e);
        }
    }
}


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

public class Circle{
    public static void main(String[] args){
        double r,S,C;
        String line;
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        line=reader.readLine();
        r=Double.parseDouble(line);

        S=r*r*Math.PI;
        C=2.0*r*Math.PI;
            
        System.out.print(S+" "+C);
    }
}


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

public class Circle{
    public static void main(String[] args){
        double r,S,C;
        String line;
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        try{
            line=reader.readLine();
            r=Double.parseDouble(line);

            S=r*r*Math.PI;
            C=2.0*r*Math.PI;
            
            System.out.print(S+" "+C);

        }catch(NumberFormatException e){
            System.out.println(e);
        }catch(IOException e){
            System.out.println(e);
        }
    }
}


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

public class Main {
	public static void main(String[] args){
		Scanner scan=new Scanner(System.in);
		double r=scan.nextdouble();
		double S=Math.PI * r * r;
		double L=2*Math.PI*r;
		System.out.printf("%f %f\n",S,L);
		
	}
}


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

import java.util.Scanner;

public class ITP_1_4_B {
	public static void main(String args[]) {
		Scanner scn = new Scanner(System.in);
		double r = scn.nextInt();
		scn.close();
		System.out.println((float)(r * r * Math.PI) + " " + (float)(2 * Math.PI * r));
	}
}



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

import java.io.*;

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


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

import java.lang.Math
import java.util.Scanner;
public class Main {
    public static void main(String[] args){
        Scanner sc  = new Scanner(System.in);
        int a = sc.nextInt();

        System.out.printf("%f %f",(double)((a+a)*Math.PI),(double)(a*a*Math.PI));
        sc.close();
    }
}



Compiler output:
Main.java:1: error: ';' expected
import java.lang.Math
                     ^
1 error
Language: Java

import java.util.*;

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

    Scanner sc = new Scanner(System.in);
    double r = sc.nextLine();

    System.out.println(((r^2)*3.141592)+" "+2*r*3.141592);
  }
}


Compiler output:
Main.java:7: error: incompatible types: String cannot be converted to double
    double r = sc.nextLine();
                          ^
Main.java:9: error: bad operand types for binary operator '^'
    System.out.println(((r^2)*3.141592)+" "+2*r*3.141592);
                          ^
  first type:  double
  second type: int
2 errors
Language: Java

import java.util.*;

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

    Scanner sc = new Scanner(System.in);
    double r = sc.nextDouble();

    System.out.println(((r^2)*3.141592)+" "+(2*r*3.141592));
  }
}



Compiler output:
Main.java:9: error: bad operand types for binary operator '^'
    System.out.println(((r^2)*3.141592)+" "+(2*r*3.141592));
                          ^
  first type:  double
  second type: int
1 error
Language: Java

import java.util.Scanner;


public class Main {

	public static void main(String [] args) {
		
		Scanner sc = new Scanner(System.in);
		
		float r = sc.nextInt();
		
		float one = math.pi() * r * r;
		
		float two = math.pi() * 2 * r;
		
		System.out.println(one + " " + two);
		
		//円周率問題があるかもしれない
		
				
	}
}



Compiler output:
Main.java:12: error: cannot find symbol
		float one = math.pi() * r * r;
		            ^
  symbol:   variable math
  location: class Main
Main.java:14: error: cannot find symbol
		float two = math.pi() * 2 * r;
		            ^
  symbol:   variable math
  location: class Main
2 errors
Language: Java

import java.util.Scanner;


public class Main {

	public static void main(String [] args) {
		
		Scanner sc = new Scanner(System.in);
		
		float r = sc.nextInt();
		
		float one = math.pi * r * r;
		
		float two = math.pi * 2 * r;
		
		System.out.println(one + " " + two);
		
		//円周率問題があるかもしれない
		
				
	}
}



Compiler output:
Main.java:12: error: cannot find symbol
		float one = math.pi * r * r;
		            ^
  symbol:   variable math
  location: class Main
Main.java:14: error: cannot find symbol
		float two = math.pi * 2 * r;
		            ^
  symbol:   variable math
  location: class Main
2 errors
Language: Java

import java.util.Scanner;


public class Main {

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

int i = math.pi;

		
		float one = i * r * r;
		
		float two = i * 2 * r;
		
		System.out.println(one + " " + two);
		
		//円周率問題があるかもしれない
		
				
	}
}



Compiler output:
Main.java:12: error: cannot find symbol
int i = math.pi;
        ^
  symbol:   variable math
  location: class Main
1 error
Language: Java

import java.util.Scanner;


public class Main {

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

int i = math.pi;

		
		float one = i * r * r;
		
		float two = i * 2 * r;
		
		System.out.println(one + " " + two);
		
		//円周率問題があるかもしれない
		
				
	}
}



Compiler output:
Main.java:12: error: cannot find symbol
int i = math.pi;
        ^
  symbol:   variable math
  location: class Main
1 error
Language: Java

import java.util.Scanner;


public class Main {

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

int i = math.pi;

		
		float one = (float)(i * r * r);
		
		float two = (float)(i * 2 * r);
		
		System.out.println(one + " " + two);
		
		//円周率問題があるかもしれない
		
				
	}
}



Compiler output:
Main.java:12: error: cannot find symbol
int i = math.pi;
        ^
  symbol:   variable math
  location: class Main
1 error
Language: Java

import java.util.Scanner;


public class Main {

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

int i = math.pi;

		
		float one = (float)(i * r * r);
		
		float two = (float)(i * 2 * r);
		
		System.out.println(one + " " + two);
	
		
				
	}
}



Compiler output:
Main.java:12: error: cannot find symbol
int i = math.pi;
        ^
  symbol:   variable math
  location: class Main
1 error
Language: Java

import java.util.Scanner;


public class Main {

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

float i = math.pi;

		
		float one = (float)(i * r * r);
		
		float two = (float)(i * 2 * r);
		
		System.out.println(one + " " + two);
	
		
				
	}
}



Compiler output:
Main.java:12: error: cannot find symbol
float i = math.pi;
          ^
  symbol:   variable math
  location: class Main
1 error
Language: Java

import java.util.Scanner;


public class Main {

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

double i = math.pi;

		
		float one = (float)(i * r * r);
		
		float two = (float)(i * 2 * r);
		
		System.out.println(one + " " + two);
	
		
				
	}
}



Compiler output:
Main.java:12: error: cannot find symbol
double i = math.pi;
           ^
  symbol:   variable math
  location: class Main
1 error
Language: Java

import java.util.Scanner;


public class Main {

	public static void main(String [] args) {
		
		Scanner sc = new Scanner(System.in);
		
		float r = sc.nextfloat();

Double i = Math.PI;

		
		float one = (float)(i * r * r);
		
		float two = (float)(i * 2 * r);
		
		System.out.println(one + " " + two);
	
		
				
	}
}



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

import java.util.Scanner;


public class Main {

	public static void main(String [] args) {
		
		Scanner sc = new Scanner(System.in);
		
		double r = sc.nextint();

Double i = Math.PI;

		
		float one = (float)(i * r * r);
		
		float two = (float)(i * 2 * r);
		
		System.out.println(one + " " + two);
	
		
				
	}
}



Compiler output:
Main.java:10: error: cannot find symbol
		double r = sc.nextint();
		             ^
  symbol:   method nextint()
  location: variable sc of type Scanner
1 error
Language: Java

import java.util.Scanner;


public class Main {

	public static void main(String [] args) {
		
		Scanner sc = new Scanner(System.in);
		
		double r = sc.nextint();

Double i = Math.PI;

		
		double one = (double)(i * r * r);
		
		double two = (double)(i * 2 * r);
		
		System.out.println(one + " " + two);
	
		
				
	}
}



Compiler output:
Main.java:10: error: cannot find symbol
		double r = sc.nextint();
		             ^
  symbol:   method nextint()
  location: variable sc of type Scanner
1 error
Language: Java

import java.util.Scanner;


public class Main {

	public static void main(String [] args) {
		
		Scanner sc = new Scanner(System.in);
		
		double r = sc.nextdouble();

Double i = Math.PI;

		
		double one = (double)(i * r * r);
		
		double two = (double)(i * 2 * r);
		
		System.out.println(one + " " + two);
	
		
				
	}
}



Compiler output:
Main.java:10: error: cannot find symbol
		double r = sc.nextdouble();
		             ^
  symbol:   method nextdouble()
  location: variable sc of type Scanner
1 error
Language: Java

 */
public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int r = 0;
        r = sc.nextInt();
        
        System.out.printf("%f  %f",r * r * Math.PI, 2.0 * r * Math.PI);
        
    }
    
}


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

import java.util.Scanner;

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


Compiler output:
Main.java:6: error: cannot find symbol
		double r=stdIn.nextDouble;
		              ^
  symbol:   variable nextDouble
  location: variable stdIn of type Scanner
1 error
Language: Java

import java.io.*;
import java.util.Scanner;
 
public class Main {
    public static double area(double r) {
        return r * r * Math.PI;
    }

    public static double perimeter(double r) {
        return 2 * Math.PI * r;
    }
    public static void main (String[] args) {
        Scanner sc = new Scanner(System.in);
        int r = sc.nextDouble();
        // int b = sc.nextInt();
        System.out.print(area(r) + " " + perimeter(r));
    }
}


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

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


Compiler output:
Main.java:7: error: cannot find symbol
  m=r*r*math.pi;
        ^
  symbol:   variable math
  location: class Main
Main.java:8: error: cannot find symbol
  s=2*r*math.pi;
        ^
  symbol:   variable math
  location: class Main
2 errors
Language: Java

import java.util.Scanner;
class Main{
 public static void main(String args[]){
  double r,m,s;
  Scanner sc = new Scanner(System.in);
  r=sc.nextdouble();
  m=r*r*Math.PI;
  s=2*r*Math.PI;
  System.out.println(m+" "+s);
 }
}


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

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


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

import java.util.Scanner;
import java.math.Bigdecimal;
import.java.math.MathContext;

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

	Scanner s = new Scanner(System.in);
    int a=s.nextInt();	
    int b=s.nextInt();
   // double c= (double)a/(double)b;
       
   System.out.println(a+b+floatingDiv(a,b));
	}
	private static Bigdecimal floata(int a,int b){

	    Bigdecimal num1 = new Bigdecimal((double)a);
	    Bigdecimal num2 = new Bigdecimal((double)b);
	     return num1.divide(num2,Mathcontext.DECIMAL32);
	}

}


Compiler output:
Main.java:3: error: <identifier> expected
import.java.math.MathContext;
      ^
1 error