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

include <stdio.h>
int main(void){
    int n,m;
    scanf("%d %d",&n,&m);
    printf ("%d %d\n",n+m,n*m);
    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){
    // Here your code !
   int a b;
   scanf("%d %d",&a,&b);
   printf("%d\n",a*b);
   return 0;
}

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

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

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

#include <stdio.h>
int main(void){
    // Here your code !
   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:6:25: error: invalid suffix "a" on integer constant
    6 |    printf("%d %d\n",a*b,2a+2b);
      |                         ^~
main.c:6:28: error: invalid suffix "b" on integer constant
    6 |    printf("%d %d\n",a*b,2a+2b);
      |                            ^~
Language: C

#include <stdio.h>
int main(void){
    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:26: error: invalid suffix "a" on integer constant
    5 |     printf("%d %d\n",a*b,2a+2b);
      |                          ^~
main.c:5:29: error: invalid suffix "b" on integer constant
    5 |     printf("%d %d\n",a*b,2a+2b);
      |                             ^~
Language: C

#include<stdio.h>

int main (){

    int a,b,men=0,shu=0;

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

    men=a*b;
    shu=(a+b)*2;

    printf("%d%d\n",men,shu);

    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:20: 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;
    int b;

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

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

    return 0;
}

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

#include <stdio.h>

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

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

#include <stdio.h>

int main(void)
{
    int x, y;
    scanf("%d", &x);
    scanf("%d", &y);
    
    if (1 <= x && x <= 100 && 1 <= y && y <= 100)
        printf("%d", x * y); printf("%d\n", 2 * x + 2 * y);
    else
        puts("error");
    
    return 0;
}
    

Compiler output:
main.c: In function 'main':
main.c:11:5: error: 'else' without a previous 'if'
   11 |     else
      |     ^~~~
Language: C

#include <stdio.h>

int main(void)
{
    int x, y;
    scanf("%d", &x);
    scanf("%d", &y);
    
    if (1 <= x && x <= 100 && 1 <= y && y <= 100)
        printf("%d", x * y);
        printf("%d\n", 2 * x + 2 * y);
    else
        printf("error");
    
    return 0;
}
    

Compiler output:
main.c: In function 'main':
main.c:12:5: error: 'else' without a previous 'if'
   12 |     else
      |     ^~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:3:7: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'b'
    3 | int a b c d;
      |       ^
main.c:3:7: error: unknown type name 'b'
main.c:3:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'd'
    3 | int a b c d;
      |           ^
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);
      |                      ^
main.c:5:5: error: 'c' undeclared (first use in this function)
    5 |     c=a*b
      |     ^
main.c:5:10: error: expected ';' before 'd'
    5 |     c=a*b
      |          ^
      |          ;
    6 |     d=2a+2b
      |     ~     
main.c:6:7: error: invalid suffix "a" on integer constant
    6 |     d=2a+2b
      |       ^~
main.c:6:10: error: invalid suffix "b" on integer constant
    6 |     d=2a+2b
      |          ^~
Language: C

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

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

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

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

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

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

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

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



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

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

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

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

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

Compiler output:
main.c: In function 'main':
main.c:5:7: error: expected expression before '%' token
    5 | scanf(%d,&a);
      |       ^
main.c:6:7: error: expected expression before '%' token
    6 | scanf(%d\n,&b);
      |       ^
main.c:6:9: error: stray '\' in program
    6 | scanf(%d\n,&b);
      |         ^
main.c:7:8: error: expected expression before '%' token
    7 | printf(%d,a*b);
      |        ^
main.c:8:8: error: expected expression before '%' token
    8 | printf(%d\n,a*2+b*2);
      |        ^
main.c:8:10: error: stray '\' in program
    8 | printf(%d\n,a*2+b*2);
      |          ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:5:23: error: stray '\' in program
    5 |     printf("%d %d",a*b\n,(a+b)*2\n);
      |                       ^
main.c:5:23: error: expected ')' before 'n'
    5 |     printf("%d %d",a*b\n,(a+b)*2\n);
      |           ~           ^~
      |                       )
main.c:5:33: error: stray '\' in program
    5 |     printf("%d %d",a*b\n,(a+b)*2\n);
      |                                 ^
Language: C

#include<stdio.h>

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

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

#include<stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:9:26: error: expected ';' before 'return'
    9 |     printf("%d %d", x, y)
      |                          ^
      |                          ;
   10 |     return 0;
      |     ~~~~~~
Language: C

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

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

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:5:14: error: expected identifier or '(' before 'long'
    5 | int a,b,area,long;
      |              ^~~~
main.c:8:5: error: expected identifier or '(' before '=' token
    8 | long=a+a+b+b;
      |     ^
main.c:9:25: error: expected expression before 'long'
    9 | printf("%d","%d\n",area,long);
      |                         ^~~~
Language: C

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:5:14: error: expected identifier or '(' before 'long'
    5 | int a,b,area,long;
      |              ^~~~
main.c:8:5: error: expected identifier or '(' before '=' token
    8 | long=a+a+b+b;
      |     ^
main.c:9:29: error: expected expression before 'long'
    9 | printf("%d"," ","%d\n",area,long);
      |                             ^~~~
Language: C

#include <stdio.h>

int main()
{
int a,b,area,long;
scanf("%d","%d",&a,&b);
area=a*b;
long=a+a+b+b;
printf("%d"," ","%d",area,long);
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:14: error: expected identifier or '(' before 'long'
    5 | int a,b,area,long;
      |              ^~~~
main.c:8:5: error: expected identifier or '(' before '=' token
    8 | long=a+a+b+b;
      |     ^
main.c:9:27: error: expected expression before 'long'
    9 | printf("%d"," ","%d",area,long);
      |                           ^~~~
Language: C

#include <stdio.h>

int main()
{
int a;
int b;
int area;
int long;
scanf("%d","%d",&a,&b);
area=a*b;
long=a+a+b+b;
printf("%d"," ","%d",area,long);
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:1: warning: useless type name in empty declaration
    8 | int long;
      | ^~~
main.c:11:5: error: expected identifier or '(' before '=' token
   11 | long=a+a+b+b;
      |     ^
main.c:12:27: error: expected expression before 'long'
   12 | printf("%d"," ","%d",area,long);
      |                           ^~~~
Language: C

#include <stdio.h>

int main()
{
int a;
int b;
int area;
int long;
scanf("%d %d",&a,&b);
area=a*b;
long=a+a+b+b;
printf("%d"," ","%d",area,long);
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:1: warning: useless type name in empty declaration
    8 | int long;
      | ^~~
main.c:11:5: error: expected identifier or '(' before '=' token
   11 | long=a+a+b+b;
      |     ^
main.c:12:27: error: expected expression before 'long'
   12 | printf("%d"," ","%d",area,long);
      |                           ^~~~
Language: C

#include <stdio.h>

int main()
{
int a;
int b;
int area;
int long;
scanf("%d %d",&a,&b);
area=a*b;
long=a+a+b+b;
printf("%d %d",area,long);
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:1: warning: useless type name in empty declaration
    8 | int long;
      | ^~~
main.c:11:5: error: expected identifier or '(' before '=' token
   11 | long=a+a+b+b;
      |     ^
main.c:12:21: error: expected expression before 'long'
   12 | printf("%d %d",area,long);
      |                     ^~~~
Language: C

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:8:1: warning: useless type name in empty declaration
    8 | int long;
      | ^~~
main.c:11:5: error: expected identifier or '(' before '=' token
   11 | long=2*(a+b);
      |     ^
main.c:12:23: error: expected expression before 'long'
   12 | printf("%d %d\n",area,long);
      |                       ^~~~
Language: C

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:8:9: error: expected identifier or '(' before '=' token
    8 | int long=0;
      |         ^
main.c:11:5: error: expected identifier or '(' before '=' token
   11 | long=2*(a+b);
      |     ^
main.c:12:23: error: expected expression before 'long'
   12 | printf("%d %d\n",area,long);
      |                       ^~~~
Language: C

#include <stdio.h>

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

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

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

Compiler output:
main.c:2:7: error: expected declaration specifiers or '...' before string constant
    2 | scanf("%d%d", &a, &b);
      |       ^~~~~~
main.c:2:15: error: expected declaration specifiers or '...' before '&' token
    2 | scanf("%d%d", &a, &b);
      |               ^
main.c:2:19: error: expected declaration specifiers or '...' before '&' token
    2 | scanf("%d%d", &a, &b);
      |                   ^
main.c:3:8: error: expected declaration specifiers or '...' before string constant
    3 | printf("%d %d\n",a*b, a+b*2);
      |        ^~~~~~~~~
main.c:3:18: error: expected declaration specifiers or '...' before 'a'
    3 | printf("%d %d\n",a*b, a+b*2);
      |                  ^
main.c:3:23: error: expected declaration specifiers or '...' before 'a'
    3 | printf("%d %d\n",a*b, a+b*2);
      |                       ^
main.c:4:1: error: expected identifier or '(' before 'return'
    4 | return 0;
      | ^~~~~~
main.c:5:1: error: expected identifier or '(' before '}' token
    5 | }
      | ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:3:1: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    3 | scanf("%d", &a, &b);
      | ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main(){
main.c:3:1: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    3 | scanf("%d", &a, &b);
      | ^~~~~
main.c:3:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:4:12: error: expected ';' before 'y'
    4 | x = 2*(a+b)
      |            ^
      |            ;
    5 | y = a*b
      | ~
Language: C

int a,b,area,perimeter;
scanf("%d%d", &a, &b);
if(a>=1 && a<=100 && b>=1 && b<=100){
area=a*b;
perimeter=2*a+2*b;
printf("%d %d", area, perimeter);}
else{
printf("input should between 1 and 100");}

Compiler output:
main.c:2:7: error: expected declaration specifiers or '...' before string constant
    2 | scanf("%d%d", &a, &b);
      |       ^~~~~~
main.c:2:15: error: expected declaration specifiers or '...' before '&' token
    2 | scanf("%d%d", &a, &b);
      |               ^
main.c:2:19: error: expected declaration specifiers or '...' before '&' token
    2 | scanf("%d%d", &a, &b);
      |                   ^
main.c:3:1: error: expected identifier or '(' before 'if'
    3 | if(a>=1 && a<=100 && b>=1 && b<=100){
      | ^~
main.c:7:1: error: expected identifier or '(' before 'else'
    7 | else{
      | ^~~~
Language: C

int a,b,area,perimeter;
scanf("%d%d", &a, &b);
if(a>=1 && a<=100 && b>=1 && b<=100){
area=a*b;
perimeter=2*a+2*b;
printf("%d %d", area, perimeter);}

Compiler output:
main.c:2:7: error: expected declaration specifiers or '...' before string constant
    2 | scanf("%d%d", &a, &b);
      |       ^~~~~~
main.c:2:15: error: expected declaration specifiers or '...' before '&' token
    2 | scanf("%d%d", &a, &b);
      |               ^
main.c:2:19: error: expected declaration specifiers or '...' before '&' token
    2 | scanf("%d%d", &a, &b);
      |                   ^
main.c:3:1: error: expected identifier or '(' before 'if'
    3 | if(a>=1 && a<=100 && b>=1 && b<=100){
      | ^~
Language: C

int a,b,area,perimeter;
scanf("%d%d", &a, &b);
if("a>=1" && "a<=100" && "b>=1" && "b<=100"){
area=a*b;
perimeter=2*a+2*b;
printf("%d %d", area, perimeter);}
else{
printf("input should between 1 and 100");}

Compiler output:
main.c:2:7: error: expected declaration specifiers or '...' before string constant
    2 | scanf("%d%d", &a, &b);
      |       ^~~~~~
main.c:2:15: error: expected declaration specifiers or '...' before '&' token
    2 | scanf("%d%d", &a, &b);
      |               ^
main.c:2:19: error: expected declaration specifiers or '...' before '&' token
    2 | scanf("%d%d", &a, &b);
      |                   ^
main.c:3:1: error: expected identifier or '(' before 'if'
    3 | if("a>=1" && "a<=100" && "b>=1" && "b<=100"){
      | ^~
main.c:7:1: error: expected identifier or '(' before 'else'
    7 | else{
      | ^~~~
Language: C

int a,b,area,perimeter;
scanf("%d%d", &a, &b);
if("a>=1" && "a<=100" && "b>=1" && "b<=100"){
area=a*b;
perimeter=2*a+2*b;
printf("%d %d", area, perimeter);}

Compiler output:
main.c:2:7: error: expected declaration specifiers or '...' before string constant
    2 | scanf("%d%d", &a, &b);
      |       ^~~~~~
main.c:2:15: error: expected declaration specifiers or '...' before '&' token
    2 | scanf("%d%d", &a, &b);
      |               ^
main.c:2:19: error: expected declaration specifiers or '...' before '&' token
    2 | scanf("%d%d", &a, &b);
      |                   ^
main.c:3:1: error: expected identifier or '(' before 'if'
    3 | if("a>=1" && "a<=100" && "b>=1" && "b<=100"){
      | ^~
Language: C

int a,b,area,perimeter;
scanf("%d%d", &a, &b);
{
if("a>=1" && "a<=100" && "b>=1" && "b<=100"){
area=a*b;
perimeter=2*a+2*b;
printf("%d %d", area, perimeter);}
}

Compiler output:
main.c:2:7: error: expected declaration specifiers or '...' before string constant
    2 | scanf("%d%d", &a, &b);
      |       ^~~~~~
main.c:2:15: error: expected declaration specifiers or '...' before '&' token
    2 | scanf("%d%d", &a, &b);
      |               ^
main.c:2:19: error: expected declaration specifiers or '...' before '&' token
    2 | scanf("%d%d", &a, &b);
      |                   ^
main.c:3:1: error: expected identifier or '(' before '{' token
    3 | {
      | ^
Language: C

int a,b,area,perimeter;
scanf("%d%d", &a, &b);
area=a*b;
perimeter=2*a+2*b;
printf("%d %d", area, perimeter);

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

#include <stdio.h>

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

}

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

#include<stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:7:10: error: invalid suffix "a" on integer constant
    7 | around = 2a+2b;
      |          ^~
main.c:7:13: error: invalid suffix "b" on integer constant
    7 | around = 2a+2b;
      |             ^~
Language: C

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

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

#include <stdio.h>

int main (void)
{

int a;
int b;

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

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

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:20: error: expected expression before '%' token
    9 | scanf("%d %d", &a, %b);
      |                    ^
main.c:11:22: error: stray '\' in program
   11 | printf("%d\n", a * b \t 2 * (a + b)\n);
      |                      ^
main.c:11:21: error: expected ')' before 't'
   11 | printf("%d\n", a * b \t 2 * (a + b)\n);
      |       ~             ^ ~
      |                     )
main.c:11:36: error: stray '\' in program
   11 | printf("%d\n", a * b \t 2 * (a + b)\n);
      |                                    ^
Language: C

#include <stdio.h>

int main (void)
{

int a;
int b;

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

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

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:20: error: expected expression before '%' token
    9 | scanf("%d %d", &a, %b);
      |                    ^
main.c:11:26: error: stray '\' in program
   11 | printf("%d %d \n", a * b \t 2 * (a + b)\n);
      |                          ^
main.c:11:25: error: expected ')' before 't'
   11 | printf("%d %d \n", a * b \t 2 * (a + b)\n);
      |       ~                 ^ ~
      |                         )
main.c:11:40: error: stray '\' in program
   11 | printf("%d %d \n", a * b \t 2 * (a + b)\n);
      |                                        ^
Language: C

#include <stdio.h>

int main (void)
{

int a;
int b;

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

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

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:20: error: expected expression before '%' token
    9 | scanf("%d %d", &a, %b);
      |                    ^
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:8:20: error: expected expression before '%' token
    8 | scanf("%d %d", &a, %b);
      |                    ^
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:8:19: error: invalid operands to binary % (have 'int *' and 'int')
    8 | scanf("%d %d", &a %b);
      |                ~~ ^
      |                |
      |                int *
main.c:10:24: error: expected ')' before numeric constant
   10 | printf("%d %d\n", a * b  2 *a + 2 * 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: In function 'main':
main.c:4:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'scanf'
    4 |         scanf("%d %d",&a,&b);
      |         ^~~~~
main.c:5:28: error: 'b' undeclared (first use in this function)
    5 |         printf("%d %d\n",a*b,(a+b)*2);
      |                            ^
main.c:5: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;
int b;
scanf("%d",&a, "%d",&b);
printf(%d,a*b %d,2*a+2*b);
}

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

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:8:8: warning: multi-character character constant [-Wmultichar]
    8 | printf('%d',a*b '%d',2*a+2*b);
      |        ^~~~
main.c:8:17: warning: multi-character character constant [-Wmultichar]
    8 | printf('%d',a*b '%d',2*a+2*b);
      |                 ^~~~
main.c:8:16: error: expected ')' before '\x2564'
    8 | printf('%d',a*b '%d',2*a+2*b);
      |       ~        ^~~~~
      |                )
main.c:8:8: error: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion]
    8 | printf('%d',a*b '%d',2*a+2*b);
      |        ^~~~
      |        |
      |        int
In file included from main.c:1:
/usr/include/stdio.h:363:43: note: expected 'const char * restrict' but argument is of type 'int'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
Language: C

#include <stdio.h>

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

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

#include <stdio.h>

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

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

#include <stdio.h>

int main(void)
{
int a;
int b;
scanf("%d",&a,"%d",&b?\n);

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

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

#include <stdio.h>

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

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

Compiler output:
main.c: In function 'main':
main.c:9:12: error: invalid operands to binary + (have 'char *' and 'char *')
    9 | printf("%d"+" "+"%d?\n",a*b,2*a+2*b);
      |        ~~~~^
      |        |   |
      |        |   char *
      |        char *
Language: C

#include <stdio.h>

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

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


}

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

#include<stdio.h>

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

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

if(a<1||b>100)
printf("Too Large");

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








}

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

#include<iostream>
#include<algorithm>
#include<stdio.h>
using namespace std;

int main() {
	int a, b;
	scanf_s("%d", &a);
	scanf_s("%d", &b);

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

	return 0;
}

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() {
  int a b l s;
  scanf("%d %d", &a, &b);
  printf("%d\n", a*2+b*2, a*b);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'b'
    4 |   int a b l s;
      |         ^
main.c:4:9: error: unknown type name 'b'
main.c:4:13: error: expected '=', ',', ';', 'asm' or '__attribute__' before 's'
    4 |   int a b l s;
      |             ^
main.c:5:19: error: 'a' undeclared (first use in this function)
    5 |   scanf("%d %d", &a, &b);
      |                   ^
main.c:5:19: 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 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:4:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'b'
    4 |   int a b;
      |         ^
main.c:4:9: error: 'b' undeclared (first use in this function)
main.c:4:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:18: error: 'a' undeclared (first use in this function)
    6 |   scanf("%d %d",&a,&b);
      |                  ^
Language: C

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

    area = a * b;
    perimeter = (a + b) * 2;

  printf("%d %d?\n",area perimeter);

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:20: error: invalid operands to binary & (have 'int *' and 'int')
    6 |   scanf("%d %d",&a &b);
      |                 ~~ ^
      |                 |
      |                 int *
main.c:11:25: error: expected ')' before 'perimeter'
   11 |   printf("%d %d?\n",area perimeter);
      |         ~               ^~~~~~~~~~
      |                         )
Language: C

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

    area = a * b;
    perimeter = (a + b) * 2;

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

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:20: error: invalid operands to binary & (have 'int *' and 'int')
    6 |   scanf("%d %d",&a &b);
      |                 ~~ ^
      |                 |
      |                 int *
main.c:11:24: error: expected ')' before 'perimeter'
   11 |   printf("%d %d\n",area perimeter);
      |         ~              ^~~~~~~~~~
      |                        )
Language: C

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

    area = a * b;
    perimeter = (a + b) * 2;

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

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:20: error: invalid operands to binary & (have 'int *' and 'int')
    6 |   scanf("%d %d",&a &b);
      |                 ~~ ^
      |                 |
      |                 int *
main.c:11:25: error: expected ')' before 'perimeter'
   11 |   printf("%d %d \n",area perimeter);
      |         ~               ^~~~~~~~~~
      |                         )
Language: C

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

    area = a * b;
    perimeter = (a + b) * 2;

  printf("%d %d ?\n",area perimeter);

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:20: error: invalid operands to binary & (have 'int *' and 'int')
    6 |   scanf("%d %d",&a &b);
      |                 ~~ ^
      |                 |
      |                 int *
main.c:11:26: error: expected ')' before 'perimeter'
   11 |   printf("%d %d ?\n",area perimeter);
      |         ~                ^~~~~~~~~~
      |                          )
Language: C

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

    area = a * b;
    perimeter = (a + b) * 2;

  printf("%d %d",area perimeter);

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:20: error: invalid operands to binary & (have 'int *' and 'int')
    6 |   scanf("%d %d",&a &b);
      |                 ~~ ^
      |                 |
      |                 int *
main.c:11:22: error: expected ')' before 'perimeter'
   11 |   printf("%d %d",area perimeter);
      |         ~            ^~~~~~~~~~
      |                      )
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:6:1: error: 'c' undeclared (first use in this function)
    6 | c=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: 'd' undeclared (first use in this function)
    7 | d=2*(a+b);
      | ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:6:1: error: 'c' undeclared (first use in this function)
    6 | c=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: 'd' undeclared (first use in this function)
    7 | d=2*(a+b);
      | ^
Language: C

#include <stdio.h>

int main(void)
{
     int s;

     scanf("%d",&s);

     m = s/60;
     h = s/3600;
     a = (s-h*3600)/60;

    if(s < 60){
      printf("0:0:%d",s):
    }else if(s >= 60, s < 3600){
      printf("0:%d:%d",m,s-m*60);
    }else if(3600 < s){
      primtf("%d:%d:%d",h,(s-h*3600)/60,s-h*3600-a*60);
    }

    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:6: error: 'm' undeclared (first use in this function)
    9 |      m = s/60;
      |      ^
main.c:9:6: note: each undeclared identifier is reported only once for each function it appears in
main.c:10:6: error: 'h' undeclared (first use in this function)
   10 |      h = s/3600;
      |      ^
main.c:11:6: error: 'a' undeclared (first use in this function)
   11 |      a = (s-h*3600)/60;
      |      ^
main.c:14:25: error: expected ';' before ':' token
   14 |       printf("0:0:%d",s):
      |                         ^
      |                         ;
main.c:18:7: error: implicit declaration of function 'primtf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   18 |       primtf("%d:%d:%d",h,(s-h*3600)/60,s-h*3600-a*60);
      |       ^~~~~~
      |       printf
Language: C

#include <stdio.h>

int main(void)
{
     int s;

     scanf("%d",&s);

     m = s/60;
     h = s/3600;
     a = (s-h*3600)/60;

    if(s < 60){
      printf("0:0:%d",s):
    }else if(s >= 60, s < 3600){
      printf("0:%d:%d",m,s-m*60);
    }else if(3600 < s){
      printf("%d:%d:%d",h,a,s-h*3600-a*60);
    }

    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:6: error: 'm' undeclared (first use in this function)
    9 |      m = s/60;
      |      ^
main.c:9:6: note: each undeclared identifier is reported only once for each function it appears in
main.c:10:6: error: 'h' undeclared (first use in this function)
   10 |      h = s/3600;
      |      ^
main.c:11:6: error: 'a' undeclared (first use in this function)
   11 |      a = (s-h*3600)/60;
      |      ^
main.c:14:25: error: expected ';' before ':' token
   14 |       printf("0:0:%d",s):
      |                         ^
      |                         ;
Language: C

#include <stdio.h>

int main(void)
{
     int s,m,h,a;

     scanf("%d",&s);

     m = s/60;
     h = s/3600;
     a = (s-h*3600)/60;

    if(s < 60){
      printf("0:0:%d",s):
    }else if(s >= 60, s < 3600){
      printf("0:%d:%d",m,s-m*60);
    }else if(3600 < s){
      printf("%d:%d:%d",h,a,s-h*3600-a*60);
    }

    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:14:25: error: expected ';' before ':' token
   14 |       printf("0:0:%d",s):
      |                         ^
      |                         ;
Language: C

#include <stdio.h>

int main(void)
{

int a, b;

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


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


}

Compiler output:
main.c: In function 'main':
main.c:11:17: error: lvalue required as unary '&' operand
   11 | printf("%d %d", &(a*b), &((a*a)+(b*b)));
      |                 ^
main.c:11:25: error: lvalue required as unary '&' operand
   11 | printf("%d %d", &(a*b), &((a*a)+(b*b)));
      |                         ^
Language: C

#include <stdio.h>

int main(void)
{

int a, b;

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


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

return 0;

}

Compiler output:
main.c: In function 'main':
main.c:11:17: error: lvalue required as unary '&' operand
   11 | printf("%d %d", &(a*b), &((a*a)+(b*b)));
      |                 ^
main.c:11:25: error: lvalue required as unary '&' operand
   11 | printf("%d %d", &(a*b), &((a*a)+(b*b)));
      |                         ^
Language: C

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

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

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

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

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

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:4:7: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'b'
    4 | int a b;
      |       ^
main.c:4:7: error: 'b' undeclared (first use in this function)
main.c:4:7: note: each undeclared identifier is reported only once for each function it appears in
main.c:5:16: error: 'a' undeclared (first use in this function)
    5 | scanf("%d %d",&a,&b);
      |                ^
main.c:6:22: error: invalid suffix "a" on integer 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(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:4:7: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'b'
    4 | int a b;
      |       ^
main.c:4:7: error: 'b' undeclared (first use in this function)
main.c:4:7: note: each undeclared identifier is reported only once for each function it appears in
main.c:5:16: error: 'a' undeclared (first use in this function)
    5 | scanf("%d %d",&a,&b);
      |                ^
Language: C

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

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

return 0;
}

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

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

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

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:22: error: invalid suffix "a" on integer 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(void){

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

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:22: error: invalid suffix "a" on integer constant
    7 | printf("%d %d\n",a*b,2a+2b);
      |                      ^~
main.c:7:25: error: invalid suffix "b" on integer constant
    7 | printf("%d %d\n",a*b,2a+2b);
      |                         ^~
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:28: error: expected ';' before 'return'
    5 | printf("%d %d",a*b,2*(a+b))
      |                            ^
      |                            ;
    6 | return 0;
      | ~~~~~~
Language: C

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

#include <studio.h>
int main(void)
{
int X;
int Y;
X=3;
Y=5;
printf("%d\n%d\n" ,X*Y, 2*X+2*Y);
return 0;
}

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

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

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

Compiler output:
main.c: In function 'main':
main.c:7:13: error: invalid suffix "a" on integer constant
    7 |         l = 2a + 2b;
      |             ^~
main.c:7:18: error: invalid suffix "b" on integer constant
    7 |         l = 2a + 2b;
      |                  ^~
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:8:26: error: invalid suffix "a" on integer constant
    8 |     printf("%d %d\n",a*b,2a+2b);
      |                          ^~
main.c:8:29: error: invalid suffix "b" on integer constant
    8 |     printf("%d %d\n",a*b,2a+2b);
      |                             ^~
Language: C

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

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