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

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

  scanf("%d", &x);
  scanf("%d", &y);
  scanf("%d", &z);
  
  area = x * y;
  printf("%d\n", area);

  round = x + x + y + y;
  printf("%d\n", round);
  return 0;
  
}

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

#include<stdio.h>
int main(){
scanf("%d %d",&a,&b);
printf("%d %d\n",a*b,(a+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);
      |                   ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:4:7: warning: missing terminating " character
    4 | scanf("%d %d\", &a, &b);
      |       ^
main.c:4:7: error: missing terminating " character
    4 | scanf("%d %d\", &a, &b);
      |       ^~~~~~~~~~~~~~~~~~
main.c:5:13: error: expected ')' before 'n'
    5 | area = a * b
      |             ^
      |             )
    6 | n = a*2 + b*2;
      | ~            
main.c:4:6: note: to match this '('
    4 | scanf("%d %d\", &a, &b);
      |      ^
main.c:5:6: error: passing argument 1 of 'scanf' makes pointer from integer without a cast [-Wint-conversion]
    5 | area = 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:8:10: error: expected ';' before '}' token
    8 | return 0;
      |          ^
      |          ;
    9 | }
      | ~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:3:16: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'n'
    3 | int a, b, area n;
      |                ^
main.c:5:1: error: 'area' undeclared (first use in this function)
    5 | area = a*b;
      | ^~~~
main.c:5:1: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:1: error: 'n' undeclared (first use in this function)
    6 | n = a*2 + b*2;
      | ^
Language: C

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

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

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

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

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

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

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

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

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

#include <stdio.h>
#include <stdlib.h>

int main(int argv, char **argc) {
    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:7:41: error: expected ';' before 'return'
    7 |     printf("%d%d\n", a * b, 2 * (a + b))
      |                                         ^
      |                                         ;
    8 | 
    9 |     return 0;
      |     ~~~~~~
Language: C

#include<stdio.h>

int main(int argv, char **argc) {
    int a, b;
    scanf("%d %d", &a, &b)
    printf("%d %d\n", a * b, 2 * (a + b));

    return 0;
}

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

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

Compiler output:
main.c:1:19: warning: extra tokens at end of #include directive
    1 | #include <stdio.h>a;main(b){scanf("%d %d",&a,&b);printf("%d %d\n",a*b,(a+b)*2);}
      |                   ^
/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 x,y
    scanf( "%d %d",&x,&y );
    printf( "%d",x*y );
    return 0;
}

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

#include <stdio.h>

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

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

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

int syu(int a,b)
{
	int x;
	x=a*2+b*2;
	return x;
}

int mennseki(int a,b)
{
	int y;
	y=a*b;
	return y;

Compiler output:
main.c: In function 'main':
main.c:4:9: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    4 |         scanf("%d %d",&a,&b);
      |         ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main(void)
main.c:4:9: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    4 |         scanf("%d %d",&a,&b);
      |         ^~~~~
main.c:4:9: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:5:11: error: implicit declaration of function 'syu' [-Wimplicit-function-declaration]
    5 |         x=syu(a,b);
      |           ^~~
main.c:6:11: error: implicit declaration of function 'mennseki' [-Wimplicit-function-declaration]
    6 |         y=mennseki(a,b);
      |           ^~~~~~~~
main.c:7:9: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    7 |         printf("%d %d\n",x,y);
      |         ^~~~~~
main.c:7:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:7:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:7:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c: At top level:
main.c:11:15: error: unknown type name 'b'
   11 | int syu(int a,b)
      |               ^
main.c:18:20: error: unknown type name 'b'
   18 | int mennseki(int a,b)
      |                    ^
Language: C

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

int syu(int a,b)
{
	int x;
	x=a*2+b*2;
	return x;
}

int mennseki(int a,b)
{
	int y;
	y=a*b;
	return y;

Compiler output:
main.c: In function 'main':
main.c:4:9: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    4 |         scanf("%d%d",&a,&b);
      |         ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main(void)
main.c:4:9: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    4 |         scanf("%d%d",&a,&b);
      |         ^~~~~
main.c:4:9: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:5:11: error: implicit declaration of function 'syu' [-Wimplicit-function-declaration]
    5 |         x=syu(a,b);
      |           ^~~
main.c:6:11: error: implicit declaration of function 'mennseki' [-Wimplicit-function-declaration]
    6 |         y=mennseki(a,b);
      |           ^~~~~~~~
main.c:7:9: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    7 |         printf("%d %d\n",x,y);
      |         ^~~~~~
main.c:7:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:7:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:7:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c: At top level:
main.c:11:15: error: unknown type name 'b'
   11 | int syu(int a,b)
      |               ^
main.c:18:20: error: unknown type name 'b'
   18 | int mennseki(int a,b)
      |                    ^
Language: C

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

int syu(int a,b)
{
	int x;
	x=a*2+b*2;
	return x;
}

int mennseki(int a,b)
{
	int y;
	y=a*b;
	return y;
}

Compiler output:
main.c: In function 'main':
main.c:4:9: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    4 |         scanf("%d%d",&a,&b);
      |         ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main(void)
main.c:4:9: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    4 |         scanf("%d%d",&a,&b);
      |         ^~~~~
main.c:4:9: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:5:11: error: implicit declaration of function 'syu' [-Wimplicit-function-declaration]
    5 |         x=syu(a,b);
      |           ^~~
main.c:6:11: error: implicit declaration of function 'mennseki' [-Wimplicit-function-declaration]
    6 |         y=mennseki(a,b);
      |           ^~~~~~~~
main.c:7:9: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    7 |         printf("%d %d\n",x,y);
      |         ^~~~~~
main.c:7:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:7:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:7:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c: At top level:
main.c:11:15: error: unknown type name 'b'
   11 | int syu(int a,b)
      |               ^
main.c:18:20: error: unknown type name 'b'
   18 | int mennseki(int a,b)
      |                    ^
Language: C

#include <stdio.h>

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

#include <stdio.h>

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

Compiler output:
main.c:13:5: error: redefinition of 'main'
   13 | int main(){
      |     ^~~~
main.c:3:5: note: previous definition of 'main' with type 'int()'
    3 | int main()
      |     ^~~~
Language: C

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

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

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

#include <stdio.h>

int main ()
{
	int a;
	int b:

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

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

Compiler output:
main.c: In function 'main':
main.c:6:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
    6 |         int b:
      |              ^
main.c:6:14: error: expected expression before ':' token
main.c:10:35: error: 'b' undeclared (first use in this function)
   10 |         printf("%d %d\n", a * 2 + b * 2, a * b);
      |                                   ^
main.c:10:35: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>

int main ()
{
	int a;
	int b:

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

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

Compiler output:
main.c: In function 'main':
main.c:6:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
    6 |         int b:
      |              ^
main.c:6:14: error: expected expression before ':' token
main.c:10:31: error: 'b' undeclared (first use in this function)
   10 |         printf("%d %d\n", a * b, (a + b) * 2);
      |                               ^
main.c:10:31: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>

int main ()
{
	int a;
	int b:

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

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

Compiler output:
main.c: In function 'main':
main.c:6:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
    6 |         int b:
      |              ^
main.c:6:14: error: expected expression before ':' token
main.c:10:31: error: 'b' undeclared (first use in this function)
   10 |         printf("%d %d\n", a * b, (a + b) * 2);
      |                               ^
main.c:10:31: 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",&a,&b);
   printf("%d %d\n",a * b,(a + b)* 2);
   return 0;
}

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

#includ <stdio.h>

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

#includ <stdio.h>

int main()
{
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() {
    char[5] input;
    int width, length;

    scanf("%s", input);

    width = input[0] - '0';
    length = input[2] - '0';

    printf("%d\n", width*length);
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:4:9: error: expected identifier or '(' before '[' token
    4 |     char[5] input;
      |         ^
main.c:7:17: error: 'input' undeclared (first use in this function); did you mean 'int'?
    7 |     scanf("%s", input);
      |                 ^~~~~
      |                 int
main.c:7:17: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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


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

#include <stdio.h>

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


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

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


Compiler output:
main.c:2:10: fatal error: conio.h: No such file or directory
    2 | # include<conio.h>
      |          ^~~~~~~~~
compilation terminated.
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",c,d);
return 0;
}



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

#include<stdio.h>
#include<math.h>
int main()
{
     int a,b,c,d;
    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:8:18: error: expected ';' before 'printf'
    8 |     d = 2 * (a+b)
      |                  ^
      |                  ;
    9 |     printf("%d %d",c,d);
      |     ~~~~~~
Language: C

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




Compiler output:
main.c: In function 'main':
main.c:5:7: warning: missing terminating " character
    5 | scanf("%d %d,&a,&b);
      |       ^
main.c:5:7: error: missing terminating " character
    5 | scanf("%d %d,&a,&b);
      |       ^~~~~~~~~~~~~~
main.c:6:6: error: expected ')' before ';' token
    6 | A=a*b;
      |      ^
      |      )
main.c:5:6: note: to match this '('
    5 | scanf("%d %d,&a,&b);
      |      ^
main.c:6:2: error: passing argument 1 of 'scanf' makes pointer from integer without a cast [-Wint-conversion]
    6 | A=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:10: error: expected ';' before '}' token
   10 | return 0;
      |          ^
      |          ;
   11 | }
      | ~
Language: C

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




Compiler output:
main.c: In function 'main':
main.c:11:1: error: 'return0' undeclared (first use in this function)
   11 | return0;
      | ^~~~~~~
main.c:11:1: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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



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

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



Compiler output:
main.c: In function 'main':
main.c:7:3: error: called object is not a function or function pointer
    7 | d=2(a+b);
      |   ^
main.c:10:1: error: expected declaration or statement at end of input
   10 | }
      | ^
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",c,d);
return 0;
}


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

#include<stdio.h>

int main()

{
int a,b,AREA,PERA;
a>=1;
b<=100;
printf("Enter the value of a and b");
scanf("%d%d",&a,&b);
AREA=a*b;
PERA=2(a+b);
printf("%d\n",AREA);
printf("%d\n",PERA);
return 0;
}


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

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


Compiler output:
main.c:2:9: error: macro names must be identifiers
    2 | #define 1<=a,b<=100
      |         ^
Language: C

#include<stdio.h>
void main()
{
int length,breadth,area,parameter;
scanf("%d %d",&length,&breadth);
area=length*breadth;
parameter=2*(length+breadth);
printf("%d %d\n",length,breadth);


Compiler output:
main.c: In function 'main':
main.c:8:1: error: expected declaration or statement at end of input
    8 | printf("%d %d\n",length,breadth);
      | ^~~~~~
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:6:22: 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>
 main()
{
int a=4,b=5,c,p;
printf("enter the value of a:");
scanf("%d",&a);
printf("enter the value of b:");
scanf("%d",&b);
c = a*b;
printf("the value of c:");
p = 2*(a*b);
printf("the value of p:");
getch()
}


Compiler output:
main.c:2:2: error: return type defaults to 'int' [-Wimplicit-int]
    2 |  main()
      |  ^~~~
main.c: In function 'main':
main.c:13:1: error: implicit declaration of function 'getch'; did you mean 'getc'? [-Wimplicit-function-declaration]
   13 | getch()
      | ^~~~~
      | getc
main.c:13:8: error: expected ';' before '}' token
   13 | getch()
      |        ^
      |        ;
   14 | }
      | ~
Language: C

#include<stdio.h>
#define a>=1
#define b<=100
int main()

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


Compiler output:
main.c:2:9: warning: ISO C99 requires whitespace after the macro name
    2 | #define a>=1
      |         ^
main.c:3:9: warning: ISO C99 requires whitespace after the macro name
    3 | #define b<=100
      |         ^
main.c: In function 'main':
main.c:2:10: error: expected identifier or '(' before '>=' token
    2 | #define a>=1
      |          ^~
main.c:7:5: note: in expansion of macro 'a'
    7 | int a,b,AREA,PERA;
      |     ^
main.c:2:10: error: expected expression before '>=' token
    2 | #define a>=1
      |          ^~
main.c:8:15: note: in expansion of macro 'a'
    8 | scanf("%d%d",&a,&b);
      |               ^
main.c:9:1: error: 'AREA' undeclared (first use in this function)
    9 | AREA=a*b;
      | ^~~~
main.c:9:1: note: each undeclared identifier is reported only once for each function it appears in
main.c:2:10: error: expected expression before '>=' token
    2 | #define a>=1
      |          ^~
main.c:9:6: note: in expansion of macro 'a'
    9 | AREA=a*b;
      |      ^
main.c:10:1: error: 'PERA' undeclared (first use in this function)
   10 | PERA=2(a+b);
      | ^~~~
main.c:2:10: error: expected expression before '>=' token
    2 | #define a>=1
      |          ^~
main.c:10:8: note: in expansion of macro 'a'
   10 | PERA=2(a+b);
      |        ^
main.c:10:6: error: called object is not a function or function pointer
   10 | PERA=2(a+b);
      |      ^
Language: C

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



Compiler output:
main.c: In function 'main':
main.c:8:30: error: stray '\' in program
    8 | printf("%d %d",area,perimeter\n);
      |                              ^
main.c:8:30: error: expected ')' before 'n'
    8 | printf("%d %d",area,perimeter\n);
      |       ~                      ^~
      |                              )
Language: C

#include<stdio.h>

int main()

{
int a,b,AREA,PERA;
a>=1
b<=100
printf("Enter the value of a and b");
scanf("%d%d",&a,&b);
AREA=a*b;
PERA=2*(a+b);
printf("%d\n",AREA);
printf("%d\n",PERA);
return 0;
}


Compiler output:
main.c: In function 'main':
main.c:7:5: error: expected ';' before 'b'
    7 | a>=1
      |     ^
      |     ;
    8 | b<=100
      | ~
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:12:1: error: expected '(' before '{' token
   12 | {
      | ^
      | (
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:5:17: error: invalid operands to binary & (have 'char *' and 'int')
    5 |     scanf("%d%d"&a,&b);
      |           ~~~~~~^
      |           |
      |           char *
main.c:8:20: error: expected ')' before 'c'
    8 |     printf("%d%d/n"c,d);
      |           ~        ^
      |                    )
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:5:18: error: invalid operands to binary & (have 'char *' and 'int')
    5 |     scanf("%d %d"&a,&b);
      |           ~~~~~~~^
      |           |
      |           char *
main.c:8:21: error: expected ')' before 'c'
    8 |     printf("%d %d/n"c,d);
      |           ~         ^
      |                     )
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:12:1: error: expected '(' before '{' token
   12 | {
      | ^
      | (
Language: C

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



Compiler output:
main.c: In function 'main':
main.c:11:19: error: expected ';' before 'printf'
   11 | while(1<=a,b<=100)
      |                   ^
      |                   ;
   12 | printf("%d %d",area,perimeter);
      | ~~~~~~
Language: C

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


Compiler output:
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main()
      | ^~~~
main.c: In function 'main':
main.c:6:22: 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()
{
    int a,b,area,perimeter;
    scanf("%d %d",&a,&b)
    area=a*b;
    perimeter=2*(a+b);
    printf("%d %d",area,perimeter);
    return 0;
}



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

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


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

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


Compiler output:
main.c: In function 'main':
main.c:7:25: error: invalid operands to binary % (have 'char *' and 'int')
    7 | printf("the value of c:"%d);
      |        ~~~~~~~~~~~~~~~~~^
      |        |
      |        char *
main.c:8:1: error: 'p' undeclared (first use in this function)
    8 | p = 2*(a+b);
      | ^
main.c:8:1: note: each undeclared identifier is reported only once for each function it appears in
main.c:9:25: error: invalid operands to binary % (have 'char *' and 'int')
    9 | printf("the value of p:"%d);
      |        ~~~~~~~~~~~~~~~~~^
      |        |
      |        char *
Language: C

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


Compiler output:
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main()
      | ^~~~
main.c: In function 'main':
main.c:7:5: error: called object is not a function or function pointer
    7 | d = 2(a + b);
      |     ^
Language: C

include<stdio.h>

int main(void){

int a;
int b;

scanf("%d %d",a,b);
printf("%d %d",a*b,a*2+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(void){

int a;
int b;

scanf("%d %d",a,b);
printf("%d %d",a*b,a*2+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(void){

int a;
int b;

scanf("%d %d",&a,&b);
printf("%d %d",a*b,a*2+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(void){

int a;
int b;

scanf("%d %d",&a,&b);
printf("%d %d",a*b,a*2+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(void){

int a;
int b;

scanf("%d %d",a,b);
printf("%d %d",a*b,(a*2)+(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(void){

int a;
int b;

scanf("%d %d",a,b);
printf("%d %d\n",a*b,a*2+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(void){

int a;
int b;

scanf("%d %d",&a,&b);
printf("%d %d\n",a*b,a*2+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(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:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include<stdio.h>
      |        ^
Language: C

scanf("%d %d", &a, &b); /* 変数a, bに２つの整数をこの順番で入力する */ 


Compiler output:
main.c:1:7: error: expected declaration specifiers or '...' before string constant
    1 | scanf("%d %d", &a, &b); /* 変数a, bに２つの整数をこの順番で入力する */
      |       ^~~~~~~
main.c:1:16: error: expected declaration specifiers or '...' before '&' token
    1 | scanf("%d %d", &a, &b); /* 変数a, bに２つの整数をこの順番で入力する */
      |                ^
main.c:1:20: error: expected declaration specifiers or '...' before '&' token
    1 | scanf("%d %d", &a, &b); /* 変数a, bに２つの整数をこの順番で入力する */
      |                    ^
Language: C

#include <stdio.h>

int main() {
int i, j;
scanf("%d %d", &i, &j);
printg("%d %d\n", i * j, i * 2 + j * 2);
return 0;
}


Compiler output:
main.c: In function 'main':
main.c:6:1: error: implicit declaration of function 'printg'; did you mean 'printf'? [-Wimplicit-function-declaration]
    6 | printg("%d %d\n", i * j, i * 2 + j * 2);
      | ^~~~~~
      | printf
Language: C

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


Compiler output:
main.c:2:8: error: expected declaration specifiers or '...' before string constant
    2 | scanf ("%d%d", &a, &b);
      |        ^~~~~~
main.c:2:16: error: expected declaration specifiers or '...' before '&' token
    2 | scanf ("%d%d", &a, &b);
      |                ^
main.c:2:20: error: expected declaration specifiers or '...' before '&' token
    2 | scanf ("%d%d", &a, &b);
      |                    ^
main.c:3:9: error: expected declaration specifiers or '...' before string constant
    3 | printf ("%d %d", a*b, (a+b)*2);
      |         ^~~~~~~
main.c:3:18: error: expected declaration specifiers or '...' before 'a'
    3 | printf ("%d %d", a*b, (a+b)*2);
      |                  ^
main.c:3:23: error: expected declaration specifiers or '...' before '(' token
    3 | printf ("%d %d", a*b, (a+b)*2);
      |                       ^
Language: C

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


Compiler output:
main.c:1:7: error: expected declaration specifiers or '...' before string constant
    1 | scanf("%d %d", &a, &b); /*
      |       ^~~~~~~
main.c:1:16: error: expected declaration specifiers or '...' before '&' token
    1 | scanf("%d %d", &a, &b); /*
      |                ^
main.c:1:20: error: expected declaration specifiers or '...' before '&' token
    1 | scanf("%d %d", &a, &b); /*
      |                    ^
main.c:1:25: error: unterminated comment
    1 | scanf("%d %d", &a, &b); /*
      |                         ^
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:4:2: error: unknown type name 'i'
    4 |  i love manko
      |  ^
main.c:4:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'manko'
    4 |  i love manko
      |         ^~~~~
main.c:4:9: error: expected declaration or statement at end of input
Language: C

#include <stdio.h>

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

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

  return 0;
}


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

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

    printf ("a,b?");
    scanf ("%d %d", &tate, &yoko);
    s = tate * yoko;
    r = 2 * (a+b);
    printf ("ab %d\n" , s);
    
    return 0;
}


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

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

    printf("a,b?");
    scanf("%d %d", &a, &b);
    s = a * b;
    r = 2 * (a+b);
    printf("ab %d\n" , s);
    printf("2a+2b &a\n", s);

    return 0;
}


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

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

    return 0;
}


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

#include<stdio.h>

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


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

#include<stdio.h>

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

	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:4:25: error: 'a' undeclared (first use in this function)
    4 |         scanf("%d %d", &a, &b);
      |                         ^
main.c:4:25: note: each undeclared identifier is reported only once for each function it appears in
main.c:4:29: error: 'b' undeclared (first use in this function)
    4 |         scanf("%d %d", &a, &b);
      |                             ^
main.c:5:30: error: invalid suffix "a" on integer constant
    5 |         printf("%d %d", a*a, 2a+2b)
      |                              ^~
main.c:5:33: error: invalid suffix "b" on integer constant
    5 |         printf("%d %d", a*a, 2a+2b)
      |                                 ^~
main.c:5:36: error: expected ';' before 'return'
    5 |         printf("%d %d", a*a, 2a+2b)
      |                                    ^
      |                                    ;
    6 | 
    7 |         return 0;
      |         ~~~~~~
Language: C

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


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

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


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

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


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

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


Compiler output:
main.c: In function 'main':
main.c:4:28: error: invalid operands to binary & (have 'int *' and 'int')
    4 |         scanf("%d %d\n",&a &b);
      |                         ~~ ^
      |                         |
      |                         int *
main.c:5:29: error: expected ')' before 'a'
    5 |         printf("%d %d\n",a*b a*2+b*2);
      |               ~             ^~
      |                             )