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

#include <cstdio>

using namespace std;

int main(void) {
    int a;
    
    scanf("%f", &a);
    printf("%.6f %.6f", a * a * 3.141592653589, (2 * a) * 3.141592653589;
    
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:73: error: expected ')' before ';' token
    9 |     printf("%.6f %.6f", a * a * 3.141592653589, (2 * a) * 3.141592653589;
      |           ~                                                             ^
      |                                                                         )
Language: C++

import Text.Printf
main = do
	r <- readLn
	printf "%.6f %.6f\n" (r**2*pi) (2*r*pi)

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import Text.Printf
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
Language: C++

using System;

class Program
{
    static void Main()
    {
        double r = double.Parse(Console.ReadLine());
        double S = r*r*Math.PI;
        double L = 2*r*Math.PI;
        Console.WriteLine("{0} {1}",S,L);

    }
}

Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:13:2: error: expected ';' after class definition
   13 | }
      |  ^
      |  ;
a.cc: In static member function 'static void Program::Main()':
a.cc:7:20: error: expected primary-expression before 'double'
    7 |         double r = double.Parse(Console.ReadLine());
      |                    ^~~~~~
a.cc:8:24: error: 'Math' was not declared in this scope
    8 |         double S = r*r*Math.PI;
      |                        ^~~~
a.cc:10:9: error: 'Console' was not declared in this scope
   10 |         Console.WriteLine("{0} {1}",S,L);
      |         ^~~~~~~
Language: C++

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

int main(){
	double r,M_PI=acos(-1.0);
	scanf("%lf",&r);
	printf("%.10lf %.10lf\n",2*M_PI*r,M_PI*r*r);
	return 0;
}

Compiler output:
In file included from /usr/include/c++/14/cmath:47,
                 from /usr/include/c++/14/math.h:36,
                 from a.cc:2:
a.cc: In function 'int main()':
a.cc:5:18: error: expected unqualified-id before numeric constant
    5 |         double r,M_PI=acos(-1.0);
      |                  ^~~~
Language: C++

#include <stdio.h>
int main(voi) {
double r;
scanf("%lf", &r);
printf( "%lf %lf", 3.14159 * r * r / 2, 3.14159*2*r);
return 0;
}

Compiler output:
a.cc:2:5: error: cannot declare '::main' to be a global variable
    2 | int main(voi) {
      |     ^~~~
a.cc:2:10: error: 'voi' was not declared in this scope; did you mean 'void'?
    2 | int main(voi) {
      |          ^~~
      |          void
Language: C++



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 r = sc.nextInt();

double area = pi*r*r;

int length = 2*pi*r;

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

}

}

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

#include <stdio.h>
#define PI 3.14159267

int main() {
    int r;
    double s,l;
    scanf_s("%d", &r);
    s = r*r*PI;
    l = 2 * PI*r;
    printf("%f %f\n", s, l);
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
    7 |     scanf_s("%d", &r);
      |     ^~~~~~~
      |     scanf
Language: C++

#include <stdio.h>
#define PI 3.14159267

int main() {
    float r;
    double s,l;
    scanf_s("%f", &r);
    s = r*r*PI;
    l = 2 * PI*r;
    printf("%f %f\n", s, l);
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
    7 |     scanf_s("%f", &r);
      |     ^~~~~~~
      |     scanf
Language: C++

#include <stdio.h>
#define pi 3.1415926535897323

int main() {
    float r;
    double s,l;
    scanf_s("%f", &r);
    s = r*r*pi;
    l = 2 * pi*r;
    printf("%.6lf %.6lf\n", s, l);
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
    7 |     scanf_s("%f", &r);
      |     ^~~~~~~
      |     scanf
Language: C++

#include <stdio.h>
int main()
{
  double r,s,l,p;
  scanf("%d",r);
  p=3.14159265358979???
    s=r*r*p;
  l=2*r*p;
  printf("%f %f",s,l);
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:22: error: expected primary-expression before '?' token
    6 |   p=3.14159265358979???
      |                      ^
a.cc:6:23: error: expected primary-expression before '?' token
    6 |   p=3.14159265358979???
      |                       ^
a.cc:7:12: error: expected ':' before ';' token
    7 |     s=r*r*p;
      |            ^
      |            :
a.cc:7:12: error: expected primary-expression before ';' token
a.cc:7:12: error: expected ':' before ';' token
    7 |     s=r*r*p;
      |            ^
      |            :
a.cc:7:12: error: expected primary-expression before ';' token
a.cc:7:12: error: expected ':' before ';' token
    7 |     s=r*r*p;
      |            ^
      |            :
a.cc:7:12: error: expected primary-expression before ';' token
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:12: error: invalid operands of types 'const char [4]' and 'double' to binary 'operator&'
    4 | scanf("%lf"&r)
      |       ~~~~~^~
      |       |     |
      |       |     double
      |       const char [4]
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:16: error: expected ';' before ':' token
    4 | scanf("%lf",&r):
      |                ^
      |                ;
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:16: error: expected ';' before ':' token
    4 | scanf("%lf",&r):
      |                ^
      |                ;
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:16: error: expected ';' before ':' token
    4 | scanf("%lf",&r):
      |                ^
      |                ;
Language: C++

#include<stdio.h>
int main(void){
int r;
scanf("%d",&r):
printf("%.5lf %.5lf\n",r*r*3.141592653589,2*r*3.141592653689);
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:15: error: expected ';' before ':' token
    4 | scanf("%d",&r):
      |               ^
      |               ;
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:16: error: expected ';' before ':' token
    4 | scanf("%lf",&r):
      |                ^
      |                ;
Language: C++

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

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

import java.util.Scanner;

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

		System.out.printf("%.6f %.6f",(float)Math.pow(r,2) * Math.PI,2 * (float)r * Math.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:4:16: error: expected unqualified-id before 'public'
    4 |         static public void main(String args[]){
      |                ^~~~~~
a.cc:10:2: error: expected ';' after class definition
   10 | }
      |  ^
      |  ;
Language: C++

using System;

namespace Ex160506_1{
    public class Program{
        public static void Main(string[] args){
            var r = double.Parse(Console.ReadLine());
            Console.WriteLine("{0} {1}", r * r * Math.PI, 2 * r * Math.PI);
        }
    }
}

Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:4:5: error: expected unqualified-id before 'public'
    4 |     public class Program{
      |     ^~~~~~
Language: C++

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		double pi = 3.141592653589;
		double r;
		Scanner scan = new Scanner(System.in);
		r = scan.nextInt();

		System.out.printf("%6f %6f",(pi*r*r),(2*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:3:1: error: expected unqualified-id before 'public'
    3 | public class Main {
      | ^~~~~~
Language: C++

#include<iostream>
#include<iomanip>
using namespace std;

#define PI 3.141592f

int main(){
   double r;
   cin >> r;
   
   cout << fixed << setprecision(5) << 2f * PI * r * r << " ";
   cout << 2f * PI * r << endl;
    
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:40: error: unable to find numeric literal operator 'operator""f'
   11 |    cout << fixed << setprecision(5) << 2f * PI * r * r << " ";
      |                                        ^~
a.cc:12:12: error: unable to find numeric literal operator 'operator""f'
   12 |    cout << 2f * PI * r << endl;
      |            ^~
Language: C++

#include<stdio.h>

int main(void)

{

   doublu r;

double pai = 3.14159265359;


   scanf("%lf",&r);

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


return 0;

Compiler output:
a.cc: In function 'int main()':
a.cc:7:4: error: 'doublu' was not declared in this scope; did you mean 'double'?
    7 |    doublu r;
      |    ^~~~~~
      |    double
a.cc:12:17: error: 'r' was not declared in this scope
   12 |    scanf("%lf",&r);
      |                 ^
a.cc:17:10: error: expected '}' at end of input
   17 | return 0;
      |          ^
a.cc:5:1: note: to match this '{'
    5 | {
      | ^
Language: C++

#include<stdio.h>

int main(void)

{

   double r;

double pai = 3.14159265359;


   scanf("%lf",&r);

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


return 0;

Compiler output:
a.cc: In function 'int main()':
a.cc:14:30: error: expected ')' before numeric constant
   14 |    printf("%lf %lf\n",r*r*pai.2*r*pai);
      |          ~                   ^~
      |                              )
a.cc:17:10: error: expected '}' at end of input
   17 | return 0;
      |          ^
a.cc:5:1: note: to match this '{'
    5 | {
      | ^
Language: C++

#include<stdio.h>

int main(void)

{

   double r;

double pai = 3.14159265359;


   scanf("%lf",&r);

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


return 0;

Compiler output:
a.cc: In function 'int main()':
a.cc:17:10: error: expected '}' at end of input
   17 | return 0;
      |          ^
a.cc:5:1: note: to match this '{'
    5 | {
      | ^
Language: C++

#include<stdio.h>

int main(void)
{
	int r;
	int pai = 3.141592653589
	
	scanf("%lf",&r);
	
	printf("%lf %lf\n",r*r*pai,2*r*pai);
	
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: expected ',' or ';' before 'scanf'
    8 |         scanf("%lf",&r);
      |         ^~~~~
Language: C++

#include<iostream>
  #include<cstdio>
  using namespace std;
  double S,L,r;
  int main(){
  	   cin>>r;
  	   S=r*r*3.14159265358979323846264338;
  	   L=2.0*r*3.14159265358979323846264338;
  	   printf("%f %f",S,L,);
      return o;

  }

Compiler output:
a.cc: In function 'int main()':
a.cc:9:31: error: expected primary-expression before ')' token
    9 |            printf("%f %f",S,L,);
      |                               ^
a.cc:10:14: error: 'o' was not declared in this scope
   10 |       return o;
      |              ^
Language: C++

#include<iostream>
#include<cstdio>
using namespace std;
double S,L,r;
int main(){
  	 cin>>r;
  	 S=r*r*3.14159265358979323846264338;
  	 L=2.0*r*3.14159265358979323846264338;
  	 printf("%f %f",S,L,);
    return o;
 }

Compiler output:
a.cc: In function 'int main()':
a.cc:9:29: error: expected primary-expression before ')' token
    9 |          printf("%f %f",S,L,);
      |                             ^
a.cc:10:12: error: 'o' was not declared in this scope
   10 |     return o;
      |            ^
Language: C++

#include<stdio.h>
#include<math.h>
int main() {
	double a;
	scanf_s("%lf"&a);
	printf("%f %f\n",a*a*M_PI,a*2*M_PI);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:22: error: invalid operands of types 'const char [4]' and 'double' to binary 'operator&'
    5 |         scanf_s("%lf"&a);
      |                 ~~~~~^~
      |                 |     |
      |                 |     double
      |                 const char [4]
a.cc:5:9: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
    5 |         scanf_s("%lf"&a);
      |         ^~~~~~~
      |         scanf
Language: C++

#include<stdio.h>
#define _USE_MATH_DEFINES
#include<math.h>
int main() {
	double a;
	scanf_s("%lf",&a);
	printf("%f %f\n", a*a*M_PI, a * 2 * M_PI);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
    6 |         scanf_s("%lf",&a);
      |         ^~~~~~~
      |         scanf
Language: C++

#include <stdio.h>
#define PI 3.1415926

int main() {
	double r, s, l;
	scanf_s("%f", &r);

	s = r * r * PI;
	l = 2 * PI * r

	printf("%f %f", s, l);

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
    6 |         scanf_s("%f", &r);
      |         ^~~~~~~
      |         scanf
a.cc:9:23: error: expected ';' before 'printf'
    9 |         l = 2 * PI * r
      |                       ^
      |                       ;
   10 | 
   11 |         printf("%f %f", s, l);
      |         ~~~~~~
Language: C++

#include <stdio.h>
#define PI 3.1415926

int main() {
	double r, s, l;
	scanf("%f", &r);

	s = r * r * PI;
	l = 2 * PI * r

	printf("%f %f", s, l);

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:23: error: expected ';' before 'printf'
    9 |         l = 2 * PI * r
      |                       ^
      |                       ;
   10 | 
   11 |         printf("%f %f", s, l);
      |         ~~~~~~
Language: C++

#include<iostream>
#include <math.h>
#include<iomanip>
using namespace std;
int main() {

	int r, M_PI = 3.14159265;
	cin >> r;
	cout << fixed << setprecision(10) <<r*r* M_PI <<" "<< fixed << setprecision(10) <<r*2* M_PI <<endl;

return 0;
}

Compiler output:
In file included from /usr/include/c++/14/cmath:47,
                 from /usr/include/c++/14/math.h:36,
                 from a.cc:2:
a.cc: In function 'int main()':
a.cc:7:16: error: expected unqualified-id before numeric constant
    7 |         int r, M_PI = 3.14159265;
      |                ^~~~
Language: C++

#include <stdio.h>
#define PI = 3.14159265359

int main(){
	
	int r;
	float area, perim;
	
	scanf("%d", &r);
	area = (float)r*r*PI;
	perim = (float)2*r*PI;

	printf("%f %f\n", area, perim);
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:2:12: error: expected primary-expression before '=' token
    2 | #define PI = 3.14159265359
      |            ^
a.cc:10:27: note: in expansion of macro 'PI'
   10 |         area = (float)r*r*PI;
      |                           ^~
a.cc:2:12: error: expected primary-expression before '=' token
    2 | #define PI = 3.14159265359
      |            ^
a.cc:11:28: note: in expansion of macro 'PI'
   11 |         perim = (float)2*r*PI;
      |                            ^~
Language: C++

#include <stdio.h>
#define PI 3.14159265376

int main(){
	
	float r;
	float area, perim;
	
	scanf("%f", &r);
	area = (float)r*r*PI;
	perim = (float)2*r*PI;

	printf("%f %f\n", area, perim);
	return 0;
}

3657.383181

Compiler output:
a.cc:17:1: error: expected unqualified-id before numeric constant
   17 | 3657.383181
      | ^~~~~~~~~~~
Language: C++

#include <stdio.h>
#define PI 3.141592653589

int main(){
	double area, perim;
	
	scanf("%lf", &r);
	area = r*r*PI;
	perim = 2*r*PI;

	printf("%f %f\n", area, perim);
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:23: error: 'r' was not declared in this scope
    7 |         scanf("%lf", &r);
      |                       ^
Language: C++

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

int main()
{
	double a;
	cin >> a;

  printf("%lf %lf", a * a * M_PI, 2 * a * M_PI);

Compiler output:
a.cc: In function 'int main()':
a.cc:11:49: error: expected '}' at end of input
   11 |   printf("%lf %lf", a * a * M_PI, 2 * a * M_PI);
      |                                                 ^
a.cc:7:1: note: to match this '{'
    7 | {
      | ^
Language: C++

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

int main()
{
	double a;
	cin >> a;

  printf("%lf %lf\n", a * a * M_PI, 2 * a * M_PI);

Compiler output:
a.cc: In function 'int main()':
a.cc:11:51: error: expected '}' at end of input
   11 |   printf("%lf %lf\n", a * a * M_PI, 2 * a * M_PI);
      |                                                   ^
a.cc:7:1: note: to match this '{'
    7 | {
      | ^
Language: C++

using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace test
{
   class Program
   {
      static void Main(string[] args)
      {
        Console.Write(r * r * 3.14 + " " + 2 * r * 3.14);

Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:2:7: error: expected nested-name-specifier before 'System'
    2 | using System.Collections.Generic;
      |       ^~~~~~
a.cc:3:7: error: expected nested-name-specifier before 'System'
    3 | using System.Text;
      |       ^~~~~~
a.cc:4:7: error: expected nested-name-specifier before 'System'
    4 | using System.Threading.Tasks;
      |       ^~~~~~
a.cc:10:24: error: 'string' has not been declared
   10 |       static void Main(string[] args)
      |                        ^~~~~~
a.cc:10:33: error: expected ',' or '...' before 'args'
   10 |       static void Main(string[] args)
      |                                 ^~~~
a.cc:12:58: error: expected '}' at end of input
   12 |         Console.Write(r * r * 3.14 + " " + 2 * r * 3.14);
      |                                                          ^
a.cc:9:4: note: to match this '{'
    9 |    {
      |    ^
a.cc: In static member function 'static void test::Program::Main(int*)':
a.cc:12:9: error: 'Console' was not declared in this scope
   12 |         Console.Write(r * r * 3.14 + " " + 2 * r * 3.14);
      |         ^~~~~~~
a.cc:12:23: error: 'r' was not declared in this scope
   12 |         Console.Write(r * r * 3.14 + " " + 2 * r * 3.14);
      |                       ^
a.cc:12:58: error: expected '}' at end of input
   12 |         Console.Write(r * r * 3.14 + " " + 2 * r * 3.14);
      |                                                          ^
a.cc:11:7: note: to match this '{'
   11 |       {
      |       ^
a.cc: At global scope:
a.cc:12:58: error: expected unqualified-id at end of input
   12 |         Console.Write(r * r * 3.14 + " " + 2 * r * 3.14);
      |                                                          ^
a.cc:12:58: error: expected '}' at end of input
a.cc:7:1: note: to match this '{'
    7 | {
      | ^
Language: C++

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

int main() {
    int a;
    double r1, r2, ??;
    ?? = 3.141592653589;
    cin >> a;
    r1 = a * 2 * ??;
    r2 = a * a * ??;
    printf("%f", r1);
    cout << " ";
    printf("%f\n", r2);
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:20: error: expected unqualified-id before '?' token
    7 |     double r1, r2, ??;
      |                    ^
a.cc:8:5: error: expected primary-expression before '?' token
    8 |     ?? = 3.141592653589;
      |     ^
a.cc:8:6: error: expected primary-expression before '?' token
    8 |     ?? = 3.141592653589;
      |      ^
a.cc:8:8: error: expected primary-expression before '=' token
    8 |     ?? = 3.141592653589;
      |        ^
a.cc:8:24: error: expected ':' before ';' token
    8 |     ?? = 3.141592653589;
      |                        ^
      |                        :
a.cc:8:24: error: expected primary-expression before ';' token
a.cc:8:24: error: expected ':' before ';' token
    8 |     ?? = 3.141592653589;
      |                        ^
      |                        :
a.cc:8:24: error: expected primary-expression before ';' token
a.cc:10:18: error: expected primary-expression before '?' token
   10 |     r1 = a * 2 * ??;
      |                  ^
a.cc:10:19: error: expected primary-expression before '?' token
   10 |     r1 = a * 2 * ??;
      |                   ^
a.cc:10:20: error: expected primary-expression before ';' token
   10 |     r1 = a * 2 * ??;
      |                    ^
a.cc:10:20: error: expected ':' before ';' token
   10 |     r1 = a * 2 * ??;
      |                    ^
      |                    :
a.cc:10:20: error: expected primary-expression before ';' token
a.cc:10:20: error: expected ':' before ';' token
   10 |     r1 = a * 2 * ??;
      |                    ^
      |                    :
a.cc:10:20: error: expected primary-expression before ';' token
a.cc:11:18: error: expected primary-expression before '?' token
   11 |     r2 = a * a * ??;
      |                  ^
a.cc:11:19: error: expected primary-expression before '?' token
   11 |     r2 = a * a * ??;
      |                   ^
a.cc:11:20: error: expected primary-expression before ';' token
   11 |     r2 = a * a * ??;
      |                    ^
a.cc:11:20: error: expected ':' before ';' token
   11 |     r2 = a * a * ??;
      |                    ^
      |                    :
a.cc:11:20: error: expected primary-expression before ';' token
a.cc:11:20: error: expected ':' before ';' token
   11 |     r2 = a * a * ??;
      |                    ^
      |                    :
a.cc:11:20: error: expected primary-expression before ';' token
Language: C++

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

int main() {
    int a;
    double r1, r2, ??;
    ?? = 3.141592;
    cin >> a;
    r1 = a * 2 * ??;
    r2 = a * a * ??;
    printf("%f", r1);
    cout << " ";
    printf("%f\n", r2);
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:20: error: expected unqualified-id before '?' token
    7 |     double r1, r2, ??;
      |                    ^
a.cc:8:5: error: expected primary-expression before '?' token
    8 |     ?? = 3.141592;
      |     ^
a.cc:8:6: error: expected primary-expression before '?' token
    8 |     ?? = 3.141592;
      |      ^
a.cc:8:8: error: expected primary-expression before '=' token
    8 |     ?? = 3.141592;
      |        ^
a.cc:8:18: error: expected ':' before ';' token
    8 |     ?? = 3.141592;
      |                  ^
      |                  :
a.cc:8:18: error: expected primary-expression before ';' token
a.cc:8:18: error: expected ':' before ';' token
    8 |     ?? = 3.141592;
      |                  ^
      |                  :
a.cc:8:18: error: expected primary-expression before ';' token
a.cc:10:18: error: expected primary-expression before '?' token
   10 |     r1 = a * 2 * ??;
      |                  ^
a.cc:10:19: error: expected primary-expression before '?' token
   10 |     r1 = a * 2 * ??;
      |                   ^
a.cc:10:20: error: expected primary-expression before ';' token
   10 |     r1 = a * 2 * ??;
      |                    ^
a.cc:10:20: error: expected ':' before ';' token
   10 |     r1 = a * 2 * ??;
      |                    ^
      |                    :
a.cc:10:20: error: expected primary-expression before ';' token
a.cc:10:20: error: expected ':' before ';' token
   10 |     r1 = a * 2 * ??;
      |                    ^
      |                    :
a.cc:10:20: error: expected primary-expression before ';' token
a.cc:11:18: error: expected primary-expression before '?' token
   11 |     r2 = a * a * ??;
      |                  ^
a.cc:11:19: error: expected primary-expression before '?' token
   11 |     r2 = a * a * ??;
      |                   ^
a.cc:11:20: error: expected primary-expression before ';' token
   11 |     r2 = a * a * ??;
      |                    ^
a.cc:11:20: error: expected ':' before ';' token
   11 |     r2 = a * a * ??;
      |                    ^
      |                    :
a.cc:11:20: error: expected primary-expression before ';' token
a.cc:11:20: error: expected ':' before ';' token
   11 |     r2 = a * a * ??;
      |                    ^
      |                    :
a.cc:11:20: error: expected primary-expression before ';' token
Language: C++

#include<iostream>
using namespace std;

int main(){
	double r;
	cin >> r;
	double S = M_PI * r * r;
	double h = 2 * M_PI * r;
	cout << S << ' ' << h << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:20: error: 'M_PI' was not declared in this scope
    7 |         double S = M_PI * r * r;
      |                    ^~~~
Language: C++

#include<iostream>
using namespace std;

int main(){
	int r;
	cin >> r;
	long double P = M_PI;
	long double S = P * r * r;
	long double L = 2 * P * r;
	cout << S << ' ' << L << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:25: error: 'M_PI' was not declared in this scope
    7 |         long double P = M_PI;
      |                         ^~~~
Language: C++

#include<iostream>
#include<iomanip>
using namespace std;

int main(){
	int r;
	cin >> r;
	double P = M_PI;
	double S = P * r * r;
	double L = 2 * P * r;
	cout << fixed << setprecision(6) << S << ' ' << L << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:20: error: 'M_PI' was not declared in this scope
    8 |         double P = M_PI;
      |                    ^~~~
Language: C++

import math
def main():
    r = float[int(i) for i in input().strip()]
    print("%f %f" % (r ** 2 * math.pi,  2 * r * math.pi))

if __name__ == '__main__':
    main()

Compiler output:
a.cc:6:16: warning: multi-character literal with 8 characters exceeds 'int' size of 4 bytes
    6 | if __name__ == '__main__':
      |                ^~~~~~~~~~
a.cc:1:1: error: 'import' does not name a type
    1 | import math
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
Language: C++

r =[int(i) for i in input().split()]

s = r * r *3.14
l = 2 * r *3.14

print("{0:.5f},{1:.5f}".format(s,l))

Compiler output:
a.cc:1:1: error: 'r' does not name a type
    1 | r =[int(i) for i in input().split()]
      | ^
Language: C++

#inlcude <iostream>
using namespace std;

int main()
{
double r;
cin >> r;
double pi=3.1415926535;

cout << r*r*pi << " " << 2*r*pi << '\n';

return 0;
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inlcude; did you mean #include?
    1 | #inlcude <iostream>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:7:1: error: 'cin' was not declared in this scope
    7 | 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 | #inlcude <iostream>
a.cc:10:1: error: 'cout' was not declared in this scope
   10 | cout << r*r*pi << " " << 2*r*pi << '\n';
      | ^~~~
a.cc:10:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

#define _USE_MATH_DEFINES
#include <math.h>
#include <iostream>
#include <windows.h>
using namespace std;

int main(){

	int r;
	cin >> r;
	double a= 2*M_PI*r, b = M_PI*r*r;

	printf("%lf %lf\n",a, b);

	Sleep(10000);
	return 0;
}

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

#define _USE_MATH_DEFINES
#include <math.h>
#include <iostream>
#include <windows.h>
using namespace std;

int main(){

	double r;
	cin >> r;
	double a= 2*M_PI*r, b = M_PI*r*r;

	printf("%lf %lf\n",a, b);

	Sleep(10000);
	return 0;
}

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

#define _USE_MATH_DEFINES
#include <math.h>
#include <iostream>
#include <windows.h>
using namespace std;

int main(){

	double r;
	cin >> r;
	double b= 2*M_PI*r, a = M_PI*r*r;

	printf("%lf %lf\n",a, b);

	Sleep(10000);
	return 0;
}

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

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

int main(){
doubule r;

cin >> r;

cout << r*r*M_PI <<" "<< 2*M_PI*r <<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:1: error: 'doubule' was not declared in this scope; did you mean 'double'?
    6 | doubule r;
      | ^~~~~~~
      | double
a.cc:8:8: error: 'r' was not declared in this scope
    8 | cin >> r;
      |        ^
Language: C++

#include <cstdio>
#include <iostream>
using namespace std;

int main(void) {
	double r;
	double ?? = 3.14159265358979323846264338;
	cin >> r;
	printf("%.10lf %.10lf\n",??*r*r,2*??*r);
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:16: error: expected unqualified-id before '?' token
    7 |         double ?? = 3.14159265358979323846264338;
      |                ^
a.cc:9:34: error: expected primary-expression before '?' token
    9 |         printf("%.10lf %.10lf\n",??*r*r,2*??*r);
      |                                  ^
a.cc:9:35: error: expected primary-expression before '?' token
    9 |         printf("%.10lf %.10lf\n",??*r*r,2*??*r);
      |                                   ^
a.cc:9:36: error: invalid type argument of unary '*' (have 'double')
    9 |         printf("%.10lf %.10lf\n",??*r*r,2*??*r);
      |                                    ^~
a.cc:9:43: error: expected primary-expression before '?' token
    9 |         printf("%.10lf %.10lf\n",??*r*r,2*??*r);
      |                                           ^
a.cc:9:44: error: expected primary-expression before '?' token
    9 |         printf("%.10lf %.10lf\n",??*r*r,2*??*r);
      |                                            ^
a.cc:9:45: error: invalid type argument of unary '*' (have 'double')
    9 |         printf("%.10lf %.10lf\n",??*r*r,2*??*r);
      |                                             ^~
a.cc:9:47: error: expected ':' before ')' token
    9 |         printf("%.10lf %.10lf\n",??*r*r,2*??*r);
      |                                               ^
      |                                               :
a.cc:9:47: error: expected primary-expression before ')' token
a.cc:9:47: error: expected ':' before ')' token
    9 |         printf("%.10lf %.10lf\n",??*r*r,2*??*r);
      |                                               ^
      |                                               :
a.cc:9:47: error: expected primary-expression before ')' token
a.cc:9:47: error: expected ':' before ')' token
    9 |         printf("%.10lf %.10lf\n",??*r*r,2*??*r);
      |                                               ^
      |                                               :
a.cc:9:47: error: expected primary-expression before ')' token
a.cc:9:47: error: expected ':' before ')' token
    9 |         printf("%.10lf %.10lf\n",??*r*r,2*??*r);
      |                                               ^
      |                                               :
a.cc:9:47: error: expected primary-expression before ')' token
Language: C++

#include <cstdio>
#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:16: error: expected unqualified-id before '?' token
    7 |         double ?? = 3.14159265358979;
      |                ^
a.cc:9:32: error: expected primary-expression before '?' token
    9 |         printf("%.8lf %.8lf\n",??*r*r,2*??*r);
      |                                ^
a.cc:9:33: error: expected primary-expression before '?' token
    9 |         printf("%.8lf %.8lf\n",??*r*r,2*??*r);
      |                                 ^
a.cc:9:34: error: invalid type argument of unary '*' (have 'double')
    9 |         printf("%.8lf %.8lf\n",??*r*r,2*??*r);
      |                                  ^~
a.cc:9:41: error: expected primary-expression before '?' token
    9 |         printf("%.8lf %.8lf\n",??*r*r,2*??*r);
      |                                         ^
a.cc:9:42: error: expected primary-expression before '?' token
    9 |         printf("%.8lf %.8lf\n",??*r*r,2*??*r);
      |                                          ^
a.cc:9:43: error: invalid type argument of unary '*' (have 'double')
    9 |         printf("%.8lf %.8lf\n",??*r*r,2*??*r);
      |                                           ^~
a.cc:9:45: error: expected ':' before ')' token
    9 |         printf("%.8lf %.8lf\n",??*r*r,2*??*r);
      |                                             ^
      |                                             :
a.cc:9:45: error: expected primary-expression before ')' token
a.cc:9:45: error: expected ':' before ')' token
    9 |         printf("%.8lf %.8lf\n",??*r*r,2*??*r);
      |                                             ^
      |                                             :
a.cc:9:45: error: expected primary-expression before ')' token
a.cc:9:45: error: expected ':' before ')' token
    9 |         printf("%.8lf %.8lf\n",??*r*r,2*??*r);
      |                                             ^
      |                                             :
a.cc:9:45: error: expected primary-expression before ')' token
a.cc:9:45: error: expected ':' before ')' token
    9 |         printf("%.8lf %.8lf\n",??*r*r,2*??*r);
      |                                             ^
      |                                             :
a.cc:9:45: error: expected primary-expression before ')' token
Language: C++

using System;

class program
{
    public static void Main()
    {
        double r = double.Parse(Console.ReadLine());
        Console.WriteLine("{0} {1}", r * r * 3.14, r * 2 * 3.14);

    }
}

Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:5:11: error: expected ':' before 'static'
    5 |     public static void Main()
      |           ^~~~~~~
      |           :
a.cc:11:2: error: expected ';' after class definition
   11 | }
      |  ^
      |  ;
a.cc: In static member function 'static void program::Main()':
a.cc:7:20: error: expected primary-expression before 'double'
    7 |         double r = double.Parse(Console.ReadLine());
      |                    ^~~~~~
a.cc:8:9: error: 'Console' was not declared in this scope
    8 |         Console.WriteLine("{0} {1}", r * r * 3.14, r * 2 * 3.14);
      |         ^~~~~~~
Language: C++

#include <iostream>
#include <cmath>

using namespace std;

int main()
{
    double r;

    do {
        cin >> r;
    } while (r < 0 || r > 10000);

    double S = M_PI * r * r;
    double l = 2 * M_PI * r;

    cout << setprecision(6) << S << " " << setprecision(6) << l << endl;

    return (0);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:13: error: 'setprecision' was not declared in this scope
   17 |     cout << setprecision(6) << S << " " << setprecision(6) << l << endl;
      |             ^~~~~~~~~~~~
a.cc:3:1: note: 'std::setprecision' is defined in header '<iomanip>'; this is probably fixable by adding '#include <iomanip>'
    2 | #include <cmath>
  +++ |+#include <iomanip>
    3 |
Language: C++

#include <iostream>
#include <iomanip>

using namespace std;

int main()
{
    double r;

    do {
        cin >> r;
    } while (r <= 0.0 || r >= 10000.0);

    double S = M_PI * r * r;
    double l = 2.0 * M_PI * r;

    cout << setprecision(6) << S << " " << setprecision(6) << l << endl;

    return (0);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:16: error: 'M_PI' was not declared in this scope
   14 |     double S = M_PI * r * r;
      |                ^~~~
Language: C++

#include <iostream>
#include <cmath>

double Area( double r )
{
    return r * r * M_PI;
}
double Circumference( double r )
{
    return 2 * r * M_PI;
}

int main()
{
    double r;
    std::cin >> r;

    std::cout.setf( std::ios_base::fixed,std::ios_base::floatfield );
    std::cout << std::setprecision( 15 )
        << Area( r ) << " " << Circumference( r )
        << std::endl;

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:23: error: 'setprecision' is not a member of 'std'
   19 |     std::cout << std::setprecision( 15 )
      |                       ^~~~~~~~~~~~
a.cc:3:1: note: 'std::setprecision' is defined in header '<iomanip>'; this is probably fixable by adding '#include <iomanip>'
    2 | #include <cmath>
  +++ |+#include <iomanip>
    3 |
Language: C++

#include<iostream>

int main() {
int r, a, c;
cin >> r;
a = r*r*3.141592653589;
c = r*2*3.141592653589;
cout << a << " " << c;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 | 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:8:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 | cout << a << " " << c;
      | ^~~~
      | 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 <algorithm>
#include <cstdio>
#include <string>
#include <cmath>


#define PI 3.14415926535

using namespace std;

int main() {

	int r;

	scanf_s("%d", &r);

	printf("%f %f", (double)r*r*PI, (double)r * 2 * PI);

	
	return 0;
}	

Compiler output:
a.cc: In function 'int main()':
a.cc:16:9: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
   16 |         scanf_s("%d", &r);
      |         ^~~~~~~
      |         scanf
Language: C++

#include<iostream>
#include<cmath>
using namespace std;

int main(){
double r;
cin>>r;
double area= r*r*M_PI;
double long= 2*r*M_PI;
cout<<area<<" "<<long<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:12: error: expected unqualified-id before '=' token
    9 | double long= 2*r*M_PI;
      |            ^
a.cc:10:18: error: expected primary-expression before 'long'
   10 | cout<<area<<" "<<long<<endl;
      |                  ^~~~
Language: C++

#include<iostream>
#include<cstdio>
using namespace std;

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

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

#include<iostream>
#include<cstdio>
using namespace std;

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

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

#include <iostream>
#include <cstdio>
using namespace std;
int main(){
  int r;
  cin >> r;
  printf("%lf %lf\n",(double)r*r*3.141592 2*r*3.141592);
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:42: error: expected ')' before numeric constant
    7 |   printf("%lf %lf\n",(double)r*r*3.141592 2*r*3.141592);
      |         ~                                ^~
      |                                          )
Language: C++

#include <iostream>
#include <cstdio>
using namespace std;
int main(){
  int r;
  cin >> r;
  printf("%lf %lf\n",(double)r*r*3.141592 (double)2*r*3.141592);
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:44: error: expected primary-expression before 'double'
    7 |   printf("%lf %lf\n",(double)r*r*3.141592 (double)2*r*3.141592);
      |                                            ^~~~~~
a.cc:7:50: error: expression cannot be used as a function
    7 |   printf("%lf %lf\n",(double)r*r*3.141592 (double)2*r*3.141592);
      |                                                  ^
Language: C++

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

int main(){
    double r,s,c;
    
    cin >> r;
    c = 2 * r * M_PI;
    s = r * r * 2M_PI;
  
    printf("%f %f\n", s,c);

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:17: error: unable to find numeric literal operator 'operator""M_PI'
   11 |     s = r * r * 2M_PI;
      |                 ^~~~~
Language: C++

#include <iostream>
#include <algorithm>
#include <cstdio>
#include <cmath>
#include <string>
#include <cctype>
#include <stack>
#include <queue>
#include <vector>
#include <cstdlib>

using namespace std;

#define pai 3.14159265;

int main(void) {

	int r;
	double ensyu, menseki;

	scanf_s("%d", &r);

	menseki = r * r * pai;
	ensyu = 2 * r*pai;

	printf("%.6f %.6f", menseki, ensyu);

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:9: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
   21 |         scanf_s("%d", &r);
      |         ^~~~~~~
      |         scanf
Language: C++

#include <iostream>
#include <stdio.h>
const double M_PI = 3.14159265359;
using namespace std;

int _tmain(int argc, _TCHAR* argv[])
{
	double r;
	double S,L;
	cin>>r;
	S = r*r*M_PI;
	L = 2.0*M_PI*r;
	printf("%12lf %12lf\n", S,L);
	return 0;
}

Compiler output:
a.cc:6:22: error: '_TCHAR' has not been declared
    6 | int _tmain(int argc, _TCHAR* argv[])
      |                      ^~~~~~
Language: C++

#include<bits/stdc++>
using namespace std;main(){int r;cin>>r;cout<<fixed<<setprecision(9)<<M_PI*r*r<<" "<<2*M_PI*r<<endl;}

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

#include <cstdio>
#include <iostream>

int main() {
 int r;
 cin >> r;
 printf("%0.8f %0.8f")(double)r ^ 2 * (double)3.14 , (double)r * (double)3.14);

}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:2: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |  cin >> r;
      |  ^~~
      |  std::cin
In file included from a.cc:2:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:7:24: error: expected primary-expression before 'double'
    7 |  printf("%0.8f %0.8f")(double)r ^ 2 * (double)3.14 , (double)r * (double)3.14);
      |                        ^~~~~~
a.cc:7:30: error: expression cannot be used as a function
    7 |  printf("%0.8f %0.8f")(double)r ^ 2 * (double)3.14 , (double)r * (double)3.14);
      |                              ^
Language: C++

#include <cstdio>
#include <iostream>
using namespace std;
int main() {
 int r;
 cin >> r;
 printf("%0.8f %0.8f")(double)r ^ 2 * (double)3.14 , (double)r * (double)3.14);

}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:24: error: expected primary-expression before 'double'
    7 |  printf("%0.8f %0.8f")(double)r ^ 2 * (double)3.14 , (double)r * (double)3.14);
      |                        ^~~~~~
a.cc:7:30: error: expression cannot be used as a function
    7 |  printf("%0.8f %0.8f")(double)r ^ 2 * (double)3.14 , (double)r * (double)3.14);
      |                              ^
Language: C++

#include <cstdio>
#include <iostream>
using namespace std;
int main() {
 int r;
 cin >> r;
 printf("%0.8f %0.8f", (double)r ^ 2 * (double)3.14 , (double)r * (double)3.14);

}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:34: error: invalid operands of types 'double' and 'double' to binary 'operator^'
    7 |  printf("%0.8f %0.8f", (double)r ^ 2 * (double)3.14 , (double)r * (double)3.14);
      |                        ~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~
      |                        |             |
      |                        double        double
Language: C++

#include <cstdio>
#include <iostream>
using namespace std;
int main() {
 int r;
 cin >> r;
 printf("%0.8f %0.8f", pow((double)r, 2) * (double)3.14 , (double)r * (double)3.14);

}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:24: error: 'pow' was not declared in this scope
    7 |  printf("%0.8f %0.8f", pow((double)r, 2) * (double)3.14 , (double)r * (double)3.14);
      |                        ^~~
Language: C++

#include <cstdio>
#include <iostream>
using namespace std;
int main() {
 int r;
 cin >> r;
 printf("%0.8f %0.8f", pow((double)r, (double)2) * (double)3.14 , (double)r * (double)3.14);

}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:24: error: 'pow' was not declared in this scope
    7 |  printf("%0.8f %0.8f", pow((double)r, (double)2) * (double)3.14 , (double)r * (double)3.14);
      |                        ^~~
Language: C++

#include <iostream>
#include <cmath>


int main(void) {
int r;
cin >> r;

cout << (double)(M_PI * r * r ) << (double)(2 * M_PI * r) << endl; 

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 | 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:9:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 | cout << (double)(M_PI * r * r ) << (double)(2 * M_PI * r) << 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:9:62: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 | cout << (double)(M_PI * r * r ) << (double)(2 * M_PI * r) << 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)
      |     ^~~~