criyle/codenet-compile-errors huggingface dataset:
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\n",s,l);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:26: error: invalid operands to binary & (have 'int *' and 'int')
    6 |         scanf("%d %d",&a &b);
      |                       ~~ ^
      |                       |
      |                       int *
main.c:8:18: error: expected ';' before 'printf'
    8 |         l=2*(a+b)
      |                  ^
      |                  ;
    9 |         printf("%d %d\n",s,l);
      |         ~~~~~~
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\n",s,l);
	return 0;
}

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

#include <stdio.h>

int main(void)
{
int a,b;

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:17: error: invalid operands to binary & (have 'int *' and 'int')
    7 | scanf("%d %d",&a&b);
      |               ~~^
      |               |
      |               int *
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:7:17: error: invalid operands to binary & (have 'int *' and 'int')
    7 | scanf("%d %d",&a&b);
      |               ~~^
      |               |
      |               int *
Language: C

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

int a,b;

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:14: error: invalid operands to binary & (have 'char *' and 'int')
    7 | scanf("%d %d"&a&b);
      |       ~~~~~~~^
      |       |
      |       char *
main.c:9:17: error: expected ')' before 'a'
    9 | printf("%d %d\n"a*b,(a+b)*2);
      |       ~         ^
      |                 )
Language: C

#include <stdio.h>

int main(void)
{
int a,b:

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:5:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
    5 | int a,b:
      |        ^
main.c:9:20: error: 'b' undeclared (first use in this function)
    9 | printf("%d %d\n",a*b,(a+b)*2);
      |                    ^
main.c:9:20: 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;
??
scanf("%d %d",&a,&b);
??
printf("%d %d\n",a*b,(a+b)*2);
??
return 0;
??
}

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

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

	printf("???????????°????????\?????????????????????");
	scanf_s("%d,%d", &a, &b);
	k = a*b;
	l = 2 * (a + b);
	printf("??????%dcm,??????%dcm???????????¢?????¢??????%d,??¨???????????????%d\n", a, b, k, l);

	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,%d", &a, &b);
      |         ^~~~~~~
      |         scanf
Language: C

#include <stdio.h>
int main()
{
     int a, b, menseki=a*b, syu=2*a+2*b;

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

     if(a>=1;b=<100&&b>0)
     {
          printf("%d %d\n",menseki,syu);
      }

     return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:13: error: expected ')' before ';' token
    9 |      if(a>=1;b=<100&&b>0)
      |        ~    ^
      |             )
Language: C

#include <stdio.h>
int main()
{
     int a, b, menseki=a*b, syu=2*a+2*b;

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

     if(a>=1;b<=100&&b>0)
     {
          printf("%d %d\n",menseki,syu);
      }

     return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:13: error: expected ')' before ';' token
    9 |      if(a>=1;b<=100&&b>0)
      |        ~    ^
      |             )
Language: C

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

     if(a>=1;b<=100&&b>0)
     {
          int menseki=a*b, syu=2*a+2*b;


          printf("%d %d\n",menseki,syu);
      }

     return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:13: error: expected ')' before ';' token
    8 |      if(a>=1;b<=100&&b>0)
      |        ~    ^
      |             )
Language: C

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

     if(a>=1;b<=100&&b>0)
     {
          int menseki=a*b, syu=(2*a)+(2*b);


          printf("%d %d\n",menseki,syu);
      }

     return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:13: error: expected ')' before ';' token
    8 |      if(a>=1;b<=100&&b>0)
      |        ~    ^
      |             )
Language: C

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

     if(a>=1;b<=100&&b>0)
     {
         menseki=a*b, syu=(2*a)+(2*b);


          printf("%d %d\n",menseki,syu);
      }

     return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:13: error: expected ')' before ';' token
    8 |      if(a>=1;b<=100&&b>0)
      |        ~    ^
      |             )
main.c:10:10: error: 'menseki' undeclared (first use in this function); did you mean 'manseki'?
   10 |          menseki=a*b, syu=(2*a)+(2*b);
      |          ^~~~~~~
      |          manseki
main.c:10:10: 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, menseki, syu;
     scanf("%d",&a);
     scanf("%d",&b);

     if(a>=1;b<=100&&b>0)
     {
         menseki=a*b, syu=(2*a)+(2*b);


          printf("%d %d\n",menseki,syu);
      }

     return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:13: error: expected ')' before ';' token
    8 |      if(a>=1;b<=100&&b>0)
      |        ~    ^
      |             )
Language: C

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

     if(a>=1;b<=100&&b>0)
     {
         menseki=a*b, syu=(2*a)+(2*b);


          printf("%d %d\n",menseki,syu);
      }

     return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:13: error: expected ')' before ';' token
    8 |      if(a>=1;b<=100&&b>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:5:18: error: invalid operands to binary & (have 'int *' and 'int')
    5 | scanf("%d %d",&a &b);
      |               ~~ ^
      |               |
      |               int *
main.c:6:22: error: invalid suffix "a" on integer constant
    6 | printf("%d %d\n",a*b 2a+2b);
      |                      ^~
main.c:6:21: error: expected ')' before numeric constant
    6 | printf("%d %d\n",a*b 2a+2b);
      |       ~             ^~~
      |                     )
main.c:6:25: error: invalid suffix "b" on integer constant
    6 | printf("%d %d\n",a*b 2a+2b);
      |                         ^~
Language: C

#include <stdio.h>

int main()
{
int a,b;

scanf("%d",&a);

scanf("%d",&b);

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

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

return 0;
}

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

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

Compiler output:
main.c: In function 'main':
main.c:6:9: error: 'c' undeclared (first use in this function)
    6 |         c = 2 * (a + b);
      |         ^
main.c:6:9: 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,&a,&b);
printf("%d %d",a*b,2a+2b);
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:7: warning: missing terminating " character
    5 | scanf("%d %d,&a,&b);
      |       ^
main.c:5:7: error: missing terminating " character
    5 | scanf("%d %d,&a,&b);
      |       ^~~~~~~~~~~~~~
main.c:6:20: error: invalid suffix "a" on integer constant
    6 | printf("%d %d",a*b,2a+2b);
      |                    ^~
main.c:6:23: error: invalid suffix "b" on integer constant
    6 | printf("%d %d",a*b,2a+2b);
      |                       ^~
main.c:6:26: error: expected ')' before ';' token
    6 | printf("%d %d",a*b,2a+2b);
      |                          ^
      |                          )
main.c:5:6: note: to match this '('
    5 | scanf("%d %d,&a,&b);
      |      ^
main.c:7:10: error: expected ';' before '}' token
    7 | return 0;
      |          ^
      |          ;
    8 | }
      | ~
Language: C

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

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

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


return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:30: error: expected expression before ')' token
    9 | printf("%d %d\n",a*b,2*a+2*b,);
      |                              ^
Language: C

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

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

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


return 0;
}

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

#include <stdio.h>

2. 

3.int main(void)

4.{

5.	char buf;

6.	unsigned int a;

7.	unsigned int b;

8.	unsigned int men;

9.	unsigned int lo;

10.	int *pa;

11.	int *pb;

12. 

13.	a = &pa;

14.	b = &pb;

15. 

16.	fgets(buf,256,stdin);

17.	pa = buf;

18.	pb = buf + 2;

19. 

20.	men = a * b;

21.	lo = (a + b)*2;

22. 

23.	printf("%d %d\n",men,lo);

24.	return 0;

25.}

26. 

Compiler output:
main.c:3:1: error: expected identifier or '(' before numeric constant
    3 | 2.
      | ^~
main.c:5:1: error: invalid suffix "int" on floating constant
    5 | 3.int main(void)
      | ^~~~~
main.c:51:1: error: expected identifier or '(' before numeric constant
   51 | 26.
      | ^~~
Language: C

#include <stdio.h>

2. 

3.int main(void)

4.{

5.	unsigned int a;

6.	unsigned int b;

7.	unsigned int men;

8.	unsigned int lo;

9. 

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

11.	men = a * b;

12.	lo = (a + b)*2;

13. 

14.	printf("%d %d\n",men,lo);

15.	return 0;

16.}

Compiler output:
main.c:3:1: error: expected identifier or '(' before numeric constant
    3 | 2.
      | ^~
main.c:5:1: error: invalid suffix "int" on floating constant
    5 | 3.int main(void)
      | ^~~~~
Language: C

#include <stdio.h>

2. 

3.int main(void)
4.{

5.	unsigned int a;

6.	unsigned int b;

7.	unsigned int men;

8.	unsigned int lo;

9. 

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

11.	men = a * b;

12.	lo = (a + b)*2;

13. 

14.	printf("%d %d\n",men,lo);

15.	return 0;

16.}

Compiler output:
main.c:3:1: error: expected identifier or '(' before numeric constant
    3 | 2.
      | ^~
main.c:5:1: error: invalid suffix "int" on floating constant
    5 | 3.int main(void)
      | ^~~~~
Language: C

#include <stdio.h>
int main(int argc,const char * arg[]){
int a b;
scanf("%d %d",&a,b);
printf("%d %d",a*b,a*2+b*2);
return 0;
}

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

include <stdio.h>
int main () {

  int a, b;

  scanf("%d %d", &a, &b);
  if(a>=1 && b<=100) {
    printf("%d\n" , a*b);
    printf("%d\n" , 2*a + 2*b);
  }
  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;

  scanf("%d", &a);
scanf("%d", &b);
  if(a>=1 && b<=100) {
    printf("%d\n" , a*b);
    printf("%d\n" , 2*a + 2*b);
  }
  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;

  scanf("%d", &a, &b);
  if(a>=1 && b<=100) {
    printf("%d " , a*b);
    printf("%d\n" , 2*a + 2*b);
  }
  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;

  scanf("%d", &a, &b);
    printf("%d " , a*b);
    printf("%d\n" , 2*a + 2*b);
  
  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,x = 1,j,k;
    scanf("%d",&i);
    for(j = 0;j < i/3;j++){
        if(i%3 == 0)x++;
    }
    for(k = 1;k < x;k++){
        printf("%d ,k*3);
    }
    printf("\n");

    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:16: warning: missing terminating " character
    9 |         printf("%d ,k*3);
      |                ^
main.c:9:16: error: missing terminating " character
    9 |         printf("%d ,k*3);
      |                ^~~~~~~~~~
main.c:10:5: error: expected expression before '}' token
   10 |     }
      |     ^
main.c:9:16: error: expected ';' before '}' token
    9 |         printf("%d ,k*3);
      |                ^
      |                ;
   10 |     }
      |     ~
Language: C

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

Compiler output:
main.c:1:9: error: #include expects "FILENAME" or <FILENAME>
    1 | #include
      |         ^
main.c: In function 'main':
main.c:6:9: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    6 |         scanf("%d%d",&a,&b);
      |         ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | #include
main.c:6:9: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    6 |         scanf("%d%d",&a,&b);
      |         ^~~~~
main.c:6:9: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:7:9: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    7 |         printf("%d %d\n",a*b2*a+2*b);
      |         ^~~~~~
main.c:7:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:7:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:7:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:7:28: error: 'b2' undeclared (first use in this function); did you mean 'b'?
    7 |         printf("%d %d\n",a*b2*a+2*b);
      |                            ^~
      |                            b
main.c:7:28: 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;
	scanf("%d%d",&a,&b);
	printf("%d %d\n",a*b2*a+2*b);
	
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:28: error: 'b2' undeclared (first use in this function); did you mean 'b'?
    7 |         printf("%d %d\n",a*b2*a+2*b);
      |                            ^~
      |                            b
main.c:7:28: 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;
    scanf("%d %d",&a,&b);
   
???int lanLec = (a * 2) + (b * 2);
   int areaLec = a * b;

   printf("%d %d",areaLec,lanLec);
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:1: error: expected expression before '?' token
    8 | ???int lanLec = (a * 2) + (b * 2);
      | ^
main.c:11:27: error: 'lanLec' undeclared (first use in this function)
   11 |    printf("%d %d",areaLec,lanLec);
      |                           ^~~~~~
main.c:11:27: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>
main(){
	int a;
	int b;
	scanf("%d %d",a,b);
	s=a*b;
	r=2*a+2*b;
	printf("%d %d",s,r);
	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: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: 'r' undeclared (first use in this function)
    7 |         r=2*a+2*b;
      |         ^
Language: C

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

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

#include <stdio.h>
main(){
	int a;
	int b;
	scanf("%d %d",&a,&b);
	s=a*b;
	r=2*a+2*b;
	printf("%d %d\n",s,r);
	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: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: 'r' undeclared (first use in this function)
    7 |         r=2*a+2*b;
      |         ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:5:13: error: expected ')' before 'd'
    5 | printf("%d "d",a*b,2*(a+b));
      |       ~     ^
      |             )
main.c:5:14: warning: missing terminating " character
    5 | printf("%d "d",a*b,2*(a+b));
      |              ^
main.c:5:14: error: missing terminating " character
    5 | printf("%d "d",a*b,2*(a+b));
      |              ^~~~~~~~~~~~~~~
main.c:6:10: error: expected ';' before '}' token
    6 | return 0;
      |          ^
      |          ;
    7 | }
      | ~
Language: C

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

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

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

    return 0;
}

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

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

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

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

Compiler output:
main.c: In function 'main':
main.c:5:20: warning: missing terminating " character
    5 | scanf("%d\n",&a ,&b");
      |                    ^
main.c:5:20: error: missing terminating " character
    5 | scanf("%d\n",&a ,&b");
      |                    ^~~
main.c:5:20: error: expected ')' before '}' token
    5 | scanf("%d\n",&a ,&b");
      |      ~             ^
      |                    )
    6 | }
      | ~                   
main.c:5:20: error: expected ';' before '}' token
    5 | scanf("%d\n",&a ,&b");
      |                    ^
      |                    ;
    6 | }
      | ~                   
main.c: At top level:
main.c:7:9: error: 'a' undeclared here (not in a function)
    7 | int c = a*b;
      |         ^
main.c:7:11: error: 'b' undeclared here (not in a function)
    7 | int c = a*b;
      |           ^
main.c:8:9: error: invalid suffix "a" on integer constant
    8 | int d = 2a+2b;
      |         ^~
main.c:8:12: error: invalid suffix "b" on integer constant
    8 | int d = 2a+2b;
      |            ^~
main.c:9:8: error: expected declaration specifiers or '...' before string constant
    9 | printf("%d\n %d\n",c ,d)
      |        ^~~~~~~~~~~
main.c:9:20: error: expected declaration specifiers or '...' before 'c'
    9 | printf("%d\n %d\n",c ,d)
      |                    ^
main.c:9:23: error: expected declaration specifiers or '...' before 'd'
    9 | printf("%d\n %d\n",c ,d)
      |                       ^
main.c:11:1: error: expected identifier or '(' before '}' token
   11 | }
      | ^
Language: C

#include<stdio.h>
int main(void){
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:5:21: warning: missing terminating " character
    5 | scanf("%d %d",&a ,&b");
      |                     ^
main.c:5:21: error: missing terminating " character
    5 | scanf("%d %d",&a ,&b");
      |                     ^~~
main.c:5:21: error: expected ')' before 'printf'
    5 | scanf("%d %d",&a ,&b");
      |      ~              ^
      |                     )
    6 | printf("%d\n %d\n",a*b ,2*(a+b))
      | ~~~~~~               
main.c:7:10: error: expected ';' before '}' token
    7 | return 0;
      |          ^
      |          ;
    8 | }
      | ~
Language: C

#include<stdio.h>
int main(void){
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:5:21: warning: missing terminating " character
    5 | scanf("%d %d",&a ,&b");
      |                     ^
main.c:5:21: error: missing terminating " character
    5 | scanf("%d %d",&a ,&b");
      |                     ^~~
main.c:5:21: error: expected ')' before 'printf'
    5 | scanf("%d %d",&a ,&b");
      |      ~              ^
      |                     )
    6 | printf("%d\n %d\n",a*b ,2*(a+b));
      | ~~~~~~               
main.c:7:10: error: expected ';' before '}' token
    7 | return 0;
      |          ^
      |          ;
    8 | }
      | ~
Language: C

#include<stdio.h>
int main(void){
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:5:21: warning: missing terminating " character
    5 | scanf("%d %d",&a ,&b");
      |                     ^
main.c:5:21: error: missing terminating " character
    5 | scanf("%d %d",&a ,&b");
      |                     ^~~
main.c:5:21: error: expected ')' before 'printf'
    5 | scanf("%d %d",&a ,&b");
      |      ~              ^
      |                     )
    6 | printf("%d\n %d\n",a*b ,2*a+2*b);
      | ~~~~~~               
main.c:7:10: error: expected ';' before '}' token
    7 | return 0;
      |          ^
      |          ;
    8 | }
      | ~
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+2*b);
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:21: warning: missing terminating " character
    5 | scanf("%d %d",&a ,&b");
      |                     ^
main.c:5:21: error: missing terminating " character
    5 | scanf("%d %d",&a ,&b");
      |                     ^~~
main.c:5:21: error: expected ')' before 'printf'
    5 | scanf("%d %d",&a ,&b");
      |      ~              ^
      |                     )
    6 | printf("%d %d\n",a*b ,2*a+2*b);
      | ~~~~~~               
main.c:7:10: error: expected ';' before '}' token
    7 | return 0;
      |          ^
      |          ;
    8 | }
      | ~
Language: C

#include <stdio.h>

int main(void)

int a, b;
{
	puts("???????????´??°?????\?????????????????????");
	printf("???");	scanf("%d", &a);
	printf("?¨?");	scanf("%d", &b);

	printf("??¢??????%d??§??????\n", a * b);
	printf("??¨???????????????%d??§??????\n", a + a + b + b);

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:3:5: error: old-style parameter declarations in prototyped function definition
    3 | int main(void)
      |     ^~~~
main.c:8:38: error: 'a' undeclared (first use in this function)
    8 |         printf("???");  scanf("%d", &a);
      |                                      ^
main.c:8:38: note: each undeclared identifier is reported only once for each function it appears in
main.c:9:38: error: 'b' undeclared (first use in this function)
    9 |         printf("?¨?");  scanf("%d", &b);
      |                                      ^
Language: C

#include <stdio.h>

int main(void)

int a, b;
{
	puts("???????????´??°?????\?????????????????????");
	printf("???");	scanf("%d", &a);
	printf("?¨?");	scanf("%d", &b);

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

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:3:5: error: old-style parameter declarations in prototyped function definition
    3 | int main(void)
      |     ^~~~
main.c:8:38: error: 'a' undeclared (first use in this function)
    8 |         printf("???");  scanf("%d", &a);
      |                                      ^
main.c:8:38: note: each undeclared identifier is reported only once for each function it appears in
main.c:9:38: error: 'b' undeclared (first use in this function)
    9 |         printf("?¨?");  scanf("%d", &b);
      |                                      ^
Language: C

#include <stdio.h>

int main(void)

int a, b;
{
	puts("???????????´??°?????\?????????????????????");
	printf("???");	scanf("%d", &a);
	printf("?¨?");	scanf("%d", &b);

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

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:3:5: error: old-style parameter declarations in prototyped function definition
    3 | int main(void)
      |     ^~~~
main.c:8:38: error: 'a' undeclared (first use in this function)
    8 |         printf("???");  scanf("%d", &a);
      |                                      ^
main.c:8:38: note: each undeclared identifier is reported only once for each function it appears in
main.c:9:38: error: 'b' undeclared (first use in this function)
    9 |         printf("?¨?");  scanf("%d", &b);
      |                                      ^
Language: C

#include <stdio.h>

int main(void)

int a, b;
{
	puts("???????????´??°?????\?????????????????????");
	printf("???");	scanf("%d", &a);
	printf("?¨?");	scanf("%d", &b);

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

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:3:5: error: old-style parameter declarations in prototyped function definition
    3 | int main(void)
      |     ^~~~
main.c:8:38: error: 'a' undeclared (first use in this function)
    8 |         printf("???");  scanf("%d", &a);
      |                                      ^
main.c:8:38: note: each undeclared identifier is reported only once for each function it appears in
main.c:9:38: error: 'b' undeclared (first use in this function)
    9 |         printf("?¨?");  scanf("%d", &b);
      |                                      ^
Language: C

#include <stdio.h>

int main(void)

int a, b;
{

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

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

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:3:5: error: old-style parameter declarations in prototyped function definition
    3 | int main(void)
      |     ^~~~
main.c:8:22: error: 'a' undeclared (first use in this function)
    8 |         scanf("%d", &a);
      |                      ^
main.c:8:22: note: each undeclared identifier is reported only once for each function it appears in
main.c:9:22: error: 'b' undeclared (first use in this function)
    9 |         scanf("%d", &b);
      |                      ^
Language: C

#include <stdio.h>

int main(void)

int a, b;
int S, N;
{

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

	S = a * b;
	N = a + b + a + b;

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

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:3:5: error: old-style parameter declarations in prototyped function definition
    3 | int main(void)
      |     ^~~~
main.c:9:22: error: 'a' undeclared (first use in this function)
    9 |         scanf("%d", &a);
      |                      ^
main.c:9:22: note: each undeclared identifier is reported only once for each function it appears in
main.c:10:22: error: 'b' undeclared (first use in this function)
   10 |         scanf("%d", &b);
      |                      ^
main.c:12:9: error: 'S' undeclared (first use in this function)
   12 |         S = a * b;
      |         ^
main.c:13:9: error: 'N' undeclared (first use in this function)
   13 |         N = a + b + a + b;
      |         ^
Language: C

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

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

printf("&d %d\n", s, syu);

return 0;
}

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

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

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

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

Compiler output:
main.c: In function 'main':
main.c:4:2: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    4 |  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(void){
main.c:4:2: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    4 |  scanf("%d %d",&a,&b);
      |  ^~~~~
main.c:4:2: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:4:17: error: 'a' undeclared (first use in this function)
    4 |  scanf("%d %d",&a,&b);
      |                 ^
main.c:4:17: note: each undeclared identifier is reported only once for each function it appears in
main.c:4:20: error: 'b' undeclared (first use in this function)
    4 |  scanf("%d %d",&a,&b);
      |                    ^
main.c:6:6: error: invalid suffix "a" on integer constant
    6 |  l = 2a + 2b;
      |      ^~
main.c:6:11: error: invalid suffix "b" on integer constant
    6 |  l = 2a + 2b;
      |           ^~
main.c:9:2: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    9 |  printf("%d %d\n",l s);
      |  ^~~~~~
main.c:9:2: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:9:2: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:9:2: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:9:20: error: expected ')' before 's'
    9 |  printf("%d %d\n",l s);
      |        ~           ^~
      |                    )
main.c:10:9: error: expected expression before '=' token
   10 |  return = 0;
      |         ^
Language: C

int main(void){
 int l,s,a,b = 0;

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

Compiler output:
main.c: In function 'main':
main.c:4:2: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    4 |  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(void){
main.c:4:2: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    4 |  scanf("%d %d",&a,&b);
      |  ^~~~~
main.c:4:2: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:6:6: error: invalid suffix "a" on integer constant
    6 |  l = 2a + 2b;
      |      ^~
main.c:6:11: error: invalid suffix "b" on integer constant
    6 |  l = 2a + 2b;
      |           ^~
main.c:9:2: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    9 |  printf("%d %d\n",l s);
      |  ^~~~~~
main.c:9:2: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:9:2: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:9:2: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:9:20: error: expected ')' before 's'
    9 |  printf("%d %d\n",l s);
      |        ~           ^~
      |                    )
main.c:10:9: error: expected expression before '=' token
   10 |  return = 0;
      |         ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:4:2: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    4 |  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(void){
main.c:4:2: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    4 |  scanf("%d %d",&a,&b);
      |  ^~~~~
main.c:4:2: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:6:6: error: called object is not a function or function pointer
    6 |  l = 2(a+2);
      |      ^
main.c:9:2: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    9 |  printf("%d %d\n",l s);
      |  ^~~~~~
main.c:9:2: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:9:2: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:9:2: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:9:20: error: expected ')' before 's'
    9 |  printf("%d %d\n",l s);
      |        ~           ^~
      |                    )
main.c:10:9: error: expected expression before '=' token
   10 |  return = 0;
      |         ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:7:2: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    7 |  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(void){
main.c:7:2: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    7 |  scanf("%d %d",&a,&b);
      |  ^~~~~
main.c:7:2: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:9:6: error: called object is not a function or function pointer
    9 |  l = 2(a+2);
      |      ^
main.c:12:2: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   12 |  printf("%d %d\n",s l);
      |  ^~~~~~
main.c:12:2: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:12:2: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:12:2: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:12:20: error: expected ')' before 'l'
   12 |  printf("%d %d\n",s l);
      |        ~           ^~
      |                    )
main.c:13:9: error: expected expression before '=' token
   13 |  return = 0;
      |         ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:7:2: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    7 |  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(void){
main.c:7:2: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    7 |  scanf("%d %d",&a,&b);
      |  ^~~~~
main.c:7:2: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:12:2: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   12 |  printf("%d %d\n",s l);
      |  ^~~~~~
main.c:12:2: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:12:2: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:12:2: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:12:20: error: expected ')' before 'l'
   12 |  printf("%d %d\n",s l);
      |        ~           ^~
      |                    )
main.c:13:9: error: expected expression before '=' token
   13 |  return = 0;
      |         ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:7:2: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    7 |  scanf("%d %d",&a,&b);
      |  ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | void main(void){
main.c:7:2: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    7 |  scanf("%d %d",&a,&b);
      |  ^~~~~
main.c:7:2: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:12:2: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   12 |  printf("%d %d\n",s l);
      |  ^~~~~~
main.c:12:2: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:12:2: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:12:2: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:12:20: error: expected ')' before 'l'
   12 |  printf("%d %d\n",s l);
      |        ~           ^~
      |                    )
main.c:13:9: error: expected expression before '=' token
   13 |  return = 0;
      |         ^
main.c:13:9: error: 'return' with a value, in function returning void [-Wreturn-mismatch]
main.c:1:6: note: declared here
    1 | void main(void){
      |      ^~~~
Language: C

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

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

Compiler output:
main.c: In function 'main':
main.c:8:2: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    8 |  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(void)
main.c:8:2: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    8 |  scanf("%d %d",&a,&b);
      |  ^~~~~
main.c:8:2: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:13:2: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   13 |  printf("%d %d\n",s l);
      |  ^~~~~~
main.c:13:2: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:13:2: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:13:2: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:13:20: error: expected ')' before 'l'
   13 |  printf("%d %d\n",s l);
      |        ~           ^~
      |                    )
main.c:14:9: error: expected expression before '=' token
   14 |  return = 0;
      |         ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:8:2: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    8 |  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(void)
main.c:8:2: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    8 |  scanf("%d %d",&a,&b);
      |  ^~~~~
main.c:8:2: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:13:2: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   13 |  printf("%d %d\n",s,l);
      |  ^~~~~~
main.c:13:2: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:13:2: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:13:2: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:14:9: error: expected expression before '=' token
   14 |  return = 0;
      |         ^
Language: C

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

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

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

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

return -;
}

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

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

Compiler output:
main.c:1:19: warning: extra tokens at end of #include directive
    1 | #include <stdio.h>{
      |                   ^
main.c:8:1: error: expected identifier or '(' before '}' token
    8 | }
      | ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:5:22: error: expected ';' before 'printf'
    5 |   scanf("%d%d",&a,&b)
      |                      ^
      |                      ;
    6 |   printf("%d %d",a*b,2*a+2*b);
      |   ~~~~~~
Language: C

public class Main{
 public static void main(String[]args){
  int a;
  int b;
  a=new java.util.Scanner(System.in).nextInt();
  b=new java.util.Scanner(System.in).nextInt();
  System.out.println(a*b+" "+2*(a+b));
}

}

Compiler output:
main.c:1:1: error: unknown type name 'public'
    1 | public class Main{
      | ^~~~~~
main.c:1:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Main'
    1 | public class Main{
      |              ^~~~
Language: C

class Main{
 public static void main(String[]args){
  int a;
  int b;
  a=new java.util.Scanner(System.in).nextInt();
  b=new java.util.Scanner(System.in).nextInt();
  System.out.println(a*b+" "+2*(a+b));
}

}

Compiler output:
main.c:1:1: error: unknown type name 'class'
    1 | class Main{
      | ^~~~~
main.c:1:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    1 | class Main{
      |           ^
Language: C

class Main{
    public static void main(String[] args){
  int a;
  int b;
  a=new java.util.Scanner(System.in).nextInt();
  b=new java.util.Scanner(System.in).nextInt();
  System.out.println(a*b+" "+2*(a+b));
}

}

Compiler output:
main.c:1:1: error: unknown type name 'class'
    1 | class Main{
      | ^~~~~
main.c:1:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    1 | class Main{
      |           ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:6:23: error: expected ';' before 'return'
    6 |    printf("%d %d",a,b)
      |                       ^
      |                       ;
    7 | 
    8 |   return 0;
      |   ~~~~~~
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:8:25: error: expected identifier before '&' token
    8 |     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,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 %d", a*b,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+b)*2);
??
return 0 ;
}

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

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

}

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

#include <stdio.h>
int main(void){
    // Here your code !
    int S;
    scanf("%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:5:20: error: 'a' undeclared (first use in this function)
    5 |     scanf("%d %d",&a,&b);
      |                    ^
main.c:5:20: note: each undeclared identifier is reported only once for each function it appears in
main.c:5:23: error: 'b' undeclared (first use in this function)
    5 |     scanf("%d %d",&a,&b);
      |                       ^
Language: C

#include <stdio.h>
int main(void){
    int n,m;// Here your code !
    scanf("%d %d" ,&n,&m);
    printf("%d %d\n",n*m,2n+2m);
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:26: error: invalid suffix "n" on integer constant
    5 |     printf("%d %d\n",n*m,2n+2m);
      |                          ^~
main.c:5:29: error: invalid suffix "m" on integer constant
    5 |     printf("%d %d\n",n*m,2n+2m);
      |                             ^~
Language: C

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

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

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

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