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

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

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

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.Scanner;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:2:1: error: 'import' does not name a type
    2 | import java.io.IOException;
      | ^~~~~~
a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:5:11: error: expected ':' before 'static'
    5 |     public static void main(String[] args) throws IOException{
      |           ^~~~~~~
      |           :
a.cc:5:29: error: 'String' has not been declared
    5 |     public static void main(String[] args) throws IOException{
      |                             ^~~~~~
a.cc:5:38: error: expected ',' or '...' before 'args'
    5 |     public static void main(String[] args) throws IOException{
      |                                      ^~~~
a.cc:5:42: error: expected ';' at end of member declaration
    5 |     public static void main(String[] args) throws IOException{
      |                                          ^
      |                                           ;
a.cc:5:44: error: 'throws' does not name a type
    5 |     public static void main(String[] args) throws IOException{
      |                                            ^~~~~~
a.cc:10:2: error: expected ';' after class definition
   10 | }
      |  ^
      |  ;
Language: C++

#include<iostream>
using namespace std;

const double PAI = 3.14159265358979323846264338327950288419716939937510;
double r;
int main(){
cin >> r;
cout << r*r*PAI << " "  << 2*`PAI*r << endl;
return 0;
}

Compiler output:
a.cc:8:30: error: stray '`' in program
    8 | cout << r*r*PAI << " "  << 2*`PAI*r << endl;
      |                              ^
Language: C++

#include<iostream>
using namespace std;

const double PAI = 3.1415926535;
double r;
int main(){
cin >> r;
cout << r*r*PAI << " "  << 2*`PAI*r << endl;
return 0;
}

Compiler output:
a.cc:8:30: error: stray '`' in program
    8 | cout << r*r*PAI << " "  << 2*`PAI*r << endl;
      |                              ^
Language: C++

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

const double PAI = 3.14159265358979
double r;
int main(){
cin >> r;
printf("%lf %lf\n",r*r*PAI,2*PAI*r);
return 0;
}

Compiler output:
a.cc:6:1: error: expected ',' or ';' before 'double'
    6 | double r;
      | ^~~~~~
a.cc: In function 'int main()':
a.cc:8:8: error: 'r' was not declared in this scope
    8 | cin >> r;
      |        ^
Language: C++

int main(int argc, char** argv) {
    float v,w,z;
    float pi = 3.14;
    v = 0.0;
    w = 0.0;
    z = 0.0;
    scanf("%lf", &v);
    w = pi*v*2.0;
    z = pi*v*v;
    printf("%lf %lf" ,&w,&z);
    return (EXIT_SUCCESS);
}

Compiler output:
a.cc: In function 'int main(int, char**)':
a.cc:7:5: error: 'scanf' was not declared in this scope
    7 |     scanf("%lf", &v);
      |     ^~~~~
a.cc:10:5: error: 'printf' was not declared in this scope
   10 |     printf("%lf %lf" ,&w,&z);
      |     ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main(int argc, char** argv) {
a.cc:11:13: error: 'EXIT_SUCCESS' was not declared in this scope
   11 |     return (EXIT_SUCCESS);
      |             ^~~~~~~~~~~~
a.cc:1:1: note: 'EXIT_SUCCESS' is defined in header '<cstdlib>'; this is probably fixable by adding '#include <cstdlib>'
  +++ |+#include <cstdlib>
    1 | int main(int argc, char** argv) {
Language: C++

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

/*
 * 
 */
int main() {
    float v,w,z;
    float pi = 3.14;
    v = 0.0;
    w = 0.0;
    z = 0.0;
    scanf("%lf", &v);
    w = pi*v*2.0;
    z = pi*v*v;
    printf("%lf %lf" ,&w,&z);
    return ();
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:13: error: expected primary-expression before ')' token
   17 |     return ();
      |             ^
Language: C++

import java.util.Scanner;


class Main {
	public static void main(String[] args) {
		Scanner cin = new Scanner(System.in);
		int a = cin.nextInt();
		double PI = Math.acos(-1.0);
		System.out.printf("%f %f\n", a * a * PI, a * 2 * PI);
	}
}

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.Scanner;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:5:15: error: expected ':' before 'static'
    5 |         public static void main(String[] args) {
      |               ^~~~~~~
      |               :
a.cc:5:33: error: 'String' has not been declared
    5 |         public static void main(String[] args) {
      |                                 ^~~~~~
a.cc:5:42: error: expected ',' or '...' before 'args'
    5 |         public static void main(String[] args) {
      |                                          ^~~~
a.cc:11:2: error: expected ';' after class definition
   11 | }
      |  ^
      |  ;
a.cc: In static member function 'static void Main::main(int*)':
a.cc:6:17: error: 'Scanner' was not declared in this scope
    6 |                 Scanner cin = new Scanner(System.in);
      |                 ^~~~~~~
a.cc:7:25: error: 'cin' was not declared in this scope
    7 |                 int a = cin.nextInt();
      |                         ^~~
a.cc:8:29: error: 'Math' was not declared in this scope
    8 |                 double PI = Math.acos(-1.0);
      |                             ^~~~
a.cc:9:17: error: 'System' was not declared in this scope
    9 |                 System.out.printf("%f %f\n", a * a * PI, a * 2 * PI);
      |                 ^~~~~~
Language: C++

#define _USE_MATH_DEFINES

#include <math.h>

using namespace std;

int main(){
	double r = 0;
	double S = 0,  C = 0;
	cin >> r;

	S = r * r * M_PI;
	C = 2 * M_PI * r;

	cout.precision(8);
	cout << S << " " << C << endl;

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: 'cin' was not declared in this scope
   10 |         cin >> r;
      |         ^~~
a.cc:4:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    3 | #include <math.h>
  +++ |+#include <iostream>
    4 | 
a.cc:15:9: error: 'cout' was not declared in this scope
   15 |         cout.precision(8);
      |         ^~~~
a.cc:15:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:16:34: error: 'endl' was not declared in this scope
   16 |         cout << S << " " << C << endl;
      |                                  ^~~~
a.cc:4:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    3 | #include <math.h>
  +++ |+#include <ostream>
    4 |
Language: C++

#include<stdio.h>


int main(){

double p=3.141592653589;

double r;

scanf("%lf",&r);

printf("%lf %lf\n",p*r*r,2*p*r);

retrun 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:1: error: 'retrun' was not declared in this scope
   14 | retrun 0;
      | ^~~~~~
Language: C++

import java.util.Scanner;

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

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.Scanner;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: expected unqualified-id before 'public'
    3 | public class Main{
      | ^~~~~~
Language: C++

import java.util.Scanner;


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

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.Scanner;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:4:1: error: expected unqualified-id before 'public'
    4 | public class Main{
      | ^~~~~~
Language: C++

int main(void){
int r;
double c=3.1415926535,a,b;
scanf("%d",&r);
a=2*r*c;
b=r*r*c;
printf("%lf %lf\n",a,b);
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:1: error: 'scanf' was not declared in this scope
    4 | scanf("%d",&r);
      | ^~~~~
a.cc:7:1: error: 'printf' was not declared in this scope
    7 | printf("%lf %lf\n",a,b);
      | ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main(void){
Language: C++

#include<stdio.h>
int main(void){
    double i,r,s,t,u=3.141592653589793238;
    scanf("%lf",&i);
    s=2*i*u;
    t=i*i*u;
    2
    printf("%lf %lf\n",s,t);
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:6: error: expected ';' before 'printf'
    7 |     2
      |      ^
      |      ;
    8 |     printf("%lf %lf\n",s,t);
      |     ~~~~~~
Language: C++

#include <stdio.h>
int main(void) {
    double r,??;
    ?? = 3.14159265;
    scanf("%lf", &r);
    printf("%f %f\n", r*r*??, 2*r*??);
}

Compiler output:
a.cc:6:35: warning: trigraph ??) ignored, use -trigraphs to enable [-Wtrigraphs]
    6 |     printf("%f %f\n", r*r*??, 2*r*??);
a.cc: In function 'int main()':
a.cc:3:14: error: expected unqualified-id before '?' token
    3 |     double r,??;
      |              ^
a.cc:4:5: error: expected primary-expression before '?' token
    4 |     ?? = 3.14159265;
      |     ^
a.cc:4:6: error: expected primary-expression before '?' token
    4 |     ?? = 3.14159265;
      |      ^
a.cc:4:8: error: expected primary-expression before '=' token
    4 |     ?? = 3.14159265;
      |        ^
a.cc:4:20: error: expected ':' before ';' token
    4 |     ?? = 3.14159265;
      |                    ^
      |                    :
a.cc:4:20: error: expected primary-expression before ';' token
a.cc:4:20: error: expected ':' before ';' token
    4 |     ?? = 3.14159265;
      |                    ^
      |                    :
a.cc:4:20: error: expected primary-expression before ';' token
a.cc:6:27: error: expected primary-expression before '?' token
    6 |     printf("%f %f\n", r*r*??, 2*r*??);
      |                           ^
a.cc:6:28: error: expected primary-expression before '?' token
    6 |     printf("%f %f\n", r*r*??, 2*r*??);
      |                            ^
a.cc:6:29: error: expected primary-expression before ',' token
    6 |     printf("%f %f\n", r*r*??, 2*r*??);
      |                             ^
a.cc:6:35: error: expected primary-expression before '?' token
    6 |     printf("%f %f\n", r*r*??, 2*r*??);
      |                                   ^
a.cc:6:36: error: expected primary-expression before '?' token
    6 |     printf("%f %f\n", r*r*??, 2*r*??);
      |                                    ^
a.cc:6:37: error: expected primary-expression before ')' token
    6 |     printf("%f %f\n", r*r*??, 2*r*??);
      |                                     ^
a.cc:6:37: error: expected ':' before ')' token
    6 |     printf("%f %f\n", r*r*??, 2*r*??);
      |                                     ^
      |                                     :
a.cc:6:37: error: expected primary-expression before ')' token
a.cc:6:37: error: expected ':' before ')' token
    6 |     printf("%f %f\n", r*r*??, 2*r*??);
      |                                     ^
      |                                     :
a.cc:6:37: error: expected primary-expression before ')' token
a.cc:6:37: error: expected ':' before ')' token
    6 |     printf("%f %f\n", r*r*??, 2*r*??);
      |                                     ^
      |                                     :
a.cc:6:37: error: expected primary-expression before ')' token
a.cc:6:37: error: expected ':' before ')' token
    6 |     printf("%f %f\n", r*r*??, 2*r*??);
      |                                     ^
      |                                     :
a.cc:6:37: error: expected primary-expression before ')' token
Language: C++

#include <stdio.h>
int main(void) {
    double r,??;
    ?? = 3.14159265;
    scanf("%lf", &r);
    printf("%f %f\n", r*r*??, 2*r*??);
    return 0;
}

Compiler output:
a.cc:6:35: warning: trigraph ??) ignored, use -trigraphs to enable [-Wtrigraphs]
    6 |     printf("%f %f\n", r*r*??, 2*r*??);
a.cc: In function 'int main()':
a.cc:3:14: error: expected unqualified-id before '?' token
    3 |     double r,??;
      |              ^
a.cc:4:5: error: expected primary-expression before '?' token
    4 |     ?? = 3.14159265;
      |     ^
a.cc:4:6: error: expected primary-expression before '?' token
    4 |     ?? = 3.14159265;
      |      ^
a.cc:4:8: error: expected primary-expression before '=' token
    4 |     ?? = 3.14159265;
      |        ^
a.cc:4:20: error: expected ':' before ';' token
    4 |     ?? = 3.14159265;
      |                    ^
      |                    :
a.cc:4:20: error: expected primary-expression before ';' token
a.cc:4:20: error: expected ':' before ';' token
    4 |     ?? = 3.14159265;
      |                    ^
      |                    :
a.cc:4:20: error: expected primary-expression before ';' token
a.cc:6:27: error: expected primary-expression before '?' token
    6 |     printf("%f %f\n", r*r*??, 2*r*??);
      |                           ^
a.cc:6:28: error: expected primary-expression before '?' token
    6 |     printf("%f %f\n", r*r*??, 2*r*??);
      |                            ^
a.cc:6:29: error: expected primary-expression before ',' token
    6 |     printf("%f %f\n", r*r*??, 2*r*??);
      |                             ^
a.cc:6:35: error: expected primary-expression before '?' token
    6 |     printf("%f %f\n", r*r*??, 2*r*??);
      |                                   ^
a.cc:6:36: error: expected primary-expression before '?' token
    6 |     printf("%f %f\n", r*r*??, 2*r*??);
      |                                    ^
a.cc:6:37: error: expected primary-expression before ')' token
    6 |     printf("%f %f\n", r*r*??, 2*r*??);
      |                                     ^
a.cc:6:37: error: expected ':' before ')' token
    6 |     printf("%f %f\n", r*r*??, 2*r*??);
      |                                     ^
      |                                     :
a.cc:6:37: error: expected primary-expression before ')' token
a.cc:6:37: error: expected ':' before ')' token
    6 |     printf("%f %f\n", r*r*??, 2*r*??);
      |                                     ^
      |                                     :
a.cc:6:37: error: expected primary-expression before ')' token
a.cc:6:37: error: expected ':' before ')' token
    6 |     printf("%f %f\n", r*r*??, 2*r*??);
      |                                     ^
      |                                     :
a.cc:6:37: error: expected primary-expression before ')' token
a.cc:6:37: error: expected ':' before ')' token
    6 |     printf("%f %f\n", r*r*??, 2*r*??);
      |                                     ^
      |                                     :
a.cc:6:37: error: expected primary-expression before ')' token
Language: C++

#include <stdio.h>

int main(void)
{
    double r,??;
    ?? = 3.14159265;
    scanf("%lf", &r);
    printf("%f %f\n", r*r*??, 2*r*??);
    return 0;
}

Compiler output:
a.cc:8:35: warning: trigraph ??) ignored, use -trigraphs to enable [-Wtrigraphs]
    8 |     printf("%f %f\n", r*r*??, 2*r*??);
a.cc: In function 'int main()':
a.cc:5:14: error: expected unqualified-id before '?' token
    5 |     double r,??;
      |              ^
a.cc:6:5: error: expected primary-expression before '?' token
    6 |     ?? = 3.14159265;
      |     ^
a.cc:6:6: error: expected primary-expression before '?' token
    6 |     ?? = 3.14159265;
      |      ^
a.cc:6:8: error: expected primary-expression before '=' token
    6 |     ?? = 3.14159265;
      |        ^
a.cc:6:20: error: expected ':' before ';' token
    6 |     ?? = 3.14159265;
      |                    ^
      |                    :
a.cc:6:20: error: expected primary-expression before ';' token
a.cc:6:20: error: expected ':' before ';' token
    6 |     ?? = 3.14159265;
      |                    ^
      |                    :
a.cc:6:20: error: expected primary-expression before ';' token
a.cc:8:27: error: expected primary-expression before '?' token
    8 |     printf("%f %f\n", r*r*??, 2*r*??);
      |                           ^
a.cc:8:28: error: expected primary-expression before '?' token
    8 |     printf("%f %f\n", r*r*??, 2*r*??);
      |                            ^
a.cc:8:29: error: expected primary-expression before ',' token
    8 |     printf("%f %f\n", r*r*??, 2*r*??);
      |                             ^
a.cc:8:35: error: expected primary-expression before '?' token
    8 |     printf("%f %f\n", r*r*??, 2*r*??);
      |                                   ^
a.cc:8:36: error: expected primary-expression before '?' token
    8 |     printf("%f %f\n", r*r*??, 2*r*??);
      |                                    ^
a.cc:8:37: error: expected primary-expression before ')' token
    8 |     printf("%f %f\n", r*r*??, 2*r*??);
      |                                     ^
a.cc:8:37: error: expected ':' before ')' token
    8 |     printf("%f %f\n", r*r*??, 2*r*??);
      |                                     ^
      |                                     :
a.cc:8:37: error: expected primary-expression before ')' token
a.cc:8:37: error: expected ':' before ')' token
    8 |     printf("%f %f\n", r*r*??, 2*r*??);
      |                                     ^
      |                                     :
a.cc:8:37: error: expected primary-expression before ')' token
a.cc:8:37: error: expected ':' before ')' token
    8 |     printf("%f %f\n", r*r*??, 2*r*??);
      |                                     ^
      |                                     :
a.cc:8:37: error: expected primary-expression before ')' token
a.cc:8:37: error: expected ':' before ')' token
    8 |     printf("%f %f\n", r*r*??, 2*r*??);
      |                                     ^
      |                                     :
a.cc:8:37: error: expected primary-expression before ')' token
Language: C++

#include <stdio.h>
int main(void)
{
    double r,??;
    ?? = 3.14159265;
    scanf("%lf", &r);
    printf("%f %f\n", r*r*??, 2*r*??);
    return 0;
}

Compiler output:
a.cc:7:35: warning: trigraph ??) ignored, use -trigraphs to enable [-Wtrigraphs]
    7 |     printf("%f %f\n", r*r*??, 2*r*??);
a.cc: In function 'int main()':
a.cc:4:14: error: expected unqualified-id before '?' token
    4 |     double r,??;
      |              ^
a.cc:5:5: error: expected primary-expression before '?' token
    5 |     ?? = 3.14159265;
      |     ^
a.cc:5:6: error: expected primary-expression before '?' token
    5 |     ?? = 3.14159265;
      |      ^
a.cc:5:8: error: expected primary-expression before '=' token
    5 |     ?? = 3.14159265;
      |        ^
a.cc:5:20: error: expected ':' before ';' token
    5 |     ?? = 3.14159265;
      |                    ^
      |                    :
a.cc:5:20: error: expected primary-expression before ';' token
a.cc:5:20: error: expected ':' before ';' token
    5 |     ?? = 3.14159265;
      |                    ^
      |                    :
a.cc:5:20: error: expected primary-expression before ';' token
a.cc:7:27: error: expected primary-expression before '?' token
    7 |     printf("%f %f\n", r*r*??, 2*r*??);
      |                           ^
a.cc:7:28: error: expected primary-expression before '?' token
    7 |     printf("%f %f\n", r*r*??, 2*r*??);
      |                            ^
a.cc:7:29: error: expected primary-expression before ',' token
    7 |     printf("%f %f\n", r*r*??, 2*r*??);
      |                             ^
a.cc:7:35: error: expected primary-expression before '?' token
    7 |     printf("%f %f\n", r*r*??, 2*r*??);
      |                                   ^
a.cc:7:36: error: expected primary-expression before '?' token
    7 |     printf("%f %f\n", r*r*??, 2*r*??);
      |                                    ^
a.cc:7:37: error: expected primary-expression before ')' token
    7 |     printf("%f %f\n", r*r*??, 2*r*??);
      |                                     ^
a.cc:7:37: error: expected ':' before ')' token
    7 |     printf("%f %f\n", r*r*??, 2*r*??);
      |                                     ^
      |                                     :
a.cc:7:37: error: expected primary-expression before ')' token
a.cc:7:37: error: expected ':' before ')' token
    7 |     printf("%f %f\n", r*r*??, 2*r*??);
      |                                     ^
      |                                     :
a.cc:7:37: error: expected primary-expression before ')' token
a.cc:7:37: error: expected ':' before ')' token
    7 |     printf("%f %f\n", r*r*??, 2*r*??);
      |                                     ^
      |                                     :
a.cc:7:37: error: expected primary-expression before ')' token
a.cc:7:37: error: expected ':' before ')' token
    7 |     printf("%f %f\n", r*r*??, 2*r*??);
      |                                     ^
      |                                     :
a.cc:7:37: error: expected primary-expression before ')' token
Language: C++

#include <stdio.h>
int main(void)
{
    double r,??;
    ?? = 3.1415926535;
    scanf("%lf", &r);
    printf("%lf %lf\n", r*r*??, 2*r*??);
    return 0;
}

Compiler output:
a.cc:7:37: warning: trigraph ??) ignored, use -trigraphs to enable [-Wtrigraphs]
    7 |     printf("%lf %lf\n", r*r*??, 2*r*??);
a.cc: In function 'int main()':
a.cc:4:14: error: expected unqualified-id before '?' token
    4 |     double r,??;
      |              ^
a.cc:5:5: error: expected primary-expression before '?' token
    5 |     ?? = 3.1415926535;
      |     ^
a.cc:5:6: error: expected primary-expression before '?' token
    5 |     ?? = 3.1415926535;
      |      ^
a.cc:5:8: error: expected primary-expression before '=' token
    5 |     ?? = 3.1415926535;
      |        ^
a.cc:5:22: error: expected ':' before ';' token
    5 |     ?? = 3.1415926535;
      |                      ^
      |                      :
a.cc:5:22: error: expected primary-expression before ';' token
a.cc:5:22: error: expected ':' before ';' token
    5 |     ?? = 3.1415926535;
      |                      ^
      |                      :
a.cc:5:22: error: expected primary-expression before ';' token
a.cc:7:29: error: expected primary-expression before '?' token
    7 |     printf("%lf %lf\n", r*r*??, 2*r*??);
      |                             ^
a.cc:7:30: error: expected primary-expression before '?' token
    7 |     printf("%lf %lf\n", r*r*??, 2*r*??);
      |                              ^
a.cc:7:31: error: expected primary-expression before ',' token
    7 |     printf("%lf %lf\n", r*r*??, 2*r*??);
      |                               ^
a.cc:7:37: error: expected primary-expression before '?' token
    7 |     printf("%lf %lf\n", r*r*??, 2*r*??);
      |                                     ^
a.cc:7:38: error: expected primary-expression before '?' token
    7 |     printf("%lf %lf\n", r*r*??, 2*r*??);
      |                                      ^
a.cc:7:39: error: expected primary-expression before ')' token
    7 |     printf("%lf %lf\n", r*r*??, 2*r*??);
      |                                       ^
a.cc:7:39: error: expected ':' before ')' token
    7 |     printf("%lf %lf\n", r*r*??, 2*r*??);
      |                                       ^
      |                                       :
a.cc:7:39: error: expected primary-expression before ')' token
a.cc:7:39: error: expected ':' before ')' token
    7 |     printf("%lf %lf\n", r*r*??, 2*r*??);
      |                                       ^
      |                                       :
a.cc:7:39: error: expected primary-expression before ')' token
a.cc:7:39: error: expected ':' before ')' token
    7 |     printf("%lf %lf\n", r*r*??, 2*r*??);
      |                                       ^
      |                                       :
a.cc:7:39: error: expected primary-expression before ')' token
a.cc:7:39: error: expected ':' before ')' token
    7 |     printf("%lf %lf\n", r*r*??, 2*r*??);
      |                                       ^
      |                                       :
a.cc:7:39: error: expected primary-expression before ')' token
Language: C++

#include <stdio.h>
int main(void)
{
    double r,??;
    ?? = 3.141592653589;
    scanf("%lf", &r);
    printf("%f %f\n", r*r*??, 2.0*r*??);
    return 0;
}

Compiler output:
a.cc:7:37: warning: trigraph ??) ignored, use -trigraphs to enable [-Wtrigraphs]
    7 |     printf("%f %f\n", r*r*??, 2.0*r*??);
a.cc: In function 'int main()':
a.cc:4:14: error: expected unqualified-id before '?' token
    4 |     double r,??;
      |              ^
a.cc:5:5: error: expected primary-expression before '?' token
    5 |     ?? = 3.141592653589;
      |     ^
a.cc:5:6: error: expected primary-expression before '?' token
    5 |     ?? = 3.141592653589;
      |      ^
a.cc:5:8: error: expected primary-expression before '=' token
    5 |     ?? = 3.141592653589;
      |        ^
a.cc:5:24: error: expected ':' before ';' token
    5 |     ?? = 3.141592653589;
      |                        ^
      |                        :
a.cc:5:24: error: expected primary-expression before ';' token
a.cc:5:24: error: expected ':' before ';' token
    5 |     ?? = 3.141592653589;
      |                        ^
      |                        :
a.cc:5:24: error: expected primary-expression before ';' token
a.cc:7:27: error: expected primary-expression before '?' token
    7 |     printf("%f %f\n", r*r*??, 2.0*r*??);
      |                           ^
a.cc:7:28: error: expected primary-expression before '?' token
    7 |     printf("%f %f\n", r*r*??, 2.0*r*??);
      |                            ^
a.cc:7:29: error: expected primary-expression before ',' token
    7 |     printf("%f %f\n", r*r*??, 2.0*r*??);
      |                             ^
a.cc:7:37: error: expected primary-expression before '?' token
    7 |     printf("%f %f\n", r*r*??, 2.0*r*??);
      |                                     ^
a.cc:7:38: error: expected primary-expression before '?' token
    7 |     printf("%f %f\n", r*r*??, 2.0*r*??);
      |                                      ^
a.cc:7:39: error: expected primary-expression before ')' token
    7 |     printf("%f %f\n", r*r*??, 2.0*r*??);
      |                                       ^
a.cc:7:39: error: expected ':' before ')' token
    7 |     printf("%f %f\n", r*r*??, 2.0*r*??);
      |                                       ^
      |                                       :
a.cc:7:39: error: expected primary-expression before ')' token
a.cc:7:39: error: expected ':' before ')' token
    7 |     printf("%f %f\n", r*r*??, 2.0*r*??);
      |                                       ^
      |                                       :
a.cc:7:39: error: expected primary-expression before ')' token
a.cc:7:39: error: expected ':' before ')' token
    7 |     printf("%f %f\n", r*r*??, 2.0*r*??);
      |                                       ^
      |                                       :
a.cc:7:39: error: expected primary-expression before ')' token
a.cc:7:39: error: expected ':' before ')' token
    7 |     printf("%f %f\n", r*r*??, 2.0*r*??);
      |                                       ^
      |                                       :
a.cc:7:39: error: expected primary-expression before ')' token
Language: C++

#include <stdio.h>
int main(void)
{
    double r, p;
    p = 3.1415926
    scanf("%lf", &r);
    printf("%f %f\n", r * r * p, 2 * r * p);
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:18: error: expected ';' before 'scanf'
    5 |     p = 3.1415926
      |                  ^
      |                  ;
    6 |     scanf("%lf", &r);
      |     ~~~~~
Language: C++

#include<stdio.h>

void main()
{
	double r,l,s;
	printf("?????????????????????");
	scanf("%lf",&r);
	s=r*r*3.14;
	l=2*r*3.14;
	printf("??¢???=%lf, ?????¨=%lf",s,l);
}

Compiler output:
a.cc:10:21: warning: trigraph ??= ignored, use -trigraphs to enable [-Wtrigraphs]
   10 |         printf("??¢???=%lf, ?????¨=%lf",s,l);
a.cc:3:1: error: '::main' must return 'int'
    3 | void main()
      | ^~~~
Language: C++

#include<stdio.h> #define pai 3.141592
main(){int r;double p=pai;printf("%f %f\n",2*r*p,r*r*p);return 0;}

Compiler output:
a.cc:1:19: warning: extra tokens at end of #include directive
    1 | #include<stdio.h> #define pai 3.141592
      |                   ^
a.cc:2:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    2 | main(){int r;double p=pai;printf("%f %f\n",2*r*p,r*r*p);return 0;}
      | ^~~~
a.cc: In function 'int main()':
a.cc:2:23: error: 'pai' was not declared in this scope
    2 | main(){int r;double p=pai;printf("%f %f\n",2*r*p,r*r*p);return 0;}
      |                       ^~~
Language: C++

r=gets.to_i
pi=3.14159265358979323846

puts '%.10f %.10f'%[pi*r*r,pi*2*r]

Compiler output:
a.cc:4:6: warning: multi-character literal with 11 characters exceeds 'int' size of 4 bytes
    4 | puts '%.10f %.10f'%[pi*r*r,pi*2*r]
      |      ^~~~~~~~~~~~~
a.cc:1:1: error: 'r' does not name a type
    1 | r=gets.to_i
      | ^
Language: C++

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:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.Scanner;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:2:1: error: 'import' does not name a type
    2 | import java.lang.Math;
      | ^~~~~~
a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:5:11: error: expected ':' before 'static'
    5 |     public static void main(String[] args){
      |           ^~~~~~~
      |           :
a.cc:5:29: error: 'String' has not been declared
    5 |     public static void main(String[] args){
      |                             ^~~~~~
a.cc:5:38: error: expected ',' or '...' before 'args'
    5 |     public static void main(String[] args){
      |                                      ^~~~
a.cc:12:2: error: expected ';' after class definition
   12 | }
      |  ^
      |  ;
a.cc: In static member function 'static void Main::main(int*)':
a.cc:6:9: error: 'Scanner' was not declared in this scope
    6 |         Scanner scan = new Scanner(System.in);
      |         ^~~~~~~
a.cc:8:20: error: 'scan' was not declared in this scope
    8 |         double r = scan.nextDouble();
      |                    ^~~~
a.cc:10:9: error: 'System' was not declared in this scope
   10 |         System.out.printf("%f %f", Math.PI * Math.pow(r, 2), 2 * Math.PI * r);
      |         ^~~~~~
a.cc:10:36: error: 'Math' was not declared in this scope
   10 |         System.out.printf("%f %f", Math.PI * Math.pow(r, 2), 2 * Math.PI * r);
      |                                    ^~~~
Language: C++

#include<stdio.h>
#include<math.h>

int main( void )
{
        double r=0;

        scanf("%lf",&r);

        printf("%f %f",r*r*M_PI,2*r*M_PI);

        return 0;
}
~

Compiler output:
a.cc:14:2: error: expected class-name at end of input
   14 | ~
      |  ^
Language: C++

#include <stdio.h>
#define PI 3.14159265
int main(void){
  double r;
  scanf("%lf",&r);
  printf("%f %f\n",PI * pow(r,2),PI * 2 * r);
  return(0);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:25: error: 'pow' was not declared in this scope
    6 |   printf("%f %f\n",PI * pow(r,2),PI * 2 * r);
      |                         ^~~
Language: C++

???include<stdio.h>
int main(){
  int r;
  scanf("%???",&r);
  printf("%d %d???n",3,14*r*r,3,14*2*r);
  return(0);
}

Compiler output:
a.cc:1:1: error: expected unqualified-id before '?' token
    1 | ???include<stdio.h>
      | ^
Language: C++

#include<stdio.h>
int main(){
  int r;
  scanf("%d",&r);
  printf("%d %d??????",r*r*3.14,2*r*3.14???;
  return(0);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:42: error: expected primary-expression before '?' token
    5 |   printf("%d %d??????",r*r*3.14,2*r*3.14???;
      |                                          ^
a.cc:5:43: error: expected primary-expression before '?' token
    5 |   printf("%d %d??????",r*r*3.14,2*r*3.14???;
      |                                           ^
a.cc:5:44: error: expected primary-expression before ';' token
    5 |   printf("%d %d??????",r*r*3.14,2*r*3.14???;
      |                                            ^
a.cc:5:44: error: expected ':' before ';' token
    5 |   printf("%d %d??????",r*r*3.14,2*r*3.14???;
      |                                            ^
      |                                            :
a.cc:5:44: error: expected primary-expression before ';' token
a.cc:5:44: error: expected ':' before ';' token
    5 |   printf("%d %d??????",r*r*3.14,2*r*3.14???;
      |                                            ^
      |                                            :
a.cc:5:44: error: expected primary-expression before ';' token
a.cc:5:44: error: expected ':' before ';' token
    5 |   printf("%d %d??????",r*r*3.14,2*r*3.14???;
      |                                            ^
      |                                            :
a.cc:5:44: error: expected primary-expression before ';' token
Language: C++

#include<stdio.h>
int main(){
  int r;
  scanf("%d",&r);
  printf("%d %d??????",3,14*r*r,2*r*3,14???;
  return(0);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:42: error: expected primary-expression before '?' token
    5 |   printf("%d %d??????",3,14*r*r,2*r*3,14???;
      |                                          ^
a.cc:5:43: error: expected primary-expression before '?' token
    5 |   printf("%d %d??????",3,14*r*r,2*r*3,14???;
      |                                           ^
a.cc:5:44: error: expected primary-expression before ';' token
    5 |   printf("%d %d??????",3,14*r*r,2*r*3,14???;
      |                                            ^
a.cc:5:44: error: expected ':' before ';' token
    5 |   printf("%d %d??????",3,14*r*r,2*r*3,14???;
      |                                            ^
      |                                            :
a.cc:5:44: error: expected primary-expression before ';' token
a.cc:5:44: error: expected ':' before ';' token
    5 |   printf("%d %d??????",3,14*r*r,2*r*3,14???;
      |                                            ^
      |                                            :
a.cc:5:44: error: expected primary-expression before ';' token
a.cc:5:44: error: expected ':' before ';' token
    5 |   printf("%d %d??????",3,14*r*r,2*r*3,14???;
      |                                            ^
      |                                            :
a.cc:5:44: error: expected primary-expression before ';' token
Language: C++

#include<stdio.h>
int main(){
  int r,pi=3,14;
  scanf("%d",&r);
  printf("%d %d??????",pi*r*r,2*r*pi???;
  return(0);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:14: error: expected unqualified-id before numeric constant
    3 |   int r,pi=3,14;
      |              ^~
a.cc:5:38: error: expected primary-expression before '?' token
    5 |   printf("%d %d??????",pi*r*r,2*r*pi???;
      |                                      ^
a.cc:5:39: error: expected primary-expression before '?' token
    5 |   printf("%d %d??????",pi*r*r,2*r*pi???;
      |                                       ^
a.cc:5:40: error: expected primary-expression before ';' token
    5 |   printf("%d %d??????",pi*r*r,2*r*pi???;
      |                                        ^
a.cc:5:40: error: expected ':' before ';' token
    5 |   printf("%d %d??????",pi*r*r,2*r*pi???;
      |                                        ^
      |                                        :
a.cc:5:40: error: expected primary-expression before ';' token
a.cc:5:40: error: expected ':' before ';' token
    5 |   printf("%d %d??????",pi*r*r,2*r*pi???;
      |                                        ^
      |                                        :
a.cc:5:40: error: expected primary-expression before ';' token
a.cc:5:40: error: expected ':' before ';' token
    5 |   printf("%d %d??????",pi*r*r,2*r*pi???;
      |                                        ^
      |                                        :
a.cc:5:40: error: expected primary-expression before ';' token
Language: C++

#include<stdio.h>
int main(){
  int r,pi=3.14159;
  scanf("%d",&r);
  printf("%d %d??????",pi*r*r,2*r*pi???;
  return(0);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:38: error: expected primary-expression before '?' token
    5 |   printf("%d %d??????",pi*r*r,2*r*pi???;
      |                                      ^
a.cc:5:39: error: expected primary-expression before '?' token
    5 |   printf("%d %d??????",pi*r*r,2*r*pi???;
      |                                       ^
a.cc:5:40: error: expected primary-expression before ';' token
    5 |   printf("%d %d??????",pi*r*r,2*r*pi???;
      |                                        ^
a.cc:5:40: error: expected ':' before ';' token
    5 |   printf("%d %d??????",pi*r*r,2*r*pi???;
      |                                        ^
      |                                        :
a.cc:5:40: error: expected primary-expression before ';' token
a.cc:5:40: error: expected ':' before ';' token
    5 |   printf("%d %d??????",pi*r*r,2*r*pi???;
      |                                        ^
      |                                        :
a.cc:5:40: error: expected primary-expression before ';' token
a.cc:5:40: error: expected ':' before ';' token
    5 |   printf("%d %d??????",pi*r*r,2*r*pi???;
      |                                        ^
      |                                        :
a.cc:5:40: error: expected primary-expression before ';' token
Language: C++

#include<stdio.h>
int main(){
  int r;
  double pi=3.14159;
  scanf("%d",&r);
  printf("%d %d??????",pi*r*r,2*r*pi???;
  return(0);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:38: error: expected primary-expression before '?' token
    6 |   printf("%d %d??????",pi*r*r,2*r*pi???;
      |                                      ^
a.cc:6:39: error: expected primary-expression before '?' token
    6 |   printf("%d %d??????",pi*r*r,2*r*pi???;
      |                                       ^
a.cc:6:40: error: expected primary-expression before ';' token
    6 |   printf("%d %d??????",pi*r*r,2*r*pi???;
      |                                        ^
a.cc:6:40: error: expected ':' before ';' token
    6 |   printf("%d %d??????",pi*r*r,2*r*pi???;
      |                                        ^
      |                                        :
a.cc:6:40: error: expected primary-expression before ';' token
a.cc:6:40: error: expected ':' before ';' token
    6 |   printf("%d %d??????",pi*r*r,2*r*pi???;
      |                                        ^
      |                                        :
a.cc:6:40: error: expected primary-expression before ';' token
a.cc:6:40: error: expected ':' before ';' token
    6 |   printf("%d %d??????",pi*r*r,2*r*pi???;
      |                                        ^
      |                                        :
a.cc:6:40: error: expected primary-expression before ';' token
Language: C++

#include<stdio.h>
int main(){
  int r;
  double pi=3.14;
  scanf("%d",&r);
  printf("%d %d??????",pi*r*r,2*r*pi???;
  return(0);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:38: error: expected primary-expression before '?' token
    6 |   printf("%d %d??????",pi*r*r,2*r*pi???;
      |                                      ^
a.cc:6:39: error: expected primary-expression before '?' token
    6 |   printf("%d %d??????",pi*r*r,2*r*pi???;
      |                                       ^
a.cc:6:40: error: expected primary-expression before ';' token
    6 |   printf("%d %d??????",pi*r*r,2*r*pi???;
      |                                        ^
a.cc:6:40: error: expected ':' before ';' token
    6 |   printf("%d %d??????",pi*r*r,2*r*pi???;
      |                                        ^
      |                                        :
a.cc:6:40: error: expected primary-expression before ';' token
a.cc:6:40: error: expected ':' before ';' token
    6 |   printf("%d %d??????",pi*r*r,2*r*pi???;
      |                                        ^
      |                                        :
a.cc:6:40: error: expected primary-expression before ';' token
a.cc:6:40: error: expected ':' before ';' token
    6 |   printf("%d %d??????",pi*r*r,2*r*pi???;
      |                                        ^
      |                                        :
a.cc:6:40: error: expected primary-expression before ';' token
Language: C++

#include <iostream>
#define _USE_MATH_DEFINES
#include <math.h>

int main() {
	double  r,x, y;
	while (1) {
		cin >> r;
		x = r * r * M_PI;
		y = 2 * r * M_PI;
		printf("%0.6f", y);
		cout << " ";
		printf("%0.6f", x);
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:17: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    8 |                 cin >> r;
      |                 ^~~
      |                 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:12:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   12 |                 cout << " ";
      |                 ^~~~
      |                 std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#include <iostream>
#include <math.h>

int main()
{
    double r;
    double pi=M_PI;
    std::cin >> r;
    std::cout << std::fixed << std::setprecision(5) <<  pi * r * r << " " << 2 * pi * r << std::endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:37: error: 'setprecision' is not a member of 'std'
    9 |     std::cout << std::fixed << std::setprecision(5) <<  pi * r * r << " " << 2 * pi * r << std::endl;
      |                                     ^~~~~~~~~~~~
a.cc:3:1: note: 'std::setprecision' is defined in header '<iomanip>'; this is probably fixable by adding '#include <iomanip>'
    2 | #include <math.h>
  +++ |+#include <iomanip>
    3 |
Language: C++

#include <iostream>

int main ()
{
	double pai = 3.14159265;
	double r;
	std::cin >> r;
	std::fixed << pai * r * r << " " << pai * 2 * r;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:20: error: invalid operands of types 'std::ios_base&(std::ios_base&)' and 'double' to binary 'operator<<'
    8 |         std::fixed << pai * r * r << " " << pai * 2 * r;
      |         ~~~~~~~~~~ ^~ ~~~~~~~~~~~
      |              |                |
      |              |                double
      |              std::ios_base&(std::ios_base&)
Language: C++

#include <iostrerm>

int mrin()
{
	double r;
	double x;
	double y;
	double pi = 3.14159265;
	std::cin >> r;
	x = 2*r*pi;
	y = pi*r*r;  
	std::cout << x << " " << y << std::endl;
	
	return 0;
}

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

#include <iostream>

int mrin()
{
	double r;
	double x;
	double y;
	double pi = 3.14159265;
	std::cin >> r;
	x = 2*r*pi;
	y = pi*r*r;  
	std::cout << x << " " << y << std::endl;
	
	return 0;
}

Compiler output:
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C++

#include <iostream>

int main()
{
	double r, pi = 3.141592653589;
	
	std::cin >> r;
	std::cout << std::fixed << std::setprecision(6) << r * r * pi << " " << 2 * r * pi << std::endl;
	
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:41: error: 'setprecision' is not a member of 'std'
    8 |         std::cout << std::fixed << std::setprecision(6) << r * r * pi << " " << 2 * r * pi << std::endl;
      |                                         ^~~~~~~~~~~~
a.cc:2:1: note: 'std::setprecision' is defined in header '<iomanip>'; this is probably fixable by adding '#include <iomanip>'
    1 | #include <iostream>
  +++ |+#include <iomanip>
    2 |
Language: C++


#include <iostream>
#include <iomanip>
#include <math.h>
int main()
{
    double r;
    std::cin >> r;
    std::cout << std::fixed << std::setprecision(10) << r * r * M_PI << " " << $
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:80: error: '$' was not declared in this scope
    9 |     std::cout << std::fixed << std::setprecision(10) << r * r * M_PI << " " << $
      |                                                                                ^
Language: C++

import java.util.Scanner;

public class Main{

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		double p = Math.PI;
		Scanner sc = new Scanner(System.in);
		double hankei = sc.nextDouble();
		double area = hankei * hankei * p;
		double circum = 2 * hankei * p;
		System.out.println(area + " " + circum);
	}

}

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.Scanner;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: expected unqualified-id before 'public'
    3 | public class Main{
      | ^~~~~~
Language: C++

const double PI = std::atan(1) * 4;
 
int main()
{
    double r;
    std::cin >> r;
    std::cout << r * r * PI << ' ' << r * 2 * PI << std::endl;
    return 0;
}

Compiler output:
a.cc:1:24: error: 'atan' is not a member of 'std'
    1 | const double PI = std::atan(1) * 4;
      |                        ^~~~
a.cc: In function 'int main()':
a.cc:6:10: error: 'cin' is not a member of 'std'
    6 |     std::cin >> r;
      |          ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | const double PI = std::atan(1) * 4;
a.cc:7:10: error: 'cout' is not a member of 'std'
    7 |     std::cout << r * r * PI << ' ' << r * 2 * PI << std::endl;
      |          ^~~~
a.cc:7:10: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:7:58: error: 'endl' is not a member of 'std'
    7 |     std::cout << r * r * PI << ' ' << r * 2 * PI << std::endl;
      |                                                          ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | const double PI = std::atan(1) * 4;
Language: C++

#include<studio.h>

int r;
double i=3.141592653589;

main ()
	{
		scanf("&r");
		printf("%f %f",i*r*r,2*r*i);
		return 0;
	}

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

#include<stdio.h>

double r,i=3.141592653589;

int main ()
	{
		cin>>r;
		printf("%f %f\n",i*r*r,2*r*i);
		return 0;
	}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:17: error: 'cin' was not declared in this scope
    7 |                 cin>>r;
      |                 ^~~
Language: C++

#include<cstdio>

double r,i=3.141592653589;

int main ()
	{
		cin>>r;
		printf("%f %f\n",i*r*r,2*r*i);
		return 0;
	}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:17: error: 'cin' was not declared in this scope
    7 |                 cin>>r;
      |                 ^~~
Language: C++

#include<stdio.h>

float r,i=3.141592653589;

float main ()
       {
               scanf("%f",&r);
               printf("%f %f\n",i*r*r,2*r*i);
               return 0;
       }

Compiler output:
a.cc:5:1: error: '::main' must return 'int'
    5 | float main ()
      | ^~~~~