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

#include<stdio.h>

int main(){
int a&b;

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

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

  return 0;
}
  


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

#include<stdio.h>

int main(){
  int a,b;

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

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

  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:6:18: error: 'x' undeclared (first use in this function)
    6 |   scanf("%d\n", &x,&y);
      |                  ^
main.c:6:18: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:21: error: 'y' undeclared (first use in this function)
    6 |   scanf("%d\n", &x,&y);
      |                     ^
main.c:8:19: error: called object is not a function or function pointer
    8 |   printf("%d",x*y,2(x+y));
      |                   ^
Language: C

#include<stdio.h>

int main(){
  int a,b;

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

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

  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:6:18: error: 'x' undeclared (first use in this function)
    6 |   scanf("%d\n", &x, &y);
      |                  ^
main.c:6:18: 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 |   scanf("%d\n", &x, &y);
      |                      ^
main.c:8:19: error: called object is not a function or function pointer
    8 |   printf("%d",x*y,2(x+y));
      |                   ^
Language: C

#include<stdio.h>

int main(){
  int a,b;

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

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

  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:6:18: error: 'x' undeclared (first use in this function)
    6 |   scanf("%d\n", &x, &y);
      |                  ^
main.c:6:18: 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 |   scanf("%d\n", &x, &y);
      |                      ^
main.c:8:20: error: expected ')' before '{' token
    8 |   printf("%d",x*y,2{x+y});
      |         ~          ^
      |                    )
Language: C

#include<stdio.h>

int main(){
  int a,b;

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

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

  return 0;
}


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

#include<stdio.h>

int main(){
  int a,b;

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

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

  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:8:15: error: 'x' undeclared (first use in this function)
    8 |   printf("%d",x*y,2(a+b));
      |               ^
main.c:8:15: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:17: error: 'y' undeclared (first use in this function)
    8 |   printf("%d",x*y,2(a+b));
      |                 ^
main.c:8:19: error: called object is not a function or function pointer
    8 |   printf("%d",x*y,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:8:21: error: called object is not a function or function pointer
    8 |   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:4:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'b'
    4 |   int a b;
      |         ^
main.c:4:9: error: 'b' undeclared (first use in this function)
main.c:4:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:19: error: 'a' undeclared (first use in this function)
    6 |   scanf("%d %d", &a, &b);
      |                   ^
Language: C

#include<stdio.h>

int main(){
  int a b;

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

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

  return 0;
}


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

#include<stdio.h>

int main(){
  int a  b;

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

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

  return 0;
}


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

#include<stdio.h>

int main(){
  int a;
  int 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:20: error: expected ')' before numeric constant
    9 |   printf("%d\n",a*b 2*(a+b));
      |         ~          ^~
      |                    )
Language: C

#include<stdio.h>

int main(){
  int a=3;
  int b=5;

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

#include<stdio.h>

int main(){
  int a b;

  scanf("%d %d", &a#, &b=5);

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

  return 0;
}


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

#include<stdio.h>

int main(){
  int a b;

  scanf("%d %d", &a=3, &b=5);

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

  return 0;
}


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

#include<stdio.h>

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

include <stdio.h>

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

}



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

include <stdio.h>

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

}




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

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

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

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

      return 0;
   }


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

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

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

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

      return 0;
   }


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

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

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

      return 0;
   }


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

#include<stdio>

int main(){
int a, b;

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

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

  return 0;
}


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

#include<stdio.h>

int main(){
  int a, b;

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

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

  return 0;
}


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

#include<stdio.h>

int main(){
  int a b;

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

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

  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:4:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'b'
    4 |   int a b;
      |         ^
main.c:4:9: error: 'b' undeclared (first use in this function)
main.c:4:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:19: error: 'a' undeclared (first use in this function)
    6 |   scanf("%d %d", &a, &b);/*変数a,bに二つの整数をこの順番で入力する*/
      |                   ^
main.c:8:20: error: expected ')' before numeric constant
    8 |   printf("%d\n",a*b 2*(a+b));
      |         ~          ^~
      |                    )
Language: C

#include<stdio.h>

int main(){
  int a b;

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

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

  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:4:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'b'
    4 |   int a b;
      |         ^
main.c:4:9: error: 'b' undeclared (first use in this function)
main.c:4:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:19: error: 'a' undeclared (first use in this function)
    6 |   scanf("%d %d", &a, &b);/*変数a,bに二つの整数をこの順番で入力する*/
      |                   ^
main.c:7:3: error: expected ';' before numeric constant
    7 | 10 5
      |   ^~
      |   ;
Language: C

#include<stdio.h>

int main(){
  int a b;

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

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

  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:4:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'b'
    4 |   int a b;
      |         ^
main.c:4:9: error: 'b' undeclared (first use in this function)
main.c:4:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:19: error: 'a' undeclared (first use in this function)
    6 |   scanf("%d %d", &a, &b);/*変数a,bに二つの整数をこの順番で入力する*/10 5
      |                   ^
main.c:6:71: error: expected ';' before numeric constant
    6 |   scanf("%d %d", &a, &b);/*変数a,bに二つの整数をこの順番で入力する*/10 5
      |                                                                       ^~
      |                                                                       ;
Language: C

#include<stdio.h>

int main(){
  int a b;

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

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

  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:4:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'b'
    4 |   int a b;
      |         ^
main.c:4:9: error: 'b' undeclared (first use in this function)
main.c:4:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:19: error: 'a' undeclared (first use in this function)
    6 |   scanf("%d %d", &a, &b);/*変数a,bに二つの整数をこの順番で入力する*/
      |                   ^
main.c:9:20: error: expected ')' before numeric constant
    9 |   printf("%d\n",a*b 2*(a+b));
      |         ~          ^~
      |                    )
Language: C

#include<stdio.h>

int main(){
  int a b;

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

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

  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:4:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'b'
    4 |   int a b;
      |         ^
main.c:4:9: error: 'b' undeclared (first use in this function)
main.c:4:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:19: error: 'a' undeclared (first use in this function)
    6 |   scanf("%d %d", &a, &b);/*変数a,bに二つの整数をこの順番で入力する*/
      |                   ^
main.c:8:20: error: expected ')' before numeric constant
    8 |   printf("%d\n",a*b 2*[a+b]);
      |         ~          ^~
      |                    )
Language: C

#include<stdio.h>

int main(){
  int a b;

  printf("縦, 横の長さ？”）；
  scanf("%d %d", &a, &b);/*変数a,bに二つの整数をこの順番で入力する*/

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

  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:4:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'b'
    4 |   int a b;
      |         ^
main.c:4:9: error: 'b' undeclared (first use in this function)
main.c:4:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:10: warning: missing terminating " character
    6 |   printf("縦, 横の長さ？”）；
      |          ^
main.c:6:10: error: missing terminating " character
    6 |   printf("縦, 横の長さ？”）；
      |          ^~~~~~~~~~~~~~~~~~~~
main.c:7:19: error: 'a' undeclared (first use in this function)
    7 |   scanf("%d %d", &a, &b);/*変数a,bに二つの整数をこの順番で入力する*/
      |                   ^
main.c:7:25: error: expected ')' before ';' token
    7 |   scanf("%d %d", &a, &b);/*変数a,bに二つの整数をこの順番で入力する*/
      |                         ^
      |                         )
main.c:6:9: note: to match this '('
    6 |   printf("縦, 横の長さ？”）；
      |         ^
main.c:11:12: error: expected ';' before '}' token
   11 |   return 0;
      |            ^
      |            ;
   12 | }
      | ~
Language: C

#include<stdio.h>

int main(){
  int a b;

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

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

  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:4:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'b'
    4 |   int a b;
      |         ^
main.c:4:9: error: 'b' undeclared (first use in this function)
main.c:4:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:19: error: 'a' undeclared (first use in this function)
    7 |   scanf("%d %d", &a, &b);/*変数a,bに二つの整数をこの順番で入力する*/
      |                   ^
main.c:9:20: error: expected ')' before numeric constant
    9 |   printf("%d\n",a*b 2*[a+b]);
      |         ~          ^~
      |                    )
Language: C

#include<stdio.h>

int main(){
  int a b;

  printf("a, b");

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

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

  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:4:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'b'
    4 |   int a b;
      |         ^
main.c:4:9: error: 'b' undeclared (first use in this function)
main.c:4:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:19: error: 'a' undeclared (first use in this function)
    8 |   scanf("%d %d", &a, &b);/*変数a,bに二つの整数をこの順番で入力する*/
      |                   ^
main.c:10:20: error: expected ')' before numeric constant
   10 |   printf("%d\n",a*b 2*[a+b]);
      |         ~          ^~
      |                    )
Language: C

#include<stdio.h>

int main(){
  int a, b;

  printf("a, b");

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

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

  return 0;
}


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

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


Compiler output:
main.c:1:9: error: #include expects "FILENAME" or <FILENAME>
    1 | #include
      |         ^
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main(void)
      | ^~~~
main.c: In function 'main':
main.c:5:1: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    5 | scanf("%d %d ,&a &b);
      | ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | #include
main.c:5:1: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    5 | scanf("%d %d ,&a &b);
      | ^~~~~
main.c:5:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
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:1: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    6 | printf(%d*%d 2(%d+%d),&a &b &a &b);
      | ^~~~~~
main.c:6:1: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:6:1: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:6:1: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:6:8: error: expected expression before '%' token
    6 | printf(%d*%d 2(%d+%d),&a &b &a &b);
      |        ^
main.c:6:35: error: expected ')' before ';' token
    6 | printf(%d*%d 2(%d+%d),&a &b &a &b);
      |                                   ^
      |                                   )
main.c:5:6: note: to match this '('
    5 | scanf("%d %d ,&a &b);
      |      ^
main.c:7:10: error: expected ';' before '}' token
    7 | return 0;
      |          ^
      |          ;
    8 | }
      | ~
Language: C

#include<stdio.h>
int main( void )
{
int a, b;
scanf("%d %d ,&a &b);
printf(%d*%d 2(%d+%d),&a &b &a &b);
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:8: error: expected expression before '%' token
    6 | printf(%d*%d 2(%d+%d),&a &b &a &b);
      |        ^
main.c:6:35: error: expected ')' before ';' token
    6 | printf(%d*%d 2(%d+%d),&a &b &a &b);
      |                                   ^
      |                                   )
main.c:5:6: note: to match this '('
    5 | scanf("%d %d ,&a &b);
      |      ^
main.c:7:10: error: expected ';' before '}' token
    7 | return 0;
      |          ^
      |          ;
    8 | }
      | ~
Language: C

#include<stdio.h>
int main( void )
{
int a, b, c, d;
scanf("%d %d ,&a &b);
c = a*b;
c = 2*(a+b);
printf(%d %d,&c &d);
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:8: error: expected ')' before ';' token
    6 | c = a*b;
      |        ^
      |        )
main.c:5:6: note: to match this '('
    5 | scanf("%d %d ,&a &b);
      |      ^
main.c:6:3: error: passing argument 1 of 'scanf' makes pointer from integer without a cast [-Wint-conversion]
    6 | 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:9:10: error: expected ';' before '}' token
    9 | return 0;
      |          ^
      |          ;
   10 | }
      | ~
Language: C

#include<stdio.h>
int main( void )
{
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: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:10: error: expected ')' before ';' token
    6 | c = a * b;
      |          ^
      |          )
main.c:5:6: note: to match this '('
    5 | scanf("%d %d ,&a &b);
      |      ^
main.c:6:3: error: passing argument 1 of 'scanf' makes pointer from integer without a cast [-Wint-conversion]
    6 | 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:9:10: error: expected ';' before '}' token
    9 | return 0;
      |          ^
      |          ;
   10 | }
      | ~
Language: C

#include<stdio.h>
int main( void )
{
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: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:10: error: expected ')' before ';' token
    6 | c = a * b;
      |          ^
      |          )
main.c:5:6: note: to match this '('
    5 | scanf("%d %d ,&a &b);
      |      ^
main.c:6:3: error: passing argument 1 of 'scanf' makes pointer from integer without a cast [-Wint-conversion]
    6 | 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:9:10: error: expected ';' before '}' token
    9 | return 0;
      |          ^
      |          ;
   10 | }
      | ~
Language: C

#include<stdio.h>
int main( void )
{
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:5:18: error: invalid operands to binary & (have 'int *' and 'int')
    5 | scanf("%d %d",&a &b);
      |               ~~ ^
      |               |
      |               int *
main.c:8:17: error: expected ')' before 'd'
    8 | printf("%d %d",c d);
      |       ~         ^~
      |                 )
Language: C

#include
int main()
{
int a, b;
scanf(%d %d, &a, &b);
printf(%d %d ,a*b, 2*(a+b));
returm 0;
}



Compiler output:
main.c:1:9: error: #include expects "FILENAME" or <FILENAME>
    1 | #include
      |         ^
main.c: In function 'main':
main.c:5:1: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    5 | scanf(%d %d, &a, &b);
      | ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | #include
main.c:5:1: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    5 | scanf(%d %d, &a, &b);
      | ^~~~~
main.c:5:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:5:7: error: expected expression before '%' token
    5 | scanf(%d %d, &a, &b);
      |       ^
main.c:6:1: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    6 | printf(%d %d ,a*b, 2*(a+b));
      | ^~~~~~
main.c:6:1: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:6:1: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:6:1: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:6:8: error: expected expression before '%' token
    6 | printf(%d %d ,a*b, 2*(a+b));
      |        ^
main.c:7:1: error: 'returm' undeclared (first use in this function)
    7 | returm 0;
      | ^~~~~~
main.c:7:1: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:7: error: expected ';' before numeric constant
    7 | returm 0;
      |       ^~
      |       ;
Language: C

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



Compiler output:
main.c:1:9: error: #include expects "FILENAME" or <FILENAME>
    1 | #include
      |         ^
main.c: In function 'main':
main.c:5:1: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    5 | scanf(""d %d", &a, &b);
      | ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | #include
main.c:5:1: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    5 | scanf(""d %d", &a, &b);
      | ^~~~~
main.c:5:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:5:9: error: expected ')' before 'd'
    5 | scanf(""d %d", &a, &b);
      |      ~  ^
      |         )
main.c:5:13: warning: missing terminating " character
    5 | scanf(""d %d", &a, &b);
      |             ^
main.c:5:13: error: missing terminating " character
    5 | scanf(""d %d", &a, &b);
      |             ^~~~~~~~~~~
main.c:7:10: error: expected ';' before '}' token
    7 | returm 0;
      |          ^
      |          ;
    8 | }
      | ~
Language: C

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



Compiler output:
main.c:1:9: error: #include expects "FILENAME" or <FILENAME>
    1 | #include
      |         ^
main.c: In function 'main':
main.c:5:1: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    5 | scanf("%d %d", &a, &b);
      | ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | #include
main.c:5:1: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    5 | scanf("%d %d", &a, &b);
      | ^~~~~
main.c:5:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:6:1: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    6 | printf(%d %d ,a*b, 2*(a+b));
      | ^~~~~~
main.c:6:1: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:6:1: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:6:1: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:6:8: error: expected expression before '%' token
    6 | printf(%d %d ,a*b, 2*(a+b));
      |        ^
main.c:7:1: error: 'returm' undeclared (first use in this function)
    7 | returm 0;
      | ^~~~~~
main.c:7:1: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:7: error: expected ';' before numeric constant
    7 | returm 0;
      |       ^~
      |       ;
Language: C

#include
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:9: error: #include expects "FILENAME" or <FILENAME>
    1 | #include
      |         ^
main.c: In function 'main':
main.c:5:1: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    5 | scanf("%d %d", &a, &b);
      | ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | #include
main.c:5:1: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    5 | scanf("%d %d", &a, &b);
      | ^~~~~
main.c:5:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:6:1: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    6 | printf(%d %d ,a*b, 2*(a+b));
      | ^~~~~~
main.c:6:1: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:6:1: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:6:1: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:6:8: error: expected expression before '%' token
    6 | printf(%d %d ,a*b, 2*(a+b));
      |        ^
Language: C

#include
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:9: error: #include expects "FILENAME" or <FILENAME>
    1 | #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 | #include
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:8:1: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    8 | printf("%d %d" ,a*b, 2*(a+b));
      | ^~~~~~
main.c:8:1: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:8:1: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:8: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 %d , a*b,2*(a+b));
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:8: warning: missing terminating " character
    6 | printf("%d %d , a*b,2*(a+b));
      |        ^
main.c:6:8: error: missing terminating " character
    6 | printf("%d %d , a*b,2*(a+b));
      |        ^~~~~~~~~~~~~~~~~~~~~~
main.c:7:1: error: expected expression before 'return'
    7 | return 0;
      | ^~~~~~
main.c:7:10: error: expected ')' before '}' token
    7 | return 0;
      |          ^
      |          )
    8 | }
      | ~         
main.c:5:6: note: to match this '('
    5 | scanf("%d %d ,&a, &b);
      |      ^
main.c:7:10: error: expected ';' before '}' token
    7 | return 0;
      |          ^
      |          ;
    8 | }
      | ~
Language: C

#include <stdio.h>

int main(){
    int a, b;
    scanf( “%d %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:12: error: stray '\342' in program
    5 |     scanf( <U+201C>%d %d<U+201D> , &a, &b);
      |            ^~~~~~~~
main.c:5:13: error: expected expression before '%' token
    5 |     scanf( “%d %d” , &a, &b);
      |             ^
main.c:5:18: error: stray '\342' in program
    5 |     scanf( <U+201C>%d %d<U+201D> , &a, &b);
      |                         ^~~~~~~~
main.c:6:13: error: stray '\342' in program
    6 |     printf( <U+201C>%d %d<U+00A5>n<U+201D> , a*b, 2*a+2*b);
      |             ^~~~~~~~
main.c:6:14: error: expected expression before '%' token
    6 |     printf( “%d %d¥n” , a*b, 2*a+2*b);
      |              ^
main.c:6:19: error: stray '\302' in program
    6 |     printf( <U+201C>%d %d<U+00A5>n<U+201D> , a*b, 2*a+2*b);
      |                          ^~~~~~~~
main.c:6:21: error: stray '\342' in program
    6 |     printf( <U+201C>%d %d<U+00A5>n<U+201D> , a*b, 2*a+2*b);
      |                                   ^~~~~~~~
Language: C

#include <stdio.h>

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


Compiler output:
main.c: In function 'main':
main.c:5:11: error: stray '\342' in program
    5 |     scanf(<U+2033>%d %d<U+2033>, &a, &b);
      |           ^~~~~~~~
main.c:5:12: error: expected expression before '%' token
    5 |     scanf(″%d %d″, &a, &b);
      |            ^
main.c:5:17: error: stray '\342' in program
    5 |     scanf(<U+2033>%d %d<U+2033>, &a, &b);
      |                        ^~~~~~~~
main.c:6:12: error: stray '\342' in program
    6 |     printf(<U+2033>%d %d<U+00A5>n<U+2033>, a*b, 2*a+2*b);
      |            ^~~~~~~~
main.c:6:13: error: expected expression before '%' token
    6 |     printf(″%d %d¥n″, a*b, 2*a+2*b);
      |             ^
main.c:6:18: error: stray '\302' in program
    6 |     printf(<U+2033>%d %d<U+00A5>n<U+2033>, a*b, 2*a+2*b);
      |                         ^~~~~~~~
main.c:6:20: error: stray '\342' in program
    6 |     printf(<U+2033>%d %d<U+00A5>n<U+2033>, a*b, 2*a+2*b);
      |                                  ^~~~~~~~
Language: C

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


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

#include <stdio.h>

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


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

#include <stdio.h>

int main() {
  int i,j,sq,le;
  scanf("%d %d\n",&i,&j );
  ar=i*j;
  le=2*i+2*j;
  printf("%d %d\n",sq,le );
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:6:3: error: 'ar' undeclared (first use in this function)
    6 |   ar=i*j;
      |   ^~
main.c:6:3: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
#include<stdbool.h>

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


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

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

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

}


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

#include<stdio.h>
#include<stdbool.h>

int main()
{
  int x, y;
  printf("input x,y\n");
  scanf("%d %d", &x, &y);
  printf("area:%d", x *y);
  printf("length*%d\n",2*(X+Y));
  return 0;
}


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

#include<stdio.h>
#include<stdbool.h>

int main()
{
  int x, y;
  printf("input x,y\n");
  scanf("%d %d", &x, &y);
  printf("area:%d", x *y);
  printf("length:%d\n",2*(X+Y));
  return 0;
}


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

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


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

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


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

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

	return 0;


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:9: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    5 |         printf("%d %d\n", 2*(a+b) , a*b);
      |         ^~~~~~
main.c:5:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:5:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:5:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:7:9: error: expected declaration or statement at end of input
    7 |         return 0;
      |         ^~~~~~
Language: C

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


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

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


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 | c=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 | 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:8:23: error: expected ';' before ']' token
    8 | printf("%d %d", c, a);
      |                       ^
      |                       ;
    9 | ]
      | ~                      
main.c:9:1: error: expected statement before ']' token
    9 | ]
      | ^
main.c:9:1: error: expected declaration or statement at end of input
Language: C

#include<stdio.h>

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


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

#include<stdio.h>

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


Compiler output:
main.c: In function 'main':
main.c:5:9: error: 'x' undeclared (first use in this function)
    5 |         x=a*b;
      |         ^
main.c:5:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:26: error: expected ';' before 'printf'
    6 |                 x=a*a+b*b
      |                          ^
      |                          ;
    7 |                 printf("%d %d\n",x);
      |                 ~~~~~~