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

#include<iostream>
#include<cstring>
using namespace std;
#define N 1000000000

int pri[N] ,cnt = 0;
bool che[N];

void prime()
{
    for (int i = 0; i < N; i++)
        che[i] = 1;
    for (int i = 2; i < N; i++)
    {
        if (che[i])
        {
            pri[cnt++] = i;
        }
        for (int j = 0; j < cnt && j * pri[i] < N; j++)
        {
            che[pri[i] * j] = 0;
            if (j % pri[i] == 0)
                break;
        }
    }
} //线筛

int phi(int n)
{
    int rea = n;
    for (int i = 0; pri[i] * pri[i] <= n; i++)
    {
        if (n % pri[i] == 0)
        {
            rea = rea - rea / pri[i];

            while (n % pri[i] == 0)
            {
                n /= pri[i];
            }
        }
    }
    if (n > 1)
        rea = rea - rea / n;
    return rea;
}

int euler[N];

void getEuler()

{

    memset(euler, 0, sizeof(euler));

    euler[1] = 1;

    for (int i = 2; i <= N; i++)

        if (!euler[i])

            for (int j = i; j <= N; j += i)

            {

                if (!euler[j])
                        euler[j] = j;

                euler[j] = euler[j] / i * (i - 1);
            }
}

int main(){
    int an;
    cin>>an;
    getEuler();
    cout<<euler[an]<<endl;
    return 0;
}


Compiler output:
/tmp/ccJWoVp5.o: in function `prime()':
a.cc:(.text+0x15): relocation truncated to fit: R_X86_64_PC32 against symbol `che' defined in .bss section in /tmp/ccJWoVp5.o
a.cc:(.text+0x3e): relocation truncated to fit: R_X86_64_PC32 against symbol `che' defined in .bss section in /tmp/ccJWoVp5.o
a.cc:(.text+0x4f): relocation truncated to fit: R_X86_64_PC32 against symbol `cnt' defined in .bss section in /tmp/ccJWoVp5.o
a.cc:(.text+0x58): relocation truncated to fit: R_X86_64_PC32 against symbol `cnt' defined in .bss section in /tmp/ccJWoVp5.o
a.cc:(.text+0x99): relocation truncated to fit: R_X86_64_PC32 against symbol `che' defined in .bss section in /tmp/ccJWoVp5.o
a.cc:(.text+0xcc): relocation truncated to fit: R_X86_64_PC32 against symbol `cnt' defined in .bss section in /tmp/ccJWoVp5.o
/tmp/ccJWoVp5.o: in function `getEuler()':
a.cc:(.text+0x21f): relocation truncated to fit: R_X86_64_PC32 against symbol `euler' defined in .bss section in /tmp/ccJWoVp5.o
a.cc:(.text+0x22d): relocation truncated to fit: R_X86_64_PC32 against symbol `euler' defined in .bss section in /tmp/ccJWoVp5.o
a.cc:(.text+0x251): relocation truncated to fit: R_X86_64_PC32 against symbol `euler' defined in .bss section in /tmp/ccJWoVp5.o
a.cc:(.text+0x278): relocation truncated to fit: R_X86_64_PC32 against symbol `euler' defined in .bss section in /tmp/ccJWoVp5.o
a.cc:(.text+0x293): additional relocation overflows omitted from the output
collect2: error: ld returned 1 exit status
Language: C++

#include <iostream>
#include <set>

using namespace std;

void solve()
{
	set<int> primeFactor;
	int n;
	cin >> n;
	int input = n;
	for (int i = 2; i <= sqrt(input); ++i)
	{
		while (n % i == 0)
		{
			n /= i;
			primeFactor.insert(i);
		}
	}
	if (n != 1)
	{
		primeFactor.insert(n);
	}
	double ans = 1;
	set<int>::iterator it = primeFactor.begin();
	while (it != primeFactor.end())
	{
		ans *= (1 - 1.0 / *it);
		++it;
	}
	cout << input * ans << endl;
}

int main()
{
	solve();
	return(0);
}

Compiler output:
a.cc: In function 'void solve()':
a.cc:12:30: error: 'sqrt' was not declared in this scope
   12 |         for (int i = 2; i <= sqrt(input); ++i)
      |                              ^~~~
Language: C++

#include<stdio.h>
#include<stdlib.h>

int pr[50847534];
int x=0;
int nextpr(int p){
    int nxp=p+2;
    int i=0;
    int ok=1;
    pr[x]=p;
    x++;
    if(p==2)return 3;
    while(1){
        for(i=0;pr[i]*pr[i]<=nxp;i++){
        ok = 1;
        if(nxp%pr[i]==0){
            ok = 0;
            break;
            
        }
    }
    if(ok){
        return nxp;
    }else{
      nxp+=2;
    }
  }
}

int main(){
    int n,n2,p=2;
    int done=1;
    int *list;
    int cnt;
    int i;
    scanf("%d",&n);
    cnt = n-1;
    n2 = n;
    list = calloc(n-1,sizeof(int));
    for(i=0;i<n-1;i++){
        list[i] = 1;
        
    }
    while(n>1){
        if(n%2==0){
            n /= 2;
            for(i=1;i*2<n2;i++){
                if(list[i*2-1]){
                    /*printf("%d was excluded\n",i*2);*/
                    list[i*2-1] = 0;
                    cnt--;
                }
            }
            done = 0;
        }else if(n%p==0){
            n /= p;
            for(i=1;i*p<n2;i++){
                /*printf("inspecting %d\nlist[%d]=%d\n",i*p,i*p-1,list[i*p-1]);*/
                if(list[i*p-1]){
                    /*printf("%d was excluded\n",i*p);*/
                    list[i*p-1] = 0;
                    cnt--;
                }
            }
            done = 0;
        }else{
            p = nextpr(p);
        }
        if(p*p>n2&&done){
            break;
        }
    }
    printf("%d\n",cnt);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:39:18: error: invalid conversion from 'void*' to 'int*' [-fpermissive]
   39 |     list = calloc(n-1,sizeof(int));
      |            ~~~~~~^~~~~~~~~~~~~~~~~
      |                  |
      |                  void*
Language: C++

#include<stdio.h>
#include<stdlib.h>

int pr[50847534];
int fact[5000];
int x = 0;
int n,pn=0;
short *arr;

int nextpr(int p){
  int nxp=p+2;
  int i;
  int ok;
  pr[x]=p;
  x++;
  if(p==2)return 3;
  while(1){
      /*printf("p=%d->",nxp);*/
    for(i=0;pr[i]*pr[i]<=nxp;i++){
      ok = 1;
      if(!(nxp%pr[i])){
        ok = 0;
        break;
      }
    }
    if(ok){
        /*printf("O\n");*/
      return nxp;
    }else{
        /*printf("X\n");*/
      nxp+=2;
    }
  }
}

int main(){
    int n2;
    int p=2,done=1,prod,ans=0;
    int i,j,k;
    scanf("%d",&n);
    n2 = n;
    while(n>1){
        if(!(n%p)){
            while(!(n%p))n /= p;
            fact[pn] = p;
            pn++;
            done = 0;
        }else{
            p = nextpr(p);
        }
        if(p*p>n){
            fact[pn]=n;
        }
    }
    /*printf("facts:");
    for(i=0;i<pn;i++){
        printf(" %d",fact[i]);
    }
    printf("\n");*/
    arr = (short *)calloc(pn,sizeof(short));
    for(i=0;i<pn;i++)arr[i]=0;
    while(1){
        /*for(i=0;i<pn;i++)printf(" %d",arr[i]);*/
        prod = 1;
        for(j=0;j<pn;j++){
            if(arr[j]){
                prod*=fact[j];
                prod*=-1;
            }
        }
        ans += (n2/prod);
        /*printf(" prod=%d ans=%d\n",prod,ans);*/
        /*????????????arr????¬???????????????????????????????*/
        arr[0]+=1;
        for(k=0;k<pn;k++){
            if(arr[k]>1){
                if(k==pn-1){
                    printf("%d\n",ans);
                    exit(0);
                }
                arr[k]=0;
                arr[k+1]+=1;
            }
        }/*???????????§arr????¬???????????????????????????????*/
    }
}}

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

#include <iostream>
 #include <math.h>
 using namespace std;
 int main() {
   int n;
   int count;
  cin >> n;
  count=n;
  for(int i = 1;i <=n; i++)
  {
    int p=i;
    int q=n;
    while(p!=1 && q!=1){
	if(p * q == 0){
	cnt--;
	break;
	}
      else if(p>q)p=p%q;
      else if (p<q)q=q%p;
        cout << count << endl;
        return 0;
 }
 }

Compiler output:
a.cc: In function 'int main()':
a.cc:15:9: error: 'cnt' was not declared in this scope; did you mean 'int'?
   15 |         cnt--;
      |         ^~~
      |         int
a.cc:23:3: error: expected '}' at end of input
   23 |  }
      |   ^
a.cc:4:13: note: to match this '{'
    4 |  int main() {
      |             ^
Language: C++

#include <iostream>
 #include <math.h>
 using namespace std;
 int main() {
   int n;
   int count;
  cin >> n;
  count=n;
  for(int i = 1;i <=n; i++)
  {
    int p=i;
    int q=n;
    while(p!=1 && q!=1){
	if(p * q == 0){
	cnt--;
	break;
	}
      else if(p>q)p=p%q;
      else if (p<q)q=q%p;
}
}
        cout << count << endl;
        return 0;
 }
 

Compiler output:
a.cc: In function 'int main()':
a.cc:15:9: error: 'cnt' was not declared in this scope; did you mean 'int'?
   15 |         cnt--;
      |         ^~~
      |         int
Language: C++

import sys
def euler(a):
    i = 2
    res = a
    #standard = a
    while i * i <= a:
        if a % i == 0:
            res = res - res//i
            while a % i == 0:
                a //= i

        i += 1
    if a != 1:
        res = res - res//a

    return res


x = int(input())


print(euler(x))

Compiler output:
a.cc:5:6: error: invalid preprocessing directive #standard
    5 |     #standard = a
      |      ^~~~~~~~
a.cc:1:1: error: 'import' does not name a type
    1 | import sys
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
Language: C++

#include <iostream>
#include <algorithm>
#include <cmath>
#include <cstdio>
#include <vector>
#include <climits>
#include "myfunc.h"

typedef long long ll;

using namespace std;

void solve() {
    ll n, count = 0;
    cin >> n;
    for(ll i = 1; i < n; i++){
        if(gcd(n, i) == 1){
            count++;
        }
    }
    cout << count << endl;
}

int main() {
    solve();
    return 0;
}

Compiler output:
a.cc:7:10: fatal error: myfunc.h: No such file or directory
    7 | #include "myfunc.h"
      |          ^~~~~~~~~~
compilation terminated.
Language: C++

p=n=int(input())
d=2
while d*d<=n:
 if n%d==0:
  p=p*(d-1)//d
  while n%d==0:n//=d
 d+=1
if n>1:p=p*(n-1)//n
print(p)


Compiler output:
a.cc:1:1: error: 'p' does not name a type
    1 | p=n=int(input())
      | ^
Language: C++

#include <bits/stdc++.h>
using LL=long long;

LL GCD(LL a, LL b, LL& x, LL& y) {
	if (b == 0) {
		x = 1; y = 0;
		return a;
	}
	LL d = GCD(b, a % b, y, x);
	y -= a / b * x;
	return d;
}

int main() {
	LL a1, a2;
	int x, y; cin >> x >> y;
	GCD(x, y, a1, a2);
	cout << a1 << " " << a2 << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:19: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   16 |         int x, y; cin >> x >> y;
      |                   ^~~
      |                   std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:18:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   18 |         cout << a1 << " " << a2 << endl;
      |         ^~~~
      |         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:18:36: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   18 |         cout << a1 << " " << a2 << endl;
      |                                    ^~~~
      |                                    std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include <stdio.h>
void extgcd(ull a, ull b, ull &x, ull &y) {
	if (b) extgcd(b, a % b, y, x), y -= (a / b) * x;
	else x = 1, y = 0;
}
int a, b, x, y;
int main() {
	cin >> a >> b;
	extgcd(a, b, x, y);
	cout << x << ' ' << y << endl;
}

Compiler output:
a.cc:2:6: error: variable or field 'extgcd' declared void
    2 | void extgcd(ull a, ull b, ull &x, ull &y) {
      |      ^~~~~~
a.cc:2:13: error: 'ull' was not declared in this scope
    2 | void extgcd(ull a, ull b, ull &x, ull &y) {
      |             ^~~
a.cc:2:20: error: 'ull' was not declared in this scope
    2 | void extgcd(ull a, ull b, ull &x, ull &y) {
      |                    ^~~
a.cc:2:27: error: 'ull' was not declared in this scope
    2 | void extgcd(ull a, ull b, ull &x, ull &y) {
      |                           ^~~
a.cc:2:32: error: 'x' was not declared in this scope
    2 | void extgcd(ull a, ull b, ull &x, ull &y) {
      |                                ^
a.cc:2:35: error: 'ull' was not declared in this scope
    2 | void extgcd(ull a, ull b, ull &x, ull &y) {
      |                                   ^~~
a.cc:2:40: error: 'y' was not declared in this scope
    2 | void extgcd(ull a, ull b, ull &x, ull &y) {
      |                                        ^
a.cc: In function 'int main()':
a.cc:8:9: error: 'cin' was not declared in this scope
    8 |         cin >> a >> b;
      |         ^~~
a.cc:9:9: error: 'extgcd' was not declared in this scope
    9 |         extgcd(a, b, x, y);
      |         ^~~~~~
a.cc:10:9: error: 'cout' was not declared in this scope
   10 |         cout << x << ' ' << y << endl;
      |         ^~~~
a.cc:10:34: error: 'endl' was not declared in this scope
   10 |         cout << x << ' ' << y << endl;
      |                                  ^~~~
Language: C++

#include <stdio.h>
void extgcd(int a, int b, int &x, int &y) {
	if (b) extgcd(b, a % b, y, x), y -= (a / b) * x;
	else x = 1, y = 0;
}
int a, b, x, y;
int main() {
	cin >> a >> b;
	extgcd(a, b, x, y);
	cout << x << ' ' << y << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: 'cin' was not declared in this scope
    8 |         cin >> a >> b;
      |         ^~~
a.cc:10:9: error: 'cout' was not declared in this scope
   10 |         cout << x << ' ' << y << endl;
      |         ^~~~
a.cc:10:34: error: 'endl' was not declared in this scope
   10 |         cout << x << ' ' << y << endl;
      |                                  ^~~~
Language: C++

#define _CRT_SECURE_NO_WARNINGS
#define _USE_MATH_DEFINES
#include "MyMath.h"
#include <iostream>
#include <cstdio>
#include <algorithm>
#include <queue>
#include <vector>
#include <functional>
using namespace std;
const int num = 10000, num1 = 1000;
const int INF = 2000000000;
inline int bezout(int a, int b, int &x, int &y) {
	int d;
	if (b == 0) {
		x = 1; y = 0; return d = a;
	}
	else {
		d = bezout(b, a % b, y, x);
		y -= a / b * x;
		return d;
	}
}
int main() {
	int a, b, x, y;
	cin >> a >> b;
	bezout(a, b, x, y);
	cout << x << " " << y << endl;
	return 0;
}

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

#include <iostream>
#include <stdlib.h >
using namespace std;

int gcd(int n, int m){
	if (m == 0) return n;
	else
		gcd(m,n%m);
}

void solution(int a, int b, int &x, int &y){
	x = 0; 
	y = 0;
	int g = gcd(a,b);
	while (a*x+b*y != g){
		x++;
		y = (g-a*x)/b;
	}
	int count = abs(x) + abs(y);
	int x2 = x, y2 = y+1;
	int x3 = 0, y3 = y;
	while (x2 <= count){
		x2++;
		y2 = (g-a*x2)/b;
		if (a*x2+b*y2 == g && x2+abs(y2)<x+abs(y)){
			count = x2+abs(y2);
			x = x2;
			y = y2;
		}
		else if (a*x2+b*y2 == g && x2+abs(y2)==x+abs(y)){
			if(x2<y2){
				count = x2+abs(y2);
				x = x2;
				y = y2;
			}
		}
	}
	while (abs(x3) <= count){
		x3--;
		y3 = (g-a*x3)/b;
		if (a*x3+b*y3 == g && abs(x3)+abs(y3)<abs(x)+abs(y)){
			count = abs(x3)+abs(y3);
			x = x3;
			y = y3;
		}
		else if (a*x3+b*y3 == g && abs(x3)+abs(y3)==abs(x)+abs(y)){
			if(x3<y3){
				count = abs(x3)+abs(y3);
				x = x3;
				y = y3;
			}
		}
	}


}

int main(){
	int a,b;
	cin>>a>>b;
	int x, y;
	solution(a,b,x,y);
	cout<<x<<" "<<y<<endl;
	return 0;
}

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

#include <iostream>
#include "stdlib.h "
using namespace std;

int gcd(int n, int m){
	if (m == 0) return n;
	else
		gcd(m,n%m);
}

void solution(int a, int b, int &x, int &y){
	x = 0; 
	y = 0;
	int g = gcd(a,b);
	while (a*x+b*y != g){
		x++;
		y = (g-a*x)/b;
	}
	int count = abs(x) + abs(y);
	int x2 = x, y2 = y+1;
	int x3 = 0, y3 = y;
	while (x2 <= count){
		x2++;
		y2 = (g-a*x2)/b;
		if (a*x2+b*y2 == g && x2+abs(y2)<x+abs(y)){
			count = x2+abs(y2);
			x = x2;
			y = y2;
		}
		else if (a*x2+b*y2 == g && x2+abs(y2)==x+abs(y)){
			if(x2<y2){
				count = x2+abs(y2);
				x = x2;
				y = y2;
			}
		}
	}
	while (abs(x3) <= count){
		x3--;
		y3 = (g-a*x3)/b;
		if (a*x3+b*y3 == g && abs(x3)+abs(y3)<abs(x)+abs(y)){
			count = abs(x3)+abs(y3);
			x = x3;
			y = y3;
		}
		else if (a*x3+b*y3 == g && abs(x3)+abs(y3)==abs(x)+abs(y)){
			if(x3<y3){
				count = abs(x3)+abs(y3);
				x = x3;
				y = y3;
			}
		}
	}


}

int main(){
	int a,b;
	cin>>a>>b;
	int x, y;
	solution(a,b,x,y);
	cout<<x<<" "<<y<<endl;
	return 0;
}

Compiler output:
a.cc:2:10: fatal error: stdlib.h : No such file or directory
    2 | #include "stdlib.h "
      |          ^~~~~~~~~~~
compilation terminated.
Language: C++

#include <bits/stdc++.h>
using namespace std;
using bint = boost::multiprecision::cpp_int;

int main(){
	bint a,b;
	cin>>a>>b;
	cout<<a+b<<endl;
}


Compiler output:
a.cc:3:14: error: 'boost' does not name a type
    3 | using bint = boost::multiprecision::cpp_int;
      |              ^~~~~
a.cc: In function 'int main()':
a.cc:6:9: error: 'bint' was not declared in this scope; did you mean 'uint'?
    6 |         bint a,b;
      |         ^~~~
      |         uint
a.cc:7:14: error: 'a' was not declared in this scope
    7 |         cin>>a>>b;
      |              ^
a.cc:7:17: error: 'b' was not declared in this scope
    7 |         cin>>a>>b;
      |                 ^
Language: C++

#include<iostream>
int main() {
    long long a, b;
    cin >> a >> b;
    cout << a + b << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:4:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |     cin >> a >> b;
      |     ^~~
      |     std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:5:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    5 |     cout << a + b << endl;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:5:22: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    5 |     cout << a + b << endl;
      |                      ^~~~
      |                      std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include <bits/stdc++.h>
#include <boost/multiprecision/cpp_int.hpp>
using namespace std;
using bint = boost::multiprecision::cpp_int;

int main(){
	bint a,b;
	cin>>a>>b;
	cout<<a-b<<endl;
}


Compiler output:
a.cc:2:10: fatal error: boost/multiprecision/cpp_int.hpp: No such file or directory
    2 | #include <boost/multiprecision/cpp_int.hpp>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Language: Java

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

public class Main {
    public static void main(String[] args){
        Scanner sc=new Scanner(System.in);
        String str=sc.next();
        BigInteger a=new BigInteger(str);
        str=sc.next();
        BigInteger b=new BigInteger(str);
        System.out.println(a.reminder(b));
    }
}



Compiler output:
Main.java:12: error: cannot find symbol
        System.out.println(a.reminder(b));
                            ^
  symbol:   method reminder(BigInteger)
  location: variable a of type BigInteger
1 error
Language: Java

package ????????°???????????°A;

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

public class ProgramingA1 {

	public static void main(String[] args) {
		System.out.println();
		BufferedReader rString = new BufferedReader(new InputStreamReader(System.in));
		try {
		int r=Integer.parseInt(rString.readLine());
		System.out.println(r*r*Math.PI);
		}
		catch (IOException e) {
			 System.out.println(e);
		}

		catch (NumberFormatException e) {
			System.out.println("??°????????£?????????????????????");

			}
	}

}

Compiler output:
Main.java:1: error: <identifier> expected
package ?????????????????????A;
       ^
Main.java:1: error: illegal character: '\u00b0'
package ?????????????????????A;
                ^
Main.java:1: error: illegal character: '\u00b0'
package ?????????????????????A;
                            ^
3 errors
Language: Java


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

public class ProgramingA1 {

	public static void main(String[] args) {
		System.out.println();
		BufferedReader rString = new BufferedReader(new InputStreamReader(System.in));
		try {
		int r=Integer.parseInt(rString.readLine());
		System.out.println(r*r*Math.PI);
		}
		catch (IOException e) {
			 System.out.println(e);
		}

		catch (NumberFormatException e) {
			System.out.println("error");

			}
	}

}

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


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

public class Circle
 {

	public static void main(String[] args) {
		System.out.println();
		BufferedReader rString = new BufferedReader(new InputStreamReader(System.in));
		try {
		int r=Integer.parseInt(rString.readLine());
		System.out.println(r*r*Math.PI);
		}
		catch (IOException e) {
			 System.out.println(e);
		}

		catch (NumberFormatException e) {
			System.out.println("error");

			}
	}

}

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

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

public class ProgramingA1
 {

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

		catch (NumberFormatException e) {
			System.out.println("");

			}
	}

}

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

class Main
 {

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

		catch (NumberFormatException e) {
			System.out.println("");

			}
	}

}

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

class Main
 {

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

		catch (NumberFormatException e) {
			System.out.println("");

			}
	}

}

Compiler output:
Main.java:6: error: cannot find symbol
		BufferedReader rString = new BufferedReader(new InputStreamReader(System.in));
		^
  symbol:   class BufferedReader
  location: class Main
Main.java:6: error: cannot find symbol
		BufferedReader rString = new BufferedReader(new InputStreamReader(System.in));
		                             ^
  symbol:   class BufferedReader
  location: class Main
Main.java:6: error: cannot find symbol
		BufferedReader rString = new BufferedReader(new InputStreamReader(System.in));
		                                                ^
  symbol:   class InputStreamReader
  location: class Main
Main.java:11: 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 PI = Math.PI;
		double x = sc.nextInt();
		double a = x*x*PI;
		double b = 2*x*PI;
		System.out.println(a + " " +b);
	}
}

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

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

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

import java.util.Scanner;

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

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

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


public class Circle{
	  public static void main(String[] args) {
	    String line;
	    double n;

	  

	    BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
	    try {
	        line = reader.readLine();
	        n = Integer.parseInt(line);
	        double Pi=Math.PI;
	        double answer1 = n*n*Pi;
	        double answer2 = 2*n*Pi;
	        double answer3 = new BigDecimal(String.valueOf(answer1)).setScale(5, BigDecimal.ROUND_HALF_UP).doubleValue();
	        double answer4 = new BigDecimal(String.valueOf(answer2)).setScale(5, BigDecimal.ROUND_HALF_UP).doubleValue();
	        System.out.println(answer3+" "+answer4);
	    }
	      catch (NumberFormatException e) {
	      System.out.println(e);
	    } catch (IOException e) {
	      System.out.println(e);
	    }
	  }
	}

Compiler output:
Main.java:7: error: class Circle is public, should be declared in a file named Circle.java
public class Circle{
       ^
Note: Main.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
1 error
Language: Java

import java.util.Scanner;

public class Main{
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		String temp;
		double r;
		try{
			temp = scan.next();
			r = Double.parseDouble(temp);
		}catch( IllegalStateException e ){
			System.out.println(e);
		}
		System.out.printf("%7.5f %7.5f\n", Math.PI * r * r, 2 * Math.PI * r);
		return;
	}
}

Compiler output:
Main.java:14: error: variable r might not have been initialized
		System.out.printf("%7.5f %7.5f\n", Math.PI * r * r, 2 * Math.PI * r);
		                                             ^
1 error
Language: Java

import java.util.Scanner;

public class Main{
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		String temp;
		double r;
		try{
			temp = scan.next();
			r = Double.parseDouble(temp);
		}catch( IllegalStateException e ){
			System.out.println(e);
		}
		System.out.printf("%7.5f %7.5f", Math.PI * r * r, 2 * Math.PI * r);
		return;
	}
}

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

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

public class Main{
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		String temp;
		double r;
		try{
			temp = scan.next();
			r = Double.parseDouble(temp);
		}catch( IllegalStateException e ){
			System.out.println(e);
		}
		System.out.printf("%7.5f %7.5f", Math.PI * r * r, 2 * Math.PI * r);
		return;
	}
}

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

import java.util.Scanner;

public class Main{
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		String temp;
		double r;
		try{
			temp = scan.next();
			r = Double.parseDouble(temp);
		}catch( IllegalStateException e ){
			System.out.println(e);
		}
		System.out.printf("%7.5lf %7.5lf\n", Math.PI * r * r, 2 * Math.PI * r);
		return;
	}
}

Compiler output:
Main.java:14: error: variable r might not have been initialized
		System.out.printf("%7.5lf %7.5lf\n", Math.PI * r * r, 2 * Math.PI * r);
		                                               ^
1 error
Language: Java

import java.util.Scanner;

public class Main{
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		String temp;
		double r;
		try{
			temp = scan.next();
			r = Double.parseDouble(temp);
		}catch( IllegalStateException e ){
			System.out.println(e);
		}
		System.out.printf("%f %f%n", Math.PI * r * r, 2 * Math.PI * r);
		return;
	}
}

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

import java.util.Scanner;

public class Main{
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		String temp;
		double r;
		double pi = Math.PI;
		try{
			temp = scan.next();
			r = Double.parseDouble(temp);
		}catch( IllegalStateException e ){
			System.out.println(e);
		}
		System.out.printf("%f %f%n", pi * r * r, 2 * pi * r);
		return;
	}
}

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

import java.util.Scanner;

public class Main{
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		String temp;
		double r;
		double pi = Math.PI;
		try{
			temp = scan.next();
			r = Double.parseDouble(temp);
		}catch( IllegalStateException e ){
			System.out.println(e);
		}
		System.out.printf("%.6f %.6f", pi * r * r, 2 * pi * r);
		System.out.println();
		return;
	}
}

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

import java.util.Scanner;

public class Main{
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		String temp;
		double r;
		double pi = Math.PI;
		try{
			temp = scan.next();
			r = Double.parseDouble(temp);
		}catch( IllegalStateException e ){
			System.out.println(e);
		}
		System.out.printf("%.6f %.6f\n", (pi * r * r), (2 * pi * r));
		return;
	}
}

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

import java.util.Scanner;

public class Main{
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		String temp;
		double r = 0;
		try{
			temp = scan.next();
			r = Double.parseDouble(temp);
		}catch( IllegalStateException e ){
			System.out.println(e);
		}
		System.out.printf("%.6f %.6f\n", Math.PI * r * r), (2 * Math.PI * r));
		return;
	}
}

Compiler output:
Main.java:14: error: ';' expected
		System.out.printf("%.6f %.6f\n", Math.PI * r * r), (2 * Math.PI * r));
		                                                 ^
Main.java:14: error: not a statement
		System.out.printf("%.6f %.6f\n", Math.PI * r * r), (2 * Math.PI * r));
		                                                                ^
Main.java:14: error: ';' expected
		System.out.printf("%.6f %.6f\n", Math.PI * r * r), (2 * Math.PI * r));
		                                                                   ^
3 errors
Language: Java

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

			double r = Double.parseDouble(line);
			double pi = Math.PI;
			double area = r * r * pi;
			double length = 2 * r * pi;
			System.out.println(area + " " + length);
		} catch (IOException e) {
			// TODO ????????????????????? catch ????????????
			e.printStackTrace();
		}
	}
}

Compiler output:
Main.java:5: error: cannot find symbol
			BufferedReader reader = new BufferedReader(new InputStreamReader(
			^
  symbol:   class BufferedReader
  location: class Main
Main.java:5: error: cannot find symbol
			BufferedReader reader = new BufferedReader(new InputStreamReader(
			                            ^
  symbol:   class BufferedReader
  location: class Main
Main.java:5: error: cannot find symbol
			BufferedReader reader = new BufferedReader(new InputStreamReader(
			                                               ^
  symbol:   class InputStreamReader
  location: class Main
Main.java:14: 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) {
		String line;
		try {
			BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
			line = reader.readLine();

			double r = Double.parseDouble(line);
			double pi = Math.PI;
			double area = r * r * pi;
			double length = 2 * r * pi;
			System.out.println(area + " " + length);
		} catch (IOException e) {
			// TODO ????????????????????? catch ????????????
			e.printStackTrace();
		}
	}
}

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:13: 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) {
		String line;
		try {
			BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
			line = reader.readLine();

			double r = Double.parseDouble(line);
			double pi = Math.PI;
			double area = r * r * pi;
			double length = 2 * r * pi;
			System.out.println(area + " " + length);
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
}

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:13: 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) {
		String line;
		try {
			BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
			String line = reader.readLine();

			double r = Double.parseDouble(line);
			double pi = Math.PI;
			double area = r * r * pi;
			double length = 2 * r * pi;
			System.out.println(area + " " + length);
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
}

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:6: error: variable line is already defined in method main(String[])
			String line = reader.readLine();
			       ^
Main.java:13: error: cannot find symbol
		} catch (IOException e) {
		         ^
  symbol:   class IOException
  location: class Main
5 errors
Language: Java

import java.util.Scanner;

public class Circle {
	public static void main(String[] args){
	Scanner sc = new Scanner(System.in);
	double pi = Math.PI;
	int r = sc.nextInt();
	double area = (2*r*pi);
	double length = ( pi*r*r);
	System.out.println(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 Circle{
public static void main(String[] args) {
// ?¨??????\???????????????????????????????????????
Scanner sc = new Scanner(System.in);
double r = sc.nextInt();
double pi = Math.PI;
double a = r*r*pi;
double b = 2*r*pi;
 System.out.println(a + " " + b);
}
}

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);
		int r = sc.nextDouble();
		double pi = Math.PI;
		double area = r*r*pi;
		double length = (r+r)*pi;
		System.out.println(area+" "+length);
	}
}

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

import java.util.Scanner;

public class Main {
	public static void main(String[] args) throws IOException {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		String op = sc.next();
		int b = sc.nextInt();
		int ans = 0;
		if(op == "+") {
			ans = a + b;
		} else if(op == "-") {
			ans = a - b;
		} else if(op == "*") {
			ans = a * b;
		} else if(op == "/") {
			ans = a / b;
		} else if(op == "?") {
			System.exit(0);
		}
		System.out.println(ans);
	}
}

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

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

public class Circle {
	public static void main(String[] args){
	DecimalFormat df1 = new DecimalFormat("0.000000");
	Scanner sc = new Scanner(System.in);
	double pi = Math.PI;
	int r = sc.nextInt();
	double area = (2*r*pi);
	double length = ( pi*r*r);
	System.out.println(df1.format(area) + " " + df1.format(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 Circle{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);

		double r=sc.nextInt();
		double pi=Math.PI;		
		double area=r*r*pi;
		double length=2*r*pi;

		System.out.printf(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 = sc.nextDouble();
		double pi = Math.PI;
		double area = r*r*pi;
		double length = (r+r)*pi;
		System.out.printf("%f %f\n",area length);
	}
}

Compiler output:
Main.java:10: error: ')' or ',' expected
		System.out.printf("%f %f\n",area length);
		                                ^
Main.java:10: error: not a statement
		System.out.printf("%f %f\n",area length);
		                                 ^
Main.java:10: error: ';' expected
		System.out.printf("%f %f\n",area length);
		                                       ^
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 = sc.nextdouble();
double pi = Math.PI;
double a = r*r*pi;
double b = 2*r*pi;
 System.out.printf("%.6f %.6f",a,b);
}
}

Compiler output:
Main.java:6: error: cannot find symbol
double r = sc.nextdouble();
             ^
  symbol:   method nextdouble()
  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 nextDouble();
		double pi = Math.PI;
		double area = r * r * pi;
		double length = 2 * r * pi;
		System.out.println(area + " " + length);
	}
}

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 = new Scanner(System.in);
int r = sc.nextInt();
double pi = Math.PI;
double area = r * r * pi;
double round = 2 * r * pi;
printf(area + " " + round);
}
}
 

Compiler output:
Main.java:10: error: cannot find symbol
printf(area + " " + round);
^
  symbol:   method printf(String)
  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 pi = Math.PI;
double area = r * r * pi;
double round = 2 * r * pi;
printf(area);
printf(" ");
printf(round);
}
}
 

Compiler output:
Main.java:10: error: cannot find symbol
printf(area);
^
  symbol:   method printf(double)
  location: class Main
Main.java:11: error: cannot find symbol
printf(" ");
^
  symbol:   method printf(String)
  location: class Main
Main.java:12: error: cannot find symbol
printf(round);
^
  symbol:   method printf(double)
  location: class Main
3 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 round = 2 * r * pi;
Printf(area);
Printf(" ");
Printf(round);
}
}
 

Compiler output:
Main.java:10: error: cannot find symbol
Printf(area);
^
  symbol:   method Printf(double)
  location: class Main
Main.java:11: error: cannot find symbol
Printf(" ");
^
  symbol:   method Printf(String)
  location: class Main
Main.java:12: error: cannot find symbol
Printf(round);
^
  symbol:   method Printf(double)
  location: class Main
3 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 round = 2 * r * pi;
Systemoutprintf(area + " " + round);

}
}
 

Compiler output:
Main.java:10: error: cannot find symbol
Systemoutprintf(area + " " + round);
^
  symbol:   method Systemoutprintf(String)
  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);
		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: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 Scanner{
	public static void main(String [] args){
		Scanner sc = new Scanner(System.in);
		double  a = sc.nextInt();
		double length = 2 * a * Math.PI;
		double area = a * a * Math.PI;
		System.out.printf("%.6f %.6f", area, length);
	}
}

Compiler output:
Main.java:4: error: class Scanner is public, should be declared in a file named Scanner.java
public class Scanner{
       ^
Main.java:1: error: Scanner is already defined in this compilation unit
import java.util.Scanner;
^
2 errors
Language: Java

import java.util.Scanner;


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

Compiler output:
Main.java:4: error: class Scanner is public, should be declared in a file named Scanner.java
public class Scanner{
       ^
Main.java:1: error: Scanner is already defined in this compilation unit
import java.util.Scanner;
^
2 errors
Language: Java

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

public class Circle{
    public static void main(String[] args){
	Scanner sc = new Scanner(System.in);
	DecimalFormat df1 = new DecimalFormat("0.00000");
        double r = sc.nextDouble();
        double pi = Math.PI;
        double area = pi*r*r;
        double length = 2*pi*r;
        System.out.println(df1.format(area)+" "+df1.format(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