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

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

Compiler output:
main.c: In function 'main':
main.c:9:1: error: implicit declaration of function 'elseif' [-Wimplicit-function-declaration]
    9 | elseif(a<b) {
      | ^~~~~~
main.c:9:12: error: expected ';' before '{' token
    9 | elseif(a<b) {
      |            ^~
      |            ;
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:9:1: error: implicit declaration of function 'elseif' [-Wimplicit-function-declaration]
    9 | elseif(a<b) {
      | ^~~~~~
main.c:9:12: error: expected ';' before '{' token
    9 | elseif(a<b) {
      |            ^~
      |            ;
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:9:1: error: implicit declaration of function 'elseif' [-Wimplicit-function-declaration]
    9 | elseif(a<b) {
      | ^~~~~~
main.c:9:12: error: expected ';' before '{' token
    9 | elseif(a<b) {
      |            ^~
      |            ;
Language: C

/*figure.c*/

#include <stdio.h>

int main(void)
{
	int a, b;
	scanf("%d %d", &a, &b);
	if (a < b) {
		printf("%d < %d\n", a, b);
	}else if (a > b) {
		printf("%d > %d\n", a, b);
	}else {
		printf("%d == %d\n", a, b);
	}
	return 0;
\\}

Compiler output:
main.c: In function 'main':
main.c:17:1: error: stray '\' in program
   17 | \\}
      | ^
main.c:17:2: error: stray '\' in program
   17 | \\}
      |  ^
Language: C

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

int sprInput(char *retstr, char *str, int strnum)
{
	char buf[256]={};
	int h, i, j;

	i = 0;
	for(h=0;h<strnum;h++){
		memset(buf, '\0', sizeof(buf));
		j = 0;
		if (str[i] == '\0') break;
		while(str[i] != ' ' && str[i] != '\n' && str[i] != '\0')
		{
			buf[j] = str[i];
			i++;
			j++;
		}
		i++;
	}
	memcpy(retstr, buf, sizeof(buf));

	return (retstr[0] == '\0' ? 0 : 1);
}

int main(int argc, char *argv[])
{
	int sInput;
	int a, b;
	char str[256]={};
	char buf[256]={};

	fgets(str, 256, stdin);

	sprInput(buf, str, 1);
	a = atoi(buf);
	sprInput(buf, str, 2);
	b = atoi(buf);

	if (a == b) {
		printf("a == b\n");
	}
	else if (a < b) {
		printf("a < b\n");
	}
	else {
		printf("a > b\n");
	}

	return 0;

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

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

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

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

Compiler output:
main.c: In function 'main':
main.c:7:18: error: expected ';' before '}' token
    7 |   printf("a>b\n")}
      |                  ^
      |                  ;
main.c:9:18: error: expected ';' before '}' token
    9 |   printf("a<b\n")}
      |                  ^
      |                  ;
main.c:10:12: error: expected ';' before '{' token
   10 |   else(a=b){
      |            ^
      |            ;
Language: C

#include<stdio.h>
int main()
{
  int a,b;
  if(a<b){
  printf("a<b\n");
}
  else if(a>b\n){
  printf("a>b\n);
}
  else{
  printf("a==b\n");
}
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:14: error: stray '\' in program
    8 |   else if(a>b\n){
      |              ^
main.c:8:14: error: expected ')' before 'n'
    8 |   else if(a>b\n){
      |          ~   ^~
      |              )
main.c:9:10: warning: missing terminating " character
    9 |   printf("a>b\n);
      |          ^
main.c:9:10: error: missing terminating " character
    9 |   printf("a>b\n);
      |          ^~~~~~~~
main.c:10:1: error: expected expression before '}' token
   10 | }
      | ^
main.c:9:10: error: expected ';' before '}' token
    9 |   printf("a>b\n);
      |          ^
      |          ;
   10 | }
      | ~
Language: C

#include<stdio.h>
int main()
{
  int a,b;
  if(a<b){
  printf("a<b\n");
}
  else if(a>b){
  printf("a>b\n);
}
  else{
  printf("a==b\n");
}
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:10: warning: missing terminating " character
    9 |   printf("a>b\n);
      |          ^
main.c:9:10: error: missing terminating " character
    9 |   printf("a>b\n);
      |          ^~~~~~~~
main.c:10:1: error: expected expression before '}' token
   10 | }
      | ^
main.c:9:10: error: expected ';' before '}' token
    9 |   printf("a>b\n);
      |          ^
      |          ;
   10 | }
      | ~
Language: C

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

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

#include <stdio.h>

int main(){
    
    int(
    scanf("%d",&a);
    scanf("%d",&b);
    
    if(a < b){
        printf("a < b\n");
    }else if(a > b){
        printf("a > b\n");
    }else if(a == b){
        printf("a == b\n");
    }
    
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:11: error: expected declaration specifiers or '...' before string constant
    6 |     scanf("%d",&a);
      |           ^~~~
main.c:6:16: error: expected declaration specifiers or '...' before '&' token
    6 |     scanf("%d",&a);
      |                ^
main.c:6:19: error: expected ')' before ';' token
    6 |     scanf("%d",&a);
      |                   ^
      |                   )
main.c:18:1: error: expected declaration or statement at end of input
   18 | }
      | ^
Language: C

#include<stdio.h>

int main()

{

	int a,b;

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

	if (a>b){printf("a>b\n");}

	if (a<b){printf("a<b\n");}

	if (a == b){printf("a==b\n");}
	return 0;

}

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

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

if(a>b){
printf("%d>%d",a,b)
}
if(a==b){
printf("%d==%d",a,b)
}

return 0;
}

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

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

if(a>b){
printf("%d>%d",a,b)
}
if(a==b){
printf("%d==%d",a,b)
}

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:17: error: request for member 'b' in something not a structure or union
    7 | printf("%d<%d",a.b)
      |                 ^
main.c:7:20: error: expected ';' before '}' token
    7 | printf("%d<%d",a.b)
      |                    ^
      |                    ;
    8 | }
      | ~                   
main.c:11:20: error: expected ';' before '}' token
   11 | printf("%d>%d",a,b)
      |                    ^
      |                    ;
   12 | }
      | ~                   
main.c:14:21: error: expected ';' before '}' token
   14 | printf("%d==%d",a,b)
      |                     ^
      |                     ;
   15 | }
      | ~
Language: C

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

if(a>b){
printf("%d>%d",a,b);
}
if(a==b){
printf("%d==%d",a,b);
}

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:17: error: request for member 'b' in something not a structure or union
    7 | printf("%d<%d",a.b);
      |                 ^
Language: C

#include<stdio.h>
int main()
{
	int a, b;
	scanf_s("%d %d", &a, &b);
	if (a < b){
		printf("%d<%d\n", a, b);
	}
	else{
		if (a > b){
			printf("%d>%d\n", a, b);
		}
		else{
			printf("%d==%d\n", 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()
{
	int a, b;
	scanf_s("%d %d", &a, &b);
	if (a < b){
		printf("%d < %d\n", a, b);
	}
	else{
		if (a > b){
			printf("%d > %d\n", a, b);
		}
		else{
			printf("%d == %d\n", 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);
  if(a < b){
    printf("a < b\n");
  }else if(a > b){
    printf("a > b\n");
  }else{
    printf("a = b\n");
  }
  return 0;
}

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

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

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

int main(){
int a,b;
scanf("%d %d",&a,&b);
if (a>b){printf("a > b\n");}
if (a<b){printf("a < b\n");}
if (a==b){printf("a == b\n"):}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:3:1: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    3 | scanf("%d %d",&a,&b);
      | ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main(){
main.c:3:1: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    3 | scanf("%d %d",&a,&b);
      | ^~~~~
main.c:3:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:4:10: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    4 | if (a>b){printf("a > b\n");}
      |          ^~~~~~
main.c:4:10: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:4:10: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:4:10: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:5:10: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
    5 | if (a<b){printf("a < b\n");}
      |          ^~~~~~
main.c:5:10: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:6:11: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
    6 | if (a==b){printf("a == b\n"):}
      |           ^~~~~~
main.c:6:11: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:6:29: error: expected ';' before ':' token
    6 | if (a==b){printf("a == b\n"):}
      |                             ^
      |                             ;
Language: C

int main(){
int x,y;
scanf("%d %d",&x,&y);
if (x>y){printf("a > b\n");}
if (x<y){printf("a < b\n");}
if (x==y){printf("a == b\n"):}
return 0;
}

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

int main(){
int x,y;
scanf("%d %d\n",&x,&y);
if (x>y){printf("a > b\n");}
if (x<y){printf("a < b\n");}
if (x==y){printf("a == b\n"):}
return 0;
}

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

int main(){
int x,y;
scanf("%d %d",&x,&y);
if (x>y) printf("a > b\n");
if (x<y) printf("a < b\n");
if (x==y) printf("a == b\n"):
return 0;
}

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

#include <stdio.h>

int main(void) {
	int a;
	int b;
	scanf("%d%d",&a,&b);
	if(a<b) printf("a < b");
	else if(a>b) prinf("a > b");
	else printf("a == b");
	puts("");
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:22: error: implicit declaration of function 'prinf'; did you mean 'printf'? [-Wimplicit-function-declaration]
    8 |         else if(a>b) prinf("a > b");
      |                      ^~~~~
      |                      printf
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:12:21: error: expected ';' before '{' token
   12 |         else (a < b){
      |                     ^
      |                     ;
Language: C

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

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

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

Compiler output:
main.c: In function 'main':
main.c:7:32: error: expected ';' before '}' token
    7 |     printf(" %d < %d\n ", a, b)};
      |                                ^
      |                                ;
main.c:9:32: error: expected ';' before '}' token
    9 |     printf(" %d > %d\n ", a, b)};
      |                                ^
      |                                ;
main.c:11:31: error: expected ';' before '}' token
   11 |     printf("%d = %d\n ", a, b)};
      |                               ^
      |                               ;
Language: C

#inlcude<stdio.h>

int main(void) {
    int x, y;
    int tmp;
    int big,small;
    scanf("%d %d", &x, &y);

    if(x > y) {
        printf("%d > %d\n", x, y);
    } else if ( y > x ) {
        printf("%d < %d\n", x, y);
    } else {
        printf("%d == %d\n", x, y);        
    }

    return 0;
}

Compiler output:
main.c:1:2: error: invalid preprocessing directive #inlcude; did you mean #include?
    1 | #inlcude<stdio.h>
      |  ^~~~~~~
      |  include
main.c: In function 'main':
main.c:7:5: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    7 |     scanf("%d %d", &x, &y);
      |     ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | #inlcude<stdio.h>
main.c:7:5: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    7 |     scanf("%d %d", &x, &y);
      |     ^~~~~
main.c:7:5: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:10:9: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   10 |         printf("%d > %d\n", x, y);
      |         ^~~~~~
main.c:10:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:10:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:10:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:12:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   12 |         printf("%d < %d\n", x, y);
      |         ^~~~~~
main.c:12:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:14:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   14 |         printf("%d == %d\n", x, y);
      |         ^~~~~~
main.c:14:9: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:7:1: error: 'else' without a previous 'if'
    7 | else if(a>b);
      | ^~~~
main.c:9:1: error: 'else' without a previous 'if'
    9 | else if("a==b");
      | ^~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:7:1: error: 'else' without a previous 'if'
    7 | else if(a>b);
      | ^~~~
main.c:9:1: error: 'else' without a previous 'if'
    9 | else ("a==b");
      | ^~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:9:14: error: expected ';' before 'printf'
    9 | else ("a==b")
      |              ^
      |              ;
   10 | printf("a==b\n");
      | ~~~~~~
Language: C

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

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

	if(a<b)
		printf("a<b\n" ,a,b);
	
	if(a>b)
		printf("a>b\n" ,a,b);

	if(a=b)
		printf("a=b\n" ,a,b);

	return 0;

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

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

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

	if(a<b)
		printf("a<b\n" ,a,b);
	
	if(a>b)
		printf("a>b\n" ,a,b);

	if(a=b)
		printf("a=b\n" ,a,b);

	return 0;

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

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

	scanf("%d %d" , &a &b);
	
	if(a<b){
		printf("a<b\n" ,a,b);
	}

	else if(a>b){
		printf("a>b\n" ,a,b);
	}

	else if(a=b){
		printf("a=b\n" ,a,b);
	}

	return 0;


}

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

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

	scanf("%d %d", &a , &b);
	
	if(a < b){
		printf("a < b" ,a  b);
	}

	else if(a > b){
		printf("a > b" ,a  b);
	}

	else if(a == b){
		printf("a = b" ,a  b);
	}

	return 0;


}

Compiler output:
main.c: In function 'main':
main.c:9:34: error: expected ')' before 'b'
    9 |                 printf("a < b" ,a  b);
      |                       ~          ^ ~
      |                                  )
main.c:13:34: error: expected ')' before 'b'
   13 |                 printf("a > b" ,a  b);
      |                       ~          ^ ~
      |                                  )
main.c:17:34: error: expected ')' before 'b'
   17 |                 printf("a = b" ,a  b);
      |                       ~          ^ ~
      |                                  )
Language: C

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

	scanf("%d %d", &a  &b);
	
	if(a < b){
		printf("a < b" ,a  , b);
	}

	else if(a > b){
		printf("a > b" ,a  , b);
	}

	else if(a == b){
		printf("a = b" ,a  , b);
	}

	return 0;


}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Compiler output:
main.c:1:18: warning: extra tokens at end of #include directive
    1 | #include<stdio.h>int main(){scanf("%d %d",&a,&b);if(a<b){printf("a < b\n");}if(a>b){printf("a > b\n");}if(a==b){printf("a == b\n");}return 0;}
      |                  ^~~
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C

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

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

#include<stdio.h>

int main(){

 int a, b;

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

 if(a < b){
  printf("a<b\n")
 }

 else if(a > b){
  printf("a>b\n")
 }

 else{
  printf("a==b\n")
 }

 return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:18: error: expected ';' before '}' token
   10 |   printf("a<b\n")
      |                  ^
      |                  ;
   11 |  }
      |  ~                
main.c:14:18: error: expected ';' before '}' token
   14 |   printf("a>b\n")
      |                  ^
      |                  ;
   15 |  }
      |  ~                
main.c:18:19: error: expected ';' before '}' token
   18 |   printf("a==b\n")
      |                   ^
      |                   ;
   19 |  }
      |  ~
Language: C

#include <stdio.h>

int main(void)
{
    int a, b;
    scanf("%d %d", &a, &b);
    if(a < b)then{
        printf("%d<%d\n", a, b);
    }elseif(a > b){
        printf("%d>%d\n", a, b);
    }else{
        printf("%d==%d\n", a, b);
    }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:14: error: 'then' undeclared (first use in this function)
    7 |     if(a < b)then{
      |              ^~~~
main.c:7:14: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:18: error: expected ';' before '{' token
    7 |     if(a < b)then{
      |                  ^
      |                  ;
Language: C


#include<stdio.h>

int main(void)
{
	long a, b;

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

	if (a < b) {
		printf("%d < %d\n", a, b);
	}
	else if (a > b) {
		printf("%d > %d\n", a, b);
	}
	else if (a == b) {
		printf("%d == %d\n", a, b);
	}

	return 0;

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

#include <stdio.h>
#include <math.h>

int main(){
	int a,b;
	scanf("%d %d", &a, &b);
	if(a<b){printf("a < b\n");}
	else if(a==b){printf("a == b\n");}
	else{printf("a > b"\n);}
}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:28: error: stray '\' in program
    9 |         else{printf("a > b"\n);}
      |                            ^
main.c:9:28: error: expected ')' before 'n'
    9 |         else{printf("a > b"\n);}
      |                    ~       ^~
      |                            )
main.c: At top level:
main.c:11:9: error: expected identifier or '(' before 'return'
   11 |         return 0;
      |         ^~~~~~
main.c:12:1: error: expected identifier or '(' before '}' token
   12 | }
      | ^
Language: C

#include <stdio.h>
#include <math.h>

int main(){
	int a,b;
	scanf("%d %d", &a, &b);
	if(a<b){printf("a < b\n");}
	else if(a==b){printf("a == b\n");}
	else{printf("a > b\n");}
}
	return 0;
}

Compiler output:
main.c:11:9: error: expected identifier or '(' before 'return'
   11 |         return 0;
      |         ^~~~~~
main.c:12:1: error: expected identifier or '(' before '}' token
   12 | }
      | ^
Language: C

int main(int argc, const char * argv[]){
    int a,b;
    scsnf("%d %d",&a,&b);
    if(a<b){
        printf("a < b\n");
    }else if(a>b){
        printf("a > b\n");
    }else{
        printf("a == b\n");
    }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:3:5: error: implicit declaration of function 'scsnf' [-Wimplicit-function-declaration]
    3 |     scsnf("%d %d",&a,&b);
      |     ^~~~~
main.c:5:9: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    5 |         printf("a < b\n");
      |         ^~~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'printf'
  +++ |+#include <stdio.h>
    1 | int main(int argc, const char * argv[]){
main.c:5:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
    5 |         printf("a < b\n");
      |         ^~~~~~
main.c:5:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:7:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
    7 |         printf("a > b\n");
      |         ^~~~~~
main.c:7:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:9:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
    9 |         printf("a == b\n");
      |         ^~~~~~
main.c:9:9: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

int main(int argc, const char * argv[]){
    int a,b;
    scsnf("%d %d",&a,&b);
    if(a<b){
        printf("a < b\n");
    }else if(a>b){
        printf("a > b\n");
    }else if(a==b){
        printf("a == b\n");
    }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:3:5: error: implicit declaration of function 'scsnf' [-Wimplicit-function-declaration]
    3 |     scsnf("%d %d",&a,&b);
      |     ^~~~~
main.c:5:9: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    5 |         printf("a < b\n");
      |         ^~~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'printf'
  +++ |+#include <stdio.h>
    1 | int main(int argc, const char * argv[]){
main.c:5:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
    5 |         printf("a < b\n");
      |         ^~~~~~
main.c:5:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:7:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
    7 |         printf("a > b\n");
      |         ^~~~~~
main.c:7:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:9:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
    9 |         printf("a == b\n");
      |         ^~~~~~
main.c:9:9: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:6:18: error: expected ';' before '}' token
    6 | printf("a > b\n")}
      |                  ^
      |                  ;
main.c:8:18: error: expected ';' before '}' token
    8 | printf("a < b\n")}
      |                  ^
      |                  ;
main.c:10:19: error: expected ';' before '}' token
   10 | printf("a == b\n")}
      |                   ^
      |                   ;
main.c:11:1: error: expected declaration or statement at end of input
   11 | return 0;
      | ^~~~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:6:18: error: expected ';' before '}' token
    6 | printf("a > b\n")}
      |                  ^
      |                  ;
main.c:8:18: error: expected ';' before '}' token
    8 | printf("a < b\n")}
      |                  ^
      |                  ;
main.c:10:19: error: expected ';' before '}' token
   10 | printf("a == b\n")}
      |                   ^
      |                   ;
main.c: At top level:
main.c:12:1: error: expected identifier or '(' before 'return'
   12 | return 0;
      | ^~~~~~
Language: C

#include<stdio.h>
int main(void){
int a, b;
if(a > b){
printf("a > b\n")}
else if(a < b){
printf("a < b\n")}
else{
printf("a == b\n")}
}
return 0;

Compiler output:
main.c: In function 'main':
main.c:5:18: error: expected ';' before '}' token
    5 | printf("a > b\n")}
      |                  ^
      |                  ;
main.c:7:18: error: expected ';' before '}' token
    7 | printf("a < b\n")}
      |                  ^
      |                  ;
main.c:9:19: error: expected ';' before '}' token
    9 | printf("a == b\n")}
      |                   ^
      |                   ;
main.c: At top level:
main.c:11:1: error: expected identifier or '(' before 'return'
   11 | return 0;
      | ^~~~~~
Language: C

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

Compiler output:
main.c:15:1: error: expected identifier or '(' before 'return'
   15 | return 0;
      | ^~~~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:8:18: error: expected ';' before '{' token
    8 | printf("a > b\n"){
      |                  ^
      |                  ;
main.c:10:16: error: stray '\' in program
   10 | printf("a == b"\n);
      |                ^
main.c:13:1: error: expected declaration or statement at end of input
   13 | }
      | ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:8:18: error: expected ';' before '}' token
    8 | printf("a > b\n")
      |                  ^
      |                  ;
    9 | }else{
      | ~                 
main.c:10:16: error: stray '\' in program
   10 | printf("a == b"\n);
      |                ^
main.c:10:16: error: expected ')' before 'n'
   10 | printf("a == b"\n);
      |       ~        ^~
      |                )
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:8:18: error: expected ';' before '}' token
    8 | printf("a > b\n")
      |                  ^
      |                  ;
    9 | }else{
      | ~
Language: C

#include<stdio.h>

int main()
{
	int a, b, c;
	scanf("%d %d %d",&a ,&b ,&c);
	if(a =< b =< c) printf("Yes\n");
	else printf("No\n");
	
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:15: error: expected expression before '<' token
    7 |         if(a =< b =< c) printf("Yes\n");
      |               ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:12:29: error: expected ';' before '{' token
   12 |                 else (a = b){
      |                             ^
      |                             ;
Language: C

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

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

#include <stdio.h>

int main()
{
    int a,b;
    scanf("%d %d",&a,&b);
    if(a>b){
	printf("a>b\n");
    }
    else if(a<b){
	printf("a<b\n");
    }
    else{
	printf("a==b\n");
    return 0;
}

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

#include <stdio.h>

int main()
{
    int a,b;
    scanf("%d %d",&a,&b);
    if(a>b){
	printf("a > b\n");
    }
    else if(a<b){
	printf("a < b\n");
    }
    else{
	printf(a == b\n");
}
 return 0;
}

Compiler output:
main.c: In function 'main':
main.c:14:22: error: stray '\' in program
   14 |         printf(a == b\n");
      |                      ^
main.c:14:22: error: expected ')' before 'n'
   14 |         printf(a == b\n");
      |               ~      ^~
      |                      )
main.c:14:24: warning: missing terminating " character
   14 |         printf(a == b\n");
      |                        ^
main.c:14:24: error: missing terminating " character
   14 |         printf(a == b\n");
      |                        ^~~
main.c:14:18: error: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion]
   14 |         printf(a == b\n");
      |                ~~^~~~
      |                  |
      |                  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:14:24: error: expected ';' before '}' token
   14 |         printf(a == b\n");
      |                        ^
      |                        ;
   15 | }
      | ~
Language: C

	#include <stdio.h>

	int main()
	{
	    int a,b;
	    scanf("%d %d",&a,&b);
	    if(a>b){
		printf("a > b\n");
	    } else if(a<b){
		printf("a < b\n");
	    } else{
		printf(a == b\n");
		}
	 return 0;
	}

Compiler output:
main.c: In function 'main':
main.c:12:30: error: stray '\' in program
   12 |                 printf(a == b\n");
      |                              ^
main.c:12:30: error: expected ')' before 'n'
   12 |                 printf(a == b\n");
      |                       ~      ^~
      |                              )
main.c:12:32: warning: missing terminating " character
   12 |                 printf(a == b\n");
      |                                ^
main.c:12:32: error: missing terminating " character
   12 |                 printf(a == b\n");
      |                                ^~~
main.c:12:26: error: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion]
   12 |                 printf(a == b\n");
      |                        ~~^~~~
      |                          |
      |                          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:12:32: error: expected ';' before '}' token
   12 |                 printf(a == b\n");
      |                                ^
      |                                ;
   13 |                 }
      |                 ~
Language: C

#include <stdio.h>

inmain()
{
    int a,b;
    scanf("%d %d",&a,&b);
    if(a>b){
	printf("a>b\n");
    }
     if(a<b){
	printf("a<b\n");
    }
    if(a==b){
	printf("a==b\n");
    }
    return (0);
}

Compiler output:
main.c:3:1: error: return type defaults to 'int' [-Wimplicit-int]
    3 | inmain()
      | ^~~~~~
Language: C

#include <stdio.h>

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

    if (a > b) {
        puts("a > b");
    else if (a < b) {
        puts("a < b");
    } else {
        puts("a == b");
    }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:5: error: expected '}' before 'else'
   10 |     else if (a < b) {
      |     ^~~~
Language: C

#include<stdio.h>

int main(void)
{
   int a,b;
   
   scanf("%d %d",&a,&b);
  
   if(a<b){
      printf("a<b");
   }else if(a > b){
      printf("a > b");
   }else{
      printf("a == b");

   return 0;
}

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

#include<stdio.h>

int main(void)
{ int a;
  int b;
  scanf("%d %d" , &a , &b );
  if(a<b){
     printf("a<b\n");
     }
   else(a>b){
     printf("a>b\n");
     }
   printf("a=b\n");
   return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:13: error: expected ';' before '{' token
   10 |    else(a>b){
      |             ^
      |             ;
Language: C

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

	int ei, tr;
	scanf("%d" ,&ei);
	scanf("%d", &tr);
	if (ei == tr)
	{
		printf("a == b");





	}


	if (ei > tr)
	{
		printf("a > b");




	}

	if (ei < tr)
	{
		printf("a < b");





	}

printf("\n")

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:38:13: error: expected ';' before 'return'
   38 | printf("\n")
      |             ^
      |             ;
   39 | 
   40 |         return 0;
      |         ~~~~~~
Language: C

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

	int ei, tr;
	scanf("%d" ,&ei);
	scanf("%d", &tr);
	if (ei == tr)
	{
		printf("a == b");




printf("\n")

	}


	if (ei > tr)
	{
		printf("a > b");




printf("\n")
	}

	if (ei < tr)
	{
		printf("a < b");




printf("\n")

	}


	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:15:13: error: expected ';' before '}' token
   15 | printf("\n")
      |             ^
      |             ;
   16 | 
   17 |         }
      |         ~    
main.c:27:13: error: expected ';' before '}' token
   27 | printf("\n")
      |             ^
      |             ;
   28 |         }
      |         ~    
main.c:37:13: error: expected ';' before '}' token
   37 | printf("\n")
      |             ^
      |             ;
   38 | 
   39 |         }
      |         ~
Language: C

x=STDIN.read
a=x.split[0].to_i
b=x.split[1].to_i
puts sprintf("%d < %d\n",a,b) if (a<b)
puts sprintf("%d > %d\n",a,b) if (a>b)
puts sprintf("%d == %d\n",a,b) if (a==b)

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | x=STDIN.read
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 'x' [-Wimplicit-int]
main.c:1:3: error: 'STDIN' undeclared here (not in a function)
    1 | x=STDIN.read
      |   ^~~~~
main.c:2:1: error: expected ',' or ';' before 'a'
    2 | a=x.split[0].to_i
      | ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:7:18: error: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion]
    7 |     else printf(a>b) printf("%d > %d\n",a,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:7:21: error: expected ';' before 'printf'
    7 |     else printf(a>b) printf("%d > %d\n",a,b);
      |                     ^~~~~~~
      |                     ;