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


#include<stdio.h>

int main(void)

{

  double r,m,n;

  scanf("%d"&r);

  m=3.14*r*r;

  n=2*3.14*r;

  printf("%5lf %5lf",m,n);

  return 0;

}

Compiler output:
main.c: In function 'main':
main.c:10:13: error: invalid operands to binary & (have 'char *' and 'double')
   10 |   scanf("%d"&r);
      |         ~~~~^
      |         |
      |         char *
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*r*pai);


return 0;


}

Compiler output:
main.c: In function 'main':
main.c:9:1: error: expected ',' or ';' before 'scanf'
    9 | 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:
main.c: In function 'main':
main.c:4:16: error: expected ';' before ':' token
    4 | scanf("%lf",&r):
      |                ^
      |                ;
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:4:15: error: expected ';' before ':' token
    4 | scanf("%d",&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:
main.c: In function 'main':
main.c:4:15: error: expected ';' before ':' token
    4 | scanf("%d",&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:
main.c:1:10: fatal error: stdio,h: No such file or directory
    1 | #include <stdio,h>
      |          ^~~~~~~~~
compilation terminated.
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*pai*r);
  return 0;
}

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

#include<stdio.h>

int main(void)

{

int r ;


double a,b ;

scanf("%d,&r) ;

a = (double)r*(double)r*3.14 ;

b = 2.0*(double)r*3.14 ;

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

return 0 ;

}

Compiler output:
main.c: In function 'main':
main.c:12:7: warning: missing terminating " character
   12 | scanf("%d,&r) ;
      |       ^
main.c:12:7: error: missing terminating " character
   12 | scanf("%d,&r) ;
      |       ^~~~~~~~~
main.c:14:29: error: expected ')' before ';' token
   14 | a = (double)r*(double)r*3.14 ;
      |                             ^~
      |                             )
main.c:12:6: note: to match this '('
   12 | scanf("%d,&r) ;
      |      ^
main.c:14:3: error: incompatible type for argument 1 of 'scanf'
   14 | a = (double)r*(double)r*3.14 ;
      | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~
      |   |
      |   double
In file included from main.c:1:
/usr/include/stdio.h:428:42: note: expected 'const char *' but argument is of type 'double'
  428 | extern int scanf (const char *__restrict __format, ...) __wur;
      |                   ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
main.c:20:11: error: expected ';' before '}' token
   20 | return 0 ;
      |           ^
      |           ;
   21 | 
   22 | }
      | ~
Language: C

int main(void)


{


    int r;


    scanf("%d",&r);


    printf("%lf %lf\n",(double)r * (doubel) * r * 3.14,(double)r * 2 * 3.14);





    return 0;


}

Compiler output:
main.c: In function 'main':
main.c:10:5: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
   10 |     scanf("%d",&r);
      |     ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main(void)
main.c:10:5: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
   10 |     scanf("%d",&r);
      |     ^~~~~
main.c:10:5: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:13:5: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   13 |     printf("%lf %lf\n",(double)r * (doubel) * r * 3.14,(double)r * 2 * 3.14);
      |     ^~~~~~
main.c:13:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:13:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:13:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:13:37: error: 'doubel' undeclared (first use in this function); did you mean 'double'?
   13 |     printf("%lf %lf\n",(double)r * (doubel) * r * 3.14,(double)r * 2 * 3.14);
      |                                     ^~~~~~
      |                                     double
main.c:13:37: note: each undeclared identifier is reported only once for each function it appears in
Language: C

int main(void)


{


    double r;


    scanf("%d",&r);


    printf("%lf %lf\n",(double)r * (doubel) * r * 3.14,(double)r * 2 * 3.14);





    return 0;


}

Compiler output:
main.c: In function 'main':
main.c:10:5: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
   10 |     scanf("%d",&r);
      |     ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main(void)
main.c:10:5: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
   10 |     scanf("%d",&r);
      |     ^~~~~
main.c:10:5: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:13:5: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   13 |     printf("%lf %lf\n",(double)r * (doubel) * r * 3.14,(double)r * 2 * 3.14);
      |     ^~~~~~
main.c:13:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:13:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:13:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:13:37: error: 'doubel' undeclared (first use in this function); did you mean 'double'?
   13 |     printf("%lf %lf\n",(double)r * (doubel) * r * 3.14,(double)r * 2 * 3.14);
      |                                     ^~~~~~
      |                                     double
main.c:13:37: note: each undeclared identifier is reported only once for each function it appears in
Language: C

int main(void)


{


    double r;


    scanf("%d",&r);


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





    return 0;


}

Compiler output:
main.c: In function 'main':
main.c:10:5: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
   10 |     scanf("%d",&r);
      |     ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main(void)
main.c:10:5: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
   10 |     scanf("%d",&r);
      |     ^~~~~
main.c:10:5: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:13:5: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   13 |     printf("%lf %lf\n",(double)r * (double) * r * 3.14,(double)r * 2 * 3.14);
      |     ^~~~~~
main.c:13:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:13:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:13:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:13:45: error: invalid type argument of unary '*' (have 'double')
   13 |     printf("%lf %lf\n",(double)r * (double) * r * 3.14,(double)r * 2 * 3.14);
      |                                             ^~~
Language: C

#include<stdio.h>

int main(void)


{


int r;


double pi = 3.1415926535;


scanf{"%d",&r};


printf{"%d %d\n",r*r*pi,2*r*pi};


return 0;


}

Compiler output:
main.c: In function 'main':
main.c:15:6: error: expected ';' before '{' token
   15 | scanf{"%d",&r};
      |      ^
      |      ;
main.c:18:7: error: expected ';' before '{' token
   18 | printf{"%d %d\n",r*r*pi,2*r*pi};
      |       ^
      |       ;
Language: C

#include<stdio.h>

int main(void)


{


int r;


double pi = 3.1415926535;


scanf{"%d",&r};


printf{"%if %lf\n",r*r*pi,2*r*pi};


return 0;


}

Compiler output:
main.c: In function 'main':
main.c:15:6: error: expected ';' before '{' token
   15 | scanf{"%d",&r};
      |      ^
      |      ;
main.c:18:7: error: expected ';' before '{' token
   18 | printf{"%if %lf\n",r*r*pi,2*r*pi};
      |       ^
      |       ;
Language: C

#include<stdio.h>

int main(void)


{


int r;


double pi = 3.1415926535;


scanf{"%d",&r};


printf{"%lf %lf\n",r*r*pi,2*r*pi};


return 0;


}

Compiler output:
main.c: In function 'main':
main.c:15:6: error: expected ';' before '{' token
   15 | scanf{"%d",&r};
      |      ^
      |      ;
main.c:18:7: error: expected ';' before '{' token
   18 | printf{"%lf %lf\n",r*r*pi,2*r*pi};
      |       ^
      |       ;
Language: C

#include<stdio.h>

int main(void)


{


int r;


double pi;


pi  = 3.1415926535;


scanf{"%d",&r};


printf{"%lf %lf\n",r*r*pi,2*r*pi};


return 0;


}

Compiler output:
main.c: In function 'main':
main.c:18:6: error: expected ';' before '{' token
   18 | scanf{"%d",&r};
      |      ^
      |      ;
main.c:21:7: error: expected ';' before '{' token
   21 | printf{"%lf %lf\n",r*r*pi,2*r*pi};
      |       ^
      |       ;
Language: C

#include<stdio.h>

int main(void)


{


int r;


double pi;


pi  = 3.1415926535;


scanf{"%d",&r};


printf{"%f %f\n",r*r*pi,2*r*pi};


return 0;


}

Compiler output:
main.c: In function 'main':
main.c:18:6: error: expected ';' before '{' token
   18 | scanf{"%d",&r};
      |      ^
      |      ;
main.c:21:7: error: expected ';' before '{' token
   21 | printf{"%f %f\n",r*r*pi,2*r*pi};
      |       ^
      |       ;
Language: C

#include<stdio.h>

int main(void){


double r,x,S,L;
x = 3.14159

scanf("%5f",&r);
S = r*r*x
L = 2*X*r

printf("%5f %5f",S,L);


return 0;


}

Compiler output:
main.c: In function 'main':
main.c:7:12: error: expected ';' before 'scanf'
    7 | x = 3.14159
      |            ^
      |            ;
    8 | 
    9 | scanf("%5f",&r);
      | ~~~~~       
main.c:10:10: error: expected ';' before 'L'
   10 | S = r*r*x
      |          ^
      |          ;
   11 | L = 2*X*r
      | ~
Language: C

#include<stdio.h>

int main(void){


double r,x,S,L;
x = 3.14159

scanf("%5f",&r);
S = r*r*x;
L = 2*X*r;

printf("%5f %5f",S,L);


return 0;


}

Compiler output:
main.c: In function 'main':
main.c:7:12: error: expected ';' before 'scanf'
    7 | x = 3.14159
      |            ^
      |            ;
    8 | 
    9 | scanf("%5f",&r);
      | ~~~~~       
main.c:11:7: error: 'X' undeclared (first use in this function)
   11 | L = 2*X*r;
      |       ^
main.c:11:7: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
int main(void){
double r,x,S,L;
x = 3.14159
scanf("%5f",&r);
S = r*r*x;
L = 2*X*r;
printf("%5f %5f",S,L);
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:12: error: expected ';' before 'scanf'
    4 | x = 3.14159
      |            ^
      |            ;
    5 | scanf("%5f",&r);
      | ~~~~~       
main.c:7:7: error: 'X' undeclared (first use in this function)
    7 | L = 2*X*r;
      |       ^
main.c:7:7: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
int main(void){
double r,x,S,L;
x = 3.14159;
scanf("%5f",&r);
S = r*r*x;
L = 2*X*r;
printf("%5f %5f",S,L);
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:7: error: 'X' undeclared (first use in this function)
    7 | L = 2*X*r;
      |       ^
main.c:7:7: note: each undeclared identifier is reported only once for each function it appears in
Language: C

int main(){

double r, double pai=3.14159265359;

scanf("%lf",&r);

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

return 0;

}

Compiler output:
main.c: In function 'main':
main.c:3:11: error: expected identifier or '(' before 'double'
    3 | double r, double pai=3.14159265359;
      |           ^~~~~~
main.c:5:1: 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:1: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    5 | scanf("%lf",&r);
      | ^~~~~
main.c:5:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:7:1: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    7 | printf("%f %f\n",r*r*pai,2*pai*r) ;
      | ^~~~~~
main.c:7:1: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:7:1: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:7:1: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:7:22: error: 'pai' undeclared (first use in this function)
    7 | printf("%f %f\n",r*r*pai,2*pai*r) ;
      |                      ^~~
main.c:7:22: note: each undeclared identifier is reported only once for each function it appears in
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:
main.c: In function 'main':
main.c:5:11: error: expected identifier or '(' before 'double'
    5 | double r, double pai=3.14159265359;
      |           ^~~~~~
main.c:9:22: error: 'pai' undeclared (first use in this function)
    9 | printf("%f %f\n",r*r*pai,2*pai*r) ;
      |                      ^~~
main.c:9:22: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>
int main(void)
{
   double r
   printf("%lf %lf\n",r*r*3.14,(r+r)*3.14);
   return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:4: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'printf'
    5 |    printf("%lf %lf\n",r*r*3.14,(r+r)*3.14);
      |    ^~~~~~
main.c:5:23: error: 'r' undeclared (first use in this function)
    5 |    printf("%lf %lf\n",r*r*3.14,(r+r)*3.14);
      |                       ^
main.c:5:23: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:5:4: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'printf'
    5 |    printf("%lf %lf\n",r*r*3.141592653589,(r+r)*3.141592653589);
      |    ^~~~~~
main.c:5:23: error: 'r' undeclared (first use in this function)
    5 |    printf("%lf %lf\n",r*r*3.141592653589,(r+r)*3.141592653589);
      |                       ^
main.c:5:23: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>

int main(void)

{

double n,m,r;

scanf("%lf ,&r);

n=r*r*(3.14);

m=2*r*(3.14);

printf("%5lf %5lf",n,m);

return 0;

}

Compiler output:
main.c: In function 'main':
main.c:9:7: warning: missing terminating " character
    9 | scanf("%lf ,&r);
      |       ^
main.c:9:7: error: missing terminating " character
    9 | scanf("%lf ,&r);
      |       ^~~~~~~~~~
main.c:11:13: error: expected ')' before ';' token
   11 | n=r*r*(3.14);
      |             ^
      |             )
main.c:9:6: note: to match this '('
    9 | scanf("%lf ,&r);
      |      ^
main.c:11:2: error: incompatible type for argument 1 of 'scanf'
   11 | n=r*r*(3.14);
      | ~^~~~~~~~~~~
      |  |
      |  double
In file included from main.c:1:
/usr/include/stdio.h:428:42: note: expected 'const char *' but argument is of type 'double'
  428 | extern int scanf (const char *__restrict __format, ...) __wur;
      |                   ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
main.c:17:10: error: expected ';' before '}' token
   17 | return 0;
      |          ^
      |          ;
   18 | 
   19 | }
      | ~
Language: C

#include<stdio.h>

int main(void)

{

int r,;

double e;


e=3.141592653589


scanf("%d",&r);

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

return 0;

}

Compiler output:
main.c: In function 'main':
main.c:7:7: error: expected identifier or '(' before ';' token
    7 | int r,;
      |       ^
main.c:12:17: error: expected ';' before 'scanf'
   12 | e=3.141592653589
      |                 ^
      |                 ;
......
   15 | scanf("%d",&r);
      | ~~~~~
Language: C

#include<stdio.h>

int main(void)

{

int r;

double e;


e=3.141592653589


scanf("%d",&r);

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

return 0;

}

Compiler output:
main.c: In function 'main':
main.c:12:17: error: expected ';' before 'scanf'
   12 | e=3.141592653589
      |                 ^
      |                 ;
......
   15 | scanf("%d",&r);
      | ~~~~~
Language: C

#include<stdio.h>

int main(void)

{

int r,;

double e;


e=3.141592;


scanf("%d",&r);

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

return 0;

}

Compiler output:
main.c: In function 'main':
main.c:7:7: error: expected identifier or '(' before ';' token
    7 | int r,;
      |       ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:4:8: error: expected identifier or '(' before ';' token
    4 |  int r,;
      |        ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:4:1: error: expected declaration specifiers before 'scanf'
    4 | scanf("%d,%d,%d"&s,&l,&r);
      | ^~~~~
main.c:5:1: error: expected declaration specifiers before 's'
    5 | s=r*r*3.14;
      | ^
main.c:6:1: error: expected declaration specifiers before 'l'
    6 | l=2*r*3.14;
      | ^
main.c:7:1: error: expected declaration specifiers before 'printf'
    7 | printf("%d,%d",s,r\n);
      | ^~~~~~
main.c:7:19: error: stray '\' in program
    7 | printf("%d,%d",s,r\n);
      |                   ^
main.c:8:1: error: expected declaration specifiers before 'return'
    8 | return 0;
      | ^~~~~~
main.c:9:1: error: expected declaration specifiers before '}' token
    9 | }
      | ^
main.c:2:5: error: old-style parameter declarations in prototyped function definition
    2 | int main (void)
      |     ^~~~
main.c:10: error: expected '{' at end of input
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:5:1: error: expected declaration specifiers before 'scanf'
    5 | scanf("%lf,%lf,%d"&s,&l,&r);
      | ^~~~~
main.c:6:1: error: expected declaration specifiers before 's'
    6 | s=r*r*3.14;
      | ^
main.c:7:1: error: expected declaration specifiers before 'l'
    7 | l=2*r*3.14;
      | ^
main.c:8:1: error: expected declaration specifiers before 'printf'
    8 | printf("%lf,%lf",s,r\n);
      | ^~~~~~
main.c:8:21: error: stray '\' in program
    8 | printf("%lf,%lf",s,r\n);
      |                     ^
main.c:9:1: error: expected declaration specifiers before 'return'
    9 | return 0;
      | ^~~~~~
main.c:10:1: error: expected declaration specifiers before '}' token
   10 | }
      | ^
main.c:2:5: error: old-style parameter declarations in prototyped function definition
    2 | int main (void)
      |     ^~~~
main.c:11: error: expected '{' at end of input
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:5:1: error: expected declaration specifiers before 'scanf'
    5 | scanf("%lf,%lf,%d"&s,&l,&r);
      | ^~~~~
main.c:6:1: error: expected declaration specifiers before 's'
    6 | s=r*r*3.141592653589;
      | ^
main.c:7:1: error: expected declaration specifiers before 'l'
    7 | l=2*r*3.141592653589;
      | ^
main.c:8:1: error: expected declaration specifiers before 'printf'
    8 | printf("%lf,%lf\n",s,r);
      | ^~~~~~
main.c:9:1: error: expected declaration specifiers before 'return'
    9 | return 0;
      | ^~~~~~
main.c:10:1: error: expected declaration specifiers before '}' token
   10 | }
      | ^
main.c:2:5: error: old-style parameter declarations in prototyped function definition
    2 | int main (void)
      |     ^~~~
main.c:11: error: expected '{' at end of input
Language: C

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

  int r;
  cin >> r;
  double PI=3.141592653589;

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

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

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

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

Compiler output:
main.c: In function 'main':
main.c:9:22: error: expected ';' before 'return'
    9 | printf("%d %d\n",a,b)
      |                      ^
      |                      ;
   10 | return 0;
      | ~~~~~~
Language: C

include <stdio.h>

int main(void)
{
	double r;
	double b;
	double c;

	scanf("%lf", &r);

	b=r*r*3.141592653589;
	c=2*r*3.141592653589;

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

	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(void)

{
 int r;
 double x,y;
 
 scanf("%d",&r);

 x=(double)3.14*r*r;
 y=(double)2*r*3.14;

 printf("%lf %lf"x,y);

 return 0;
}

Compiler output:
main.c: In function 'main':
main.c:13:18: error: expected ')' before 'x'
   13 |  printf("%lf %lf"x,y);
      |        ~         ^
      |                  )
Language: C

#include <stdio.h>
int main(void)

{
 int r;
 double x,y;
 
 scanf("%d",&r);

 x=(double)(3.14)*r*r;
 y=(double)2*r*(3.14);

 printf("%lf %lf"x,y);

 return 0;
}

Compiler output:
main.c: In function 'main':
main.c:13:18: error: expected ')' before 'x'
   13 |  printf("%lf %lf"x,y);
      |        ~         ^
      |                  )
Language: C

#include <stdio.h>
int main(void)

{
 int r;
 double x,y;
 
 scanf("%d",&r);

 x=(double)(3.14)*r*r;
 y=(double)2*r*(3.14);

 printf("%lf %lf\n"x,y);

 return 0;
}

Compiler output:
main.c: In function 'main':
main.c:13:20: error: expected ')' before 'x'
   13 |  printf("%lf %lf\n"x,y);
      |        ~           ^
      |                    )
Language: C

#include <stdio.h>
int main(void)

{
 double r,x,y;
 
 scanf("%lf",&r);

 x=(double)(3.14)*r*r;
 y=(double)2*r*(3.14);

 printf("%lf %lf\n"x,y);

 return 0;
}

Compiler output:
main.c: In function 'main':
main.c:12:20: error: expected ')' before 'x'
   12 |  printf("%lf %lf\n"x,y);
      |        ~           ^
      |                    )
Language: C

#include <stdio.h>
int main(void)

{
 double r,x,y;
 
 scanf("%lf",&r);

 x=(double)3.14*r*r;
 y=(double)2*r*3.14;

 printf("%lf %lf\n"x,y);

 return 0;
}

Compiler output:
main.c: In function 'main':
main.c:12:20: error: expected ')' before 'x'
   12 |  printf("%lf %lf\n"x,y);
      |        ~           ^
      |                    )
Language: C

#include<stdio.h>

int main(void) {
int r;
double pai = 3.141592;
double d,s;

scanf"%d", &r);
d = 2 * pai * r;
s = pai * r * r;

printf("%lf %lf", d, s);

return(0);
}

Compiler output:
main.c: In function 'main':
main.c:8:6: error: expected ';' before string constant
    8 | scanf"%d", &r);
      |      ^~~~
      |      ;
main.c:8:14: error: expected statement before ')' token
    8 | scanf"%d", &r);
      |              ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:7:26: error: 's' undeclared (first use in this function)
    7 |         printf("%f %f",h,s);
      |                          ^
main.c:7:26: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>
#define PI 3.141592653589

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

scanf("%f,&r);
s=PI*r*r;
l=2*PI*r;

printf("%f8 %f8",s,l);
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:7: warning: missing terminating " character
    7 | scanf("%f,&r);
      |       ^
main.c:7:7: error: missing terminating " character
    7 | scanf("%f,&r);
      |       ^~~~~~~~
main.c:8:9: error: expected ')' before ';' token
    8 | s=PI*r*r;
      |         ^
      |         )
main.c:7:6: note: to match this '('
    7 | scanf("%f,&r);
      |      ^
main.c:8:2: error: incompatible type for argument 1 of 'scanf'
    8 | s=PI*r*r;
      | ~^~~~~~~
      |  |
      |  double
In file included from main.c:1:
/usr/include/stdio.h:428:42: note: expected 'const char *' but argument is of type 'double'
  428 | extern int scanf (const char *__restrict __format, ...) __wur;
      |                   ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
main.c:12:10: error: expected ';' before '}' token
   12 | return 0;
      |          ^
      |          ;
   13 | }
      | ~
Language: C

#include <stdio.h>
#define PI 3.141592653589

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

scanf("%f,&r);
s=PI*r*r;
l=2*PI*r;

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

Compiler output:
main.c: In function 'main':
main.c:7:7: warning: missing terminating " character
    7 | scanf("%f,&r);
      |       ^
main.c:7:7: error: missing terminating " character
    7 | scanf("%f,&r);
      |       ^~~~~~~~
main.c:8:9: error: expected ')' before ';' token
    8 | s=PI*r*r;
      |         ^
      |         )
main.c:7:6: note: to match this '('
    7 | scanf("%f,&r);
      |      ^
main.c:8:2: error: incompatible type for argument 1 of 'scanf'
    8 | s=PI*r*r;
      | ~^~~~~~~
      |  |
      |  double
In file included from main.c:1:
/usr/include/stdio.h:428:42: note: expected 'const char *' but argument is of type 'double'
  428 | extern int scanf (const char *__restrict __format, ...) __wur;
      |                   ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
main.c:12:10: error: expected ';' before '}' token
   12 | return 0;
      |          ^
      |          ;
   13 | }
      | ~
Language: C

#include <stdio.h>
int main(void)

{
 double r,x,y;
 scanf("%f",&r);
 x=r*r*3.14159265358979;
 y=2*r*;3.14159265358979
 printf("%f %f",x,y);
 return 0;
}

 

Compiler output:
main.c: In function 'main':
main.c:8:8: error: expected expression before ';' token
    8 |  y=2*r*;3.14159265358979
      |        ^
main.c:8:25: error: expected ';' before 'printf'
    8 |  y=2*r*;3.14159265358979
      |                         ^
      |                         ;
    9 |  printf("%f %f",x,y);
      |  ~~~~~~
Language: C

#include<studio.h>

int main(void){

double r,a=0,b=0;

scanf("%lf",&r);

a=r*r*3.14;

b=2*r*3.14;

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

return 0;

}

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

#include<studio.h>

int main(void){

double r,a=0.0,b=0.0;

scanf("%lf",&r);

a=r*r*3.14;

b=2*r*3.14;

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

return 0;

}

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

#define _USE_MATH_DEFINES

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

void func(double r)
{
	double S, l;

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

	printf("%f %f\n", S, l);
}

int main(void)
{
	double r;
	scanf_s("%lf", &r);

	func(r);

	return 0;
}

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

#include <stdio.h>
#include<math.h>
int main(void)
{
    double r, S ,L, M_PI=3.1415926536;
    
    scanf("%lf",&r);
    
    S = r* r* M_PI;
    L = 2* r* M_PI;
    
    printf("%.6f %.6f",S ,L);
    
    return 0;
}

Compiler output:
In file included from main.c:2:
main.c: In function 'main':
main.c:5:21: error: expected identifier or '(' before numeric constant
    5 |     double r, S ,L, M_PI=3.1415926536;
      |                     ^~~~
Language: C

#include <stdio.h>
int main(void)
{
    double r, S ,L, PI=3.14159265358979323846;
    
    scanf("%lf",&r);
    
    S = r* r* PI;
    L = 2* r* PI;
    
    printf("%.6f %.6f",S ,L);
    
    return 0;

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

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

    scanf("%d",&r);
    f=(double)a/(double)b;
    printf("%lf %lf\n",pai*r*r,2*pai*r);
    return 0;
    
}

Compiler output:
main.c: In function 'main':
main.c:9:5: error: 'f' undeclared (first use in this function)
    9 |     f=(double)a/(double)b;
      |     ^
main.c:9:5: note: each undeclared identifier is reported only once for each function it appears in
main.c:9:15: error: 'a' undeclared (first use in this function)
    9 |     f=(double)a/(double)b;
      |               ^
main.c:9:25: error: 'b' undeclared (first use in this function)
    9 |     f=(double)a/(double)b;
      |                         ^
Language: C

#include <stdio.h>
#define Pi 3.141592653589	

int main(void) {

	double a, b, c;
	scanf_s("%lf", &a);
	b = 2 * Pi * a;
	c = Pi * a * a;
	printf("%f %f\n", b, c);
	return 0;

}

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

#include <stdio.h>	

int main(void) {

	double a, b, c;
	scanf_s("%lf", &a);
	b = 2 * 3.141592653589 * a;
	c = 3.141592653589 * a * a;
	printf("%f %f\n", b, c);
	return 0;

}

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

#include<stdio.h>

#include<math.h>


{


int  main()

double r,x;


x=M_PI;


scanf("%lf",&r);


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


return 0;


}

Compiler output:
main.c:6:1: error: expected identifier or '(' before '{' token
    6 | {
      | ^
Language: C

#include <stdio.h>
int main(void) {
	double r;
	scanf_s("%lf", &r);
	printf("%f %f\n", r*r*3.141592653589, 2 * r*3.141592653589);
	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 )
{
	int r;
	double r2area, around;

	scanf( "%d", &r );

	r2 = pow( r, 2.0 );

	area = 3.14 * r2;
	around = 2 * 3.14 * r;
	
	printf( "%f %f\n", area, around );

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:9: error: 'r2' undeclared (first use in this function); did you mean 'r'?
   10 |         r2 = pow( r, 2.0 );
      |         ^~
      |         r
main.c:10:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:10:14: error: implicit declaration of function 'pow' [-Wimplicit-function-declaration]
   10 |         r2 = pow( r, 2.0 );
      |              ^~~
main.c:2:1: note: include '<math.h>' or provide a declaration of 'pow'
    1 | #include <stdio.h>
  +++ |+#include <math.h>
    2 | 
main.c:10:14: warning: incompatible implicit declaration of built-in function 'pow' [-Wbuiltin-declaration-mismatch]
   10 |         r2 = pow( r, 2.0 );
      |              ^~~
main.c:10:14: note: include '<math.h>' or provide a declaration of 'pow'
main.c:12:9: error: 'area' undeclared (first use in this function); did you mean 'r2area'?
   12 |         area = 3.14 * r2;
      |         ^~~~
      |         r2area
Language: C

#include<stdio.h>
int main(void){
	int=r;
	double m,l,pi=3.1415296;
	scanf("%d",&r);
	m=pi*r*r;
	l=2*pi*r;
	printf("%.5f %.5f\n",m,l);
}

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

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

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

#include <stdio.h>


int main(void) {

	// 1_4-B Circle

	int r;
	double s,l;
	scanf("%d",&r);
	
	s = 2*pi()*r*r;
	l = 2*r;
	
	printf(" %lf %lf",s,l);
        return 0;
}

Compiler output:
main.c: In function 'main':
main.c:12:15: error: implicit declaration of function 'pi' [-Wimplicit-function-declaration]
   12 |         s = 2*pi()*r*r;
      |               ^~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:6:7: error: 'f' undeclared (first use in this function)
    6 | if(0<=f&&f<=10000){
      |       ^
main.c:6:7: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:7:18: error: 'MPI' undeclared (first use in this function); did you mean 'M_PI'?
    7 | printf("%f %f\n",MPI*r*r,2*MPI*r);
      |                  ^~~
      |                  M_PI
main.c:7:18: note: each undeclared identifier is reported only once for each function it appears in
Language: C

include<stdio.h>
#include<math.h>
int main(){

  double r;
  scanf("%lf",&r);
  double sum,length;
  sum = r * r * M_PI;
  length = 2 * r * M_PI;
  printf("%lf %lf\n",length,sum);
  return 0;
}

Compiler output:
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include<stdio.h>
      |        ^
main.c: In function 'main':
main.c:6:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    6 |   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 | int main(){
main.c:6:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    6 |   scanf("%lf",&r);
      |   ^~~~~
main.c:6:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:10:3: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   10 |   printf("%lf %lf\n",length,sum);
      |   ^~~~~~
main.c:10:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:10:3: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:10:3: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

include<stdio.h>
#include<math.h>
int main(){

  double r;
  scanf("%lf",&r);
  double sum,length;
  sum = r * r * M_PI;
  length = 2 * r * M_PI;
  printf("%lf %lf\n",sum,length);
  return 0;
}

Compiler output:
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include<stdio.h>
      |        ^
main.c: In function 'main':
main.c:6:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    6 |   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 | int main(){
main.c:6:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    6 |   scanf("%lf",&r);
      |   ^~~~~
main.c:6:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:10:3: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   10 |   printf("%lf %lf\n",sum,length);
      |   ^~~~~~
main.c:10:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:10:3: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:10:3: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

include<stdio.h>
#include<math.h>
int main(){

  double r;
  scanf("%lf",&r);
  double sum,length;
  sum = r * r * M_PI;
  length = 2 * r * M_PI;
  printf("%.6f %.6f\n",sum,length);
  return 0;
}

Compiler output:
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include<stdio.h>
      |        ^
main.c: In function 'main':
main.c:6:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    6 |   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 | int main(){
main.c:6:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    6 |   scanf("%lf",&r);
      |   ^~~~~
main.c:6:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:10:3: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   10 |   printf("%.6f %.6f\n",sum,length);
      |   ^~~~~~
main.c:10:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:10:3: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:10:3: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

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

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

	scanf("%lf",&f);
	s = M_PI * r * r;
	l = 2 * M_PI * r;

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

	return 0;  
}

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

#include<stdio.h>

int main (void)

{

int r;

scanf("%d",&r);

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

return 0;

}

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

#include<stdio.h>
int maim(void){
int r;
double x,y,z;

z=3.14159265359;

scanf("%d",&r);

x=r*r*z;
y=r*2*z;

printf("%d %d\n",z,y);



return 0;
}

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

#include<stdio.h>
int maim(void){
int r;
double x,y,z;

z=3.14159265359;

scanf("%d",&r);

x=r*r*z;
y=r*2*z;

printf("%lf %lf\n",z,y);



return 0;
}

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

#include<stdio.h>
int maim(void){
double r,x,y,;



scanf("%lf",&r);

x=r*r*3.14159265359;
y=r*2*3.14159265359;

printf("%f %f\n",x,y);



return 0;
}

Compiler output:
main.c: In function 'maim':
main.c:3:14: error: expected identifier or '(' before ';' token
    3 | double r,x,y,;
      |              ^
Language: C

#include<stdio.h>
int maim(void){
double r,x,y;



scanf("%lf",&r);

x=r*r*3.14159265359;
y=r*2*3.14159265359;

printf("%f %f\n",x,y);



return 0;
}

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

#include<stdio.h>

int main(void)

{ 

  double r;

 scanf("%lf",&r);

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

 return 0;

}

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

#include<stdio.h>


int main(void){


double r;


 scanf("%lf",&r);


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


return 0;


}

Compiler output:
main.c: In function 'main':
main.c:13:23: error: invalid type argument of unary '*' (have 'double')
   13 |  printf("%lf %lf\n",r,*r*3.14159265359,2*r*3.14159265359);
      |                       ^~
Language: C

#include<stdio.h>

int main(void){

 double r;

 scanf("%lf",&r);


 printf("%lf %lf", r*r*3.14,2*r*3.14;);

 return 0; }
  

Compiler output:
main.c: In function 'main':
main.c:10:37: error: expected ')' before ';' token
   10 |  printf("%lf %lf", r*r*3.14,2*r*3.14;);
      |        ~                            ^
      |                                     )
Language: C

#include<stdio.h>

int main(void){

 double r;

 scanf("%lf",&r);


 printf("%lf %lf",r*r*3.14,2*r*3.14;);

 return 0; }
  

Compiler output:
main.c: In function 'main':
main.c:10:36: error: expected ')' before ';' token
   10 |  printf("%lf %lf",r*r*3.14,2*r*3.14;);
      |        ~                           ^
      |                                    )
Language: C

#include<stdio.h>

int main(void){

 double r;

 scanf("%lf",&r);


 printf("%lf %lf",r*r*3.14,2*r*3.14;);

 return 0;
}
  

Compiler output:
main.c: In function 'main':
main.c:10:36: error: expected ')' before ';' token
   10 |  printf("%lf %lf",r*r*3.14,2*r*3.14;);
      |        ~                           ^
      |                                    )
Language: C

#include<stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:6:39: error: expected expression before 'double'
    6 |         printf("%lf %lf \n",(double)r(double)r*(double)r*3.14,(double)r*2*3.14);
      |                                       ^~~~~~
main.c:6:37: error: called object 'r' is not a function or function pointer
    6 |         printf("%lf %lf \n",(double)r(double)r*(double)r*3.14,(double)r*2*3.14);
      |                                     ^
main.c:4:13: note: declared here
    4 |         int r;
      |             ^
main.c:6:46: error: expected ')' before 'r'
    6 |         printf("%lf %lf \n",(double)r(double)r*(double)r*3.14,(double)r*2*3.14);
      |               ~                              ^
      |                                              )
Language: C

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

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

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

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

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

Compiler output:
main.c: In function 'main':
main.c:9:24: error: 'M_PI' undeclared (first use in this function)
    9 |   printf("%f %f\n",r*r*M_PI,2*M_PI*r);
      |                        ^~~~
main.c:9:24: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:6:14: error: 'a' undeclared (first use in this function)
    6 |   A =(double)a/b;
      |              ^
main.c:6:14: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:16: error: 'b' undeclared (first use in this function)
    6 |   A =(double)a/b;
      |                ^
Language: C

#include<stdio.h>

int main(void){


  double r,c,s;


  while(scanf("%lf",&r) !=EOF)


  {


    c = 2.0 * r * M_PI;


    s = r * r * M_PI;


    printf("%.60f %.61f\n", s, c);


  }


return 0;


}

Compiler output:
main.c: In function 'main':
main.c:15:19: error: 'M_PI' undeclared (first use in this function)
   15 |     c = 2.0 * r * M_PI;
      |                   ^~~~
main.c:15:19: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>

int main(){

double r,pi = 3.141592653589

scanf("%lf",&r);

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

return 0;

}

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

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:
main.c: In function 'main':
main.c:7:9: error: expected ';' before 'double'
    7 | double r
      |         ^
      |         ;
    8 | 
    9 | double pai = 3.14159265359;
      | ~~~~~~   
main.c:12:1: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
   12 | scanf("%lf",&r);
      | ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main(void)
main.c:12:1: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
   12 | scanf("%lf",&r);
      | ^~~~~
main.c:12:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:12:14: error: 'r' undeclared (first use in this function)
   12 | scanf("%lf",&r);
      |              ^
main.c:12:14: note: each undeclared identifier is reported only once for each function it appears in
main.c:15:1: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   15 | printf("%lf %lf\n",r*r*pai,2*r*pai);
      | ^~~~~~
main.c:15:1: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:15:1: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:15:1: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

#include<stdio.h>

int main(){

double r,pi=3.141592653589;

scanf("%lf",&r);

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

return 0:

}

Compiler output:
main.c: In function 'main':
main.c:11:9: error: expected ';' before ':' token
   11 | return 0:
      |         ^
      |         ;
Language: C

#include<stdio.h>

int main(){

double r,pi=3.141592653589;

scanf("%lf",&r);

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

return 0:

}

Compiler output:
main.c: In function 'main':
main.c:11:9: error: expected ';' before ':' token
   11 | return 0:
      |         ^
      |         ;