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

#include<stdio.h>

int main(){

int a,b;

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

printf("%d"a*b);

return 0;
}


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

#include<stdio.h>
int main (void)
{
 int x;
 int y;
 int sum
 int ai

x = 3;
y = 4;
sum = 0;
ai = 0;

sum = x * y;
ai = x + x + y + y; 
printf("%d\n,%d\n",sum ,ai)

return 0;
}


Compiler output:
main.c: In function 'main':
main.c:6:9: error: expected ';' before 'int'
    6 |  int sum
      |         ^
      |         ;
    7 |  int ai
      |  ~~~     
main.c:9:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'x'
    9 | x = 3;
      | ^
main.c:11:1: error: 'sum' undeclared (first use in this function)
   11 | sum = 0;
      | ^~~
main.c:11:1: note: each undeclared identifier is reported only once for each function it appears in
main.c:12:1: error: 'ai' undeclared (first use in this function)
   12 | ai = 0;
      | ^~
main.c:16:28: error: expected ';' before 'return'
   16 | printf("%d\n,%d\n",sum ,ai)
      |                            ^
      |                            ;
   17 | 
   18 | return 0;
      | ~~~~~~
Language: C

#include <stdio.h>

int main(){

int a,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:9:21: error: invalid suffix "a" on integer constant
    9 | printf("%d%d\n",a*b,2a+2b);
      |                     ^~
main.c:9:24: error: invalid suffix "b" on integer constant
    9 | printf("%d%d\n",a*b,2a+2b);
      |                        ^~
Language: C

#include<stdio.h>
int main (void)
{
 int x:
 int y:
scanf("%d %d", &x, &y);

printf("%d %d", x = x*y,y = x+x+y+y);

return 0;
}


Compiler output:
main.c: In function 'main':
main.c:4:7: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
    4 |  int x:
      |       ^
main.c:4:7: error: expected expression before ':' token
main.c:8:17: error: 'x' undeclared (first use in this function)
    8 | printf("%d %d", x = x*y,y = x+x+y+y);
      |                 ^
main.c:8:17: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:23: error: 'y' undeclared (first use in this function)
    8 | printf("%d %d", x = x*y,y = x+x+y+y);
      |                       ^
Language: C

#include<stdio.h>
int main (void)
{
 int x:
 int y:
 x = 0;
 y = 0; 
scanf("%d %d", &x, &y);

printf("%d %d", x = x*y, y = 2*(x+y));

return 0;
}


Compiler output:
main.c: In function 'main':
main.c:4:7: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
    4 |  int x:
      |       ^
main.c:4:7: error: expected expression before ':' token
main.c:7:2: error: 'y' undeclared (first use in this function)
    7 |  y = 0;
      |  ^
main.c:7:2: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:17: error: 'x' undeclared (first use in this function)
    8 | scanf("%d %d", &x, &y);
      |                 ^
Language: C

include<stdio.h>
int main(void)
{
        int a,b,s,l;
        scanf("%d",&a);
        scanf("%d",&b);
        s=a*b;
        l=(a+b)*2;
        printf("%d %d\n",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>

int main(){

	int(a,b);

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

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

	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:5:14: error: expected ')' before ',' token
    5 |         int(a,b);
      |              ^
      |              )
main.c:7:20: error: 'a' undeclared (first use in this function)
    7 |         scanf("%d",a,b);
      |                    ^
main.c:7:20: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:22: error: 'b' undeclared (first use in this function)
    7 |         scanf("%d",a,b);
      |                      ^
Language: C

#include<stdio.h>

int main(){

	int(a,b);

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

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

	return 0;
}



Compiler output:
main.c: In function 'main':
main.c:5:14: error: expected ')' before ',' token
    5 |         int(a,b);
      |              ^
      |              )
main.c:7:20: error: 'a' undeclared (first use in this function)
    7 |         scanf("%d",a,b);
      |                    ^
main.c:7:20: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:22: error: 'b' undeclared (first use in this function)
    7 |         scanf("%d",a,b);
      |                      ^
Language: C

#include<stdio.h>

int main(){

	int(a,b);

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

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

	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:5:14: error: expected ')' before ',' token
    5 |         int(a,b);
      |              ^
      |              )
main.c:7:24: error: 'a' undeclared (first use in this function)
    7 |         scanf("%d %d",&a,&b);
      |                        ^
main.c:7:24: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:27: error: 'b' undeclared (first use in this function)
    7 |         scanf("%d %d",&a,&b);
      |                           ^
Language: C

#include<stdio.h>

int main(){

	int(a,b);

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

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

	return 0;
}



Compiler output:
main.c: In function 'main':
main.c:5:14: error: expected ')' before ',' token
    5 |         int(a,b);
      |              ^
      |              )
main.c:7:24: error: 'a' undeclared (first use in this function)
    7 |         scanf("%d %d",&a,&b);
      |                        ^
main.c:7:24: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:27: error: 'b' undeclared (first use in this function)
    7 |         scanf("%d %d",&a,&b);
      |                           ^
Language: C

#include<stdio.h>

int main(){

	int (a,b);

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

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

	return 0;
}




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

include<stdio.h>

int main(){

	int (a,b);

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

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

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

	int (a,b);

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

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

	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:5:15: error: expected ')' before ',' token
    5 |         int (a,b);
      |               ^
      |               )
main.c:7:24: error: 'a' undeclared (first use in this function)
    7 |         scanf("%d %d",&a,&b);
      |                        ^
main.c:7:24: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:27: error: 'b' undeclared (first use in this function)
    7 |         scanf("%d %d",&a,&b);
      |                           ^
main.c:9:31: error: expected ')' before numeric constant
    9 |         printf("%d\n %d\n",a*b 2*a+2*b);
      |               ~               ^~
      |                               )
Language: C

#include<stdio.h>

int main(){

	int a;
	int b;

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

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

	return 0;
}



Compiler output:
main.c: In function 'main':
main.c:10:31: error: expected ')' before numeric constant
   10 |         printf("%d\n %d\n",a*b 2*a+2*b);
      |               ~               ^~
      |                               )
Language: C

#include<stdio.h>

int main(){

	int a;
	int b;

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

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

	return 0;
}



Compiler output:
main.c: In function 'main':
main.c:10:31: error: expected ')' before numeric constant
   10 |         printf("%d\n %d\n",a*b 2*(a+b));
      |               ~               ^~
      |                               )
Language: C

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

print("s");
print("l");
return 0;
}



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

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



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

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

 printf("%d %d",length,S);

 return 0;
}


Compiler output:
main.c: In function 'main':
main.c:9:7: error: expected ';' before 'printf'
    9 |  S=a*b
      |       ^
      |       ;
   10 | 
   11 |  printf("%d %d",length,S);
      |  ~~~~~~
Language: C

#include<stdio.h>

int main(){

	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:28: error: expected expression before '%' token
    8 |         scanf("%d %d", &a, %b);
      |                            ^
Language: C

#include<stdio.h>

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

scans("%d %d",&a,&b);
area = a*b;
per = (a+b)*2;

printf("%d %d¥n",area, per);

return 0;
}


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

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


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

#include<stdio.h>
int a,b,s,l;

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

s = a * b;
l = 2 * a + 2 * b;

print("%d %d",s,l);


Compiler output:
main.c:4:7: error: expected declaration specifiers or '...' before string constant
    4 | scanf("%d",&a);
      |       ^~~~
main.c:4:12: error: expected declaration specifiers or '...' before '&' token
    4 | scanf("%d",&a);
      |            ^
main.c:5:7: error: expected declaration specifiers or '...' before string constant
    5 | scanf("%d",&b);
      |       ^~~~
main.c:5:12: error: expected declaration specifiers or '...' before '&' token
    5 | scanf("%d",&b);
      |            ^
main.c:7:1: warning: data definition has no type or storage class
    7 | s = a * b;
      | ^
main.c:7:1: error: type defaults to 'int' in declaration of 's' [-Wimplicit-int]
main.c:7:5: error: initializer element is not constant
    7 | s = a * b;
      |     ^
main.c:8:1: warning: data definition has no type or storage class
    8 | l = 2 * a + 2 * b;
      | ^
main.c:8:1: error: type defaults to 'int' in declaration of 'l' [-Wimplicit-int]
main.c:8:5: error: initializer element is not constant
    8 | l = 2 * a + 2 * b;
      |     ^
main.c:10:7: error: expected declaration specifiers or '...' before string constant
   10 | print("%d %d",s,l);
      |       ^~~~~~~
main.c:10:15: error: expected declaration specifiers or '...' before 's'
   10 | print("%d %d",s,l);
      |               ^
main.c:10:17: error: expected declaration specifiers or '...' before 'l'
   10 | print("%d %d",s,l);
      |                 ^
Language: C

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

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

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


Compiler output:
main.c: In function 'main':
main.c:11:5: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
   11 |     print("%d %d",s,l);
      |     ^~~~~
      |     printf
Language: C

#include

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


Compiler output:
main.c:1:9: error: #include expects "FILENAME" or <FILENAME>
    1 | #include
      |         ^
main.c: In function 'main':
main.c:5:5: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    5 |     printf("a:");
      |     ^~~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'printf'
  +++ |+#include <stdio.h>
    1 | #include
main.c:5:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
    5 |     printf("a:");
      |     ^~~~~~
main.c:5:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:6:5: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    6 |     scanf("&a");
      |     ^~~~~
main.c:6:5: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:6:5: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
main.c:6:5: note: include '<stdio.h>' or provide a declaration of 'scanf'
Language: C

#include<stdio.h>

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


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

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



Compiler output:
main.c: In function 'main':
main.c:7:19: error: 'X' undeclared (first use in this function)
    7 |     printf("%d",2*X+2*y);
      |                   ^
main.c:7:19: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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



Compiler output:
main.c: In function 'main':
main.c:6:28: error: 'X' undeclared (first use in this function)
    6 |     printf("%d %d\n",x*y,2*X+2*y);
      |                            ^
main.c:6:28: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>

int main(){
	a = input(); 

	b = input();

	x = a * b; 

	y = 2 * a + 2 * b

	printf ("%d",x);
	printf ("%d",y);
}


Compiler output:
main.c: In function 'main':
main.c:4:9: error: 'a' undeclared (first use in this function)
    4 |         a = input();
      |         ^
main.c:4:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:4:13: error: implicit declaration of function 'input' [-Wimplicit-function-declaration]
    4 |         a = input();
      |             ^~~~~
main.c:6:9: error: 'b' undeclared (first use in this function)
    6 |         b = input();
      |         ^
main.c:8:9: error: 'x' undeclared (first use in this function)
    8 |         x = a * b;
      |         ^
main.c:10:9: error: 'y' undeclared (first use in this function)
   10 |         y = 2 * a + 2 * b
      |         ^
main.c:10:26: error: expected ';' before 'printf'
   10 |         y = 2 * a + 2 * b
      |                          ^
      |                          ;
   11 | 
   12 |         printf ("%d",x);
      |         ~~~~~~
Language: C

#include<stdio.h>
 
int main(){
  int x;
  int y;
  

  scanf("%d", &x,&y);
  
 printf("%d\n",x*y);
 
 printf("%d\n",2x*2y);
 }
 


Compiler output:
main.c: In function 'main':
main.c:12:16: error: invalid suffix "x" on integer constant
   12 |  printf("%d\n",2x*2y);
      |                ^~
main.c:12:19: error: invalid suffix "y" on integer constant
   12 |  printf("%d\n",2x*2y);
      |                   ^~
Language: C

include <stdio.h>
  
int main(void)
{
 
  /* 長方形の面積 */
  float area;
 
  /* よこ・たての長さ */
  float length_yoko;
  float length_tate;
 
  /* よこ・たての長さを入力 */
  printf("長方形のよこの長さを入力: a = ");
  scanf("%f", &length_yoko);
  printf("長方形のたての長さを入力: b = ");
  scanf("%f", &length_tate);
 
  /* 長方形の面積を計算・出力 */
  area = length_yoko * length_tate;
  printf("長方形の面積: S = %.3f\n", area);
 
  return 0;
}


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

include <stdio.h>
  
int main(void)
{
 
  
  float area;
 
  
  float length_yoko;
  float length_tate;
 
  
  printf("長方形のよこの長さを入力: a = ");
  scanf("%f", &length_yoko);
  printf("長方形のたての長さを入力: b = ");
  scanf("%f", &length_tate);
 
  
  area = length_yoko * length_tate;
  printf("長方形の面積: S = %.3f\n", area);
 
  return 0;
}


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

include <stdio.h>
  
int main(void)
{
 
 
  printf("長方形のよこの長さを入力: a = ");
  scanf("%f", &length_yoko);
  printf("長方形のたての長さを入力: b = ");
  scanf("%f", &length_tate);
 
  area = length_yoko * length_tate;
  printf("長方形の面積: S = %.3f\n", area);
 
  return 0;
}


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

include<stdio.h>

int main(void){
int tate=200;
int yoko=80;
printf("面積＝%d 周の長さ＝%d",tate*yoko,2*(tate+yoko));
return 0;
}


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

#inclde<stdio.h>

void main()

{
int a,h;

printf("a=");

scanf("%d",&a);

print("h=");

scanf("%d",&h);

printf(2*a+2*h);

printf(a*b);

return0;

        }





Compiler output:
main.c:1:2: error: invalid preprocessing directive #inclde; did you mean #include?
    1 | #inclde<stdio.h>
      |  ^~~~~~
      |  include
main.c: In function 'main':
main.c:8:1: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    8 | printf("a=");
      | ^~~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'printf'
  +++ |+#include <stdio.h>
    1 | #inclde<stdio.h>
main.c:8:1: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
    8 | printf("a=");
      | ^~~~~~
main.c:8:1: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:10:1: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
   10 | scanf("%d",&a);
      | ^~~~~
main.c:10:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:10:1: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
main.c:10:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:12:1: error: implicit declaration of function 'print' [-Wimplicit-function-declaration]
   12 | print("h=");
      | ^~~~~
main.c:16:11: error: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion]
   16 | printf(2*a+2*h);
      |        ~~~^~~~
      |           |
      |           int
main.c:16:11: note: expected 'const char *' but argument is of type 'int'
main.c:18:10: error: 'b' undeclared (first use in this function)
   18 | printf(a*b);
      |          ^
main.c:18:10: note: each undeclared identifier is reported only once for each function it appears in
main.c:20:1: error: 'return0' undeclared (first use in this function)
   20 | return0;
      | ^~~~~~~
Language: C

#inclde<stdio.h>

void main()

{
int a,h;

printf("a=");

scanf("%d",&a);

print("h=");

scanf("%d",&h);

printf("外周=%dn",2*a+2*h);

printf("面積=%dn",a*b);

return0;

        }



Compiler output:
main.c:1:2: error: invalid preprocessing directive #inclde; did you mean #include?
    1 | #inclde<stdio.h>
      |  ^~~~~~
      |  include
main.c: In function 'main':
main.c:8:1: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    8 | printf("a=");
      | ^~~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'printf'
  +++ |+#include <stdio.h>
    1 | #inclde<stdio.h>
main.c:8:1: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
    8 | printf("a=");
      | ^~~~~~
main.c:8:1: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:10:1: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
   10 | scanf("%d",&a);
      | ^~~~~
main.c:10:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:10:1: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
main.c:10:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:12:1: error: implicit declaration of function 'print' [-Wimplicit-function-declaration]
   12 | print("h=");
      | ^~~~~
main.c:18:21: error: 'b' undeclared (first use in this function)
   18 | printf("面積=%dn",a*b);
      |                     ^
main.c:18:21: note: each undeclared identifier is reported only once for each function it appears in
main.c:20:1: error: 'return0' undeclared (first use in this function)
   20 | return0;
      | ^~~~~~~
Language: C

#inclde<stdio.h>

void main()

{
int a,b;

printf("a=");

scanf("%d",&a);

print("b=");

scanf("%d",&b);

printf(2*a+2*b);

printf(a*b);

return0;

        }



Compiler output:
main.c:1:2: error: invalid preprocessing directive #inclde; did you mean #include?
    1 | #inclde<stdio.h>
      |  ^~~~~~
      |  include
main.c: In function 'main':
main.c:8:1: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    8 | printf("a=");
      | ^~~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'printf'
  +++ |+#include <stdio.h>
    1 | #inclde<stdio.h>
main.c:8:1: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
    8 | printf("a=");
      | ^~~~~~
main.c:8:1: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:10:1: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
   10 | scanf("%d",&a);
      | ^~~~~
main.c:10:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:10:1: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
main.c:10:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:12:1: error: implicit declaration of function 'print' [-Wimplicit-function-declaration]
   12 | print("b=");
      | ^~~~~
main.c:16:11: error: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion]
   16 | printf(2*a+2*b);
      |        ~~~^~~~
      |           |
      |           int
main.c:16:11: note: expected 'const char *' but argument is of type 'int'
main.c:18:9: error: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion]
   18 | printf(a*b);
      |        ~^~
      |         |
      |         int
main.c:18:9: note: expected 'const char *' but argument is of type 'int'
main.c:20:1: error: 'return0' undeclared (first use in this function)
   20 | return0;
      | ^~~~~~~
main.c:20:1: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>

void main()
{

int a;

int b;

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

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

return 0;

}



Compiler output:
main.c: In function 'main':
main.c:10:1: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
   10 | scanf_s("%d %d",&a,&b);
      | ^~~~~~~
      | scanf
main.c:14:8: error: 'return' with a value, in function returning void [-Wreturn-mismatch]
   14 | return 0;
      |        ^
main.c:3:6: note: declared here
    3 | void main()
      |      ^~~~
Language: C

#include <stdio.h>

void main()
{

int a;

int b;

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

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

return 0;

}



Compiler output:
main.c: In function 'main':
main.c:10:1: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
   10 | scanf_s("%d %d",&a,&b);
      | ^~~~~~~
      | scanf
main.c:14:8: error: 'return' with a value, in function returning void [-Wreturn-mismatch]
   14 | return 0;
      |        ^
main.c:3:6: note: declared here
    3 | void main()
      |      ^~~~
Language: C

#include <stdio.h>

void main()
{

int a;

int b;

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

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

return 0;

}



Compiler output:
main.c: In function 'main':
main.c:10:1: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
   10 | scanf_s("%d %d",&a, &b);
      | ^~~~~~~
      | scanf
main.c:14:8: error: 'return' with a value, in function returning void [-Wreturn-mismatch]
   14 | return 0;
      |        ^
main.c:3:6: note: declared here
    3 | void main()
      |      ^~~~
Language: C

#include <stdio.h>

void main()
{

int a;

int b;

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

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

return 0;

}



Compiler output:
main.c: In function 'main':
main.c:10:1: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
   10 | scanf_s("%d %d", &a, &b);
      | ^~~~~~~
      | scanf
main.c:14:8: error: 'return' with a value, in function returning void [-Wreturn-mismatch]
   14 | return 0;
      |        ^
main.c:3:6: note: declared here
    3 | void main()
      |      ^~~~
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:6:33: error: 'a' undeclared (first use in this function)
    6 |         printf( "%d %d",x*y, 2*(a+b));
      |                                 ^
main.c:6:33: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:35: error: 'b' undeclared (first use in this function)
    6 |         printf( "%d %d",x*y, 2*(a+b));
      |                                   ^
Language: C

#include<iostream>
using namespace std;
int main(){
int a;
int b;
int s;
int l;
a=3;
b=4;
std::cout << "Input" << "\n";
std::cout << a << " " << b << "\n";
s = a*b;
l= 2*a+2*b;
std::cout << "Output" << "\n";
std::cout << s << " " << l;
}


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

#include <stdio.h>

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



Compiler output:
main.c: In function 'main':
main.c:5:28: error: invalid operands to binary & (have 'int *' and 'int')
    5 |         scanf("%d %d\n",&n &m);
      |                         ~~ ^
      |                         |
      |                         int *
Language: C

#include<stdio.h>
int main(void){
  int a,b;
  a>=1;
  b<=100;
 scanf("%d %d", &a*b, &2*(a+b); 
}


Compiler output:
main.c: In function 'main':
main.c:6:19: error: invalid operands to binary * (have 'int *' and 'int')
    6 |  scanf("%d %d", &a*b, &2*(a+b);
      |                 ~~^
      |                 |
      |                 int *
main.c:6:23: error: lvalue required as unary '&' operand
    6 |  scanf("%d %d", &a*b, &2*(a+b);
      |                       ^
main.c:6:31: error: expected ')' before ';' token
    6 |  scanf("%d %d", &a*b, &2*(a+b);
      |       ~                       ^
      |                               )
main.c:6:32: error: expected ';' before '}' token
    6 |  scanf("%d %d", &a*b, &2*(a+b);
      |                                ^
      |                                ;
    7 | }
      | ~
Language: C

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

   scand("%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:6:4: error: implicit declaration of function 'scand'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    6 |    scand("%d %d", &a, &b);
      |    ^~~~~
      |    scanf
Language: C

#include <stdio.h>

int main(void) {
	int a, b;
	scanf_s("%d", &a);
	scanf_s("%d", &b);
	if(a >= 1 && a <= 100 && b >= 1 && b <= 100 )
		printf("%d %d\n", a*b, a * 2 + b * 2);

	return 0;
}



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

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


Compiler output:
main.c: In function 'main':
main.c:6:33: error: 'n' undeclared (first use in this function)
    6 |  printf("%d %d",a*b,(a*2)+(b*2)/n);
      |                                 ^
main.c:6:33: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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


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

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



Compiler output:
main.c: In function 'main':
main.c:13:9: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
   13 |         print(l,p);
      |         ^~~~~
      |         printf
Language: C

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



Compiler output:
main.c: In function 'main':
main.c:13:9: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
   13 |         print(l,p);
      |         ^~~~~
      |         printf
Language: C

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



Compiler output:
main.c: In function 'main':
main.c:13:9: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
   13 |         print("%d %d"l,p);
      |         ^~~~~
      |         printf
main.c:13:22: error: expected ')' before 'l'
   13 |         print("%d %d"l,p);
      |              ~       ^
      |                      )
Language: C

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



Compiler output:
main.c: In function 'main':
main.c:13:23: error: expected ')' before 'l'
   13 |         printf("%d %d"l,p);
      |               ~       ^
      |                       )
Language: C

#include<stdio.h>
int main()
{
float a,b;
scanf("%f %f",&a,&b);
area=a*b;
perimeter=2*(a+b);
printf("area of rectangle");
printf("perimeter of rectangle");
return 0;
}


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

#include<stdio.h>
int main ()

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

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

    return 0;
}



Compiler output:
main.c: In function 'main':
main.c:7:18: error: expected ';' before ')' token
    7 |     for ( a=1 , a )
      |                  ^~
      |                  ;
main.c:7:19: error: expected expression before ')' token
    7 |     for ( a=1 , a )
      |                   ^
Language: C

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


Compiler output:
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main()
      | ^~~~
main.c: In function 'main':
main.c:7:5: error: 'perimeter' undeclared (first use in this function); did you mean 'perimeteter'?
    7 |     perimeter=2*(a+b);
      |     ^~~~~~~~~
      |     perimeteter
main.c:7:5: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:6:1: error: 'area' undeclared (first use in this function)
    6 | area=a*b;
      | ^~~~
main.c:6:1: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:1: error: 'perimeter' undeclared (first use in this function)
    8 | perimeter=2*a+2*b;
      | ^~~~~~~~~
main.c:9:1: error: implicit declaration of function 'primtf'; did you mean 'printf'? [-Wimplicit-function-declaration]
    9 | primtf("perimeter is %d\n",perimeter);
      | ^~~~~~
      | printf
Language: C

#include <stdio.h>

int main(void) {
	int a b;
	scanf("%d",&a);
	scanf("%d",&b);
	printf("%d %d",a*b,2*(a+b));
	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:21: error: 'a' undeclared (first use in this function)
    5 |         scanf("%d",&a);
      |                     ^
Language: C

#include <iostream>
using namespace std;
int main(void){
    int a, b;
    cin >> a >> b;
    cout << a*b << " " << (a+b)*2 << 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>
int main()
{
   int a,b;
scanf("%d %d",&a,&b);
printf("%d\n",(a*b),2(a+b));
return 0;
 }



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

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


Compiler output:
main.c: In function 'main':
main.c:4:14: error: redeclaration of 'p' with no linkage
    4 |    int s,p,a,p;
      |              ^
main.c:4:10: note: previous declaration of 'p' with type 'int'
    4 |    int s,p,a,p;
      |          ^
main.c:7:14: error: expected ';' before 'printf'
    7 |     p=2*(s+p)
      |              ^
      |              ;
    8 |     printf("%d %d\n",a,p);
      |     ~~~~~~
Language: C

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

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

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

	return 0;
}


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

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



Compiler output:
main.c: In function 'main':
main.c:3:9: error: expected identifier or '(' before 'int'
    3 |  int a, int b;
      |         ^~~
main.c:4:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    4 |   scanf("%d %d\n", &a, &b);
      |   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main()
main.c:4:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    4 |   scanf("%d %d\n", &a, &b);
      |   ^~~~~
main.c:4:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:4:25: error: 'b' undeclared (first use in this function)
    4 |   scanf("%d %d\n", &a, &b);
      |                         ^
main.c:4:25: note: each undeclared identifier is reported only once for each function it appears in
main.c:5:3: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    5 |   printf("%d %d\n", (a * b), 2*(a+b) );
      |   ^~~~~~
main.c:5:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:5:3: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:5:3: 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);
    if(i>=1 && i<=100 && j>=1 && j<=100){
        printf("%d\n",i*j);
    }
    return 0;
}


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

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


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

#include<stdio.h>
int main(){
    int i,j=0;
    int a = 2(i+j);
    scanf("%d %d",&i,&j);
    if(i>=1 && i<=100 && j>=1 &&j<=100){
        printf("%d %d",i*j,a);
    }
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:4:13: error: called object is not a function or function pointer
    4 |     int a = 2(i+j);
      |             ^
Language: C

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


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

(progn (defun rectangle ()
         (let ((a (read))
	       (b (read)))
           (cons (* a b) (* 2 (+ a b)))))
       (rectangle))


Compiler output:
main.c:1:9: error: unknown type name 'defun'
    1 | (progn (defun rectangle ()
      |         ^~~~~
main.c:4:42: error: expected ')' before '(' token
    4 |            (cons (* a b) (* 2 (+ a b)))))
      |                                          ^
      |                                          )
    5 |        (rectangle))
      |        ~
Language: C

{
int w,h;

printf("W=");
scanf("%d", &w);
printf("H=");
scanf("%d", &h);

printf("外周 = %d\n", 2 * w + 2 * h);
printf("面積 = %d\n", w * h);

return 0;
}


Compiler output:
main.c:1:1: error: expected identifier or '(' before '{' token
    1 | {
      | ^
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:10:39: error: expected expression before ')' token
   10 | printf("%d,%d\n",a * b, 2 * a + 2 * 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:10:38: error: expected expression before ')' token
   10 | printf("%d%d\n",a * b, 2 * a + 2 * 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:10:22: error: called object is not a function or function pointer
   10 | printf("%d%d\n",a*b, 2(a+b));
      |                      ^
Language: C

#include<stdio.h>

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


Compiler output:
main.c: In function 'main':
main.c:4:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'b'
    4 |     int a b;
      |           ^
main.c:4:11: error: 'b' undeclared (first use in this function)
main.c:4:11: note: each undeclared identifier is reported only once for each function it appears in
main.c:5:17: error: 'a' undeclared (first use in this function)
    5 |     scanf("%d",&a,&b);
      |                 ^
main.c:6:19: error: expected ')' before 'a'
    6 |     printf("%d %d"a*b,a*2+b*2);
      |           ~       ^
      |                   )
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:7:28: error: expected ')' before ':' token
    7 |    printf("%d %d\n", a*b, 2:a+2*b);
      |          ~                 ^
      |                            )
Language: C

#include <stdio.h>
　int main{
  
  int a;
  
  int b;
  
  scanf("%d",&a)

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

 return 0;
}


Compiler output:
main.c:2:1: error: stray '\343' in program
    2 | <U+3000>int main{
      | ^~~~~~~~
main.c:2:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    2 | 　int main{
      |           ^
Language: C

#include <stdio.h>
int main{
int a;
int b;
scanf("%d",&a)
scanf("%d",&b)
printf("%d\n",a*b)
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{
int a;
int b;
scanf("%d %d", &a, &b)
printf("%d\n",a*b)
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{
int a;
int b;
scanf("%d %d", &a, &b)
printf("%d %d\n",a*b,a+a+b+b)
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{
int a;
int b;
scanf("%d %d", &a, &b)
printf("%d %d",a * b, a + a + b + b)
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{
int a;
int b;
scanf("%d %d", &a, &b);
printf("%d %d",a * b, a + a + b + b);
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{
int a;
int b;
scanf("%d", &a);
scanf("%d", &b);
printf("%d %d",a * b, a + a + b + b);
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(){
 int a;
 int b;
 int c;
 int d;
 scanf("%d",&b); 
 scanf("%d",&a);
 printf("%d*%f 2(%d+%f)" a, b);
 return 0;
}


Compiler output:
main.c: In function 'main':
main.c:9:25: error: expected ')' before 'a'
    9 |  printf("%d*%f 2(%d+%f)" a, b);
      |        ~                ^~
      |                         )
Language: C

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

}


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

#include<stdio.h
int main(void)
{
	int a = 0;
	int b = 0;
	int c;
	int d;

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

	c = a * b;
	d = (a + b) * 2;

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

	return 0;
}


Compiler output:
main.c:1:17: error: missing terminating > character
    1 | #include<stdio.h
      |                 ^
Language: C

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

	1 <= a, b <= 100;

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

	c = a * b;
	d = (a + b) * 2;

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

	return 0;
}


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

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

	1 <= a, b <= 100;

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

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

	return 0;
}



Compiler output:
main.c: In function 'main':
main.c:11:32: error: expected ')' before ';' token
   11 |         printf("%d %d",a*b,2*(a;b));
      |                              ~ ^
      |                                )
Language: C

#include<stdio.h>

int main(){
int x&y;

  scanf("%d %d", &x &y);

  print("%d\n",x*y);

  return 0;
}
  


Compiler output:
main.c: In function 'main':
main.c:4:6: error: expected '=', ',', ';', 'asm' or '__attribute__' before '&' token
    4 | int x&y;
      |      ^
main.c:4:7: error: 'y' undeclared (first use in this function)
    4 | int x&y;
      |       ^
main.c:4:7: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:19: error: 'x' undeclared (first use in this function)
    6 |   scanf("%d %d", &x &y);
      |                   ^
main.c:8:3: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
    8 |   print("%d\n",x*y);
      |   ^~~~~
      |   printf
Language: C

#include<stdio.h>

int main(){
int xy;

  scanf("%d %d", &x &y);

  print("%d\n",x*y);

  return 0;
}
  


Compiler output:
main.c: In function 'main':
main.c:6:19: error: 'x' undeclared (first use in this function); did you mean 'xy'?
    6 |   scanf("%d %d", &x &y);
      |                   ^
      |                   xy
main.c:6:19: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:22: error: 'y' undeclared (first use in this function); did you mean 'xy'?
    6 |   scanf("%d %d", &x &y);
      |                      ^
      |                      xy
main.c:8:3: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
    8 |   print("%d\n",x*y);
      |   ^~~~~
      |   printf