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

#include <stdio.h>
int main(){
double r, a, b, c=3.141592;
scanf("%lf",&r);
a=2*r*c;
b=r*r*cI;
printf("%lf %lf\n",a,b);
}

Compiler output:
main.c: In function 'main':
main.c:6:7: error: 'cI' undeclared (first use in this function); did you mean 'c'?
    6 | b=r*r*cI;
      |       ^~
      |       c
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(){
 	double r,length;
 	scanf("%lf",&r);
 	length = r*(2.0*M_PI);
 	menseki = r*r*M_PI;
 	printf("%f %f\n",menseki,length);
 }

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

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

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

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

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

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

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

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

Compiler output:
main.c: In function 'main':
main.c:6:9: error: 'M_P' undeclared (first use in this function); did you mean 'M_E'?
    6 |   a = r*M_P|;
      |         ^~~
      |         M_E
main.c:6:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:13: error: expected expression before ';' token
    6 |   a = r*M_P|;
      |             ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:6:11: error: 'M_Pl' undeclared (first use in this function); did you mean 'M_PI'?
    6 |   a = r * M_Pl;
      |           ^~~~
      |           M_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 <math.h>

int main(void){
    double r,x,y;
    
    scanf("%lf\n",&r);
    
    x = M_PI * r ^ 2;
    y = 2 * r * M_PI;
    
    printf("%.8lf %.8lf\n",x,y);
    
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:18: error: invalid operands to binary ^ (have 'double' and 'int')
    9 |     x = M_PI * r ^ 2;
      |                  ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:6:12: error: expected ';' before 'l'
    6 | s=r*r*pai;1
      |            ^
      |            ;
    7 | l=r*2*pai;
      | ~
Language: C

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

int main(){

    double r; //input radius of given circle

    scanf("%lf",&r);

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

    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:11: error: expected ';' before 'return'
   11 |     printf
      |           ^
      |           ;
   12 | 
   13 |     return 0;
      |     ~~~~~~
Language: C

#include<cstdio>

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


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

#include<cstdio>
#include<cmath>

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


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

include "stdio.h"

int main(int r)
{
    float len;
    float s;
    float pai=3.14;

    if((r < 0) || (r > 10000)
    {
        return 0;
    }

    s = r*r*pai;
    len = 2*r*pai;

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

   return 0;
}


Compiler output:
main.c:1:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before string constant
    1 | include "stdio.h"
      |         ^~~~~~~~~
Language: C

#include "stdio.h"
#include "math.h"

int main(double r)
{
    double r2;
    double len;
    double s;

    if((r < 0) || (r > 10000))
    {
        return 0;
    }

    r2 = r*r;
    s = r2*M_PI;
    len = 2.0*r*M_PI;

   printf("%lf %lf\n", s, input);

   return 0;
}


Compiler output:
main.c: In function 'main':
main.c:19:27: error: 'input' undeclared (first use in this function); did you mean 'int'?
   19 |    printf("%lf %lf\n", s, input);
      |                           ^~~~~
      |                           int
main.c:19:27: note: each undeclared identifier is reported only once for each function it appears in
Language: C

int main(double r)
{
    double len;
    double s;

    if((r < 0) || (r > 10000))
    {
        return 0;
    }

    s = r*r*M_PI;
    len = 2.0*r*M_PI;

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

   return 0;
}


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

#include <stdio.h>

int main(){
    double a;
    scanf("%f", &a);
    printf("%f %f\n", a*a*3.14159265, 2.0*a*3.14159265)
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:6:56: error: expected ';' before 'return'
    6 |     printf("%f %f\n", a*a*3.14159265, 2.0*a*3.14159265)
      |                                                        ^
      |                                                        ;
    7 |     return 0;
      |     ~~~~~~
Language: C

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

int main(){
    float radius;
    float area;
    float length;

    scanf("%f",&radius);
    area = M_PI * radius^2;
    length = 2 * M_PI * radius;
    printf("%f %f\n",area,legth);
    
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:10:25: error: invalid operands to binary ^ (have 'double' and 'int')
   10 |     area = M_PI * radius^2;
      |                         ^
main.c:12:27: error: 'legth' undeclared (first use in this function); did you mean 'length'?
   12 |     printf("%f %f\n",area,legth);
      |                           ^~~~~
      |                           length
main.c:12:27: 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,s,l;
scanf("%f",&r);
s=r*r*pi;
l=2*r*pi;
printf("%f %f",s,l);
return 0;
}




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

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




Compiler output:
main.c: In function 'main':
main.c:5:19: error: expected ';' before numeric constant
    5 | s=r*r*3.1415926535 8979323846 2643383279I;
      |                   ^~~~~~~~~~~
      |                   ;
main.c:6:19: error: expected ';' before numeric constant
    6 | l=2*r*3.1415926535 8979323846 2643383279I;
      |                   ^~~~~~~~~~~
      |                   ;
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:5:19: error: expected ';' before numeric constant
    5 | s=r*r*3.1415926535 8979323846 2643383279;
      |                   ^~~~~~~~~~~
      |                   ;
main.c:6:19: error: expected ';' before numeric constant
    6 | l=2*r*3.1415926535 8979323846 2643383279;
      |                   ^~~~~~~~~~~
      |                   ;
Language: C

#include<stdio.h>
    
int main(){
  double r;
  scanf("%lf",&r);

  printf("%.5lf %.5lf",r*r*3.141592653589,2*r*3.141592653589)
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:7:62: error: expected ';' before 'return'
    7 |   printf("%.5lf %.5lf",r*r*3.141592653589,2*r*3.141592653589)
      |                                                              ^
      |                                                              ;
    8 |   return 0;
      |   ~~~~~~
Language: C

#include<stdio.h>
    
int main(){
  double r;
  scanf("%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:7:58: error: expected ';' before 'return'
    7 |   printf("%f %f\n",r*r*3.141592653589,2*r*3.141592653589)
      |                                                          ^
      |                                                          ;
    8 |   return 0;
      |   ~~~~~~
Language: C

#include<stdio.h>
int main(){
  int r;
  float l, s;
  l = 2 * r * 3.141592653589;
  s = r ^ 2 * 3.141592653589;
  printf("%f %\nf", s, l);
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:6:9: error: invalid operands to binary ^ (have 'int' and 'double')
    6 |   s = r ^ 2 * 3.141592653589;
      |         ^ ~~~~~~~~~~~~~~~~~~
      |             |
      |             double
Language: C

#include<stdio.h>
       
int main(void){
       
int r;
double S,length;
double pi=3.141592
scanf("%d",&r);

S=pi*r*r;
length=2*r*pi;

printf("%.6lf %.6lf",S,length);
  
return 0;
}


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

#include<stdio.h>
          
int main(void){
          
doublet r;
double S,length;
double pi=3.141592653589;
scanf("%f",&r);
   
S=pi*r*r;
length=2*r*pi;
   
printf("%.5f %.5f",S,length);
     
return 0;
}


Compiler output:
main.c: In function 'main':
main.c:5:1: error: unknown type name 'doublet'; did you mean 'double'?
    5 | doublet r;
      | ^~~~~~~
      | double
Language: C

#include <stdio.h>

#define pi  3.141592653589793　//円周率の宣言

int main(int argc, const char * argv[]) {
    double r;
    
    scanf("%lf", &r);
    printf("%lf %lf\n", pi *r*r, 2* pi *r);
    return 0;
}



Compiler output:
main.c: In function 'main':
main.c:3:30: error: stray '\343' in program
    3 | #define pi  3.141592653589793<U+3000>//<U+5186><U+5468><U+7387><U+306E><U+5BA3><U+8A00>
      |                              ^~~~~~~~
main.c:9:25: note: in expansion of macro 'pi'
    9 |     printf("%lf %lf\n", pi *r*r, 2* pi *r);
      |                         ^~
main.c:3:30: error: stray '\343' in program
    3 | #define pi  3.141592653589793<U+3000>//<U+5186><U+5468><U+7387><U+306E><U+5BA3><U+8A00>
      |                              ^~~~~~~~
main.c:9:37: note: in expansion of macro 'pi'
    9 |     printf("%lf %lf\n", pi *r*r, 2* pi *r);
      |                                     ^~
Language: C

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

#define PI  3.141592653589793　//円周率の宣言

int main(int argc, const char * argv[]) {
    double r;
    
    scanf("%lf", &r);
    printf("%lf %lf\n", PI *r*r, 2* PI *r);
    return 0;
}



Compiler output:
main.c: In function 'main':
main.c:4:30: error: stray '\343' in program
    4 | #define PI  3.141592653589793<U+3000>//<U+5186><U+5468><U+7387><U+306E><U+5BA3><U+8A00>
      |                              ^~~~~~~~
main.c:10:25: note: in expansion of macro 'PI'
   10 |     printf("%lf %lf\n", PI *r*r, 2* PI *r);
      |                         ^~
main.c:4:30: error: stray '\343' in program
    4 | #define PI  3.141592653589793<U+3000>//<U+5186><U+5468><U+7387><U+306E><U+5BA3><U+8A00>
      |                              ^~~~~~~~
main.c:10:37: note: in expansion of macro 'PI'
   10 |     printf("%lf %lf\n", PI *r*r, 2* PI *r);
      |                                     ^~
Language: C

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

#define PI  3.141592653589793　//円周率の宣言

int main(int argc, const char * argv[]) {
    double r;
    
    scanf("%lf", &r);
    printf("%lf %lf\n", PI*r*r, 2*PI*r);
    return 0;
}



Compiler output:
main.c: In function 'main':
main.c:4:30: error: stray '\343' in program
    4 | #define PI  3.141592653589793<U+3000>//<U+5186><U+5468><U+7387><U+306E><U+5BA3><U+8A00>
      |                              ^~~~~~~~
main.c:10:25: note: in expansion of macro 'PI'
   10 |     printf("%lf %lf\n", PI*r*r, 2*PI*r);
      |                         ^~
main.c:4:30: error: stray '\343' in program
    4 | #define PI  3.141592653589793<U+3000>//<U+5186><U+5468><U+7387><U+306E><U+5BA3><U+8A00>
      |                              ^~~~~~~~
main.c:10:35: note: in expansion of macro 'PI'
   10 |     printf("%lf %lf\n", PI*r*r, 2*PI*r);
      |                                   ^~
Language: C

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


Compiler output:
main.c:2:1: error: stray '\302' in program
    2 | <U+00A0>
      | ^~~~~~~~
main.c: In function 'main':
main.c:4:1: error: stray '\302' in program
    4 | <U+00A0><U+00A0>double r, a, b;
      | ^~~~~~~~
main.c:4:2: error: stray '\302' in program
    4 | <U+00A0><U+00A0>double r, a, b;
      |         ^~~~~~~~
main.c:5:1: error: stray '\302' in program
    5 | <U+00A0><U+00A0>scanf("%lf",&r);
      | ^~~~~~~~
main.c:5:2: error: stray '\302' in program
    5 | <U+00A0><U+00A0>scanf("%lf",&r);
      |         ^~~~~~~~
main.c:6:1: error: stray '\302' in program
    6 | <U+00A0><U+00A0>a = r*r*3.14159;
      | ^~~~~~~~
main.c:6:2: error: stray '\302' in program
    6 | <U+00A0><U+00A0>a = r*r*3.14159;
      |         ^~~~~~~~
main.c:7:1: error: stray '\302' in program
    7 | <U+00A0><U+00A0>b= 2*r*3.14159;
      | ^~~~~~~~
main.c:7:2: error: stray '\302' in program
    7 | <U+00A0><U+00A0>b= 2*r*3.14159;
      |         ^~~~~~~~
main.c:8:1: error: stray '\302' in program
    8 | <U+00A0>
      | ^~~~~~~~
main.c:9:1: error: stray '\302' in program
    9 | <U+00A0><U+00A0>printf("%.8lf %.8lf\n",a,b);
      | ^~~~~~~~
main.c:9:2: error: stray '\302' in program
    9 | <U+00A0><U+00A0>printf("%.8lf %.8lf\n",a,b);
      |         ^~~~~~~~
main.c:10:1: error: stray '\302' in program
   10 | <U+00A0><U+00A0>return 0;
      | ^~~~~~~~
main.c:10:2: error: stray '\302' in program
   10 | <U+00A0><U+00A0>return 0;
      |         ^~~~~~~~
Language: C

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


Compiler output:
main.c:2:1: error: stray '\302' in program
    2 | <U+00A0>
      | ^~~~~~~~
main.c: In function 'main':
main.c:4:1: error: stray '\302' in program
    4 | <U+00A0><U+00A0>double r, a, b;
      | ^~~~~~~~
main.c:4:2: error: stray '\302' in program
    4 | <U+00A0><U+00A0>double r, a, b;
      |         ^~~~~~~~
main.c:5:1: error: stray '\302' in program
    5 | <U+00A0><U+00A0>scanf("%lf",&r);
      | ^~~~~~~~
main.c:5:2: error: stray '\302' in program
    5 | <U+00A0><U+00A0>scanf("%lf",&r);
      |         ^~~~~~~~
main.c:6:1: error: stray '\302' in program
    6 | <U+00A0><U+00A0>a = r*r*3.14159265358979;
      | ^~~~~~~~
main.c:6:2: error: stray '\302' in program
    6 | <U+00A0><U+00A0>a = r*r*3.14159265358979;
      |         ^~~~~~~~
main.c:7:1: error: stray '\302' in program
    7 | <U+00A0><U+00A0>b= 2*r*3.14159265358979;
      | ^~~~~~~~
main.c:7:2: error: stray '\302' in program
    7 | <U+00A0><U+00A0>b= 2*r*3.14159265358979;
      |         ^~~~~~~~
main.c:8:1: error: stray '\302' in program
    8 | <U+00A0>
      | ^~~~~~~~
main.c:9:1: error: stray '\302' in program
    9 | <U+00A0><U+00A0>printf("%.6lf %.6lf\n",a,b);
      | ^~~~~~~~
main.c:9:2: error: stray '\302' in program
    9 | <U+00A0><U+00A0>printf("%.6lf %.6lf\n",a,b);
      |         ^~~~~~~~
main.c:10:1: error: stray '\302' in program
   10 | <U+00A0><U+00A0>return 0;
      | ^~~~~~~~
main.c:10:2: error: stray '\302' in program
   10 | <U+00A0><U+00A0>return 0;
      |         ^~~~~~~~
Language: C

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


Compiler output:
main.c:2:1: error: stray '\302' in program
    2 | <U+00A0>
      | ^~~~~~~~
main.c: In function 'main':
main.c:4:1: error: stray '\302' in program
    4 | <U+00A0><U+00A0>double r, a, b;
      | ^~~~~~~~
main.c:4:2: error: stray '\302' in program
    4 | <U+00A0><U+00A0>double r, a, b;
      |         ^~~~~~~~
main.c:5:1: error: stray '\302' in program
    5 | <U+00A0><U+00A0>scanf("%lf",&r);
      | ^~~~~~~~
main.c:5:2: error: stray '\302' in program
    5 | <U+00A0><U+00A0>scanf("%lf",&r);
      |         ^~~~~~~~
main.c:6:1: error: stray '\302' in program
    6 | <U+00A0><U+00A0>a = r*r*3.14159;
      | ^~~~~~~~
main.c:6:2: error: stray '\302' in program
    6 | <U+00A0><U+00A0>a = r*r*3.14159;
      |         ^~~~~~~~
main.c:7:1: error: stray '\302' in program
    7 | <U+00A0><U+00A0>b= 2*r*3.14159;
      | ^~~~~~~~
main.c:7:2: error: stray '\302' in program
    7 | <U+00A0><U+00A0>b= 2*r*3.14159;
      |         ^~~~~~~~
main.c:8:1: error: stray '\302' in program
    8 | <U+00A0>
      | ^~~~~~~~
main.c:9:1: error: stray '\302' in program
    9 | <U+00A0><U+00A0>printf("%.5lf %.5lf\n",a,b);
      | ^~~~~~~~
main.c:9:2: error: stray '\302' in program
    9 | <U+00A0><U+00A0>printf("%.5lf %.5lf\n",a,b);
      |         ^~~~~~~~
main.c:10:1: error: stray '\302' in program
   10 | <U+00A0><U+00A0>return 0;
      | ^~~~~~~~
main.c:10:2: error: stray '\302' in program
   10 | <U+00A0><U+00A0>return 0;
      |         ^~~~~~~~
Language: C

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


Compiler output:
main.c:2:1: error: stray '\302' in program
    2 | <U+00A0>
      | ^~~~~~~~
main.c: In function 'main':
main.c:4:1: error: stray '\302' in program
    4 | <U+00A0><U+00A0>double r, a, b;
      | ^~~~~~~~
main.c:4:2: error: stray '\302' in program
    4 | <U+00A0><U+00A0>double r, a, b;
      |         ^~~~~~~~
main.c:5:1: error: stray '\302' in program
    5 | <U+00A0><U+00A0>scanf("%lf",&r);
      | ^~~~~~~~
main.c:5:2: error: stray '\302' in program
    5 | <U+00A0><U+00A0>scanf("%lf",&r);
      |         ^~~~~~~~
main.c:6:1: error: stray '\302' in program
    6 | <U+00A0><U+00A0>a = r*r*3.14159265358979;
      | ^~~~~~~~
main.c:6:2: error: stray '\302' in program
    6 | <U+00A0><U+00A0>a = r*r*3.14159265358979;
      |         ^~~~~~~~
main.c:7:1: error: stray '\302' in program
    7 | <U+00A0><U+00A0>b= 2*r*3.14159265358979;
      | ^~~~~~~~
main.c:7:2: error: stray '\302' in program
    7 | <U+00A0><U+00A0>b= 2*r*3.14159265358979;
      |         ^~~~~~~~
main.c:8:1: error: stray '\302' in program
    8 | <U+00A0>
      | ^~~~~~~~
main.c:9:1: error: stray '\302' in program
    9 | <U+00A0><U+00A0>printf("%.4lf %.4lf\n",a,b);
      | ^~~~~~~~
main.c:9:2: error: stray '\302' in program
    9 | <U+00A0><U+00A0>printf("%.4lf %.4lf\n",a,b);
      |         ^~~~~~~~
main.c:10:1: error: stray '\302' in program
   10 | <U+00A0><U+00A0>return 0;
      | ^~~~~~~~
main.c:10:2: error: stray '\302' in program
   10 | <U+00A0><U+00A0>return 0;
      |         ^~~~~~~~
Language: C

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


Compiler output:
main.c:2:1: error: stray '\302' in program
    2 | <U+00A0>
      | ^~~~~~~~
main.c: In function 'main':
main.c:4:1: error: stray '\302' in program
    4 | <U+00A0><U+00A0>double r, a, b,pi;
      | ^~~~~~~~
main.c:4:2: error: stray '\302' in program
    4 | <U+00A0><U+00A0>double r, a, b,pi;
      |         ^~~~~~~~
main.c:5:1: error: stray '\302' in program
    5 | <U+00A0><U+00A0>scanf("%lf",&r);
      | ^~~~~~~~
main.c:5:2: error: stray '\302' in program
    5 | <U+00A0><U+00A0>scanf("%lf",&r);
      |         ^~~~~~~~
main.c:7:1: error: stray '\302' in program
    7 | <U+00A0><U+00A0>a = r*r*pi;
      | ^~~~~~~~
main.c:7:2: error: stray '\302' in program
    7 | <U+00A0><U+00A0>a = r*r*pi;
      |         ^~~~~~~~
main.c:8:1: error: stray '\302' in program
    8 | <U+00A0><U+00A0>b= 2*r*pi;
      | ^~~~~~~~
main.c:8:2: error: stray '\302' in program
    8 | <U+00A0><U+00A0>b= 2*r*pi;
      |         ^~~~~~~~
main.c:9:1: error: stray '\302' in program
    9 | <U+00A0>
      | ^~~~~~~~
main.c:10:1: error: stray '\302' in program
   10 | <U+00A0><U+00A0>printf("%.8lf %.8lf\n",a,b);
      | ^~~~~~~~
main.c:10:2: error: stray '\302' in program
   10 | <U+00A0><U+00A0>printf("%.8lf %.8lf\n",a,b);
      |         ^~~~~~~~
main.c:11:1: error: stray '\302' in program
   11 | <U+00A0><U+00A0>return 0;
      | ^~~~~~~~
main.c:11:2: error: stray '\302' in program
   11 | <U+00A0><U+00A0>return 0;
      |         ^~~~~~~~
Language: C

#include<stdio.h>

int main(){
 int r;
 scanf("%lf", &r);
 printf("%f ", r * r * Math.PI);
 printf("%f\n", 2 * r * Math.PI);
 return 0;
}


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

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



Compiler output:
main.c: In function 'main':
main.c:7:23: error: expected ')' before '~' token
    7 |     printf("%f %f\n",r~2*PI,2*r*PI);
      |           ~           ^
      |                       )
Language: C

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



Compiler output:
main.c: In function 'main':
main.c:7:23: error: invalid operands to binary ^ (have 'double' and 'double')
    7 |     printf("%f %f\n",r^2*PI,2*r*PI);
      |                       ^
Language: C

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



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

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



Compiler output:
main.c: In function 'main':
main.c:8:33: error: 'circus' undeclared (first use in this function); did you mean 'circum'?
    8 |     printf("%.6lf %.6lf\n",area,circus);
      |                                 ^~~~~~
      |                                 circum
main.c:8:33: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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


Compiler output:
main.c:2:2: error: invalid preprocessing directive #difine; did you mean #define?
    2 | #difine PI 3.141593
      |  ^~~~~~
      |  define
main.c: In function 'main':
main.c:7:26: error: 'PI' undeclared (first use in this function)
    7 |     printf("%f %f\n",r*r*PI,2.0*r*PI);
      |                          ^~
main.c:7:26: 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 area,,poridi,pi,r;
    pi=3.14159265358979323846;
    scanf("%lf",&r);
    if( r > 0 && r < 10000)
    {
        area=pi*r*r;
        poridi=2*pi*r;
        printf("%lf %lf\n",area,poridi);

    }
    return 0;
}



Compiler output:
main.c: In function 'main':
main.c:7:17: error: expected identifier or '(' before ',' token
    7 |     double area,,poridi,pi,r;
      |                 ^
main.c:8:5: error: 'pi' undeclared (first use in this function)
    8 |     pi=3.14159265358979323846;
      |     ^~
main.c:8:5: note: each undeclared identifier is reported only once for each function it appears in
main.c:9:18: error: 'r' undeclared (first use in this function)
    9 |     scanf("%lf",&r);
      |                  ^
main.c:13:9: error: 'poridi' undeclared (first use in this function)
   13 |         poridi=2*pi*r;
      |         ^~~~~~
Language: C

#include <stdio.h>

void area_circum(double radius, double *area, double *circum);

int main(void)
{
    double r, area, circum;

    printf("Please enter the radius of the circle: ");
    scanf("%lf", &r);

    area_circum(r, &area, &circum);

    printf(" %.6f %.6f\n",area,circum);
    return 0;
}

void area_circum(double radius, double *area, double *circum)
{
    double PIE = 3.141592653589 ;
    *area = PIE * r * r;
    *circum = PIE * r * 2;
}



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

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


Compiler output:
main.c: In function 'main':
main.c:6:1: error: stray '\302' in program
    6 | <U+00A0>
      | ^~~~~~~~
main.c:8:1: error: stray '\302' in program
    8 | <U+00A0>
      | ^~~~~~~~
main.c:10:1: error: stray '\302' in program
   10 | <U+00A0>
      | ^~~~~~~~
Language: C

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


Compiler output:
main.c:2:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    2 | int main{
      |         ^
main.c:8:10: warning: missing terminating " character
    8 |   printf("%lf %lf, l, S);
      |          ^
main.c:8:10: error: missing terminating " character
    8 |   printf("%lf %lf, l, S);
      |          ^~~~~~~~~~~~~~~~
Language: C

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


Compiler output:
main.c:2:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    2 | int main{
      |         ^
Language: C

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


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

#include <stdio.h>

int main() {

int a;
double x,y;

    scanf("%d \n", &a);
 x=a*a*3.1415926535
 y=2*a*3.1415926535
    printf("%f %f\n",x,y);
  

  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:9:20: error: expected ';' before 'y'
    9 |  x=a*a*3.1415926535
      |                    ^
      |                    ;
   10 |  y=2*a*3.1415926535
      |  ~
Language: C

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

int main(){
  double r, S, l, pi;
  cin >> r ;
  pi = 3.141592653589;
  S = pi * r * r;
  l = 2 * pi * r;
  cout << setprecision(20)<< S << " " << l << endl;

  return 0;
}


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

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

int main(){
  double r, S, l, pi;
  cin >> r ;
  pi = 3.141592653589;
  S = pi * r * r;
  l = 2 * pi * r;
  cout << setprecision(15)<< S << " " << l << endl;

  return 0;
}


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

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



Compiler output:
In file included from main.c:2:
main.c: In function 'main':
main.c:5:15: error: expected identifier or '(' before numeric constant
    5 |    double y,z,M_PI=3.14159265;
      |               ^~~~
Language: C

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



Compiler output:
In file included from main.c:2:
main.c: In function 'main':
main.c:5:15: error: expected identifier or '(' before numeric constant
    5 |    double y,z,M_PI=3.141592;
      |               ^~~~
Language: C

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


Compiler output:
In file included from main.c:2:
main.c: In function 'main':
main.c:4:17: error: expected identifier or '(' before numeric constant
    4 |    double r,y,z,M_PI=3.14159265;
      |                 ^~~~
Language: C

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


Compiler output:
In file included from main.c:2:
main.c: In function 'main':
main.c:4:17: error: expected identifier or '(' before numeric constant
    4 |    double r,y,z,M_PI=3.1415926535;
      |                 ^~~~
Language: C

#include <stdio.h>
#include<math.h>
int main(void){
    // Your code here!
    double r;
    scanf("%lf",&r);

    printf("%f %f",pi*r*r,2*pi*r); 
    
    return 0;
}



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

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


Compiler output:
main.c: In function 'main':
main.c:3:5: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    3 |     scanf("%d",&a);
      |     ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main(){
main.c:3:5: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    3 |     scanf("%d",&a);
      |     ^~~~~
main.c:3:5: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:4:5: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    4 |     printf("%.6f %.6f",a * a * M_PI,2 * a * M_PI);
      |     ^~~~~~
main.c:4:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:4:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:4:5: 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("%.6f %.6f",a * a * M_PI,2 * a * M_PI);
      |                                ^~~~
main.c:4:32: note: each undeclared identifier is reported only once for each function it appears in
main.c:5:9: error: implicit declaration of function 'getch' [-Wimplicit-function-declaration]
    5 |         getch();
      |         ^~~~~
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:7:9: error: implicit declaration of function 'getch'; did you mean 'getc'? [-Wimplicit-function-declaration]
    7 |         getch();
      |         ^~~~~
      |         getc
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:3:5: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    3 |     scanf("%d",&a);
      |     ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main(){
main.c:3:5: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    3 |     scanf("%d",&a);
      |     ^~~~~
main.c:3:5: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:4:5: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    4 |     printf("%.6f %.6f",a * a * M_PI,2 * a * M_PI);
      |     ^~~~~~
main.c:4:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:4:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:4:5: 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("%.6f %.6f",a * a * M_PI,2 * a * M_PI);
      |                                ^~~~
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(){
  int r;
  double p=acos(-1);
  scanf("%d",&r);
  printf("%f %f\n",p*n*n,2*p*r);
  return 0;
  
}



Compiler output:
main.c: In function 'main':
main.c:4:12: error: implicit declaration of function 'acos' [-Wimplicit-function-declaration]
    4 |   double p=acos(-1);
      |            ^~~~
main.c:2:1: note: include '<math.h>' or provide a declaration of 'acos'
    1 | #include<stdio.h>
  +++ |+#include <math.h>
    2 | int main(){
main.c:4:12: warning: incompatible implicit declaration of built-in function 'acos' [-Wbuiltin-declaration-mismatch]
    4 |   double p=acos(-1);
      |            ^~~~
main.c:4:12: note: include '<math.h>' or provide a declaration of 'acos'
main.c:6:22: error: 'n' undeclared (first use in this function)
    6 |   printf("%f %f\n",p*n*n,2*p*r);
      |                      ^
main.c:6:22: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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



Compiler output:
main.c: In function 'main':
main.c:4:14: error: implicit declaration of function 'acos' [-Wimplicit-function-declaration]
    4 |   double p = acos(-1);
      |              ^~~~
main.c:2:1: note: include '<math.h>' or provide a declaration of 'acos'
    1 | #include<stdio.h>
  +++ |+#include <math.h>
    2 | int main(){
main.c:4:14: warning: incompatible implicit declaration of built-in function 'acos' [-Wbuiltin-declaration-mismatch]
    4 |   double p = acos(-1);
      |              ^~~~
main.c:4:14: note: include '<math.h>' or provide a declaration of 'acos'
main.c:6:22: error: 'n' undeclared (first use in this function)
    6 |   printf("%f %f\n",p*n*n,2*p*r);
      |                      ^
main.c:6:22: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>

int main(){

int r = 0 ;
double pi = 3.141;

printf("半径の値を入力：");
scanf("%d" , &r );

printf("半径 r ：%d \n円周 l : %.2lf \n面積 S : %.2lf\n "
, r , 2*r*pi , r*r*pi );

return 0 ;

}

    ナイス 0

違反報告



Compiler output:
main.c:18:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before numeric constant
   18 |     ナイス 0
      |            ^
Language: C

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


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

#include <stdio.h>
#include <math.h>
int main()
{
 fouble r,m,s;
 scanf("%lf",&r);
 m=r*r*M_PI;
 s=2*r*M_PI;
 printf("%f %f\n",m,s);
}
 


Compiler output:
main.c: In function 'main':
main.c:5:2: error: unknown type name 'fouble'; did you mean 'double'?
    5 |  fouble r,m,s;
      |  ^~~~~~
      |  double
Language: C

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

    double r, 3.14159265359;
    
    scanf("%lf", &r);
    
    PI=3.14159265359;
    
    printf("%.5f %.5f\n", r*r*PI, 2*r*PI);
    
    return 0;
    
}



Compiler output:
main.c: In function 'main':
main.c:4:15: error: expected identifier or '(' before numeric constant
    4 |     double r, 3.14159265359;
      |               ^~~~~~~~~~~~~
main.c:8:5: error: 'PI' undeclared (first use in this function)
    8 |     PI=3.14159265359;
      |     ^~
main.c:8:5: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:7:35: error: expected ';' before 'L'
    7 |         S = r * r * 3.141592653589
      |                                   ^
      |                                   ;
    8 |         L = 2 * r * 3.141592653589
      |         ~
Language: C

#include<stdio.h>
int main()
{
 double r;
 double pi=3.141592653589;
 scanf("%lf",&r);

 if(0<r<10000)
  printf("%f%f\n",pi*r*r,2*pi*r);

 return0 ;
}


Compiler output:
main.c: In function 'main':
main.c:11:2: error: 'return0' undeclared (first use in this function)
   11 |  return0 ;
      |  ^~~~~~~
main.c:11:2: 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 radius;
  float area;
 
  float length;
  scanf("%f", &radius);

  area = M_PI * radius * radius;
 
  length =  2 * M_PI * radius;
  printf("円周の長さ: L = %.3f\n", length);
 
  return 0;
}



Compiler output:
main.c:1:9: error: #include expects "FILENAME" or <FILENAME>
    1 | #include(stdio.h)
      |         ^
main.c: In function 'main':
main.c:10:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
   10 |   scanf("%f", &radius);
      |   ^~~~~
main.c:3:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
    2 | #include <math.h>
  +++ |+#include <stdio.h>
    3 | int main(void)
main.c:10:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
   10 |   scanf("%f", &radius);
      |   ^~~~~
main.c:10:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:15:3: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   15 |   printf("円周の長さ: L = %.3f\n", length);
      |   ^~~~~~
main.c:15:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:15:3: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:15:3: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

#include <stdio.h>
#include <math.h>
 
using namespace std;
 
int main(){
    double r;
    scanf("%lf",&r);
    printf("%lf %lf\n",M_PI*r*r,2*M_PI*r);
}


Compiler output:
main.c:4:1: error: unknown type name 'using'
    4 | using namespace std;
      | ^~~~~
main.c:4:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'
    4 | using namespace std;
      |                 ^~~
Language: C

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


Compiler output:
main.c:4:1: error: unknown type name 'using'
    4 | using namespace std;
      | ^~~~~
main.c:4:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'
    4 | using namespace std;
      |                 ^~~
main.c:11:1: error: expected identifier or '(' before 'return'
   11 | return 0
      | ^~~~~~
Language: C

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

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



Compiler output:
In file included from main.c:1:
main.c: In function 'main':
main.c:7:14: error: expected identifier or '(' before numeric constant
    7 |   double b,c,M_PI;
      |              ^~~~
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:12:13: error: expected ';' before '}' token
   12 |     return 0
      |             ^
      |             ;
   13 | }
      | ~
Language: C

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


Compiler output:
main.c:1:19: warning: extra tokens at end of #include directive
    1 | #include<stdio.h> int main(void) { double r; double pi=3.141592653589; scanf("%lf",&r); if(0 < r < 10000) printf("%f %f\n",pi*r*r,2*pi*r); return 0; }
      |                   ^~~
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C



#include <iostream> #include <cstdio> #include <cmath> using namespace std; int main() { double r; cin >> r; printf("%lf %lf",r*r*M_PI,r*2.0*M_PI); return 0; } 


Compile Error Logs: 

 

Status 
Judge: 5/5 C++ CPU: 00:00 sec Memory: 3276 KB Length: 165 B 2017-06-15 16:07 
Results for testcases 
Case # Verdict CPU Time Memory In Out Case Name 

Case #1 : Accepted 00:00 3100 8 23 testcase_00 
Case #2 : Accepted 00:00 3276 6 18 testcase_01 
Case #3 : Accepted 00:00 3056 5 18 testcase_02 
Case #4 : Accepted 00:00 3276 9 29 testcase_03 
Case #5 : Accepted 00:00 3136 11 18 testcase_04 



 < prev |  /   | next >      

 

Judge Input #  (  | )  Judge Output #  (  | ) 


  

 



 



Compiler output:
main.c:3:21: warning: extra tokens at end of #include directive
    3 | #include <iostream> #include <cstdio> #include <cmath> using namespace std; int main() { double r; cin >> r; printf("%lf %lf",r*r*M_PI,r*2.0*M_PI); return 0; }
      |                     ^
main.c:3:10: fatal error: iostream: No such file or directory
    3 | #include <iostream> #include <cstdio> #include <cmath> using namespace std; int main() { double r; cin >> r; printf("%lf %lf",r*r*M_PI,r*2.0*M_PI); return 0; }
      |          ^~~~~~~~~~
compilation terminated.
Language: C

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


Compiler output:
main.c:1:19: warning: extra tokens at end of #include directive
    1 | #include<stdio.h> int main( ){ double r,t,L,S; scanf("%lf",&r);
      |                   ^~~
main.c:2:1: warning: data definition has no type or storage class
    2 | t=3.141592653589;
      | ^
main.c:2:1: error: type defaults to 'int' in declaration of 't' [-Wimplicit-int]
main.c:3:2: warning: data definition has no type or storage class
    3 |  L=2*t*r; S=t*r*r;
      |  ^
main.c:3:2: error: type defaults to 'int' in declaration of 'L' [-Wimplicit-int]
main.c:3:8: error: 'r' undeclared here (not in a function)
    3 |  L=2*t*r; S=t*r*r;
      |        ^
main.c:3:11: warning: data definition has no type or storage class
    3 |  L=2*t*r; S=t*r*r;
      |           ^
main.c:3:11: error: type defaults to 'int' in declaration of 'S' [-Wimplicit-int]
main.c:4:9: error: expected declaration specifiers or '...' before string constant
    4 |  printf("%.6lf %.6lf\n",S,L);
      |         ^~~~~~~~~~~~~~~
main.c:4:25: error: expected declaration specifiers or '...' before 'S'
    4 |  printf("%.6lf %.6lf\n",S,L);
      |                         ^
main.c:4:27: error: expected declaration specifiers or '...' before 'L'
    4 |  printf("%.6lf %.6lf\n",S,L);
      |                           ^
main.c:5:2: error: expected identifier or '(' before 'return'
    5 |  return 0; }
      |  ^~~~~~
main.c:5:12: error: expected identifier or '(' before '}' token
    5 |  return 0; }
      |            ^
Language: C

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


Compiler output:
main.c:1:19: warning: extra tokens at end of #include directive
    1 | #include<stdio.h> int main( )
      |                   ^~~
main.c:2:1: error: expected identifier or '(' before '{' token
    2 | { double r,t,L,S;
      | ^