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

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

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

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

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

}


Compiler output:
Main.java:2: error: cannot find symbol
import java.math.Bigdecimal;
                ^
  symbol:   class Bigdecimal
  location: package java.math
Main.java:15: error: cannot find symbol
	private static Bigdecimal floata(int a,int b){
	               ^
  symbol:   class Bigdecimal
  location: class Main
Main.java:13: error: cannot find symbol
   System.out.println(a+b+floatingDiv(a,b));
                          ^
  symbol:   method floatingDiv(int,int)
  location: class Main
Main.java:17: error: cannot find symbol
	    Bigdecimal num1 = new Bigdecimal((double)a);
	    ^
  symbol:   class Bigdecimal
  location: class Main
Main.java:17: error: cannot find symbol
	    Bigdecimal num1 = new Bigdecimal((double)a);
	                          ^
  symbol:   class Bigdecimal
  location: class Main
Main.java:18: error: cannot find symbol
	    Bigdecimal num2 = new Bigdecimal((double)b);
	    ^
  symbol:   class Bigdecimal
  location: class Main
Main.java:18: error: cannot find symbol
	    Bigdecimal num2 = new Bigdecimal((double)b);
	                          ^
  symbol:   class Bigdecimal
  location: class Main
Main.java:19: error: cannot find symbol
	     return num1.divide(num2,Mathcontext.DECIMAL32);
	                             ^
  symbol:   variable Mathcontext
  location: class Main
8 errors
Language: Java

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

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

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

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

}


Compiler output:
Main.java:15: error: cannot find symbol
	private static Bigdecimal floata(int a,int b){
	               ^
  symbol:   class Bigdecimal
  location: class Main
Main.java:13: error: cannot find symbol
   System.out.println(a+b+floatingDiv(a,b));
                          ^
  symbol:   method floatingDiv(int,int)
  location: class Main
Main.java:17: error: cannot find symbol
	    Bigdecimal num1 = new Bigdecimal((double)a);
	    ^
  symbol:   class Bigdecimal
  location: class Main
Main.java:17: error: cannot find symbol
	    Bigdecimal num1 = new Bigdecimal((double)a);
	                          ^
  symbol:   class Bigdecimal
  location: class Main
Main.java:18: error: cannot find symbol
	    Bigdecimal num2 = new Bigdecimal((double)b);
	    ^
  symbol:   class Bigdecimal
  location: class Main
Main.java:18: error: cannot find symbol
	    Bigdecimal num2 = new Bigdecimal((double)b);
	                          ^
  symbol:   class Bigdecimal
  location: class Main
Main.java:19: error: cannot find symbol
	     return num1.divide(num2,Mathcontext.DECIMAL32);
	                             ^
  symbol:   variable Mathcontext
  location: class Main
7 errors
Language: Java

import java.util.Scanner;

class Main{
   private static double a;

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


Compiler output:
Main.java:12: error: ')' or ',' expected
  System.out.printf("%.6f %.6f",(a*a*num),((2*a*num));
                                                     ^
1 error
Language: Java

import java.util.Scanner;

class Main{
   private static double a;

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


Compiler output:
Main.java:11: error: cannot find symbol
   double num=Math.PI();
                  ^
  symbol:   method PI()
  location: class Math
1 error
Language: Java

import java.util.Scanner;

class Main{
   private static double a;

    
  public static void main(String[] args){
    
    Scanner s= new Scanner(System.in);
    a=s.nextInt();
   double num=Math.PI;
  System.out.println("%.5f %.5f",(a*a*num),(2*a*num));
    
    
  
      
      
      
  }}


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

public class Main {

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

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

import java.lang.Math;
import java.util.Scanner;
class Main
{
    public static void main(String args[])
    {
	double r,s,shu;
	Scanner scan=new Scanner(System.in);
	r=scan.nextDuble();
	s=r*r*Math.PI;
	shu=2*r*Math.PI;
	System.out.printf("%f %f\n",s,shu);
    }
}

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

import java.util.Scanner;
import java.lang.Math;
import java.text.*;
public class Circle {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int r = Integer.parseInt(scan.next());
		System.out.println(String.format("%6f",r*r*Math.PI)+" "+String.format("%6f",2*r*Math.PI));
	}

}

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

import java.util.Scanner;
import java.lang.Math;
import java.text.*;
public class Circle {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		double r = Double.parseDouble(scan.next());
		System.out.println(String.format("%6f",r*r*Math.PI)+" "+String.format("%6f",2*r*Math.PI));
		scan.close();
	}

}

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

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


Compiler output:
main.c: In function 'main':
main.c:3:11: error: 'l' undeclared (first use in this function)
    3 | double r; l, s;
      |           ^
main.c:3:11: note: each undeclared identifier is reported only once for each function it appears in
main.c:3:14: error: 's' undeclared (first use in this function)
    3 | double r; l, s;
      |              ^
main.c:5:27: error: expected ';' before 's'
    5 | l = 2 * r * 3.141592653589
      |                           ^
      |                           ;
    6 | s = r * r * 3.141592653589
      | ~
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:5:27: error: expected ';' before 's'
    5 | l = 2 * r * 3.141592653589
      |                           ^
      |                           ;
    6 | s = r * r * 3.141592653589
      | ~
Language: C

#include <stdio.h>

int main(void)
{
	double  r;

	scanf("%lf", &r);

	fprintf("%f %f\n", r * 2* 3.141592653589793, r * r * 3.141592653589793);

	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:9:17: error: passing argument 1 of 'fprintf' from incompatible pointer type [-Wincompatible-pointer-types]
    9 |         fprintf("%f %f\n", r * 2* 3.141592653589793, r * r * 3.141592653589793);
      |                 ^~~~~~~~~
      |                 |
      |                 char *
In file included from main.c:1:
/usr/include/stdio.h:357:38: note: expected 'FILE * restrict' but argument is of type 'char *'
  357 | extern int fprintf (FILE *__restrict __stream,
      |                     ~~~~~~~~~~~~~~~~~^~~~~~~~
main.c:9:33: error: incompatible type for argument 2 of 'fprintf'
    9 |         fprintf("%f %f\n", r * 2* 3.141592653589793, r * r * 3.141592653589793);
      |                            ~~~~~^~~~~~~~~~~~~~~~~~~
      |                                 |
      |                                 double
/usr/include/stdio.h:358:44: note: expected 'const char * restrict' but argument is of type 'double'
  358 |                     const char *__restrict __format, ...) __nonnull ((1));
      |                     ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
Language: C

#include<stdio.h>
#define pai 3.141592653589
int main(){
	int r;
	double s, l;
	scanf("%d", &r);
	s = r * r * pai;
	l = 2 * r * pai:
	printf("%lf %lf", s, l);
	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:8:24: error: expected ';' before ':' token
    8 |         l = 2 * r * pai:
      |                        ^
Language: C

#incude<stdio.h>
#define pai 3.1415926535

int main(){
    double r,x,y
    scanf("%d",&r);
    x=r*r*pai;
    y=2*r*pai;
    printf("%f %f\n);
    return 0;
    }


Compiler output:
main.c:1:2: error: invalid preprocessing directive #incude; did you mean #include?
    1 | #incude<stdio.h>
      |  ^~~~~~
      |  include
main.c: In function 'main':
main.c:6:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'scanf'
    6 |     scanf("%d",&r);
      |     ^~~~~
main.c:8:5: error: 'y' undeclared (first use in this function)
    8 |     y=2*r*pai;
      |     ^
main.c:8:5: note: each undeclared identifier is reported only once for each function it appears in
main.c:9:5: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    9 |     printf("%f %f\n);
      |     ^~~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'printf'
  +++ |+#include <stdio.h>
    1 | #incude<stdio.h>
main.c:9:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
    9 |     printf("%f %f\n);
      |     ^~~~~~
main.c:9:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:9:12: warning: missing terminating " character
    9 |     printf("%f %f\n);
      |            ^
main.c:9:12: error: missing terminating " character
    9 |     printf("%f %f\n);
      |            ^~~~~~~~~~
main.c:10:5: error: expected expression before 'return'
   10 |     return 0;
      |     ^~~~~~
main.c:10:14: error: expected ';' before '}' token
   10 |     return 0;
      |              ^
      |              ;
   11 |     }
      |     ~
Language: C

#include<stdio.h>
#define pai 3.1415926535

int main(){
    double r,x,y
    scanf("%d",&r);
    x=r*r*pai;
    y=2*r*pai;
    printf("%f %f\n);
    return 0;
    }


Compiler output:
main.c: In function 'main':
main.c:6:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'scanf'
    6 |     scanf("%d",&r);
      |     ^~~~~
main.c:8:5: error: 'y' undeclared (first use in this function)
    8 |     y=2*r*pai;
      |     ^
main.c:8:5: note: each undeclared identifier is reported only once for each function it appears in
main.c:9:12: warning: missing terminating " character
    9 |     printf("%f %f\n);
      |            ^
main.c:9:12: error: missing terminating " character
    9 |     printf("%f %f\n);
      |            ^~~~~~~~~~
main.c:10:5: error: expected expression before 'return'
   10 |     return 0;
      |     ^~~~~~
main.c:10:14: error: expected ';' before '}' token
   10 |     return 0;
      |              ^
      |              ;
   11 |     }
      |     ~
Language: C

#include<stdio.h>
#define pai 3.1415926535

int main(){
    double r,x,y
    scanf("%d",&r);
    x=r*r*pai;
    y=2*r*pai;
    printf("%f %f\n",x,y);
    return 0;
    }


Compiler output:
main.c: In function 'main':
main.c:6:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'scanf'
    6 |     scanf("%d",&r);
      |     ^~~~~
main.c:8:5: error: 'y' undeclared (first use in this function)
    8 |     y=2*r*pai;
      |     ^
main.c:8:5: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
#define pai 3.1415926535

int main(){
    double r,x,y,pai;
    scanf("%d",&r);
    x=r*r*pai;
    y=2*r*pai;
    printf("%f %f\n",x,y);
    return 0;
    }


Compiler output:
main.c: In function 'main':
main.c:2:13: error: expected identifier or '(' before numeric constant
    2 | #define pai 3.1415926535
      |             ^~~~~~~~~~~~
main.c:5:18: note: in expansion of macro 'pai'
    5 |     double r,x,y,pai;
      |                  ^~~
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:8:5: error: expected ';' before 'y'
    8 |     y=2*r*PI
      |     ^
Language: C

#include<stdio.h>
double area(double,double);
double len(double,double);
int main(void)
{
  double r,S,l,p;
  p=3.141592653589;
  scanf("%lf",&r);
  S=area(r,p);
  l=len(r,p);
  printf("%f %f\n",S,l);
  return 0;
}
double area(double x,double y)
{
  double num1;
  num1=r*r*p;
  return num1;
}
double len(double x,double y)
{
  double num2;
  num2=2*r*p;
  return num2;
}


Compiler output:
main.c: In function 'area':
main.c:17:8: error: 'r' undeclared (first use in this function)
   17 |   num1=r*r*p;
      |        ^
main.c:17:8: note: each undeclared identifier is reported only once for each function it appears in
main.c:17:12: error: 'p' undeclared (first use in this function)
   17 |   num1=r*r*p;
      |            ^
main.c: In function 'len':
main.c:23:10: error: 'r' undeclared (first use in this function)
   23 |   num2=2*r*p;
      |          ^
main.c:23:12: error: 'p' undeclared (first use in this function)
   23 |   num2=2*r*p;
      |            ^
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:5:5: error: expected ',' or ';' before 'scanf'
    5 |     scanf("%f", &r);
      |     ^~~~~
Language: C

#include<stdio.h>
#include<math.h>
 
#define MAX 9999
#define MIN 1
#define IS_ERR(n) (n < MIN || n > MAX)
 
int main(void)
{
    double r, double circumference, area;
 
    scanf("%lf", &r);

    if(IS_ERR(r)) return -1;
 
    circumference = 2 * r * M_PI;
    area = r * r * M_PI;
 
    printf("%lf %lf\n", circumference, area);
 
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:10:15: error: expected identifier or '(' before 'double'
   10 |     double r, double circumference, area;
      |               ^~~~~~
main.c:16:5: error: 'circumference' undeclared (first use in this function)
   16 |     circumference = 2 * r * M_PI;
      |     ^~~~~~~~~~~~~
main.c:16:5: note: each undeclared identifier is reported only once for each function it appears in
main.c:17:5: error: 'area' undeclared (first use in this function)
   17 |     area = r * r * M_PI;
      |     ^~~~
Language: C

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

int main()
{
    int a;
    double b, c;

    scanf("%d", &a);
    
    b = (double)(a)^2*M_PI;
    c = (double)(a)*2*M_PI;
    
    printf("%d %d", b,c);

    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:11:20: error: invalid operands to binary ^ (have 'double' and 'double')
   11 |     b = (double)(a)^2*M_PI;
      |         ~~~~~~~~~~~^
      |         |
      |         double
Language: C

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

int main()
{
    int a;
    double b, c;

    scanf("%d", &a);
    
    b = doublepow(double a, 2)*M_PI;
    c = (double)(a)*2*M_PI;
    
    printf("%d %d", b,c);

    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:11:9: error: implicit declaration of function 'doublepow' [-Wimplicit-function-declaration]
   11 |     b = doublepow(double a, 2)*M_PI;
      |         ^~~~~~~~~
main.c:11:19: error: expected expression before 'double'
   11 |     b = doublepow(double a, 2)*M_PI;
      |                   ^~~~~~
Language: C

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

int main()
{
    int a;
    double b, c;

    scanf("%d", &a);
    
    b = doublepow(a, 2)*M_PI;
    c = (double)(a)*2*M_PI;
    
    printf("%d %d", b,c);

    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:11:9: error: implicit declaration of function 'doublepow' [-Wimplicit-function-declaration]
   11 |     b = doublepow(a, 2)*M_PI;
      |         ^~~~~~~~~
Language: C

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

int main()
{
    int a;
    double b, c;

    scanf("%d", &a);
    
    b = double pow(a, 2)*M_PI;
    c = (double)(a)*2*M_PI;
    
    printf("%d %d", b,c);

    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:11:9: error: expected expression before 'double'
   11 |     b = double pow(a, 2)*M_PI;
      |         ^~~~~~
Language: C

#include<stdio.h>

int main()
{
    double a, b, c;

    scanf("%d", &a);
    
    b = a*a*pi;
    c = a*2*pi;
    
    printf("%f %f", b,c);

    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:9:13: error: 'pi' undeclared (first use in this function)
    9 |     b = a*a*pi;
      |             ^~
main.c:9:13: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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


int main()
{
    double a, b, c;

    scanf("%d", &a);
    
    b = a*a*PI;
    c = a*2*PI;
    
    printf("%f %f", b,c);

    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:11:13: error: 'PI' undeclared (first use in this function)
   11 |     b = a*a*PI;
      |             ^~
main.c:11:13: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>

#define PI 3.14

int main()
{
    int r=0,S=0;
    
    scanf("%d/n",&r);
    S=PI*r*r
    
    prinf("%d\n",S);
    
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:10:13: error: expected ';' before 'prinf'
   10 |     S=PI*r*r
      |             ^
      |             ;
   11 | 
   12 |     prinf("%d\n",S);
      |     ~~~~~
Language: C

#include <stdio.h>

#define PI 3.14

int main()
{
    int r=0,S=0;
    
    scanf("%d/n",&r);
    S=PI*r*r;
    
    prinf("%d\n",S);
    
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:12:5: error: implicit declaration of function 'prinf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   12 |     prinf("%d\n",S);
      |     ^~~~~
      |     printf
Language: C

#include <stdio.h>

int main()
{
    double r=0,S=0;
    
    scanf("%d/n",&r);
    S=3.14*r*r;
    
    prinf("%lf\n",S);
    
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:10:5: error: implicit declaration of function 'prinf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   10 |     prinf("%lf\n",S);
      |     ^~~~~
      |     printf
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:5:30: error: expected ';' before 'scanf'
    5 |         p = 3.141592653589793
      |                              ^
      |                              ;
    6 |         scanf("%lf",&r);
      |         ~~~~~
Language: C

#include <stdio.h>

int main() {
	float     area,circumference  ;
 float M_PI =  3.14159265358979323846 ;
 int a ;

scanf("%d", &a);

area= M_PI * a *a ;
circumference = 2*M_PI * a ;

printf("%.6f %.6f\n" circumference ,area );



	}




Compiler output:
main.c: In function 'main':
main.c:13:21: error: expected ')' before 'circumference'
   13 | printf("%.6f %.6f\n" circumference ,area );
      |       ~             ^~~~~~~~~~~~~~
      |                     )
Language: C

#include<stdio.h>
#include<math.h>
int main(){
    int r;
    scanf("%d",&d);
    printf("%f %f",2*r*M_PI,r*r*M_PI);
    printf("\n");
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:5:17: error: 'd' undeclared (first use in this function)
    5 |     scanf("%d",&d);
      |                 ^
main.c:5:17: note: each undeclared identifier is reported only once for each function it appears in
Language: C


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



Compile Error Logs: 

 

ステータス 
Judge: 5/5 C CPU: 00:00 sec Memory: 648 KB Length: 140 B 2017-04-15 17:50 
テストケースの判定結果 
 



Compiler output:
main.c:13:1: error: unknown type name 'Compile'
   13 | Compile Error Logs:
      | ^~~~~~~
main.c:13:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Logs'
   13 | Compile Error Logs:
      |               ^~~~
Language: C

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

Compiler output:
main.c:1:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include <stdio.h>
      |         ^
Language: C

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

int main(){

int a;

double b,c;

scanf("%d",&a);

b=M_PI*a*a
c=M_PI*a*2

printf("%d %d",b,c);

return 0;

}

Compiler output:
main.c: In function 'main':
main.c:12:11: error: expected ';' before 'c'
   12 | b=M_PI*a*a
      |           ^
      |           ;
   13 | c=M_PI*a*2
      | ~
Language: C

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

int main(){

int a;

double b,c;

scanf("%d",&a);

b=M_PI*a*a
c=M_PI*a*2

printf("%f %f",b,c);

return 0;

}

Compiler output:
main.c: In function 'main':
main.c:12:11: error: expected ';' before 'c'
   12 | b=M_PI*a*a
      |           ^
      |           ;
   13 | c=M_PI*a*2
      | ~
Language: C

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

int main(){

int a;

double b,c;

scanf("%d",&a);

b=M_PI*a*a
c=M_PI*a*2

printf("%f %f",b,c);

return 0;

}

Compiler output:
main.c: In function 'main':
main.c:13:11: error: expected ';' before 'c'
   13 | b=M_PI*a*a
      |           ^
      |           ;
   14 | c=M_PI*a*2
      | ~
Language: C

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

int main(){

int a;

double b,c;

scanf("%d",&a);

double d=3.14159265358979323845

b=d*a*a
c=d*a*2

printf("%f %f",b,c);

return 0;

}

Compiler output:
main.c: In function 'main':
main.c:14:1: error: expected ',' or ';' before 'b'
   14 | b=d*a*a
      | ^
Language: C

#include <stdio.h>

int main(){

int a;

double b,c;

scanf("%d",&a);

double d=3.14159265358979323845;

b=d*a*a
c=d*a*2

printf("%f %f",b,c);

return 0;

}

Compiler output:
main.c: In function 'main':
main.c:13:8: error: expected ';' before 'c'
   13 | b=d*a*a
      |        ^
      |        ;
   14 | c=d*a*2
      | ~
Language: C

#include<iostream>
#include<stdio.h>
using namespace std;
 
int main(){
  double r,menseki,enshu;
  cin >> r;
  enshu=3.141592653589*2*r;
  menseki=3.141592653589*r*r;
  printf("%f %f\n",menseki,enshu);
  return 0;
}

Compiler output:
main.c:1:9: fatal error: iostream: No such file or directory
    1 | #include<iostream>
      |         ^~~~~~~~~~
compilation terminated.
Language: C

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

int main(void){
    double r;
    scanf_s("%lf", &r);
    printf("%lf %lf\n", M_PI * r * r, 2 * M_PI * r);
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:5: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    6 |     scanf_s("%lf", &r);
      |     ^~~~~~~
      |     scanf
Language: C

#include <stdio.h>
#define pai 3.141592653

int main(void)
{
int r;
double s, l;

sacnf("%d", &r);

s = pai * r * r;
l = 2 * pai * r;

printf("%f %f\n", s, l);
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:1: error: implicit declaration of function 'sacnf'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    9 | sacnf("%d", &r);
      | ^~~~~
      | scanf
Language: C

#include <stdio.h>

#define pai = 3.14159265358979

int main (void)
{
	double s, m, r;

	scanf("%lf", &r);

	s = r * r * pai;
	m = 2 * r * pai;

	printf("%.6f %.6f\n", s, m);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:3:13: error: expected expression before '=' token
    3 | #define pai = 3.14159265358979
      |             ^
main.c:11:21: note: in expansion of macro 'pai'
   11 |         s = r * r * pai;
      |                     ^~~
main.c:3:13: error: expected expression before '=' token
    3 | #define pai = 3.14159265358979
      |             ^
main.c:12:21: note: in expansion of macro 'pai'
   12 |         m = 2 * r * pai;
      |                     ^~~
Language: C

#include <cstdio>

#define pai 3.14159265358979

int main (void)
{
	double s, m, r;

	scanf("%lf", &r);

	s = r * r * pai;
	m = 2 * r * pai;

	printf("%.6f %.6f\n", s, m);
	return 0;
}

Compiler output:
main.c:1:10: fatal error: cstdio: No such file or directory
    1 | #include <cstdio>
      |          ^~~~~~~~
compilation terminated.
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:4:9: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    4 |         scanf_s("%lf", &r);
      |         ^~~~~~~
      |         scanf
Language: C

#include <stdio.h>

int main(void){

  double r,are,circ;

  scanf("%lf",&r);
  are = r * r * 3.141592653589;
  circ = 2 * r * 3.141592653589
  printf("%f %f",are,circ);
  retnrn 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:32: error: expected ';' before 'printf'
    9 |   circ = 2 * r * 3.141592653589
      |                                ^
      |                                ;
   10 |   printf("%f %f",are,circ);
      |   ~~~~~~                        
main.c:11:3: error: 'retnrn' undeclared (first use in this function)
   11 |   retnrn 0;
      |   ^~~~~~
main.c:11:3: note: each undeclared identifier is reported only once for each function it appears in
main.c:11:9: error: expected ';' before numeric constant
   11 |   retnrn 0;
      |         ^~
      |         ;
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:9:32: error: expected ';' before 'printf'
    9 |   circ = 2 * r * 3.141592653589
      |                                ^
      |                                ;
   10 |   printf("%f %f\n",are,circ);
      |   ~~~~~~
Language: C

#include<#include<stdio.h>
int main()
{
  int r;
  double s,x;
  scanf("%d",&r);
  s=3.14159265359*r*r;
  x=2*3.14159265359*r;
  printf("%.8lf %.8lf\n",s,x);
  return 0;
}
stdio.h>
int main()
{
  int r;
  double s,x;
  scanf("%d",&r);
  s=3.14159265359*r*r;
  x=2*3.14159265359*r;
  printf("%.8lf %.8lf\n",s,x);
  return 0;
}

Compiler output:
main.c:1:9: fatal error: #include<stdio.h: No such file or directory
    1 | #include<#include<stdio.h>
      |         ^~~~~~~~~~~~~~~~~~
compilation terminated.
Language: C

#include<stdio.h>
int main(#include<stdio.h>
int main()
{
  int r;
  double s,x;
  scanf("%d",&r);
  s=3.14159265359*r*r;
  x=2*3.14159265359*r;
  printf("%.6lf %.6lf\n",s,x);
  return 0;
}
)
{
  int r;
  double s,x;
  scanf("%d",&r);
  s=3.14159265359*r*r;
  x=2*3.14159265359*r;
  printf("%.6lf %.6lf\n",s,x);
  return 0;
}

Compiler output:
main.c:2:10: error: stray '#' in program
    2 | int main(#include<stdio.h>
      |          ^
main.c:2:18: error: expected ')' before '<' token
    2 | int main(#include<stdio.h>
      |                  ^
      |                  )
Language: C

#include#include<stdio.h>
int main()
{
  int r;
  double s,x;
  scanf("%d",&r);
  s=3.141592653589*r*r;
  x=2*3.141592653589*r;
  printf("%.8lf %.8lf\n",s,x);
  return 0;
}
<stdio.h>
int main()
{
  int r;
  double s,x;
  scanf("%d",&r);
  s=3.141592653589*r*r;
  x=2*3.141592653589*r;
  printf("%.8lf %.8lf\n",s,x);
  return 0;
}

Compiler output:
main.c:1:9: error: #include expects "FILENAME" or <FILENAME>
    1 | #include#include<stdio.h>
      |         ^
main.c: In function 'main':
main.c:6:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    6 |   scanf("%d",&r);
      |   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | #include#include<stdio.h>
main.c:6:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    6 |   scanf("%d",&r);
      |   ^~~~~
main.c:6:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:9:3: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    9 |   printf("%.8lf %.8lf\n",s,x);
      |   ^~~~~~
main.c:9:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:9:3: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:9:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c: At top level:
main.c:12:1: error: expected identifier or '(' before '<' token
   12 | <stdio.h>
      | ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:5:15: error: 'r' undeclared (first use in this function)
    5 |   scanf("%d",&r);
      |               ^
main.c:5:15: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:5:16: error: 'r' undeclared (first use in this function)
    5 |   scanf("%lf",&r);
      |                ^
main.c:5:16: note: each undeclared identifier is reported only once for each function it appears in
Language: C

include <stdio.h>

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

Compiler output:
main.c:1:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include <stdio.h>
      |         ^
Language: C

include <stdio.h>
int main(){
  int r;
  double rd,pie=3.141592653589;
  scanf("%d",&r);
  rd=r;
  printf("%f %f\n",rd*rd*pie,2*rd*pie);
  return 0;
}

Compiler output:
main.c:1:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include <stdio.h>
      |         ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:5:6: error: 'r' undeclared (first use in this function); did you mean 'rd'?
    5 |   rd=r;
      |      ^
      |      rd
main.c:5:6: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
int main()
{
	int a,b,d,r;
	double f;
	scanf("%d%d",&a,&b);
	d=a/b;r=a%b;(double)f=a/b;
	printf("%d %d %6f",d,r,f);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:30: error: lvalue required as left operand of assignment
    7 |         d=a/b;r=a%b;(double)f=a/b;
      |                              ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:6:5: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
    6 |     print("%lf %lf\n",r*r*a,r*2*a);
      |     ^~~~~
      |     printf
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:5:31: error: expected ')' before 'return'
    5 |   printf("%f %f\n",r*r*p,r*2*p
      |         ~                     ^
      |                               )
    6 |   return 0;
      |   ~~~~~~                       
main.c:6:12: error: expected ';' before '}' token
    6 |   return 0;
      |            ^
      |            ;
    7 | }
      | ~
Language: C

#include <stdio.h>
int main(void)
{
double r, e;
e = 3.1415926539

scanf("%lf",&r);

printf("%.5f %.5f\n",r * r * e,2 * r * e);

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:17: error: expected ';' before 'scanf'
    5 | e = 3.1415926539
      |                 ^
      |                 ;
    6 | 
    7 | scanf("%lf",&r);
      | ~~~~~
Language: C

#include <stdio.h>
int main(void)
{
double  r;

printf("%f\n",??  * r * r);
printf("%f\n",2 * ?????* r);

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:15: error: expected expression before '?' token
    6 | printf("%f\n",??  * r * r);
      |               ^
main.c:6:19: error: invalid type argument of unary '*' (have 'double')
    6 | printf("%f\n",??  * r * r);
      |                   ^~~
main.c:7:19: error: expected expression before '?' token
    7 | printf("%f\n",2 * ?????* r);
      |                   ^
main.c:7:24: error: invalid type argument of unary '*' (have 'double')
    7 | printf("%f\n",2 * ?????* r);
      |                        ^~~
Language: C

#include <stdio.h>
int main(void)
{
double  r;

printf("%f\n",M_PL  * r * r);
printf("%f\n",2 * M_PL???* r);

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:15: error: 'M_PL' undeclared (first use in this function)
    6 | printf("%f\n",M_PL  * r * r);
      |               ^~~~
main.c:6:15: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:24: error: expected expression before '?' token
    7 | printf("%f\n",2 * M_PL???* r);
      |                        ^
main.c:7:26: error: invalid type argument of unary '*' (have 'double')
    7 | printf("%f\n",2 * M_PL???* r);
      |                          ^~~
Language: C

int main(){
	double r;
	scanf("%lf", &r);
	printf("%lf %lf\n",2.0*M_PI*r,r*r*M_PI/4.0);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:3:9: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    3 |         scanf("%lf", &r);
      |         ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main(){
main.c:3:9: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    3 |         scanf("%lf", &r);
      |         ^~~~~
main.c:3:9: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:4:9: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    4 |         printf("%lf %lf\n",2.0*M_PI*r,r*r*M_PI/4.0);
      |         ^~~~~~
main.c:4:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:4:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:4:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:4:32: error: 'M_PI' undeclared (first use in this function)
    4 |         printf("%lf %lf\n",2.0*M_PI*r,r*r*M_PI/4.0);
      |                                ^~~~
main.c:4:32: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:6:29: error: expected ';' before 'printf'
    6 |   r = 2 * 3.141592653589 * r
      |                             ^
      |                             ;
    7 |   printf("%f", r);
      |   ~~~~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:6:26: error: expected expression before '?' token
    6 |     printf("%f %f\n",r*r*??,2*r*??);
      |                          ^
main.c:6:33: warning: trigraph ??) ignored, use -trigraphs to enable [-Wtrigraphs]
    6 |     printf("%f %f\n",r*r*??,2*r*??);
Language: C

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


int main (void){

  double r;

  scanf("%lf",&r);

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

  return 0;
}

Compiler output:
main.c:1:2: error: invalid preprocessing directive #icnlude; did you mean #include?
    1 | #icnlude<stdio.h>
      |  ^~~~~~~
      |  include
main.c: In function 'main':
main.c:9:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    9 |   scanf("%lf",&r);
      |   ^~~~~
main.c:3:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
    2 | #include<math.h>
  +++ |+#include <stdio.h>
    3 | 
main.c:9:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    9 |   scanf("%lf",&r);
      |   ^~~~~
main.c:9:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:11:3: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   11 |   printf("%f %f\n",M_PI*r*r,2*r*M_PI);
      |   ^~~~~~
main.c:11:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:11:3: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:11:3: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

#icnlude<stdio.h>
#define M_PI 3.14


int main (void){

  double r;

  scanf("%lf",&r);

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

  return 0;
}

Compiler output:
main.c:1:2: error: invalid preprocessing directive #icnlude; did you mean #include?
    1 | #icnlude<stdio.h>
      |  ^~~~~~~
      |  include
main.c: In function 'main':
main.c:9:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    9 |   scanf("%lf",&r);
      |   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | #icnlude<stdio.h>
main.c:9:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    9 |   scanf("%lf",&r);
      |   ^~~~~
main.c:9:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:11:3: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   11 |   printf("%f %f\n",M_PI*r*r,2*r*M_PI);
      |   ^~~~~~
main.c:11:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:11:3: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:11:3: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:4:19: error: expected ';' before 'scanf'
    4 |     pi = 3.1415926
      |                   ^
      |                   ;
    5 |     scanf("%lf", &r);
      |     ~~~~~
Language: C

#include<stdio.h>
define pai 3.1415926
int main(void){
float r;
scanf("%f",&r);
printf("%f",r*r*pai,2*r*pai);
return 0;
}

Compiler output:
main.c:2:1: error: unknown type name 'define'
    2 | define pai 3.1415926
      | ^~~~~~
main.c:2:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before numeric constant
    2 | define pai 3.1415926
      |            ^~~~~~~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:5:1: error: expected ',' or ';' before 'scanf'
    5 | scanf("%f",&r);
      | ^~~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:7:1: error: expected declaration or statement at end of input
    7 | return 0;
      | ^~~~~~
Language: C

#include<stdio.h>
#define PI 3.14159265
int main(){
int r;
double s,l;
scanf("%d",&r);
s = PI * r * r;
l = 2 * PI * r;
pritnf("%lf %lf\n",s,l);
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:1: error: implicit declaration of function 'pritnf'; did you mean 'printf'? [-Wimplicit-function-declaration]
    9 | pritnf("%lf %lf\n",s,l);
      | ^~~~~~
      | printf
Language: C

#include<stdio.h>
#define PI 3.3.141592653589
int main(){
int r;
double s,l;
scanf("%d",&r);
s = PI * r * r;
l = 2 * PI * r;
printf("%lf %lf\n",s,l);
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:2:12: error: too many decimal points in number
    2 | #define PI 3.3.141592653589
      |            ^~~~~~~~~~~~~~~~
main.c:7:5: note: in expansion of macro 'PI'
    7 | s = PI * r * r;
      |     ^~
main.c:2:12: error: too many decimal points in number
    2 | #define PI 3.3.141592653589
      |            ^~~~~~~~~~~~~~~~
main.c:8:9: note: in expansion of macro 'PI'
    8 | l = 2 * PI * r;
      |         ^~
Language: C

int main()
{
	double r;
	double s, q;
	scanf("%lf", &r);

	s = M_PI * r * r;
	q = M_PI * r * 2;

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

	return 0;

}

Compiler output:
main.c: In function 'main':
main.c:5:9: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    5 |         scanf("%lf", &r);
      |         ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main()
main.c:5:9: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    5 |         scanf("%lf", &r);
      |         ^~~~~
main.c:5:9: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:7:13: error: 'M_PI' undeclared (first use in this function)
    7 |         s = M_PI * r * r;
      |             ^~~~
main.c:7:13: note: each undeclared identifier is reported only once for each function it appears in
main.c:10:9: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   10 |         printf("%f %f", s, q);
      |         ^~~~~~
main.c:10:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:10:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:10:9: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

int main()
{
	double r;
	double s, q;
	scanf("%lf", &r);

	s = M_PI * r * r;
	q = M_PI * r * 2;

	printf("%f %f\n", s, q);

	return 0;

}

Compiler output:
main.c: In function 'main':
main.c:5:9: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    5 |         scanf("%lf", &r);
      |         ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main()
main.c:5:9: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    5 |         scanf("%lf", &r);
      |         ^~~~~
main.c:5:9: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:7:13: error: 'M_PI' undeclared (first use in this function)
    7 |         s = M_PI * r * r;
      |             ^~~~
main.c:7:13: note: each undeclared identifier is reported only once for each function it appears in
main.c:10:9: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   10 |         printf("%f %f\n", s, q);
      |         ^~~~~~
main.c:10:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:10:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:10:9: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

#include <stdio.h>

#define PI 3.1415926536

int main() {
	double r;

	scanf_s("%lf", &r);

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

	return 0;

}

Compiler output:
main.c: In function 'main':
main.c:8:9: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    8 |         scanf_s("%lf", &r);
      |         ^~~~~~~
      |         scanf
Language: C

#include <stdio.h>

#define PI 3.141592653589793

int main() {
	double r;

	scanf_s("%lf", &r);

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

	return 0;

}

Compiler output:
main.c: In function 'main':
main.c:8:9: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    8 |         scanf_s("%lf", &r);
      |         ^~~~~~~
      |         scanf
Language: C

#include<stdio.h>

int main(){
  double r,ans1,ans2,??;
  ?? = 3.14159265359;
  scanf("%lf",&r);

  ans1 = r * r * ??;
  ans2 = r * 2 * ??;

  printf("%f %f\n",ans1,ans2);

  return 0;

}

Compiler output:
main.c: In function 'main':
main.c:4:22: error: expected identifier or '(' before '?' token
    4 |   double r,ans1,ans2,??;
      |                      ^
main.c:5:3: error: expected expression before '?' token
    5 |   ?? = 3.14159265359;
      |   ^
main.c:8:18: error: expected expression before '?' token
    8 |   ans1 = r * r * ??;
      |                  ^
main.c:9:18: error: expected expression before '?' token
    9 |   ans2 = r * 2 * ??;
      |                  ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:7:16: error: expected ';' before 'd'
    7 | p = r*3.1415926
      |                ^
      |                ;
    8 | d = p*r/2
      | ~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:7:16: error: expected ';' before 'd'
    7 | p = r*3.1415926
      |                ^
      |                ;
    8 | d = p*r/2
      | ~