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

import java.util.Scanner;

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

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 Sc3 {
public static void main(String[] args) {

double pi = Math.PI;
Scanner sc = new Scanner(System.in);

double a = sc.nextDouble();


double area = pi*a*a;
double length = 2*a*pi;

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

}
}

Compiler output:
Main.java:2: error: class Sc3 is public, should be declared in a file named Sc3.java
public class Sc3 {
       ^
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 area = Math.PI * r * r;
	int length = 2 * Math.PI * r;
	System.out.println(area + " " + length);
	}
}

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

import java.util.*;

public class AOJ10009 {
	public static void main(String[] args) {
		@SuppressWarnings("resource")
		Scanner sc = new Scanner(System.in);
		int r = sc.nextInt();
		System.out.printf("%.6f %.6f\n", (Math.PI * r * r), (2 * Math.PI * r));
	}
}

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

import java.util.*;

public class Main_note {

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

}

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

import java.io.*;
import java.util.*;
class Main{
	public static void print(Object o){
		System.out.printf(o);
	}
	public static void main(String[] args){
		Scanner in = new Scanner(System.in);
		double i1 = in.nextDouble();
		double ans1 = i1*i1*3.141592653589;
		double ans2 = i1*2*3.141592653589;
		print("%5f\n",ans1 + " " + ans2);
	}
}

Compiler output:
Main.java:5: error: no suitable method found for printf(Object)
		System.out.printf(o);
		          ^
    method PrintStream.printf(String,Object...) is not applicable
      (argument mismatch; Object cannot be converted to String)
    method PrintStream.printf(Locale,String,Object...) is not applicable
      (argument mismatch; Object cannot be converted to Locale)
Main.java:12: error: method print in class Main cannot be applied to given types;
		print("%5f\n",ans1 + " " + ans2);
		^
  required: Object
  found:    String,String
  reason: actual and formal argument lists differ in length
2 errors
Language: Java

import java.io.*;
import java.util.*;
class Main{
	public static void print(Object o){
		System.out.printf(o);
	}
	public static void main(String[] args){
		Scanner in = new Scanner(System.in);
		double i1 = in.nextDouble();
		double ans1 = i1*i1*3.141592653589;
		double ans2 = i1*2*3.141592653589;
		print("%6f %6f\n",ans1,ans2);
	}
}

Compiler output:
Main.java:5: error: no suitable method found for printf(Object)
		System.out.printf(o);
		          ^
    method PrintStream.printf(String,Object...) is not applicable
      (argument mismatch; Object cannot be converted to String)
    method PrintStream.printf(Locale,String,Object...) is not applicable
      (argument mismatch; Object cannot be converted to Locale)
Main.java:12: error: method print in class Main cannot be applied to given types;
		print("%6f %6f\n",ans1,ans2);
		^
  required: Object
  found:    String,double,double
  reason: actual and formal argument lists differ in length
2 errors
Language: Java

public class Main {    
    public static void main (String [] args){
	Scanner sc =  new Scanner(System.in);
	int vertical = sc.nextInt;
	int horizontal =  sc.nextInt;
	System.out.print((vertical + horizontal) * 2);
	System.out.print(" ");
	System.out.print(vertical * horizontal);	
    }
}

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

import java.util.Scanner;

public class Main {

public static void main(String[] args) {

// 標準入力からデータを読み込む準備

Scanner sc = new Scanner(System.in);

// 2つの文字の固まりをそれぞれ整数値と想定して読み込む


int r = sc.nextInt();

int area = pi*r*r;

int length = pi*2*r

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

}

}

Compiler output:
Main.java:18: error: ';' expected
int length = pi*2*r
                   ^
1 error
Language: Java

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

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



import java.util.Scanner;

public class Main {

public static void main(String[] args) {

// 標準入力からデータを読み込む準備

Scanner sc = new Scanner(System.in);

// 2つの文字の固まりをそれぞれ整数値と想定して読み込む
? double r nextDouble()

? double pi = Math.PI; で円周率が求まる!

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

int r = sc.nextInt();

int area = pi*r*r

int length = 2*pi*r

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

}

}

Compiler output:
Main.java:14: error: illegal start of expression
? double r nextDouble()
^
Main.java:14: error: '.class' expected
? double r nextDouble()
         ^
Main.java:14: error: ';' expected
? double r nextDouble()
          ^
Main.java:16: error: '.class' expected
? double pi = Math.PI; ????????!
         ^
Main.java:16: error: not a statement
? double pi = Math.PI; ????????!
                       ^
Main.java:16: error: ';' expected
? double pi = Math.PI; ????????!
                               ^
Main.java:22: error: ';' expected
int area = pi*r*r
                 ^
Main.java:24: error: ';' expected
int length = 2*pi*r
                   ^
8 errors
Language: Java



import java.util.Scanner;

public class Main {

public static void main(String[] args) {

// 標準入力からデータを読み込む準備

Scanner sc = new Scanner(System.in);

// 2つの文字の固まりをそれぞれ整数値と想定して読み込む
? double r nextDouble()

? double pi = Math.PI; で円周率が求まる!


int r = sc.nextInt();

int area = pi*r*r

int length = 2*pi*r

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

}

}

Compiler output:
Main.java:14: error: illegal start of expression
? double r nextDouble()
^
Main.java:14: error: '.class' expected
? double r nextDouble()
         ^
Main.java:14: error: ';' expected
? double r nextDouble()
          ^
Main.java:16: error: '.class' expected
? double pi = Math.PI; ????????!
         ^
Main.java:16: error: not a statement
? double pi = Math.PI; ????????!
                       ^
Main.java:16: error: ';' expected
? double pi = Math.PI; ????????!
                               ^
Main.java:21: error: ';' expected
int area = pi*r*r
                 ^
Main.java:25: error: : expected
? System.out.printf("%f %f", area, length);
                                          ^
8 errors
Language: Java



import java.util.Scanner;

public class Main {

public static void main(String[] args) {

// 標準入力からデータを読み込む準備

Scanner sc = new Scanner(System.in);

// 2つの文字の固まりをそれぞれ整数値と想定して読み込む
? double r nextDouble()

? double pi = Math.PI; で円周率が求まる!


double r = sc.nextInt();

double area = pi*r*r

int length = 2*pi*r

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

}

}

Compiler output:
Main.java:14: error: illegal start of expression
? double r nextDouble()
^
Main.java:14: error: '.class' expected
? double r nextDouble()
         ^
Main.java:14: error: ';' expected
? double r nextDouble()
          ^
Main.java:16: error: '.class' expected
? double pi = Math.PI; ????????!
         ^
Main.java:16: error: not a statement
? double pi = Math.PI; ????????!
                       ^
Main.java:16: error: ';' expected
? double pi = Math.PI; ????????!
                               ^
Main.java:21: error: ';' expected
double area = pi*r*r
                    ^
Main.java:25: error: : expected
? System.out.printf("%f %f", area, length);
                                          ^
8 errors
Language: Java



import java.util.Scanner;

public class Main {

public static void main(String[] args) {

// 標準入力からデータを読み込む準備

Scanner sc = new Scanner(System.in);

// 2つの文字の固まりをそれぞれ整数値と想定して読み込む
double r nextDouble()

double pi = Math.PI; で円周率が求まる!


double r = sc.nextInt();

double area = pi*r*r

int length = 2*pi*r

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

}

}

Compiler output:
Main.java:14: error: ';' expected
double r nextDouble()
        ^
Main.java:14: error: ';' expected
double r nextDouble()
                     ^
Main.java:16: error: not a statement
double pi = Math.PI; ????????!
                     ^
Main.java:16: error: ';' expected
double pi = Math.PI; ????????!
                             ^
Main.java:21: error: ';' expected
double area = pi*r*r
                    ^
Main.java:25: error: : expected
? System.out.printf("%f %f", area, length);
                                          ^
6 errors
Language: Java

import java.util.Scanner;

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

		double pi=Math.PI;

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

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

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 sc =new Scanner(System.in);
		double r nextDouble();
		double pi=Math.PI;
		System.out.printf("%f %f",r*r*pi,r*2*pi);
	}
}

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

import java.util.Scanner;

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

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

import java.util.Scanner;

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

Compiler output:
Main.java:6: error: ';' expected
		double r nextDouble();
		        ^
Main.java:10: error: ')' or ',' expected
		System.out.printf(a + " "; b);
		                         ^
Main.java:10: error: not a statement
		System.out.printf(a + " "; b);
		                           ^
Main.java:10: error: ';' expected
		System.out.printf(a + " "; b);
		                            ^
4 errors
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 ans1 = pi*r*r;
		double ans2 = 2*pi*r;
		System.out.printf(ans1+" "+ans2\n);
	}
}

Compiler output:
Main.java:10: error: illegal character: '\'
		System.out.printf(ans1+" "+ans2\n);
		                               ^
Main.java:10: error: not a statement
		System.out.printf(ans1+" "+ans2\n);
		                                ^
Main.java:10: error: ';' expected
		System.out.printf(ans1+" "+ans2\n);
		                                 ^
3 errors
Language: Java

import java.util.Scanner;

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

Compiler output:
Main.java:10: error: ')' or ',' expected
		System.out.printf(a + " "; b);
		                         ^
Main.java:10: error: not a statement
		System.out.printf(a + " "; b);
		                           ^
Main.java:10: error: ';' expected
		System.out.printf(a + " "; b);
		                            ^
3 errors
Language: Java


import java.util.Scanner;

public class Circle {
	public static void main(String[] args) {
		// ?¨??????\???????????????????????????????????????
		Scanner sc = new Scanner(System.in);
		// ????????????????????????????????´??°?????¨????????????????????????
		double r = sc.nextDouble();
		double pi = Math.PI; // ??§?????¨???????±???????!

		double length = 2 * pi * r;
		double area = pi * r * r;
		System.out.printf("%f %f%n", area, length);
	}
}

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

import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// 標準入力からデータを読み込む準備
Scanner sc= new Scanner(System.in);
// 2つの文字の固まりをそれぞれ整数値と想定して読み込む
double r = sc.nextInt();
double pi = Math.PI;
double area = r*r*pi;/* ここを変えて面積を求めよう*/
double length = r*2*pi;/* ここを変えて周囲の長さを求めよう*/
System.out.printf("%f %f", area, length);
}

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

import java.util.Scanner;
import java.Math;
public class Main {
 
    public static void main(String[] args) {
        // TODO Auto-generated method stub
        Scanner sc = new Scanner(System.in);
 
        double r = sc.nextInt();       
        double pi = Math.PI;
 
        double area = r * r * pi/* ここを変えて面積を求めよう */;
 
        double length = pi * r * 2/* ここを変えて周囲の長さを求めよう */;
 
        System.out.printf("%6f %6f",area, length);
        sc.close();
    }
 
}

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

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

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 sc = new Scanner(System.in);
double a = sc.nextInt();
double area = a * a * Math.PI;
double circum = 2 * a * Math.PI;
System.out.printlf(area + " " + circum);
}
}

Compiler output:
Main.java:9: error: cannot find symbol
System.out.printlf(area + " " + circum);
          ^
  symbol:   method printlf(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 sc = new Scanner(System.in);
		double r =nextDouble();
		double pi = Math.PI;
		double a = r*r*pi;
		double b = r * 2 * pi;
		System.out.printf("%f %f",a,b);
	}
}

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

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

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

        double r = scan.nextDouble();

        System.out.printf("%f %f"Math.PI * Math.pow(r, 2), 2 * Math.PI * r);
    }
}

Compiler output:
Main.java:10: error: ')' or ',' expected
        System.out.printf("%f %f"Math.PI * Math.pow(r, 2), 2 * Math.PI * r);
                                 ^
Main.java:10: error: not a statement
        System.out.printf("%f %f"Math.PI * Math.pow(r, 2), 2 * Math.PI * r);
                                         ^
Main.java:10: error: ';' expected
        System.out.printf("%f %f"Math.PI * Math.pow(r, 2), 2 * Math.PI * r);
                                                         ^
Main.java:10: error: not a statement
        System.out.printf("%f %f"Math.PI * Math.pow(r, 2), 2 * Math.PI * r);
                                                                       ^
Main.java:10: error: ';' expected
        System.out.printf("%f %f"Math.PI * Math.pow(r, 2), 2 * Math.PI * r);
                                                                          ^
5 errors
Language: Java

import java.util.Scanner;

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

Compiler output:
Main.java:6: error: cannot find symbol
		double r = nextdouble();
		           ^
  symbol:   method nextdouble()
  location: class Main
Main.java:10: error: no suitable method found for println(String,double,double)
		System.out.println("%f %f", area, length);
		          ^
    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)
2 errors
Language: Java

import java.util.Scanner;

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

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

import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		double r nextdouble();
		double pi = Math.PI;
		double 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;
public class Main {
    public static void main(String[] args){
    	Scanner scan = new Scanner(System.in);
    	int r = scan.nextDouble();
    	double area;
    	double length;
    	double pi=Math.PI;
        area = pi*r*r;
        length = 2*pi*r;

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

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

import java.util.Scanner;

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

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

Compiler output:
Main.java:3: error: class Circle1 is public, should be declared in a file named Circle1.java
public class Circle1{
       ^
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 pi = Math.PI;

        int S = pi * r * r;
        int l = 2 * pi * r;
        System.out.printf("%f %f", area, length);
    }
}

Compiler output:
Main.java:9: error: incompatible types: possible lossy conversion from double to int
        int S = pi * r * r;
                       ^
Main.java:10: error: incompatible types: possible lossy conversion from double to int
        int l = 2 * pi * r;
                       ^
Main.java:11: error: cannot find symbol
        System.out.printf("%f %f", area, length);
                                   ^
  symbol:   variable area
  location: class Main
Main.java:11: error: cannot find symbol
        System.out.printf("%f %f", 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 r = sc.nextInt();
        double pi = Math.PI;

        int area = pi * r * r;
        int length = 2 * pi * r;

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

Compiler output:
Main.java:9: error: incompatible types: possible lossy conversion from double to int
        int area = pi * r * r;
                          ^
Main.java:10: error: incompatible types: possible lossy conversion from double to int
        int length = 2 * pi * r;
                            ^
2 errors
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 pi = Math.PI;

        int area = pi * r * r;
        int length = 2 * pi * r;

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

Compiler output:
Main.java:9: error: incompatible types: possible lossy conversion from double to int
        int area = pi * r * r;
                          ^
Main.java:10: error: incompatible types: possible lossy conversion from double to int
        int length = 2 * pi * r;
                            ^
2 errors
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 pi = Math.PI;
double area = r*r*pi;
double length = 2*r*pi;
System.out.println("%f %f",area,length); 
}
}

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

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

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

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

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

  }
}

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

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

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

  }
}

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

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

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

  }
}

Compiler output:
Main.java:4: error: ';' expected
    double r nextDouble()
            ^
Main.java:4: error: ';' expected
    double r nextDouble()
                         ^
2 errors
Language: Java

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

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

  }
}

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

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

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

  }
}

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
2 errors
Language: Java

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

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

  }
}

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

import java.util.Scanner;

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

		r = sc.nextInt();

		area = pi * r * r;
		length = 2.0 * pi * r;

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

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

import java.util.Scanner;

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

		r = sc.nextInt();

		area = pi * r * r;
		length = 2.0 * pi * r;

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

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

import java.util.Scanner;

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

		r = sc.nextInt();

		area = pi * r * r;
		length = 2.0 * pi * r;

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

Compiler output:
Main.java:6: error: ';' expected
		double r nextDouble();
		        ^
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 next Double();
		double pi = Math.PI;
		double area, length;

		r = sc.next Int();

		area = pi * r * r;
		length = 2.0 * pi * r;

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

Compiler output:
Main.java:6: error: ';' expected
		double r next Double();
		        ^
Main.java:6: error: ';' expected
		double r next Double();
		                    ^
Main.java:10: error: ';' expected
		r = sc.next Int();
		           ^
3 errors
Language: Java

import java.util.Scanner;

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

		r = sc.nextDouble();

		area = pi * r * r;
		length = 2.0 * pi * r;

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

Compiler output:
Main.java:6: error: ';' expected
		double r nextDouble();
		        ^
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 = Integer.parseDouble(sc.next());
      System.out.printf("%.6f %.6f\n", r * r * Math.PI, 2.0 * Math.PI * r);
  }
}

Compiler output:
Main.java:6: error: cannot find symbol
      double r = Integer.parseDouble(sc.next());
                        ^
  symbol:   method parseDouble(String)
  location: class Integer
1 error
Language: Java

import java.util.Scanner;

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

    Scanner scanner = new Scanner(System.in);
    double pi = Math.PI;
    int r = scanner.nextInt();

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

    System.out.printf("%.6f %.6f%n",area,circum);

    return 0;

  }
}

Compiler output:
Main.java:15: error: incompatible types: unexpected return value
    return 0;
           ^
1 error
Language: Java

import java.util.Scanner;

public class main10009 {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		
		String str=scan.next();
		int r=Integer.parseInt(str);
		double P=Math.PI;
		System.out.print(r*r*P);
		System.out.print(" ");
		System.out.println(2*r*P);
	}

}

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

public class Main {

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

		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		try {
			String line = reader.readLine();
			int r = Integer.parseInt(line);
			System.out.print(r * r * Math.PI);
			System.out.print(" ");
			System.out.println(r * 2 * Math.PI);
		} catch (IOException e) {
			System.out.println(e);
		} catch (NumberFormatException e) {
			System.out.println("??\????????£????????????????????????");
		}

	}

}

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

public class Main {

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

}

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

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

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

public class Circle {

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

		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		try {
			String line = reader.readLine();
			int r = Integer.parseInt(line);
			System.out.print(r * r * Math.PI);
			System.out.print(" ");
			System.out.println(r * 2 * Math.PI);
		} catch (IOException e) {
			System.out.println(e);
		} catch (NumberFormatException e) {
			System.out.println("??\????????£????????????????????????");
		}

	}

}

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

import java.util.Scanner;

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

		Scanner scan= new Scanner(System.in);
		int r = scan.nextInt();
		double S = r*r*Math.PI
		double L = r*2*Math.PI
		System.out.println(S+" "+L);
	}
}

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

import java.util.Scanner;

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

		Scanner scan= new Scanner(System.in);
		int r = scan.nextInt();
		double S = r*r*Math.PI;
		double L = r*2*Math.PI;
		System.out.printf("%lf.6 %lf.6"S,L);
	}
}

Compiler output:
Main.java:10: error: ')' or ',' expected
		System.out.printf("%lf.6 %lf.6"S,L);
		                               ^
Main.java:10: error: ';' expected
		System.out.printf("%lf.6 %lf.6"S,L);
		                                ^
Main.java:10: error: not a statement
		System.out.printf("%lf.6 %lf.6"S,L);
		                                 ^
Main.java:10: error: ';' expected
		System.out.printf("%lf.6 %lf.6"S,L);
		                                  ^
4 errors
Language: Java


import java.util.Scanner;

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

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

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

		Scanner scan= new Scanner(System.in);
		int r = scan.nextInt();
		double S = r*r*Math.PI;
		double L = r*2*Math.PI;
		System.out.printf("%.6f %.6f",S,L);
	}
}

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

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

		Scanner scan= new Scanner(System.in);
		double r = scan.nextDouble();
		double S = r*r*Math.PI;
		double L = r*2*Math.PI;
		System.out.printf("%.6f %.6f",S,L);
	}
}

Compiler output:
Main.java:4: error: cannot find symbol
		Scanner scan= new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class Main
Main.java:4: 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 circle {
	public static void main(String args[]) {
		Scanner scan = new Scanner(System.in);
		double r = scan.nextDouble();
		System.out.println(r * r * Math.PI + " " + r * 2 * Math.PI);
	}
}

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

import java.util.Scanner;

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

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

import java.util.Scanner;

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

Compiler output:
Main.java: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 calcurator {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while (true) {
            int a = sc.nextInt();
            char op = sc.next().charAt(0);
            int b = sc.nextInt();
            if (op == '?') break;
            switch (op) {
              case '+':
                  System.out.println(a + b);
                  break;
              case '-':
                  System.out.println(a - b);
                  break;
              case '*':
                  System.out.println(a * b);
                  break;
              case '/':
                  System.out.println(a / b);
                  break;
              default :
                  break;
            }
        }
    }
}

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

import java.util.Scanner;

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

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

        double mennseki=r*r*3.14;
	double shuu=2*r*3.14;
	
	System.out.println(mennseki +" "+ shuu);

    }
}

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_10009Circle2 {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		double r = sc.nextDouble();
		double pi = Math.PI;
		double area = r * r * pi;
		double length = r * 2 * pi;
		System.out.printf("%f %f", area, length);

	}
}

Compiler output:
Main.java:3: error: class Main_10009Circle2 is public, should be declared in a file named Main_10009Circle2.java
public class Main_10009Circle2 {
       ^
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 mennseki=r*r*pi;
	double shuu=2*r*pi;
	
	System.out.println(mennseki +" "+ shuu);

    }
}

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

import java.util.Scanner;

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

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 {
	Scanner sc = new Scanner(System.in);
	double r = sc.nextDouble();
	double pi = Math.PI;
	double area = pi * r * r;
	double length = pi * 2 * r;
	System.out.printf("%f %f", area, length);
}

Compiler output:
Main.java:9: error: <identifier> expected
	System.out.printf("%f %f", area, length);
	                 ^
Main.java:9: error: illegal start of type
	System.out.printf("%f %f", area, length);
	                  ^
2 errors
Language: Java

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

}

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[] args)
	{
		Scanner sc = new Scanner(System.in);
		double r = sc.nextDouble();
		double pi = Math.PI;
		System.out.printf("%f %f", pi * r * r, 2 * pi * r);
	}
}

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 Circle {
	public static void main(String[] args) {
		double pi = Math.PI;
		Scanner sc = new Scanner(System.in);
		double r = sc.nextInt();
		double area = r * r * pi;
		double length = 2 * r * pi;
		System.out.printf("%f %f", area, length);
	}

}

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) {
                double r nextDouble()
		double pi = Math.PI;
		Scanner sc = new Scanner(System.in);
		r = sc.nextInt();
		double area = r * r * pi;
		double length = 2 * r * pi;
		System.out.printf("%f %f", area, length);
	}

}

Compiler output:
Main.java:5: error: ';' expected
                double r nextDouble()
                        ^
Main.java:5: error: ';' expected
                double r nextDouble()
                                     ^
2 errors
Language: Java

import java.util.Scanner;

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

}

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

import java.io.*;

public class Main{
  public static void main(String[] args) {
    BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
    double r = Integer.parseInt(reader.readLine());
    double pi = Math.PI;
    double area = pi * r * r;
    double length = 2 * pi * r;
    System.out.printf("%f %f\n", area, length);
  }
}

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

import java.util.*;

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

Compiler output:
Main.java:8: error: ')' or ',' expected
    System.out.println((t * t * Math.PI) + " " + (2 * t * Math.PI);
                                                                  ^
1 error
Language: Java

import java.util.Scanner;


public class Circle {
	public static void main(String[] args){
		Scanner scanner=new Scanner(System.in);
		
		int r=Integer.parseInt(scanner.next());
		System.out.println(r*r*Math.PI+" "+r*2*Math.PI);
	}
}

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

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

Compiler output:
Main.java:7: error: cannot find symbol
    System.out.println(Math.pow(r,2)*Math.Pi + " " + 2*Math.Pi*r);
                                         ^
  symbol:   variable Pi
  location: class Math
Main.java:7: error: cannot find symbol
    System.out.println(Math.pow(r,2)*Math.Pi + " " + 2*Math.Pi*r);
                                                           ^
  symbol:   variable Pi
  location: class Math
2 errors
Language: Java

import java.util.Scanner;
class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    double r, pi = 3.141592653589;
    r = sc.nextDouble();
    BigDecimal br = new BigDecimal(r);
    BigDecimal bpi = new BigDecimal(pi);
    BigDecimal bs = bpi.multiply(br.multiply(br));
    BigDecimal bl = bpi.multiply(br.multiply(2.0));
    System.out.println(bs + " " + bl);
  }
}

Compiler output:
Main.java:7: error: cannot find symbol
    BigDecimal br = new BigDecimal(r);
    ^
  symbol:   class BigDecimal
  location: class Main
Main.java:7: error: cannot find symbol
    BigDecimal br = new BigDecimal(r);
                        ^
  symbol:   class BigDecimal
  location: class Main
Main.java:8: error: cannot find symbol
    BigDecimal bpi = new BigDecimal(pi);
    ^
  symbol:   class BigDecimal
  location: class Main
Main.java:8: error: cannot find symbol
    BigDecimal bpi = new BigDecimal(pi);
                         ^
  symbol:   class BigDecimal
  location: class Main
Main.java:9: error: cannot find symbol
    BigDecimal bs = bpi.multiply(br.multiply(br));
    ^
  symbol:   class BigDecimal
  location: class Main
Main.java:10: error: cannot find symbol
    BigDecimal bl = bpi.multiply(br.multiply(2.0));
    ^
  symbol:   class BigDecimal
  location: class Main
6 errors