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

#include <stdio.h>
int main()
{
   double a, b;

   scanf("%lf", &a);
   scanf("%lf", &b)

   if (a >= 1 && b <= 100){
      s = a * b;
      l = a * 2 + b * 2;
      printf("%lf %lf\n", s, l);
   }
   return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:20: error: expected ';' before 'if'
    7 |    scanf("%lf", &b)
      |                    ^
      |                    ;
    8 | 
    9 |    if (a >= 1 && b <= 100){
      |    ~~
Language: C

#include <stdio.h>
int main()
{
   double a, b;

   scanf("%lf %lf", &a, &b);

   if (a >= 1 && b <= 100){
      s = a * b;
      l = a * 2 + b * 2;
      printf("%lf %lf\n", s, l);
   }
   return 0;
}

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

#include<stdio.h>

int main(void)
   int a , b, s, x;
   scanf("%d %d", &a, &b);
   s = a * b;
   x = 2 * ( a + b );
   printf("%d %d", s ,x );

Compiler output:
main.c: In function 'main':
main.c:5:4: error: expected declaration specifiers before 'scanf'
    5 |    scanf("%d %d", &a, &b);
      |    ^~~~~
main.c:6:4: error: expected declaration specifiers before 's'
    6 |    s = a * b;
      |    ^
main.c:7:4: error: expected declaration specifiers before 'x'
    7 |    x = 2 * ( a + b );
      |    ^
main.c:8:4: error: expected declaration specifiers before 'printf'
    8 |    printf("%d %d", s ,x );
      |    ^~~~~~
main.c:3:5: error: old-style parameter declarations in prototyped function definition
    3 | int main(void)
      |     ^~~~
main.c:9: error: expected '{' at end of input
Language: C

include <stdio.h>
int main(){

int a, b, menseki, shuui;

scanf("%d" "%d",&a,&b);

menseki = a*b;
shuui = 2*a + 2*b;

printf("%d %d\n",menseki, shuui);

return 0;
}

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

include <stdio.h>
int main(){
 
int a, b, menseki, shuui;
 
scanf("%d", "%d",&a,&b);
 
menseki = a*b;
shuui = 2*a + 2*b;
 
printf("%d %d\n",menseki, shuui);
 
return 0;
}

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

include <stdio.h>
int main(){
  
int a, b, menseki, shuui;
  
scanf("%d" "%d",&a &b);
  
menseki = a*b;
shuui = 2*a + 2*b;
  
printf("%d %d\n",menseki, shuui);
  
return 0;

}

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

include <stdio.h>
int main(){
   
int a, b, menseki, shuui;
   
scanf("%d %d",&a &b);
   
menseki = a*b;
shuui = 2*a + 2*b;
   
printf("%d %d\n",menseki, shuui);
   
return 0;
 
}

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

include <stdio.h>
int main(){
    
int a, b, menseki, shuui;
    
scanf("%d %d",&a,&b);
    
menseki = a*b;
shuui = 2*a + 2*b;
    
printf("%d %d\n",menseki, shuui);
    
return 0;
  
}

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



include <stdio.h>
int main(){
     
int a, b, menseki, shuui;
     
scanf("%d %d",&a,&b);
     
menseki = a*b;
shuui = 2*a + 2*b;
     
printf( "%d %d\n",menseki, shuui );
     
return 0;
   
}

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

include <stdio.h>
int main(){
      
int a, b, menseki, shuui;
      
scanf("%d %d",&a,&b);
      
menseki = a*b;
shuui = 2*a + 2*b;
      
printf( "%d %d\n",menseki, shuui );
      
return 0;
    
}

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

#include <stdio.h>
int main(){
    int i,j;
    scanf("%d %d",&i,&j);
    printf(%d %d,i*j,2*i+2j);
    }

Compiler output:
main.c: In function 'main':
main.c:5:12: error: expected expression before '%' token
    5 |     printf(%d %d,i*j,2*i+2j);
      |            ^
Language: C

#include<stdio.h>

  int main(void){
  int a,b;
  scanf("%d%d",&a,&b);
  	s=a*b;
  	l=2*a+2*b;
  printf("%d %d",);
  return 0; 
 }

Compiler output:
main.c: In function 'main':
main.c:6:9: error: 's' undeclared (first use in this function)
    6 |         s=a*b;
      |         ^
main.c:6:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:9: error: 'l' undeclared (first use in this function)
    7 |         l=2*a+2*b;
      |         ^
main.c:8:18: error: expected expression before ')' token
    8 |   printf("%d %d",);
      |                  ^
Language: C

#include<stdio.h>

  int main(void){
  int a,b;
  scanf("%d%d",&a,&b);
  	s=a*b;
  	l=(2*a)+(2*b);
  printf("%d %d",);
  return 0; 
 }

Compiler output:
main.c: In function 'main':
main.c:6:9: error: 's' undeclared (first use in this function)
    6 |         s=a*b;
      |         ^
main.c:6:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:9: error: 'l' undeclared (first use in this function)
    7 |         l=(2*a)+(2*b);
      |         ^
main.c:8:18: error: expected expression before ')' token
    8 |   printf("%d %d",);
      |                  ^
Language: C

#include<stdio.h>

  int main(void){
  int a,b;
  scanf("%d%d",&a,&b);
  	s=a*b;
  	l=(2*a)+(2*b);
  printf("%d %d",a,b);
  return 0; 
 }

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

#include<stdio.h>

  int main(void){
  int a,b,s,l;
  scanf("%d %d",&a ,%b);

  	s=a*b;
  	l=(2*a)+(2*b);
  printf("%d %d",s,l);
  return 0; 
 }

Compiler output:
main.c: In function 'main':
main.c:5:21: error: expected expression before '%' token
    5 |   scanf("%d %d",&a ,%b);
      |                     ^
Language: C

#include<stdio.h>

  int main(void){
  int a,b,s,l;
  scanf("%d %d",&a ,%b);

  	s=a*b;
  	l=2*a+2*b;
  printf("%d %d",s,l);
  return 0; 
 }

Compiler output:
main.c: In function 'main':
main.c:5:21: error: expected expression before '%' token
    5 |   scanf("%d %d",&a ,%b);
      |                     ^
Language: C

include<stdio.h>                                                         
                                                                          
int main(void){                                                           
                                                                          
  int a,b,s,l;                                                            
                                                                          
  scanf("%d %d",&a,&b);                                                   
                                                                          
  s = a * b;                                                              
  l = 2 * (a + b);                                                        
                                                                          
  printf("%d %d",s,l);                                                    
                                                                          
  return 0;                                                               
}      

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

#include<stdio.h>

main(){
	int a,b;
	scanf("%d %d",%a ,%b);
	printf("%d %d",a*b ,(a+b)*2);
}

Compiler output:
main.c:3:1: error: return type defaults to 'int' [-Wimplicit-int]
    3 | main(){
      | ^~~~
main.c: In function 'main':
main.c:5:23: error: expected expression before '%' token
    5 |         scanf("%d %d",%a ,%b);
      |                       ^
Language: C

#include<stdio.h>

int main(){
	int a,b;
	scanf("%d %d", %a, %b);
	printf("%d %d", a*b, (a+b)*2);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:24: error: expected expression before '%' token
    5 |         scanf("%d %d", %a, %b);
      |                        ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:3:17: error: expected identifier or '(' before ',' token
    3 |         int a,b,,m,n;
      |                 ^
main.c:4:14: error: expected ';' before '{' token
    4 |         scanf{"%d",&a};
      |              ^
      |              ;
main.c:5:14: error: expected ';' before '{' token
    5 |         scanf{"%d",&b};
      |              ^
      |              ;
main.c:6:9: error: 'm' undeclared (first use in this function)
    6 |         m = a * b;
      |         ^
main.c:6:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:9: error: 'n' undeclared (first use in this function)
    7 |         n = 2*a+2*b;
      |         ^
main.c:8:25: error: expected ';' before 'printf'
    8 |         printf("%d\n",m)
      |                         ^
      |                         ;
    9 |         printf("%d\n",n)
      |         ~~~~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:4:14: error: expected ';' before '{' token
    4 |         scanf{"%d",&a};
      |              ^
      |              ;
main.c:5:14: error: expected ';' before '{' token
    5 |         scanf{"%d",&b};
      |              ^
      |              ;
main.c:8:25: error: expected ';' before 'printf'
    8 |         printf("%d\n",m)
      |                         ^
      |                         ;
    9 |         printf("%d\n",n)
      |         ~~~~~~
Language: C

#include<stdio.h>
int main(){
      int a,b,result,Surroundings,square;
      scanf("%d",&a);
      scanf("%d",&b);
      square=a*b;
      Surroundings=a*2+b*2;
printf("%d\n",square) printf("%d\n",Surroundings);
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:22: error: expected ';' before 'printf'
    8 | printf("%d\n",square) printf("%d\n",Surroundings);
      |                      ^~~~~~~
      |                      ;
Language: C

#include<stdio.h>
int.main(){
      int a,b,men,syu;
      scanf("%d",a,b);
      men = a*b;
      syu = 2*(a+b);
      printf(%d\n,men,syu);
      return 0;
}

Compiler output:
main.c:2:4: error: expected identifier or '(' before '.' token
    2 | int.main(){
      |    ^
main.c:7:16: error: stray '\' in program
    7 |       printf(%d\n,men,syu);
      |                ^
Language: C

#include<stdio.h>
int.main(){
      int a,b,men,syu;
      scanf("%d",a,b);
      men = a*b;
      syu = 2*(a+b);
      printf("%d\n",men,syu);
      return 0;
}

Compiler output:
main.c:2:4: error: expected identifier or '(' before '.' token
    2 | int.main(){
      |    ^
Language: C

#include<stdio.h>
 int main(void)
{
	int a,b,s,l;
	 
	scanf("%d",&a,);
	scanf(" %d",&b);
	
	l=2*a+2*b;
	s=a*b;
	
	printf("%d %d",s,l);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:23: error: expected expression before ')' token
    6 |         scanf("%d",&a,);
      |                       ^
Language: C

#include <stdio.h>

int main(void){

int a=0, b=0;

scanf("%d" "%d", &a &b);

printf("%d %d\n", a*b, (a+b)*2);

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:21: error: invalid operands to binary & (have 'int *' and 'int')
    7 | scanf("%d" "%d", &a &b);
      |                  ~~ ^
      |                  |
      |                  int *
Language: C

#include<stdio.h>
int main(){
int a,b,c,d;
cin >> a >> b ;
c = a * b;
d =2*(a+b);
printf("%d\n",c,d);
return 0;
???

Compiler output:
main.c: In function 'main':
main.c:4:1: error: 'cin' undeclared (first use in this function)
    4 | cin >> a >> b ;
      | ^~~
main.c:4:1: note: each undeclared identifier is reported only once for each function it appears in
main.c:9:1: error: expected expression before '?' token
    9 | ???
      | ^
main.c:9:3: error: expected declaration or statement at end of input
    9 | ???
      |   ^
Language: C

#include<stdio.h>
int main(){
int a,b,c,d;
cin >> a >> b ;
c = a * b;
d =2*(a+b);
printf(c,d);
return 0;
???

Compiler output:
main.c: In function 'main':
main.c:4:1: error: 'cin' undeclared (first use in this function)
    4 | cin >> a >> b ;
      | ^~~
main.c:4:1: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:8: error: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion]
    7 | printf(c,d);
      |        ^
      |        |
      |        int
In file included from main.c:1:
/usr/include/stdio.h:363:43: note: expected 'const char * restrict' but argument is of type 'int'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
main.c:9:1: error: expected expression before '?' token
    9 | ???
      | ^
main.c:9:3: error: expected declaration or statement at end of input
    9 | ???
      |   ^
Language: C

#include<stdio.h>
int main(){
int a,b,c,d;
cin >> a >> b ;
c = a * b;
d = 2 * ( a + b );
printf(c,d);
return 0;
???

Compiler output:
main.c: In function 'main':
main.c:4:1: error: 'cin' undeclared (first use in this function)
    4 | cin >> a >> b ;
      | ^~~
main.c:4:1: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:8: error: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion]
    7 | printf(c,d);
      |        ^
      |        |
      |        int
In file included from main.c:1:
/usr/include/stdio.h:363:43: note: expected 'const char * restrict' but argument is of type 'int'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
main.c:9:1: error: expected expression before '?' token
    9 | ???
      | ^
main.c:9:3: error: expected declaration or statement at end of input
    9 | ???
      |   ^
Language: C

#include<stdio.h>
int main(){
int a,b,c,syuu;
scanf("%d %d ", &a,&b);
c = a * b;
syuu =2*(a+b);
printf("%d %d",c,syuu);
return 0;
???

Compiler output:
main.c: In function 'main':
main.c:9:1: error: expected expression before '?' token
    9 | ???
      | ^
main.c:9:3: error: expected declaration or statement at end of input
    9 | ???
      |   ^
Language: C

#include<stdio.h>
int main(){
int a,b,c,syuu;
scanf("%d %d ", &a,&b);
c = a * b;
syuu =2*(a+b);
printf("%d %d",&c,&syuu);
return 0;
???

Compiler output:
main.c: In function 'main':
main.c:9:1: error: expected expression before '?' token
    9 | ???
      | ^
main.c:9:3: error: expected declaration or statement at end of input
    9 | ???
      |   ^
Language: C

#include<stdio.h>
int main(){
int a,b,c,z;
scanf("%d %d ", &a,&b);
c = a * b;
z =2*(a+b);
printf("%d %d",&c,&z);
return 0;
???

Compiler output:
main.c: In function 'main':
main.c:9:1: error: expected expression before '?' token
    9 | ???
      | ^
main.c:9:3: error: expected declaration or statement at end of input
    9 | ???
      |   ^
Language: C

#include<stdio.h>
int main(){
        int a,b,wa,seki;
        scanf("%d %d", &a &b);
	wa =  a + b + a + b;
	seki =  a * b;
	printf("%d %d\n", wa,seki);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:27: error: invalid operands to binary & (have 'int *' and 'int')
    4 |         scanf("%d %d", &a &b);
      |                        ~~ ^
      |                        |
      |                        int *
Language: C

#include<stdio.h>

int main(void){


int a,b,s,l;


scanf("%d %d",&a,b);


s=a*b;


 printf("??¢??????%d??§??????\n",a,b,l);


l=2a+2b;


 printf("??¨????????????%d??§??????\n",a,b,l);


 return 0;


}

Compiler output:
main.c: In function 'main':
main.c:18:3: error: invalid suffix "a" on integer constant
   18 | l=2a+2b;
      |   ^~
main.c:18:6: error: invalid suffix "b" on integer constant
   18 | l=2a+2b;
      |      ^~
Language: C

#include<stdio.h>

int main(void)


{


 int length = 0;


 int height = 0;


 int area = 0;


 int cir = 0;





scanf("%d,%d",&length,&height);


area = length*height;


cir = lenght*2 + height*2;





printf("%d %d\n",area,cir);





return 0;


}

Compiler output:
main.c: In function 'main':
main.c:30:7: error: 'lenght' undeclared (first use in this function); did you mean 'length'?
   30 | cir = lenght*2 + height*2;
      |       ^~~~~~
      |       length
main.c:30:7: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>

int main(void)


{


 int length = 0;


 int height = 0;


 int area = 0;


 int cir = 0;





 scanf("%d,%d",&length,&height);


 area = length*height;


 cir = lenght*2 + height*2;





 printf("%d %d\n",area,cir);





 return 0;


}

Compiler output:
main.c: In function 'main':
main.c:30:8: error: 'lenght' undeclared (first use in this function); did you mean 'length'?
   30 |  cir = lenght*2 + height*2;
      |        ^~~~~~
      |        length
main.c:30:8: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>

int main(void)


{


 int length = 0;


 int height = 0;


 int area = 0;


 int cir = 0;

 scanf("%d,%d",&length,&height);

 area = length*height;

 cir = lenght*2 + height*2;

 printf("%d %d\n",area,cir);

 return 0;


}

Compiler output:
main.c: In function 'main':
main.c:24:8: error: 'lenght' undeclared (first use in this function); did you mean 'length'?
   24 |  cir = lenght*2 + height*2;
      |        ^~~~~~
      |        length
main.c:24:8: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>

int main(void)


{

 int length = 0;

 int height = 0;

 int area = 0;

 int cir = 0;

 
 scanf("%d,%d",&length,&height);

 
 area = length*height;

 
 cir = lenght*2 + height*2;

 
 printf("%d %d\n",area,cir);

 
 return 0;


}

Compiler output:
main.c: In function 'main':
main.c:23:8: error: 'lenght' undeclared (first use in this function); did you mean 'length'?
   23 |  cir = lenght*2 + height*2;
      |        ^~~~~~
      |        length
main.c:23:8: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>

int main(void)


{


 int length = 0;


 int height = 0;


 int area = 0;


 int cir = 0;





scanf("%d %d",&length,&height);


area = length*height;


cir = lengtht*2 + height*2;





printf("%d %d\n",area,cir);





return 0;


}

Compiler output:
main.c: In function 'main':
main.c:30:7: error: 'lengtht' undeclared (first use in this function); did you mean 'length'?
   30 | cir = lengtht*2 + height*2;
      |       ^~~~~~~
      |       length
main.c:30:7: note: each undeclared identifier is reported only once for each function it appears in
Language: C

include<stdio.h>
int main() {
        float a,b,seki,sho;
        a=3;
        b=5;
        seki=a*b;
        sho=2*a+2*b;
        printf("a*b=%f\n",seki);
        printf("2*a+2*b=%f\n",sho);
        return 0;
}

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

#include<stdio.h>

int main(void)
{
int a,b,n,m;
scanf("%d",&a);
scanf("%d",&b);
n = a*b;
m = (a+b)*2;
printf("%d %d",n,m);

return???0;
}

Compiler output:
main.c: In function 'main':
main.c:12:7: error: expected expression before '?' token
   12 | return???0;
      |       ^
Language: C

#include <stdio.h>

int main(void)
{
int a,b,n,m;
scanf("%d",&a);
scanf("%d",&b);
n = a*b;
m = (a+b)*2;
printf("%d ",n);
printf("%d\n",m);

return???0;
}

Compiler output:
main.c: In function 'main':
main.c:13:7: error: expected expression before '?' token
   13 | return???0;
      |       ^
Language: C

#include<stdio.h>

int main(void){

 int a b c d;

 scanf("%d %d",&a,&b);
 c = 2*(a+b);

 d = a*b;

 printf("%d %d\n",c,d);

 return 0;

}

Compiler output:
main.c: In function 'main':
main.c:5:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'b'
    5 |  int a b c d;
      |        ^
main.c:5:8: error: unknown type name 'b'
main.c:5:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'd'
    5 |  int a b c d;
      |            ^
main.c:7:17: error: 'a' undeclared (first use in this function)
    7 |  scanf("%d %d",&a,&b);
      |                 ^
main.c:7:17: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:20: error: 'b' undeclared (first use in this function)
    7 |  scanf("%d %d",&a,&b);
      |                    ^
main.c:8:2: error: 'c' undeclared (first use in this function)
    8 |  c = 2*(a+b);
      |  ^
main.c:10:2: error: 'd' undeclared (first use in this function)
   10 |  d = a*b;
      |  ^
Language: C

#include<stdio.h>

int main(void){

 int a:
int b:
int c; 
int d;

 scanf("%d %d",&a,&b);
 c = 2*(a+b);

 d = a*b;

 printf("%d %d\n",c,d);

 return 0;

}

Compiler output:
main.c: In function 'main':
main.c:5:7: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
    5 |  int a:
      |       ^
main.c:5:7: error: expected expression before ':' token
main.c:10:17: error: 'a' undeclared (first use in this function)
   10 |  scanf("%d %d",&a,&b);
      |                 ^
main.c:10:17: note: each undeclared identifier is reported only once for each function it appears in
main.c:10:20: error: 'b' undeclared (first use in this function)
   10 |  scanf("%d %d",&a,&b);
      |                    ^
main.c:11:2: error: 'c' undeclared (first use in this function)
   11 |  c = 2*(a+b);
      |  ^
Language: C

#include <stdio.h>

int main(){
        int a b;
        scanf("%d %d" ,&a , &b);
        printf("%d %d\n",a*b,a*2+b*2);
        return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'b'
    4 |         int a b;
      |               ^
main.c:4:15: error: 'b' undeclared (first use in this function)
main.c:4:15: note: each undeclared identifier is reported only once for each function it appears in
main.c:5:25: error: 'a' undeclared (first use in this function)
    5 |         scanf("%d %d" ,&a , &b);
      |                         ^
Language: C

#include <stdio.h>

int main(void){
	int a, b,;

	scanf("%d%d", &a, &b);
	printf("%d %d\n", a*b, a*2+b*2);

	return 0;
}

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

#include<stdio.h>
int main(void)
{
	int a,b;
	scanf("%d %d",&a,&b);
	printf("%d %d\n",a*b,(2*a)+(2*b));

return 0;

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

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

Compiler output:
main.c: In function 'main':
main.c:12:22: error: 'c' undeclared (first use in this function)
   12 | printf("%d %d %lf\n",c,d,r);
      |                      ^
main.c:12:22: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:12:22: error: 'c' undeclared (first use in this function)
   12 | printf("%d %d %lf\n",c,d,r);
      |                      ^
main.c:12:22: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>

int main(void)

{

int a.b.s.m;


scanf("%d",&a);


scanf("%d",&b);


s=a*b;


m=a+a+b+b;


printf("%d %d\n",s,m);


return 0;

}

Compiler output:
main.c: In function 'main':
main.c:7:6: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
    7 | int a.b.s.m;
      |      ^
main.c:7:6: error: expected expression before '.' token
main.c:10:13: error: 'a' undeclared (first use in this function)
   10 | scanf("%d",&a);
      |             ^
main.c:10:13: note: each undeclared identifier is reported only once for each function it appears in
main.c:13:13: error: 'b' undeclared (first use in this function)
   13 | scanf("%d",&b);
      |             ^
main.c:16:1: error: 's' undeclared (first use in this function)
   16 | s=a*b;
      | ^
main.c:19:1: error: 'm' undeclared (first use in this function)
   19 | m=a+a+b+b;
      | ^
Language: C

#include<stdio.h>
int main(){
	int a,b,
	scanf("%d",&a);
	scanf("&d",&b);
	menseki=a*b;
	mawari=a*2+b*2
	printf("a*b %d\n",menseki);
	printf("a*2+b*2 %d\n",mawari);
	return 0
}

Compiler output:
main.c: In function 'main':
main.c:4:15: error: expected declaration specifiers or '...' before string constant
    4 |         scanf("%d",&a);
      |               ^~~~
main.c:4:20: error: expected declaration specifiers or '...' before '&' token
    4 |         scanf("%d",&a);
      |                    ^
main.c:6:9: error: 'menseki' undeclared (first use in this function)
    6 |         menseki=a*b;
      |         ^~~~~~~
main.c:6:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:9: error: 'mawari' undeclared (first use in this function)
    7 |         mawari=a*2+b*2
      |         ^~~~~~
main.c:7:23: error: expected ';' before 'printf'
    7 |         mawari=a*2+b*2
      |                       ^
      |                       ;
    8 |         printf("a*b %d\n",menseki);
      |         ~~~~~~         
main.c:10:17: error: expected ';' before '}' token
   10 |         return 0
      |                 ^
      |                 ;
   11 | }
      | ~
Language: C

#include <stdio.h>
int main(void){
	int a,b;
	int area,length;

	scanf("%d %d\n",&a, %b);
	if(1<=a && b<=100){
		area = a*b;
		length = A *2 + b *2;
		printf("%d %d\n", area, length)
	}

	return 0;

}

Compiler output:
main.c: In function 'main':
main.c:6:29: error: expected expression before '%' token
    6 |         scanf("%d %d\n",&a, %b);
      |                             ^
main.c:9:26: error: 'A' undeclared (first use in this function)
    9 |                 length = A *2 + b *2;
      |                          ^
main.c:9:26: note: each undeclared identifier is reported only once for each function it appears in
main.c:10:48: error: expected ';' before '}' token
   10 |                 printf("%d %d\n", area, length)
      |                                                ^
      |                                                ;
   11 |         }
      |         ~
Language: C

#include <stdio.h>
int main(void){
	int a,b;
	int area,length;

	scanf("%d %d\n",&a, %b);

	if(a=>1 && b<=100){
		area = a*b;
		length = A *2 + b *2;
		printf("%d %d\n", area, length)
	}

	return 0;

}

Compiler output:
main.c: In function 'main':
main.c:6:29: error: expected expression before '%' token
    6 |         scanf("%d %d\n",&a, %b);
      |                             ^
main.c:8:14: error: expected expression before '>' token
    8 |         if(a=>1 && b<=100){
      |              ^
main.c:10:26: error: 'A' undeclared (first use in this function)
   10 |                 length = A *2 + b *2;
      |                          ^
main.c:10:26: note: each undeclared identifier is reported only once for each function it appears in
main.c:11:48: error: expected ';' before '}' token
   11 |                 printf("%d %d\n", area, length)
      |                                                ^
      |                                                ;
   12 |         }
      |         ~
Language: C

#include <stdio.h>
int main(void){
	int a,b;
	int area,length;

	scanf("%d %d\n",&a, &b);

	if(a=>1 && b<=100){
		area = a*b;
		length = A *2 + b *2;
		printf("%d %d\n", area, length)
	}

	return 0;

}

Compiler output:
main.c: In function 'main':
main.c:8:14: error: expected expression before '>' token
    8 |         if(a=>1 && b<=100){
      |              ^
main.c:10:26: error: 'A' undeclared (first use in this function)
   10 |                 length = A *2 + b *2;
      |                          ^
main.c:10:26: note: each undeclared identifier is reported only once for each function it appears in
main.c:11:48: error: expected ';' before '}' token
   11 |                 printf("%d %d\n", area, length)
      |                                                ^
      |                                                ;
   12 |         }
      |         ~
Language: C

#include <stdio.h>

int main(void){
	int a,b;
	int area,length;

	scanf("%d %d\n",&a, &b);

	if(a=>1 && b<=100){
		area = a*b;
		length = a * 2 + b *2;
		printf("%d %d\n", area, length)
	}

	return 0;

}

Compiler output:
main.c: In function 'main':
main.c:9:14: error: expected expression before '>' token
    9 |         if(a=>1 && b<=100){
      |              ^
main.c:12:48: error: expected ';' before '}' token
   12 |                 printf("%d %d\n", area, length)
      |                                                ^
      |                                                ;
   13 |         }
      |         ~
Language: C

#include <stdio.h>

int main(void){
	int a,b;
	int area, length;

	scanf("%d %d\n",&a, &b);

	if(a=>1 && b<=100){
		area = a*b;
		length =(a * 2) + (b * 2);
		printf("%d %d\n", area, length)
	}

	return 0;

}

Compiler output:
main.c: In function 'main':
main.c:9:14: error: expected expression before '>' token
    9 |         if(a=>1 && b<=100){
      |              ^
main.c:12:48: error: expected ';' before '}' token
   12 |                 printf("%d %d\n", area, length)
      |                                                ^
      |                                                ;
   13 |         }
      |         ~
Language: C

#include <stdio.h>

int main(void){
	int a, b;
	int area, length;

	scanf("%d %d\n",&a, &b);

	if(a=>1 && b<=100){
		area = a * b;
		length =(a * 2) + (b * 2);
		printf("%d %d\n", area, length)
	}

	return 0;

}

Compiler output:
main.c: In function 'main':
main.c:9:14: error: expected expression before '>' token
    9 |         if(a=>1 && b<=100){
      |              ^
main.c:12:48: error: expected ';' before '}' token
   12 |                 printf("%d %d\n", area, length)
      |                                                ^
      |                                                ;
   13 |         }
      |         ~
Language: C

int main()
{
	int a;
	int b;
	
	/* ????????? */
	a = 0;
	b - 0;
	
	/* ???????????????????¨????????????????????????? */
	scanf("%d %d, a, b );
	
	/* ?????? */
	printf("%d %d\n", a * b, ( a + b ) * 2 );
	
	return 0;
	
}

Compiler output:
main.c: In function 'main':
main.c:11:9: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
   11 |         scanf("%d %d, a, b );
      |         ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main()
main.c:11:9: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
   11 |         scanf("%d %d, a, b );
      |         ^~~~~
main.c:11:9: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:11:15: warning: missing terminating " character
   11 |         scanf("%d %d, a, b );
      |               ^
main.c:11:15: error: missing terminating " character
   11 |         scanf("%d %d, a, b );
      |               ^~~~~~~~~~~~~~~
main.c:14:9: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   14 |         printf("%d %d\n", a * b, ( a + b ) * 2 );
      |         ^~~~~~
main.c:14:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:14:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:14:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:14:49: error: expected ')' before ';' token
   14 |         printf("%d %d\n", a * b, ( a + b ) * 2 );
      |                                                 ^
      |                                                 )
main.c:11:14: note: to match this '('
   11 |         scanf("%d %d, a, b );
      |              ^
main.c:14:9: error: passing argument 1 of 'scanf' makes pointer from integer without a cast [-Wint-conversion]
   14 |         printf("%d %d\n", a * b, ( a + b ) * 2 );
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |         |
      |         int
main.c:14:9: note: expected 'const char *' but argument is of type 'int'
main.c:16:18: error: expected ';' before '}' token
   16 |         return 0;
      |                  ^
      |                  ;
   17 | 
   18 | }
      | ~
Language: C

int main()
{
	int a;
	int b;
	
	/* ????????? */
	a = 0;
	b - 0;
	
	/* ???????????????????¨????????????????????????? */
	scanf("%d %d"a, a, b );
	
	/* ?????? */
	printf("%d %d\n", a * b, ( a + b ) * 2 );
	
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:9: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
   11 |         scanf("%d %d"a, a, b );
      |         ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main()
main.c:11:9: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
   11 |         scanf("%d %d"a, a, b );
      |         ^~~~~
main.c:11:9: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:11:22: error: expected ')' before 'a'
   11 |         scanf("%d %d"a, a, b );
      |              ~       ^
      |                      )
main.c:14:9: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   14 |         printf("%d %d\n", a * b, ( a + b ) * 2 );
      |         ^~~~~~
main.c:14:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:14:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:14:9: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

void main
{
	int S;			/* ??\?????? */
	int hou;		/* ??????   */
	int min;		/* ???     */
	int sec;		/* ?§?     */
	int tmp;		/* ????\???¨ */
	
	/* input */
	scanf(S,%d);
	tmp = S;
	
	/* ??????????¨????	*/
	hou = S / 360;
	tmp = S % 360;
	
	/* ???????¨????		*/
	min = tmp / 60;
	tmp = tmp % 60;
	
	/* ?§?????¨????		*/
	sec = tmp;
	
	/* output */
	printf("hou:min:sec\n", %d, %d, %d);
}

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

#include<stdio.h>
int main(void){
int tate = 0;
int yoko = 0;
scans("%d %d",&tate,&yoko);
printf("%d %d",tate*yoko,(tate+yoko)*2);
return 0;
}

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

#include<stdio.h>
int main(){
        int a,b,x,y;
        scanf("%d" &a);
        scanf("%d" &b);
        x = a * b;
        y = 2 * a + 2 * b;
        printf("a * b %d\n", x);
        printf(" 2 * a + 2 * b %d\n", y);
        return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:20: error: invalid operands to binary & (have 'char *' and 'int')
    4 |         scanf("%d" &a);
      |               ~~~~ ^
      |               |
      |               char *
main.c:5:20: error: invalid operands to binary & (have 'char *' and 'int')
    5 |         scanf("%d" &b);
      |               ~~~~ ^
      |               |
      |               char *
Language: C

#include<stdio.h>
int main(){
        int a,b,x,y;
        scanf("%d" &a);
        scanf("%d" &b);
        x = a * b;
        y = 2 * a + 2 * b;
        printf("%d\n", x);
        printf("%d\n", y);
        return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:20: error: invalid operands to binary & (have 'char *' and 'int')
    4 |         scanf("%d" &a);
      |               ~~~~ ^
      |               |
      |               char *
main.c:5:20: error: invalid operands to binary & (have 'char *' and 'int')
    5 |         scanf("%d" &b);
      |               ~~~~ ^
      |               |
      |               char *
Language: C

#include<stdio.h>
int main(){
        int a,b,seki,syu;
        scanf("%d" &a);
        scanf("%d" &b);
        seki = a * b;
        syu = 2 * a + 2 * b;
        printf("%d\n", seki);
        printf("%d\n", syu);
        return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:20: error: invalid operands to binary & (have 'char *' and 'int')
    4 |         scanf("%d" &a);
      |               ~~~~ ^
      |               |
      |               char *
main.c:5:20: error: invalid operands to binary & (have 'char *' and 'int')
    5 |         scanf("%d" &b);
      |               ~~~~ ^
      |               |
      |               char *
Language: C

#include<stdio.h>
int main(){
        int a,b,seki,syu;
        scanf("%d" &a);
        scanf("%d" &b);
        seki = a * b;
        syu = 2 * a + 2 * b;
        printf("%d" , seki);
        printf("%d\n", syu);
        return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:20: error: invalid operands to binary & (have 'char *' and 'int')
    4 |         scanf("%d" &a);
      |               ~~~~ ^
      |               |
      |               char *
main.c:5:20: error: invalid operands to binary & (have 'char *' and 'int')
    5 |         scanf("%d" &b);
      |               ~~~~ ^
      |               |
      |               char *
Language: C

#include<stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:8:32: error: invalid suffix "a" on integer constant
    8 |         printf("%d %d\n", a*b, 2a+2b);
      |                                ^~
main.c:8:35: error: invalid suffix "b" on integer constant
    8 |         printf("%d %d\n", a*b, 2a+2b);
      |                                   ^~
Language: C

#include<stdio.h>

int main(void){
	int a;
	int b;
	
	scanf("%d %d", a, b);
	printf("%d %d\n", a*b, 2a+2b);
	
	return(0);
}

Compiler output:
main.c: In function 'main':
main.c:8:32: error: invalid suffix "a" on integer constant
    8 |         printf("%d %d\n", a*b, 2a+2b);
      |                                ^~
main.c:8:35: error: invalid suffix "b" on integer constant
    8 |         printf("%d %d\n", a*b, 2a+2b);
      |                                   ^~
Language: C

#include<stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:8:32: error: called object is not a function or function pointer
    8 |         printf("%d %d\n", a*b, 2(a+b));
      |                                ^
Language: C

#include<stdio.h>
int main(void){
int a,b;

scanf("%d%d" a, b);
printf("%d %d\n", a*b, 2*(a+b));

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:13: error: expected ')' before 'a'
    5 | scanf("%d%d" a, b);
      |      ~      ^~
      |             )
Language: C

#include<stdio.h>
int main(void)
{
int a,b,x,y;
scanf("%d %d",&a,%b);
x=a*b;
y=a*2+b*2;
printf("%d %d\n",x,y);
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:18: error: expected expression before '%' token
    5 | scanf("%d %d",&a,%b);
      |                  ^
Language: C

#include<stdio.h>
int main(void)
{
int a,b,x,y;
scanf("%d%d",&a,%b);
x=a*b;
y=a*2+b*2;
printf("%d %d\n",x,y);
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:17: error: expected expression before '%' token
    5 | scanf("%d%d",&a,%b);
      |                 ^
Language: C

#include<stdio.h>
int main(void)
{
int a,b,c,d;
scanf("%d%d",&a,%b);
c=a*b;
d=a*2+b*2;
printf("%d %d\n",x,y);
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:17: error: expected expression before '%' token
    5 | scanf("%d%d",&a,%b);
      |                 ^
main.c:8:18: error: 'x' undeclared (first use in this function)
    8 | printf("%d %d\n",x,y);
      |                  ^
main.c:8:18: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:20: error: 'y' undeclared (first use in this function)
    8 | printf("%d %d\n",x,y);
      |                    ^
Language: C

#include<stdio.h>
int main(void)
{
int a,b,c,d;
scanf("%d%d",&a,%b);
c=a*b;
d=a*2+b*2;
printf("%d %d\n",c,d);
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:17: error: expected expression before '%' token
    5 | scanf("%d%d",&a,%b);
      |                 ^
Language: C

#include<stdio.h>
int main(void)
{
int a,b,c,d;
scanf("%d%d",&a,%b);
d=a*b;
c=a*2+b*2;
printf("%d %d\n",d,c);
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:17: error: expected expression before '%' token
    5 | scanf("%d%d",&a,%b);
      |                 ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:5:17: error: expected expression before '%' token
    5 | scanf("%d%d",&a,%b);
      |                 ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:5:17: error: expected expression before '%' token
    5 | scanf("%d%d",&a,%b);
      |                 ^
Language: C

#include<stdio.h>

int main(void)

{

int a,b,c,d;

scanf("%d %d",&a,%b);

c=a*b;

d=a*2+b*2;

printf("%d %d\n",c,d);

return 0;

}

Compiler output:
main.c: In function 'main':
main.c:9:18: error: expected expression before '%' token
    9 | scanf("%d %d",&a,%b);
      |                  ^
Language: C

#include<stdio.h>

int main(void)

{

int a,b,c,d;

scanf("%d%d",&a,%b);

c=a*b;

d=a*2+b*2;

printf("%d %d\n",c,d);

return 0;

}

Compiler output:
main.c: In function 'main':
main.c:9:17: error: expected expression before '%' token
    9 | scanf("%d%d",&a,%b);
      |                 ^
Language: C

#include<stdio.h>

int main(void)

{

int a,b,c,d;

scanf("%d %d",&a,%b);

printf("%d %d\n",a*b,a*2+b*2);

return 0;

}

Compiler output:
main.c: In function 'main':
main.c:9:18: error: expected expression before '%' token
    9 | scanf("%d %d",&a,%b);
      |                  ^
Language: C

#include<stdio.h>

int main(void)

{

int a,b;

scanf("%d %d",&a,%b);

printf("%d %d\n",a*b,a*2+b*2);

return 0;

}

Compiler output:
main.c: In function 'main':
main.c:9:18: error: expected expression before '%' token
    9 | scanf("%d %d",&a,%b);
      |                  ^
Language: C

#include<stdio.h>

int main(void){


  int length = 0;


  int height = 0;


  int area = 0;


  int cir = 0;


  scanf("%d %d",&length,&height);


  area = length * height;


  cir = lenght*2 + height*2;


printf("%d %d \n",area,cir);


return ;


}

Compiler output:
main.c: In function 'main':
main.c:24:9: error: 'lenght' undeclared (first use in this function); did you mean 'length'?
   24 |   cir = lenght*2 + height*2;
      |         ^~~~~~
      |         length
main.c:24:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:30:1: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch]
   30 | return ;
      | ^~~~~~
main.c:3:5: note: declared here
    3 | int main(void){
      |     ^~~~
Language: C

#include<stdio.h>

int main(void){


int length=0


int height=0


int area=0


int cir=0


scanf("%d %d",&length,&height);


area=length*height;


cir=length*2+height*2;


printf("%d %d\n",area,cir);


return 0;


}

Compiler output:
main.c: In function 'main':
main.c:9:1: error: expected ',' or ';' before 'int'
    9 | int height=0
      | ^~~
main.c:21:1: error: 'area' undeclared (first use in this function)
   21 | area=length*height;
      | ^~~~
main.c:21:1: note: each undeclared identifier is reported only once for each function it appears in
main.c:21:13: error: 'height' undeclared (first use in this function)
   21 | area=length*height;
      |             ^~~~~~
main.c:24:1: error: 'cir' undeclared (first use in this function)
   24 | cir=length*2+height*2;
      | ^~~
Language: C

#include<stdio.h>

int main(){

int length = 0;

int height = 0;

int area = 0;

scanf("%d %d",&length,&height);

area = length*height;

cir = length*2 + height*2;

printf("%d %d\n",area,cir);

return 0;

}

Compiler output:
main.c: In function 'main':
main.c:15:1: error: 'cir' undeclared (first use in this function)
   15 | cir = length*2 + height*2;
      | ^~~
main.c:15:1: note: each undeclared identifier is reported only once for each function it appears in
Language: C

int main(){

int length = 0;

int height = 0;

int area = 0;

int cir


scanf("%d %d",&length,&height);

area = length*height;

cir = length*2 + height*2;

printf("%d %d\n",area,cir);

return 0;

}

Compiler output:
main.c: In function 'main':
main.c:12:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'scanf'
   12 | scanf("%d %d",&length,&height);
      | ^~~~~
main.c:12:1: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main(){
main.c:12:1: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
   12 | scanf("%d %d",&length,&height);
      | ^~~~~
main.c:12:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:16:1: error: 'cir' undeclared (first use in this function)
   16 | cir = length*2 + height*2;
      | ^~~
main.c:16:1: note: each undeclared identifier is reported only once for each function it appears in
main.c:18:1: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   18 | printf("%d %d\n",area,cir);
      | ^~~~~~
main.c:18:1: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:18:1: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:18:1: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

#include <stdio.h>
int main(){
  int i,j;
  scanf("%d %d",&i,&j);
  printf("%d %d\n",i*j,i*2+j*2);
  return(0);

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

#include<stdio.h>

int main(){


int l;


int h;


int a;


int c;


scanf("%d,%d",&l,&h);


a=l*h;


c=l*2+h*2


printf("%d,%d\n",a,c);


return 0;


}

Compiler output:
main.c: In function 'main':
main.c:24:10: error: expected ';' before 'printf'
   24 | c=l*2+h*2
      |          ^
      |          ;
......
   27 | printf("%d,%d\n",a,c);
      | ~~~~~~
Language: C

#include<stdio.h>

int main(){


int l=0;


int h=0;


int a=0;


int c=0;


scanf("%d,%d",&l,&h);


a=l*h;


c=l*2+h*2


printf("%d,%d\n",a,c);


return 0;


}

Compiler output:
main.c: In function 'main':
main.c:24:10: error: expected ';' before 'printf'
   24 | c=l*2+h*2
      |          ^
      |          ;
......
   27 | printf("%d,%d\n",a,c);
      | ~~~~~~