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

#include<stdio.h>

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

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

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

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

 }
 
 return 0;
}

Compiler output:
main.c:4:1: error: return type defaults to 'int' [-Wimplicit-int]
    4 | main(){
      | ^~~~
main.c: In function 'main':
main.c:5:17: error: expected ')' before ';' token
    5 |  if(a<=1&&b<=100;){
      |    ~            ^
      |                 )
main.c:6:16: error: invalid operands to binary & (have 'int *' and 'int')
    6 |   scanf("%d",&a&b);
      |              ~~^
      |              |
      |              int *
Language: C

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

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

 }
 
 return 0;
}

Compiler output:
main.c:4:1: error: return type defaults to 'int' [-Wimplicit-int]
    4 | main(){
      | ^~~~
main.c: In function 'main':
main.c:6:16: error: invalid operands to binary & (have 'int *' and 'int')
    6 |   scanf("%d",&a&b);
      |              ~~^
      |              |
      |              int *
Language: C

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

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

 }
 
 return 0;
}

Compiler output:
main.c:4:1: error: return type defaults to 'int' [-Wimplicit-int]
    4 | main(){
      | ^~~~
main.c: In function 'main':
main.c:6:17: error: invalid operands to binary & (have 'int *' and 'int')
    6 |   scanf("%d",&a &b);
      |              ~~ ^
      |              |
      |              int *
Language: C

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

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

 }
 
 return 0;
}

Compiler output:
main.c:4:1: error: return type defaults to 'int' [-Wimplicit-int]
    4 | main(){
      | ^~~~
main.c: In function 'main':
main.c:6:18: error: invalid operands to binary & (have 'int *' and 'int')
    6 |   scanf("%d%d",&a&b);
      |                ~~^
      |                |
      |                int *
Language: C

#include <stdio.h>
#include <string.h>

  char s1[];
  char s2[]=" ";
  char s3;
int main(void)
{
  scanf("%s",&s1)
  char *tok;

  tok = strtok( s1, s2 );
  while( tok != NULL ){
    
    s3 = strtok( NULL, s2 );
  }

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:18: error: expected ';' before 'char'
    9 |   scanf("%s",&s1)
      |                  ^
      |                  ;
   10 |   char *tok;
      |   ~~~~            
main.c:12:3: error: 'tok' undeclared (first use in this function)
   12 |   tok = strtok( s1, s2 );
      |   ^~~
main.c:12:3: note: each undeclared identifier is reported only once for each function it appears in
main.c:15:8: error: assignment to 'char' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
   15 |     s3 = strtok( NULL, s2 );
      |        ^
main.c: At top level:
main.c:4:8: warning: array 's1' assumed to have one element
    4 |   char s1[];
      |        ^~
Language: C

#include <stdio.h>

char str[256] ; 
main(){

get(str);

return 0;
}

Compiler output:
main.c:4:1: error: return type defaults to 'int' [-Wimplicit-int]
    4 | main(){
      | ^~~~
main.c: In function 'main':
main.c:6:1: error: implicit declaration of function 'get'; did you mean 'getw'? [-Wimplicit-function-declaration]
    6 | get(str);
      | ^~~
      | getw
Language: C

#include <stdio.h>


main(){
char str[256] ; 
get(str);

return 0;
}

Compiler output:
main.c:4:1: error: return type defaults to 'int' [-Wimplicit-int]
    4 | main(){
      | ^~~~
main.c: In function 'main':
main.c:6:1: error: implicit declaration of function 'get'; did you mean 'getw'? [-Wimplicit-function-declaration]
    6 | get(str);
      | ^~~
      | getw
Language: C

#include <stdio.h>


main(){
char str[256] ; 
gets(str);

  
  char s2[] = " "
  char *tok;

  tok = strtok( str, s2 );
  while( tok != NULL ){
    
    tok = strtok( NULL, s2 );  /* 2????????\??? */
  }


return 0;
}

Compiler output:
main.c:4:1: error: return type defaults to 'int' [-Wimplicit-int]
    4 | main(){
      | ^~~~
main.c: In function 'main':
main.c:6:1: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
    6 | gets(str);
      | ^~~~
      | fgets
main.c:10:3: error: expected ',' or ';' before 'char'
   10 |   char *tok;
      |   ^~~~
main.c:12:3: error: 'tok' undeclared (first use in this function)
   12 |   tok = strtok( str, s2 );
      |   ^~~
main.c:12:3: note: each undeclared identifier is reported only once for each function it appears in
main.c:12:9: error: implicit declaration of function 'strtok' [-Wimplicit-function-declaration]
   12 |   tok = strtok( str, s2 );
      |         ^~~~~~
Language: C

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

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

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

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

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

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

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

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

#include <stdio.h>

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

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

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

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

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

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

#include <stdio.h>

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

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

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:7:25: error: lvalue required as unary '&' operand
    7 |         scanf( "%d %d", &3, &5 )
      |                         ^
main.c:7:29: error: lvalue required as unary '&' operand
    7 |         scanf( "%d %d", &3, &5 )
      |                             ^
main.c:7:33: error: expected ';' before 'printf'
    7 |         scanf( "%d %d", &3, &5 )
      |                                 ^
      |                                 ;
    8 | 
    9 |         printf( "%d %d", a*b, (a+b)*2 );
      |         ~~~~~~
Language: C

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:7:25: error: lvalue required as unary '&' operand
    7 |         scanf( "%d %d", &3, &5 );
      |                         ^
main.c:7:29: error: lvalue required as unary '&' operand
    7 |         scanf( "%d %d", &3, &5 );
      |                             ^
Language: C

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

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

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

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

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

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

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

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

#include <stdio.h>
#include <stdlib.h>
int main(void){
char x[125],y[125],z[100];
int i=0,a,b;
x=gets();
while(x[i]!=' '){
 y[i]=x[i];
 i++;
};
a=atoi(y);
i++;
while(x[i]!='\0'){
 z[i]=x[i];
 i++;
};
b=atoi(z);
printf("%d %d\n",a*b,(a+b)*2);
return 0;
};

Compiler output:
main.c: In function 'main':
main.c:6:3: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
    6 | x=gets();
      |   ^~~~
      |   fgets
main.c:6:2: error: assignment to expression with array type
    6 | x=gets();
      |  ^
Language: C

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

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







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

Compiler output:
main.c: In function 'main':
main.c:13:1: error: expected declaration specifiers before 'scanf'
   13 | scanf("%d",&a);
      | ^~~~~
main.c:15:1: error: expected declaration specifiers before 'scanf'
   15 | scanf("%d",&b);
      | ^~~~~
main.c:17:1: error: expected declaration specifiers before 'm'
   17 | m=a???b;
      | ^
main.c:19:1: error: expected declaration specifiers before 's'
   19 | s=2???a+2???b;
      | ^
main.c:21:1: error: expected declaration specifiers before 'printf'
   21 | printf("%d %d?\n",a,b);
      | ^~~~~~
main.c:23:1: error: expected declaration specifiers before 'return'
   23 | return 0 ;
      | ^~~~~~
main.c:25:1: error: expected declaration specifiers before '}' token
   25 | }
      | ^
main.c:9:5: error: old-style parameter declarations in prototyped function definition
    9 | int main(void)
      |     ^~~~
main.c:27: error: expected '{' at end of input
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:4:6: error: expected identifier or '(' before '=' token
    4 |  int = a,b,s
      |      ^
main.c:8:14: error: 'a' undeclared (first use in this function)
    8 |  scanf("%d",&a);
      |              ^
main.c:8:14: note: each undeclared identifier is reported only once for each function it appears in
main.c:12:14: error: 'b' undeclared (first use in this function)
   12 |  scanf("%d",&b);
      |              ^
main.c:14:2: error: 's' undeclared (first use in this function)
   14 |  s=2???a+2???b;
      |  ^
main.c:14:6: error: expected expression before '?' token
   14 |  s=2???a+2???b;
      |      ^
Language: C

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

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

#include<iostream>
using namespace std;

int main(){
    int x;
    int y;
    cin >> x >> y ;
    int z=x*y;
    int a=(x+y)*2;
    cout << z << endl;
    cout << a << endl;

    return 0;
}

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

#include <stdio.h>

int main(){

    int a,b;

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

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

    return 0;
}

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

#include <stdio.h>

int main(){

    int a,b;

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

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

    return 0;
}

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

#include <stdio.h>

int main(){

    int a,b;

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

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

    return 0;
}

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

#include <stdio.h>

int main(){

    int a,b;

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

#include <stdio.h>

int main(){

    int a,b;

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

#include <stdio.h>

int main(){

    int a,b;

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

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

    return 0;
}

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

#include <stdio.h>

int main(){

    int a,b;

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

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

    return 0;
}

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

#include <stdio.h>

int main(){

    int a,b;

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

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

    return 0;
}

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

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


return 0;
}

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

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

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

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


return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:6: error: expected ';' before 'd'
    6 | c=a*b
      |      ^
      |      ;
    7 | d=(a+b)*2
      | ~
Language: C

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

Compiler output:
main.c:2:5: error: two or more data types in declaration specifiers
    2 | int int main(void)
      |     ^~~
Language: C

#include<stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:4:11: warning: missing terminating " character
    4 |     scanf("%f,&a);
      |           ^
main.c:4:11: error: missing terminating " character
    4 |     scanf("%f,&a);
      |           ^~~~~~~~
main.c:5:11: warning: missing terminating " character
    5 |     scanf("%f,&b);
      |           ^
main.c:5:11: error: missing terminating " character
    5 |     scanf("%f,&b);
      |           ^~~~~~~~
main.c:6:20: error: 'a' undeclared (first use in this function)
    6 |     printf("%f %f",a*b,2*(a+b));
      |                    ^
main.c:6:20: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:22: error: 'b' undeclared (first use in this function)
    6 |     printf("%f %f",a*b,2*(a+b));
      |                      ^
main.c:6:32: error: expected ')' before ';' token
    6 |     printf("%f %f",a*b,2*(a+b));
      |                                ^
      |                                )
main.c:5:10: note: to match this '('
    5 |     scanf("%f,&b);
      |          ^
main.c:7:14: error: expected ')' before '}' token
    7 |     return 0;
      |              ^
      |              )
    8 | }
      | ~             
main.c:4:10: note: to match this '('
    4 |     scanf("%f,&a);
      |          ^
main.c:7:14: error: expected ';' before '}' token
    7 |     return 0;
      |              ^
      |              ;
    8 | }
      | ~
Language: C

#include<stdio.h>

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

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

#include<stdio.h>

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

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

#include<stdio.h>

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

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

#include<stdio.h>

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

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

#include<stdio.h>

int main(){
    int a b;
    printf("a*b a*2+b*2\n");

Compiler output:
main.c: In function 'main':
main.c:4:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'b'
    4 |     int a b;
      |           ^
main.c:4:11: error: 'b' undeclared (first use in this function)
main.c:4:11: note: each undeclared identifier is reported only once for each function it appears in
main.c:5:5: error: expected declaration or statement at end of input
    5 |     printf("a*b a*2+b*2\n");
      |     ^~~~~~
Language: C

#include<stdio.h>

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

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

#include<stdio.h>

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

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

#include<stdio.h>

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

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

#include<stdio.h>

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

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

Compiler output:
main.c: In function 'main':
main.c:6:26: error: expected expression before '%' token
    6 |         scanf("%d %d",&a,%b);
      |                          ^
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\n",c,d);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:26: error: expected expression before '%' token
    6 |         scanf("%d %d",&a,%b);
      |                          ^
main.c:9:26: warning: unknown escape sequence: '\040'
    9 |         printf("%d\ %d\n",c,d);
      |                          ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:7:9: error: 'sa' undeclared (first use in this function); did you mean 'a'?
    7 |         sa = 2 * a + 2 * b;
      |         ^~
      |         a
main.c:7:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:9:24: error: 'syo' undeclared (first use in this function); did you mean 'syu'?
    9 |         printf("%d\n", syo);
      |                        ^~~
      |                        syu
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:7:9: error: 'sa' undeclared (first use in this function); did you mean 'a'?
    7 |         sa = 2 * a + 2 * b;
      |         ^~
      |         a
main.c:7:9: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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

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

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

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

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

Compiler output:
main.c: In function 'main':
main.c:7:32: error: expected ')' before 'length'
    7 |         printf("%d\n %d\n",area length);
      |               ~                ^~~~~~~
      |                                )
Language: C

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

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

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

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

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

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

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

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

#include<atdio.h>
    int main(){
    
    int a, b, wa, sa,

    scanf("%d", &a);

    scanf("%d", &b);

    wa = a * b;

    sa = 2 ( a + b );

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

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

    return 0;

}

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

#include<atdio.h>
 
    int main(){
    
    int a, b, wa, sa,

    scanf("%d", &a);

    scanf("%d", &b);

    wa = a * b;

    sa = 2 ( a + b );

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

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

    return 0;
}

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

#include<atdio.h>
 
    int main(){
    
    int a, b, wa, sa,

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

    wa = a * b;

    sa = 2 ( a + b );

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

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

    return 0;
}

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

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

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

#include<atdio.h> 

    int main(){

    int a, b, wa, sa,

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

    wa = a * b;

    sa = 2 ( a + b );

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

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

    return 0;
}

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

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

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

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

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

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

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

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

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

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:8:26: error: expected ')' before ';' token
    8 |   printf(("%d\n",2*a+2*b);
      |         ~                ^
      |                          )
main.c:8:17: error: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion]
    8 |   printf(("%d\n",2*a+2*b);
      |          ~~~~~~~^~~~~~~~~
      |                 |
      |                 int
In file included from main.c:1:
/usr/include/stdio.h:363:43: note: expected 'const char * restrict' but argument is of type 'int'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
main.c:9:12: error: expected ';' before '}' token
    9 |   return 0;
      |            ^
      |            ;
   10 | }
      | ~
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:7:26: error: expected expression before '%' token
    7 |         scanf("%d,%d",&a,%b);
      |                          ^
Language: C

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

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

return 0;
}

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

#include <stdio.h>

int main ()
{
  int a, b;

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

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:21: error: invalid operands to binary & (have 'int *' and 'int')
    7 |   scanf ("%d %d",&a &b);
      |                  ~~ ^
      |                  |
      |                  int *
main.c:8:11: warning: missing terminating " character
    8 |   printf ("%d %d,a b);
      |           ^
main.c:8:11: error: missing terminating " character
    8 |   printf ("%d %d,a b);
      |           ^~~~~~~~~~~~
main.c:10:3: error: expected expression before 'return'
   10 |   return 0;
      |   ^~~~~~
main.c:10:12: error: expected ';' before '}' token
   10 |   return 0;
      |            ^
      |            ;
   11 | }
      | ~
Language: C

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

}

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

#include<stdio.h>

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

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

#include <stdio.h>

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

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

#include <stdio.h>

int main (void)

{

int a b x y;

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

x=a*b;

y=2*a+2*b

printf("%d %d\n"x y);

return 0;

}

Compiler output:
main.c: In function 'main':
main.c:7:7: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'b'
    7 | int a b x y;
      |       ^
main.c:7:7: error: unknown type name 'b'
main.c:7:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'y'
    7 | int a b x y;
      |           ^
main.c:9:22: error: 'a' undeclared (first use in this function)
    9 | scanf("%d,%d,%d,%d",&a,&b,&x,&y);
      |                      ^
main.c:9:22: note: each undeclared identifier is reported only once for each function it appears in
main.c:9:25: error: 'b' undeclared (first use in this function)
    9 | scanf("%d,%d,%d,%d",&a,&b,&x,&y);
      |                         ^
main.c:9:28: error: 'x' undeclared (first use in this function)
    9 | scanf("%d,%d,%d,%d",&a,&b,&x,&y);
      |                            ^
main.c:9:31: error: 'y' undeclared (first use in this function)
    9 | scanf("%d,%d,%d,%d",&a,&b,&x,&y);
      |                               ^
main.c:13:10: error: expected ';' before 'printf'
   13 | y=2*a+2*b
      |          ^
      |          ;
   14 | 
   15 | printf("%d %d\n"x y);
      | ~~~~~~
Language: C

#include <stdio.h>

int main (void)

{

int a b x y;

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

x=a*b;

y=2*a+2*b

printf("%d %d\n",x,y);

return 0;

}

Compiler output:
main.c: In function 'main':
main.c:7:7: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'b'
    7 | int a b x y;
      |       ^
main.c:7:7: error: unknown type name 'b'
main.c:7:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'y'
    7 | int a b x y;
      |           ^
main.c:9:22: error: 'a' undeclared (first use in this function)
    9 | scanf("%d,%d,%d,%d",&a,&b,&x,&y);
      |                      ^
main.c:9:22: note: each undeclared identifier is reported only once for each function it appears in
main.c:9:25: error: 'b' undeclared (first use in this function)
    9 | scanf("%d,%d,%d,%d",&a,&b,&x,&y);
      |                         ^
main.c:9:28: error: 'x' undeclared (first use in this function)
    9 | scanf("%d,%d,%d,%d",&a,&b,&x,&y);
      |                            ^
main.c:9:31: error: 'y' undeclared (first use in this function)
    9 | scanf("%d,%d,%d,%d",&a,&b,&x,&y);
      |                               ^
main.c:13:10: error: expected ';' before 'printf'
   13 | y=2*a+2*b
      |          ^
      |          ;
   14 | 
   15 | printf("%d %d\n",x,y);
      | ~~~~~~
Language: C

#include <stdio.h>

int main (void)

{

int a;
int b;
int x;
int y;

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

x=a*b;

y=2*a+2*b

printf("%d %d\n",x,y);

return 0;

}

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

#include <stdio.h>

int main (void)

{

int a b x y;

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

x=a*b;

y=2*a+2*b;

printf("%d %d\n",x,y);

return 0;

}

Compiler output:
main.c: In function 'main':
main.c:7:7: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'b'
    7 | int a b x y;
      |       ^
main.c:7:7: error: unknown type name 'b'
main.c:7:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'y'
    7 | int a b x y;
      |           ^
main.c:9:22: error: 'a' undeclared (first use in this function)
    9 | scanf("%d,%d,%d,%d",&a,&b,&x,&y);
      |                      ^
main.c:9:22: note: each undeclared identifier is reported only once for each function it appears in
main.c:9:25: error: 'b' undeclared (first use in this function)
    9 | scanf("%d,%d,%d,%d",&a,&b,&x,&y);
      |                         ^
main.c:9:28: error: 'x' undeclared (first use in this function)
    9 | scanf("%d,%d,%d,%d",&a,&b,&x,&y);
      |                            ^
main.c:9:31: error: 'y' undeclared (first use in this function)
    9 | scanf("%d,%d,%d,%d",&a,&b,&x,&y);
      |                               ^
Language: C

#include <stdio.h>

int main (void)

{

int a b x y;

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

x=a*b;

y=2*a+2*b;

printf("%d %d\n"x,y);

return 0;

}

Compiler output:
main.c: In function 'main':
main.c:7:7: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'b'
    7 | int a b x y;
      |       ^
main.c:7:7: error: unknown type name 'b'
main.c:7:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'y'
    7 | int a b x y;
      |           ^
main.c:9:22: error: 'a' undeclared (first use in this function)
    9 | scanf("%d,%d,%d,%d",&a,&b,&x,&y);
      |                      ^
main.c:9:22: note: each undeclared identifier is reported only once for each function it appears in
main.c:9:25: error: 'b' undeclared (first use in this function)
    9 | scanf("%d,%d,%d,%d",&a,&b,&x,&y);
      |                         ^
main.c:9:28: error: 'x' undeclared (first use in this function)
    9 | scanf("%d,%d,%d,%d",&a,&b,&x,&y);
      |                            ^
main.c:9:31: error: 'y' undeclared (first use in this function)
    9 | scanf("%d,%d,%d,%d",&a,&b,&x,&y);
      |                               ^
main.c:15:17: error: expected ')' before 'x'
   15 | printf("%d %d\n"x,y);
      |       ~         ^
      |                 )
Language: C

#include <stdio.h>

int main (void)

{

int a,b,x,y;

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

x=a*b;

y=2*a+2*b;

printf("%d %d\n",x,y);

return 0;

}

Compiler output:
main.c: In function 'main':
main.c:7:11: error: stray '\177' in program
    7 | int a,b,x,<U+007F>y;
      |           ^~~~~~~~
Language: C

#include <stdio.h>

int main (void)

{

int a b,x,y;

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

x=a*b;

y=2*a+2*b;

printf("%d %d\n",x,y);

return 0;

}

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

#include <stdio.h>

int main (void)

{

int a b x y;

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

x=a*b;

y=(2*a)+(2*b);

printf("%d %d\n",x,y);

return 0;

}

Compiler output:
main.c: In function 'main':
main.c:7:7: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'b'
    7 | int a b x y;
      |       ^
main.c:7:7: error: unknown type name 'b'
main.c:7:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'y'
    7 | int a b x y;
      |           ^
main.c:9:22: error: 'a' undeclared (first use in this function)
    9 | scanf("%d,%d,%d,%d",&a,&b,&x,&y);
      |                      ^
main.c:9:22: note: each undeclared identifier is reported only once for each function it appears in
main.c:9:25: error: 'b' undeclared (first use in this function)
    9 | scanf("%d,%d,%d,%d",&a,&b,&x,&y);
      |                         ^
main.c:9:28: error: 'x' undeclared (first use in this function)
    9 | scanf("%d,%d,%d,%d",&a,&b,&x,&y);
      |                            ^
main.c:9:31: error: 'y' undeclared (first use in this function)
    9 | scanf("%d,%d,%d,%d",&a,&b,&x,&y);
      |                               ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:4:23: error: expected expression before '%' token
    4 |   scanf ("%d %d", &a, %b);
      |                       ^
main.c:6:3: error: 'retirn' undeclared (first use in this function)
    6 |   retirn 0;
      |   ^~~~~~
main.c:6:3: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:9: error: expected ';' before numeric constant
    6 |   retirn 0;
      |         ^~
      |         ;
Language: C

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

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

#include<stdio.h>

int main(void){

   int a,b;

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

returen 0;

}
  

Compiler output:
main.c: In function 'main':
main.c:7:21: error: expected expression before '%' token
    7 |    scanf("%d %d",&a,%b);
      |                     ^
main.c:11:1: error: 'returen' undeclared (first use in this function)
   11 | returen 0;
      | ^~~~~~~
main.c:11:1: note: each undeclared identifier is reported only once for each function it appears in
main.c:11:8: error: expected ';' before numeric constant
   11 | returen 0;
      |        ^~
      |        ;
Language: C

#include <stdio.h>

int main(void){

   int a,b;

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

   return 0;

}
  

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

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

int a,b,menseki,shuui;

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

menseki = a*b;
shuui = 2*a + 2*b;

printf("%d,%d",&shuui,&menseki);

return 0;
}

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

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

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

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

}

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