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

#include <stdio.h>

int main(){
	int a, b;
	int l, s;

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

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

#include <stdio.h>

int main(){
	int a, b;
	int l, s;

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

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

#include <stdio.h>

int main(){
	int a, b;
	int l, s;

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

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

#include<stdio.h>

int main(){

    int ab;

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

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

    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:20: error: 'a' undeclared (first use in this function); did you mean 'ab'?
    7 |     scanf("%d %d",&a,&b)
      |                    ^
      |                    ab
main.c:7:20: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:23: error: 'b' undeclared (first use in this function); did you mean 'ab'?
    7 |     scanf("%d %d",&a,&b)
      |                       ^
      |                       ab
main.c:7:25: error: expected ';' before 'printf'
    7 |     scanf("%d %d",&a,&b)
      |                         ^
      |                         ;
    8 | 
    9 |     printf("%d\n"a*b 2*(a+b));
      |     ~~~~~~
Language: C

#include<stdio.h>

int main(){

    int a b;

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

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

    return 0;
}

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

#include<stdio.h>

int main(){

    int a b;

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

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

    return 0;
}

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

#include<stdio.h>

int main(){

    int ab;

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

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

    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:20: error: 'a' undeclared (first use in this function); did you mean 'ab'?
    7 |     scanf("%d %d",&a,&b)
      |                    ^
      |                    ab
main.c:7:20: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:23: error: 'b' undeclared (first use in this function); did you mean 'ab'?
    7 |     scanf("%d %d",&a,&b)
      |                       ^
      |                       ab
main.c:7:25: error: expected ';' before 'printf'
    7 |     scanf("%d %d",&a,&b)
      |                         ^
      |                         ;
    8 | 
    9 |     printf("%d\n",&a*b,&2*(a+b));
      |     ~~~~~~
Language: C

#include<stdio.h>

int main(){

    int ab;

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

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

    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:20: error: 'a' undeclared (first use in this function); did you mean 'ab'?
    7 |     scanf("%d %d",&a,&b);
      |                    ^
      |                    ab
main.c:7:20: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:23: error: 'b' undeclared (first use in this function); did you mean 'ab'?
    7 |     scanf("%d %d",&a,&b);
      |                       ^
      |                       ab
main.c:9:24: error: lvalue required as unary '&' operand
    9 |     printf("%d\n",&a*b,&2*(a+b));
      |                        ^
Language: C

#include<stdio.h>

int main(){

    int ab;

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

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

    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:20: error: 'a' undeclared (first use in this function); did you mean 'ab'?
    7 |     scanf("%d %d",&a,&b);
      |                    ^
      |                    ab
main.c:7:20: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:23: error: 'b' undeclared (first use in this function); did you mean 'ab'?
    7 |     scanf("%d %d",&a,&b);
      |                       ^
      |                       ab
main.c:9:24: error: lvalue required as unary '&' operand
    9 |     printf("%d\n",&a*b,&2*(a+b)\n);
      |                        ^
main.c:9:32: error: stray '\' in program
    9 |     printf("%d\n",&a*b,&2*(a+b)\n);
      |                                ^
main.c:9:32: error: expected ')' before 'n'
    9 |     printf("%d\n",&a*b,&2*(a+b)\n);
      |           ~                    ^~
      |                                )
Language: C

#include<stdio.h>

int main(){

    int a b;

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

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

    return 0;
}

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

#include<stdio.h>

int main(){

    int ab;

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

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

    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:20: error: 'a' undeclared (first use in this function); did you mean 'ab'?
    7 |     scanf("%d %d",&a,&b);
      |                    ^
      |                    ab
main.c:7:20: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:23: error: 'b' undeclared (first use in this function); did you mean 'ab'?
    7 |     scanf("%d %d",&a,&b);
      |                       ^
      |                       ab
main.c:9:23: error: expected ')' before ';' token
    9 |     printf("%d\n",&a*b;,&2*(a+b);\n);
      |           ~           ^
      |                       )
main.c:9:34: error: stray '\' in program
    9 |     printf("%d\n",&a*b;,&2*(a+b);\n);
      |                                  ^
Language: C

#include<stdio.h>

int main(){

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

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

    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);
      |                       ^
main.c:7:23: error: expected ')' before ';' token
    7 |     printf("%d\n",&a*b;,&2*(a+b);\n);
      |           ~           ^
      |                       )
main.c:7:34: error: stray '\' in program
    7 |     printf("%d\n",&a*b;,&2*(a+b);\n);
      |                                  ^
Language: C

#include<stdio.h>

int main(){

    int ab;

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

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

    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:20: error: 'a' undeclared (first use in this function); did you mean 'ab'?
    7 |     scanf("%d %d",&a,&b);
      |                    ^
      |                    ab
main.c:7:20: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:23: error: 'b' undeclared (first use in this function); did you mean 'ab'?
    7 |     scanf("%d %d",&a,&b);
      |                       ^
      |                       ab
main.c:9:23: error: expected ')' before ';' token
    9 |     printf("%d\n",&a*b;,&2*(a+b););
      |           ~           ^
      |                       )
Language: C

#include<stdio.h>

int main(){

    int &a,&b;

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

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

    return 0;
}

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

#include<stdio.h>

int main(){

    int &a,&b;

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

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

    return 0;
}

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

#include<stdio.h>

int main(){

int &a,&b;

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

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

return 0;
}

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

#include<stdio.h>

int main(){

int ,&a,&b;

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

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

return 0;
}

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

#include<stdio.h>

int main(){

int a,b;

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

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

return 0;
}

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

#include<stdio.h>

int main(){

int a,b;

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

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

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:17: error: invalid operands to binary * (have 'int *' and 'int')
    9 | printf("%d\n",&a*b,&2*(a+b););
      |               ~~^
      |               |
      |               int *
main.c:9:20: error: lvalue required as unary '&' operand
    9 | printf("%d\n",&a*b,&2*(a+b););
      |                    ^
main.c:9:28: error: expected ')' before ';' token
    9 | printf("%d\n",&a*b,&2*(a+b););
      |       ~                    ^
      |                            )
Language: C

#include<stdio.h>

int main(){

int a,b;

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

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

return 0;
}

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

#include<stdio.h>

int main(){

int a,b;

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

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

return 0;
}

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

#include<stdio.h>

int main(){

int a,b;

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

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

return 0;
}

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

#include<stdio.h>

int main(){

int a,b;

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

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

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:17: error: invalid operands to binary * (have 'int *' and 'int')
    9 | printf("%d\n",&a*b,&2*(a+b));
      |               ~~^
      |               |
      |               int *
main.c:9:20: error: lvalue required as unary '&' operand
    9 | printf("%d\n",&a*b,&2*(a+b));
      |                    ^
Language: C

#includ<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:1:2: error: invalid preprocessing directive #includ; did you mean #include?
    1 | #includ<stdio.h>
      |  ^~~~~~
      |  include
main.c: In function 'main':
main.c:6:1: 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 | #includ<stdio.h>
main.c:6:1: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    6 | scanf("%d %d",&a,&b);
      | ^~~~~
main.c:6:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:7:1: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    7 | printf("%d %d\n",a*b,2*a+2*b);
      | ^~~~~~
main.c:7:1: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:7:1: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:7:1: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

#include<stdio.h>

int main(){

int &a, &b

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

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

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:5: error: expected identifier or '(' before '&' token
    5 | int &a, &b
      |     ^
main.c:9:15: error: 'a' undeclared (first use in this function)
    9 | printf("%d\n",a*b "%d\n",2(a+b))
      |               ^
main.c:9:15: note: each undeclared identifier is reported only once for each function it appears in
main.c:9:17: error: 'b' undeclared (first use in this function)
    9 | printf("%d\n",a*b "%d\n",2(a+b))
      |                 ^
main.c:9:18: error: expected ')' before string constant
    9 | printf("%d\n",a*b "%d\n",2(a+b))
      |       ~          ^~~~~~~
      |                  )
main.c:9:33: error: expected ';' before 'return'
    9 | printf("%d\n",a*b "%d\n",2(a+b))
      |                                 ^
      |                                 ;
   10 | 
   11 | return 0;
      | ~~~~~~
Language: C

#include<stdio.h>

int main(){

int &a, &b;

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

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

return 0;
}

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

#include<stdio.h>

int main(){

int &a, &b;

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

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

return 0;
}

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

#include<stdio.h>

int main(){

int &a, &b;

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

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

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:5: error: expected identifier or '(' before '&' token
    5 | int &a, &b;
      |     ^
main.c:7:17: error: 'a' undeclared (first use in this function)
    7 | scanf("%d %d", &a, &b);
      |                 ^
main.c:7:17: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:21: error: 'b' undeclared (first use in this function)
    7 | scanf("%d %d", &a, &b);
      |                     ^
main.c:9:18: error: expected ')' before string constant
    9 | printf("%d\n",a*b "%d\n",2(a+b))
      |       ~          ^~~~~~~
      |                  )
main.c:9:33: error: expected ';' before 'return'
    9 | printf("%d\n",a*b "%d\n",2(a+b))
      |                                 ^
      |                                 ;
   10 | 
   11 | return 0;
      | ~~~~~~
Language: C

#include<stdio.h>

int main(){

int &a, &b;

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

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

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:5: error: expected identifier or '(' before '&' token
    5 | int &a, &b;
      |     ^
main.c:7:17: error: 'a' undeclared (first use in this function)
    7 | scanf("%d %d", &a, &b);
      |                 ^
main.c:7:17: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:21: error: 'b' undeclared (first use in this function)
    7 | scanf("%d %d", &a, &b);
      |                     ^
main.c:9:18: error: expected ')' before string constant
    9 | printf("%d\n",a*b "%d\n",2*(a+b))
      |       ~          ^~~~~~~
      |                  )
main.c:9:34: error: expected ';' before 'return'
    9 | printf("%d\n",a*b "%d\n",2*(a+b))
      |                                  ^
      |                                  ;
   10 | 
   11 | return 0;
      | ~~~~~~
Language: C

#include<stdio.h>

int main(){

int &a, &b;

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

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

return 0;
}

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

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

x=a*b;
y=a*2+b*2;

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

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

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

#include<stdio.h>
int main(){
    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:22: error: invalid operands to binary & (have 'int *' and 'int')
    4 |     scanf("%d %d",&a &b);
      |                   ~~ ^
      |                   |
      |                   int *
Language: C

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

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

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

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

#include<stdio.h>

int main(void)

{


   int a_cm,b_cm,mennseki,x

   mennseki=a_cm*b_c


   scanf("%d %d",&a_cm&b_cm);


   printf("%d",mennseki);


   x=a_cm*2+b_cm*2


   printf("%d",x)





return 0;


}

Compiler output:
main.c: In function 'main':
main.c:10:4: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'mennseki'
   10 |    mennseki=a_cm*b_c
      |    ^~~~~~~~
main.c:19:4: error: 'x' undeclared (first use in this function)
   19 |    x=a_cm*2+b_cm*2
      |    ^
main.c:19:4: note: each undeclared identifier is reported only once for each function it appears in
main.c:19:19: error: expected ';' before 'printf'
   19 |    x=a_cm*2+b_cm*2
      |                   ^
      |                   ;
......
   22 |    printf("%d",x)
      |    ~~~~~~
Language: C

#include<stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:7:5: error: 'z' undeclared (first use in this function)
    7 |     z = x * y;
      |     ^
main.c:7:5: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:5: error: 'w' undeclared (first use in this function)
    8 |     w = 2*(x+y);
      |     ^
Language: C

#include<stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:7:5: error: 'z' undeclared (first use in this function)
    7 |     z = x * y;
      |     ^
main.c:7:5: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:5: error: 'w' undeclared (first use in this function)
    8 |     w = 2 * (x+y);
      |     ^
Language: C

#include<stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:7:5: error: 'z' undeclared (first use in this function)
    7 |     z = x * y;
      |     ^
main.c:7:5: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:5: error: 'w' undeclared (first use in this function)
    8 |     w = 2 * ( x + y );
      |     ^
Language: C

#include<stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:7:5: error: 'z' undeclared (first use in this function)
    7 |     z = x * y;
      |     ^
main.c:7:5: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:5: error: 'w' undeclared (first use in this function)
    8 |     w = 2 * ( x + y );
      |     ^
Language: C

#include<stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:7:5: error: 'z' undeclared (first use in this function)
    7 |     z = x * y;
      |     ^
main.c:7:5: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:5: error: 'w' undeclared (first use in this function)
    8 |     w = 2 * ( x + y );
      |     ^
Language: C

#include<stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:7:5: error: 'z' undeclared (first use in this function)
    7 |     z = x * y;
      |     ^
main.c:7:5: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:5: error: 'w' undeclared (first use in this function)
    8 |     w = 2 * (x + y);
      |     ^
Language: C

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

  scanf("%d %d", &l, &c);
  printf("%d %d", l*c, 4(l+c));

  return 0;
}

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

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

  return 0;
}

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

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

  return 0;
}

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

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

Compiler output:
main.c: In function 'main':
main.c:5:26: error: invalid operands to binary & (have 'int *' and 'int')
    5 |         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,2*a+2*b);
	return 0;
}
	

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

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:6:8: warning: missing terminating " character
    6 |  scanf("%d %d,&a,&b);
      |        ^
main.c:6:8: error: missing terminating " character
    6 |  scanf("%d %d,&a,&b);
      |        ^~~~~~~~~~~~~~
main.c:7:11: error: expected ')' before ';' token
    7 |  c = a * b;
      |           ^
      |           )
main.c:6:7: note: to match this '('
    6 |  scanf("%d %d,&a,&b);
      |       ^
main.c:7:4: error: passing argument 1 of 'scanf' makes pointer from integer without a cast [-Wint-conversion]
    7 |  c = a * b;
      |  ~~^~~~~~~
      |    |
      |    int
In file included from main.c:1:
/usr/include/stdio.h:428:42: note: expected 'const char *' but argument is of type 'int'
  428 | extern int scanf (const char *__restrict __format, ...) __wur;
      |                   ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
main.c:10:11: error: expected ';' before '}' token
   10 |  return 0;
      |           ^
      |           ;
   11 | }
      | ~
Language: C

#include <stdio.h>

int main(void)          
{
	int a, b;
        int syuu, size;
        syuu = (a + b) * 2;
        size = a * b;        

	scanf("%d %d", &a, &b);
	printf("%d %d", size, syuu;


	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:35: error: expected ')' before ';' token
   11 |         printf("%d %d", size, syuu;
      |               ~                   ^
      |                                   )
main.c:14:18: error: expected ';' before '}' token
   14 |         return 0;
      |                  ^
      |                  ;
   15 | }
      | ~
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:6:26: error: called object is not a function or function pointer
    6 |     printf("%d %d\n",a*b,2(a+b));
      |                          ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:8:23: error: expected ';' before 'printf'
    8 |         scanf("%b",&b)
      |                       ^
      |                       ;
    9 |         printf("c=%d\n",c);
      |         ~~~~~~
Language: C

#include<stdio.h>

int main()
{
  int a,b,me,shu;
  scanf("%d",&a,&b);
  me = a*b;
  shu = 2*a + 2*b;

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

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:14: error: stray '\' in program
   10 |   printf("%d"\n"%d" me,shu);
      |              ^
main.c:10:14: error: expected ')' before 'n'
   10 |   printf("%d"\n"%d" me,shu);
      |         ~    ^~
      |              )
Language: C

#include<stdio.h>

int main()
{
  int a,b,me,shu;
  scanf("%d",&a,&b);
  me = a*b;
  shu = 2*a + 2*b;

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

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:17: error: stray '\' in program
   10 |   printf("%d %d"\n me,shu);
      |                 ^
main.c:10:17: error: expected ')' before 'n'
   10 |   printf("%d %d"\n me,shu);
      |         ~       ^~
      |                 )
Language: C

#include<stdio.h>

int main()
{
  int a,b,me,shu;
  scanf("%d",&a,&b);
  me = a*b;
  shu = 2*a + 2*b;

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

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:19: error: expected ')' before 'me'
   10 |   printf("%d %d\n" me,shu);
      |         ~         ^~~
      |                   )
Language: C

#include<stdio.h>

int main()
{
  int a,b,me,shu;
  scanf("%d %d",&a,&b);
  me = a*b;
  shu = 2*a + 2*b;

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

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:19: error: expected ')' before 'me'
   10 |   printf("%d %d\n" me,shu);
      |         ~         ^~~
      |                   )
Language: C


#include <stdio.h>

int main( void ){
int tate; /* ???????????? */
int yoko; /* ?¨?????????? */
int ???; /* ??¢??? */
int ???; /* ??¨????????? */

/* ??\??? */
printf( "???????????????" );
scanf( "%d", &tate );
printf( "?¨?????????????" );
scanf( "%d", &yoko );

/* ??¢???????±??????? */
??? = tate * yoko;

/* ??¨?????????????±??????? */
??? = 2 * ( tate + yoko );

/* ?????? */
printf( "??¢??????%d ??¨????????????%d\n", S, L );

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:5: error: expected identifier or '(' before '?' token
    7 | int ???; /* ??¢??? */
      |     ^
main.c:8:5: error: expected identifier or '(' before '?' token
    8 | int ???; /* ??¨????????? */
      |     ^
main.c:17:1: error: expected expression before '?' token
   17 | ??? = tate * yoko;
      | ^
main.c:20:1: error: expected expression before '?' token
   20 | ??? = 2 * ( tate + yoko );
      | ^
main.c:23:44: error: 'S' undeclared (first use in this function)
   23 | printf( "??¢??????%d ??¨????????????%d\n", S, L );
      |                                            ^
main.c:23:44: note: each undeclared identifier is reported only once for each function it appears in
main.c:23:47: error: 'L' undeclared (first use in this function)
   23 | printf( "??¢??????%d ??¨????????????%d\n", S, L );
      |                                               ^
Language: C


#include <stdio.h>

int main( void ){
int tate; /* ???????????? */
int yoko; /* ?¨?????????? */
int ???; /* ??¢??? */
int ???; /* ??¨????????? */

/* ??\??? */
printf( "???????????????" );
scanf( "%d", &tate );
printf( "?¨?????????????" );
scanf( "%d", &yoko );

/* ??¢???????±??????? */
??? = tate * yoko;

/* ??¨?????????????±??????? */
??? = 2 * ( tate + yoko );

/* ?????? */
printf( "??¢??????%d ??¨????????????%d\n", ???, ??? );

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:5: error: expected identifier or '(' before '?' token
    7 | int ???; /* ??¢??? */
      |     ^
main.c:8:5: error: expected identifier or '(' before '?' token
    8 | int ???; /* ??¨????????? */
      |     ^
main.c:17:1: error: expected expression before '?' token
   17 | ??? = tate * yoko;
      | ^
main.c:20:1: error: expected expression before '?' token
   20 | ??? = 2 * ( tate + yoko );
      | ^
main.c:23:44: error: expected expression before '?' token
   23 | printf( "??¢??????%d ??¨????????????%d\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",c,d);
 return 0;
}

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

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

Compiler output:
main.c: In function 'main':
main.c:4:3: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'scanf'
    4 |   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,2*(a+b));
   return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:1: error: expected expression before '?' token
    5 | ??? printf("%d %d",a*b,2*(a+b));
      | ^
main.c:5:32: error: expected ':' before ';' token
    5 | ??? printf("%d %d",a*b,2*(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\n",x,y);	
   return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:1: error: expected expression before '?' token
    6 | ??? x=a*b;
      | ^
Language: C

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

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

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:1: error: unknown type name 'inf'; did you mean 'int'?
    5 | inf a,b;
      | ^~~
      | int
main.c:8:27: error: stray '\' in program
    8 | printf("%d %d",a+a+b+b,a*b\n");
      |                           ^
main.c:8:27: error: expected ')' before 'n'
    8 | printf("%d %d",a+a+b+b,a*b\n");
      |       ~                   ^~
      |                           )
main.c:8:29: warning: missing terminating " character
    8 | printf("%d %d",a+a+b+b,a*b\n");
      |                             ^
main.c:8:29: error: missing terminating " character
    8 | printf("%d %d",a+a+b+b,a*b\n");
      |                             ^~~
main.c:10:10: error: expected ';' before '}' token
   10 | return 0;
      |          ^
      |          ;
   11 | }
      | ~
Language: C

#include
int main(void)
{
    int a, b, c, d;
    printf("???????????????????\n");
    scanf("%d", &a);
    printf("???????????????????\n");
    scanf("%d", &b);
    c = a * b;
    d = a + b + a + b;
    printf("??¢???????%d\n", c);
    printf("?????¨????%d\n", d);
    return 0;
}

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

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

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

#include<stdio.h>

int main(){
    
    printf("????????¢?????¢??????a=?\n");    
    scanf("%d %d", &a, &b);
    printf("????????¢?????¢??????b=?\n"); 
    scanf("%d %d", &a, &b);
    return 0
}

Compiler output:
main.c: In function 'main':
main.c:6:21: error: 'a' undeclared (first use in this function)
    6 |     scanf("%d %d", &a, &b);
      |                     ^
main.c:6:21: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:25: error: 'b' undeclared (first use in this function)
    6 |     scanf("%d %d", &a, &b);
      |                         ^
main.c:9:13: error: expected ';' before '}' token
    9 |     return 0
      |             ^
      |             ;
   10 | }
      | ~
Language: C

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

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

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

Compiler output:
main.c: In function 'main':
main.c:8:2: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
    8 |  print("%d %d\n",x,y);
      |  ^~~~~
      |  printf
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:9:2: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
    9 |  print("%d %d\n",x,y);
      |  ^~~~~
      |  printf
Language: C

#include<stdio.h

int main(void)
{
	int tate, yoko, menseki, syuu;

	printf("");
	scanf("%d %d",&tate, &yoko);

	if((1 <= tate) && (yoko <= yoko))
		menseki = tate * yoko;
		syuu = (2*tate) + (2*yoko);

		printf("%d %d",menseki, syuu);

	return 0;
}

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

#include<stdio.h>

int main(void)
{
    int tate, yoko, menseki, syuu;

    printf("");
    scanf("%d %d",&tate, &yoko);

    if((1 <= tate) && (yoko <= 100))
    {
        menseki = tate * yoko;
        syuu = (2*tate) + (2*yoko)
     
        printf(%d %d,menseki, syuu);
    }

    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:13:35: error: expected ';' before 'printf'
   13 |         syuu = (2*tate) + (2*yoko)
      |                                   ^
      |                                   ;
   14 | 
   15 |         printf(%d %d,menseki, syuu);
      |         ~~~~~~
Language: C

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

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

        Long = (a+b)*2;
        Area = a*b;

        printf("%d %d", Long, Area);

        return 0;
}

~
~

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

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

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

        Long = (a+b)*2;
        Area = a*b;

        printf("%d %d\n", Long, Area);

        return 0;
}

~

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

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

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

#include
{
int w,h;

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

printf("?????¨ = %d\n", 2 * w + 2 * h);
printf("??¢??? = %d\n", w * h);

return 0;
}

Compiler output:
main.c:1:9: error: #include expects "FILENAME" or <FILENAME>
    1 | #include
      |         ^
main.c:2:1: error: expected identifier or '(' before '{' token
    2 | {
      | ^
Language: C

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

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

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

 int S=a*b;
 int R=2(a+b);

 printf("%d %d\n",S,R);
 return 0;
}

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

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

Compiler output:
main.c: In function 'main':
main.c:6:23: error: invalid operands to binary & (have 'char *' and 'int')
    6 |         scanf("%d %d" &a, &b);
      |               ~~~~~~~ ^
      |               |
      |               char *
main.c:10:13: error: invalid suffix "a" on integer constant
   10 |         b = 2a + 2b ;
      |             ^~
main.c:10:18: error: invalid suffix "b" on integer constant
   10 |         b = 2a + 2b ;
      |                  ^~
main.c:12:25: error: expected ')' before 'a'
   12 |         printf("%d %d\n"a, b);
      |               ~         ^
      |                         )
Language: C

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

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

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

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

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

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

include<stdio.h>

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

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

include<stdio.h>

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

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

include<stdio.h>

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

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

include<stdio.h>

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

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