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

#include <stdio.h>
int main(void)
    int a,b;
    scanf(%d,&a);
    scanf(%d,&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:4:5: error: expected declaration specifiers before 'scanf'
    4 |     scanf(%d,&a);
      |     ^~~~~
main.c:5:5: error: expected declaration specifiers before 'scanf'
    5 |     scanf(%d,&b);
      |     ^~~~~
main.c:6:5: error: expected declaration specifiers before 'if'
    6 |     if{(a<b)
      |     ^~
main.c:8:6: error: expected declaration specifiers before 'else'
    8 |     }else if{(a>b)
      |      ^~~~
main.c:10:6: error: expected declaration specifiers before 'else'
   10 |     }else{
      |      ^~~~
main.c:2:5: error: old-style parameter declarations in prototyped function definition
    2 | int main(void)
      |     ^~~~
main.c:14: error: expected '{' at end of input
Language: C

#include <stdio.h>
int main(void)
    int a,b;
    scanf(%d,&a);
    scanf(%d,&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:4:5: error: expected declaration specifiers before 'scanf'
    4 |     scanf(%d,&a);
      |     ^~~~~
main.c:5:5: error: expected declaration specifiers before 'scanf'
    5 |     scanf(%d,&b);
      |     ^~~~~
main.c:6:5: error: expected declaration specifiers before 'if'
    6 |     if{(a<b)
      |     ^~
main.c:8:6: error: expected declaration specifiers before 'else'
    8 |     }else if{(a>b)
      |      ^~~~
main.c:10:6: error: expected declaration specifiers before 'else'
   10 |     }else{
      |      ^~~~
main.c:14:1: error: expected declaration specifiers before '}' token
   14 | }
      | ^
main.c:2:5: error: old-style parameter declarations in prototyped function definition
    2 | int main(void)
      |     ^~~~
main.c:15: error: expected '{' at end of input
Language: C

#include <stdio.h>
int main(void){
    int a,b;
    scanf(%d,&a);
    scanf(%d,&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:4:11: error: expected expression before '%' token
    4 |     scanf(%d,&a);
      |           ^
main.c:5:11: error: expected expression before '%' token
    5 |     scanf(%d,&b);
      |           ^
main.c:6:7: error: expected '(' before '{' token
    6 |     if{(a<b)
      |       ^
      |       (
main.c:6:13: error: expected ';' before 'puts'
    6 |     if{(a<b)
      |             ^
      |             ;
    7 |        puts("a<b");
      |        ~~~~  
main.c:8:13: error: expected '(' before '{' token
    8 |     }else if{(a>b)
      |             ^
      |             (
main.c:8:19: error: expected ';' before 'puts'
    8 |     }else if{(a>b)
      |                   ^
      |                   ;
    9 |        puts("a>b");
      |        ~~~~        
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,&a);
    scanf(%d,&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:4:11: error: expected expression before '%' token
    4 |     scanf(%d,&a);
      |           ^
main.c:5:11: error: expected expression before '%' token
    5 |     scanf(%d,&b);
      |           ^
main.c:6:7: error: expected '(' before '{' token
    6 |     if{(a<b)
      |       ^
      |       (
main.c:6:13: error: expected ';' before 'puts'
    6 |     if{(a<b)
      |             ^
      |             ;
    7 |        puts("a<b");
      |        ~~~~  
main.c:8:13: error: expected '(' before '{' token
    8 |     }else if{(a>b)
      |             ^
      |             (
main.c:8:19: error: expected ';' before 'puts'
    8 |     }else if{(a>b)
      |                   ^
      |                   ;
    9 |        puts("a>b");
      |        ~~~~
Language: C

#include <stdio.h>
int main(void){
    int a,b;
    scanf(%d,&a);
    scanf(%d,&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:4:11: error: expected expression before '%' token
    4 |     scanf(%d,&a);
      |           ^
main.c:5:11: error: expected expression before '%' token
    5 |     scanf(%d,&b);
      |           ^
main.c:8:12: error: expected '(' before '{' token
    8 |     else if{(a>b)
      |            ^
      |            (
main.c:8:18: error: expected ';' before 'puts'
    8 |     else if{(a>b)
      |                  ^
      |                  ;
    9 |        puts("a>b");
      |        ~~~~       
main.c:10:5: error: expected '}' before 'else'
   10 |     else
      |     ^~~~
Language: C

#include <stdio.h>
int main(void){
    int a,b;
    scanf(%d,&a);
    scanf(%d,&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:4:11: error: expected expression before '%' token
    4 |     scanf(%d,&a);
      |           ^
main.c:5:11: error: expected expression before '%' token
    5 |     scanf(%d,&b);
      |           ^
main.c:8:12: error: expected '(' before '{' token
    8 |     else if{(a>b)
      |            ^
      |            (
main.c:8:18: error: expected ';' before 'printf'
    8 |     else if{(a>b)
      |                  ^
      |                  ;
    9 |        printf("a>b");
      |        ~~~~~~     
main.c:10:5: error: expected '}' before 'else'
   10 |     else
      |     ^~~~
Language: C

#include<stdio.h>
int main(void)
{
   int a,b;
   scanf("%d",&a);
   scanf("%d",&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:20: error: stray '\' in program
   13 |       printf("a==b"\n);
      |                    ^
main.c:13:20: error: expected ')' before 'n'
   13 |       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");
    else if(a>b)
       printf("a>b");
    else
       printf("a=b");
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:11: error: expected expression before '%' token
    4 |     scanf(%d,&a);
      |           ^
main.c:5:11: error: expected expression before '%' token
    5 |     scanf(%d,&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:4:11: error: expected expression before '%' token
    4 |     scanf(%d %d,&a &b);
      |           ^
Language: C

#include<stdio.h>

int main(){
    int a,b;
   
    pritf("a:\n");
    scanf("%d",&a);
    printf("b:\n");
    scanf("%d",&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:6:5: error: implicit declaration of function 'pritf'; did you mean 'printf'? [-Wimplicit-function-declaration]
    6 |     pritf("a:\n");
      |     ^~~~~
      |     printf
Language: C

#include<stdio.h>

int main(){
    double a,b;
   
    pritf("a:\n");
    scanf("%d",&a);
    printf("b:\n");
    scanf("%d",&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:6:5: error: implicit declaration of function 'pritf'; did you mean 'printf'? [-Wimplicit-function-declaration]
    6 |     pritf("a:\n");
      |     ^~~~~
      |     printf
Language: C

#include<stdio.h>

int main(){
    int a,b;
   
    pritf("a\n");
    scanf("%d",&a);
    printf("b\n");
    scanf("%d",&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:6:5: error: implicit declaration of function 'pritf'; did you mean 'printf'? [-Wimplicit-function-declaration]
    6 |     pritf("a\n");
      |     ^~~~~
      |     printf
Language: C

#include<stdio.h>

int main(){
    int a,b;
   
    pritf("a");
    scanf("%d",&a);
    printf("b");
    scanf("%d",&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:6:5: error: implicit declaration of function 'pritf'; did you mean 'printf'? [-Wimplicit-function-declaration]
    6 |     pritf("a");
      |     ^~~~~
      |     printf
Language: C

#include <stdio.h>
  2
  3 int main(void)
  4 {
  5     int a,b;
  6
  7     printf("a?????\?????????????????????");
  8     scanf("%d",&a);
  9     printf("b?????\?????????????????????");
 10     scanf("%d",&b);
 11
 12     if(a<b)
 13         printf("a < b\n");
 14     else if(a>b)
 15         printf("a > b\n");
 16     else if(a==b)
 17         printf("a == b\n");
 18
 19     return 0;
 20 }

Compiler output:
main.c:2:3: error: expected identifier or '(' before numeric constant
    2 |   2
      |   ^
Language: C

#include<stdio.h>

int main(){
    int a,b;
   
    pritf("a:\n");
    scanf("%d",&a);
    printf("b:\n");
    scanf("%d",&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:6:5: error: implicit declaration of function 'pritf'; did you mean 'printf'? [-Wimplicit-function-declaration]
    6 |     pritf("a:\n");
      |     ^~~~~
      |     printf
Language: C

#include<stdio.h>

int main(){
    int a,b;
   
    pritf("a:\n");
    scanf("%d",&a);
    printf("b:\n");
    scanf("%d",&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:6:5: error: implicit declaration of function 'pritf'; did you mean 'printf'? [-Wimplicit-function-declaration]
    6 |     pritf("a:\n");
      |     ^~~~~
      |     printf
Language: C

#include<stdio.h>

int main(){
    int a,b;
   
    pritf("a:\n");
    scanf("%d",&a);
    printf("b:\n");
    scanf("%d",&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:6:5: error: implicit declaration of function 'pritf'; did you mean 'printf'? [-Wimplicit-function-declaration]
    6 |     pritf("a:\n");
      |     ^~~~~
      |     printf
Language: C

#include<stdio.h>

int main(){
    int a,b;
   
    pritf("a:\n");
    scanf("%d",&a);
    printf("b:\n");
    scanf("%d",&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:6:5: error: implicit declaration of function 'pritf'; did you mean 'printf'? [-Wimplicit-function-declaration]
    6 |     pritf("a:\n");
      |     ^~~~~
      |     printf
Language: C

#include<stdio.h>

int main(){

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

if(a>b){
true
}else if(a<b){
true
}else if(a==b){
true
}
return0;

}

Compiler output:
main.c: In function 'main':
main.c:7:4: error: 'a' undeclared (first use in this function)
    7 | if(a>b){
      |    ^
main.c:7:4: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:6: error: 'b' undeclared (first use in this function)
    7 | if(a>b){
      |      ^
main.c:8:1: error: 'true' undeclared (first use in this function)
    8 | true
      | ^~~~
main.c:2:1: note: 'true' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
    1 | #include<stdio.h>
  +++ |+#include <stdbool.h>
    2 | 
main.c:8:5: error: expected ';' before '}' token
    8 | true
      |     ^
      |     ;
    9 | }else if(a<b){
      | ~    
main.c:10:5: error: expected ';' before '}' token
   10 | true
      |     ^
      |     ;
   11 | }else if(a==b){
      | ~    
main.c:12:5: error: expected ';' before '}' token
   12 | true
      |     ^
      |     ;
   13 | }
      | ~    
main.c:14:1: error: 'return0' undeclared (first use in this function)
   14 | return0;
      | ^~~~~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:7:14: error: expected ';' before '}' token
    7 | printf("a<b")
      |              ^
      |              ;
    8 | };
      | ~             
main.c:10:15: error: expected ';' before '}' token
   10 | printf("a==b")}
      |               ^
      |               ;
main.c:13:14: error: expected ';' before '}' token
   13 | printf("a>b")
      |              ^
      |              ;
   14 | };
      | ~
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
{
printf("a>b\n");
}
return 0;
}

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

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

Compiler output:
main.c: In function 'main':
main.c:5:20: error: expected ')' before 'a'
    5 |         printf("%d"a==b);
      |               ~    ^
      |                    )
main.c:8:20: error: expected ')' before 'a'
    8 |         printf("%d"a<b);
      |               ~    ^
      |                    )
main.c:11:20: error: expected ')' before 'a'
   11 |         printf("%d"a>b);
      |               ~    ^
      |                    )
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:5:22: error: expected ')' before 'a'
    5 |         printf("%d%d"a==b);
      |               ~      ^
      |                      )
main.c:7:22: error: expected ')' before 'a'
    7 |         printf("%d%d"a<b);
      |               ~      ^
      |                      )
main.c:8:11: error: expected ';' before '{' token
    8 | }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("a == b")
		printf("a == b");
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:23: error: expected ';' before 'printf'
    9 |         else("a == b")
      |                       ^
      |                       ;
   10 |                 printf("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("a == b")
		printf("a == b");
	return 0;
}

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

#include<stdio.h>

int main(){
	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 if(a<b){
		printf("%d<%d\n", a,b);
	}else if(-1000<=a && a<=1000 && -1000<=b && b<=10000){
		break;
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:13:17: error: break statement not within loop or switch
   13 |                 break;
      |                 ^~~~~
Language: C

#include<stdio.h>

int main(){
	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 if(a<b){
		printf("%d<%d\n", a,b);
	}else if(-1000<=a && a<=1000 && -1000<=b && b<=10000){
		break;
	};
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:13:17: error: break statement not within loop or switch
   13 |                 break;
      |                 ^~~~~
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");
	}else if(-1000<=a && a<=1000 && -1000<=b && b<=1000){
		break;
	};
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:13:17: error: break statement not within loop or switch
   13 |                 break;
      |                 ^~~~~
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:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include<stdio.h>
      |        ^
Language: C

#include <stdio.h>

int main(void)
{
        int a, b;

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

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

        return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:17: error: expected '(' before 'printf'
   11 |         else if 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:12:1: error: expected declaration or statement at end of input
   12 | }
      | ^
Language: C

include<stdio.h>
int main(void)
{
	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:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include<stdio.h>
      |        ^
Language: C

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

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

#include <stdio.h>
int main(void)
{
      int a??§-1000,b???1000;
      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:4:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '?' token
    4 |       int a??§-1000,b???1000;
      |            ^
main.c:4:12: error: expected expression before '?' token
main.c:4:14: error: stray '\302' in program
    4 |       int a??<U+00A7>-1000,b???1000;
      |              ^~~~~~~~
main.c:4:21: error: 'b' undeclared (first use in this function)
    4 |       int a??§-1000,b???1000;
      |                     ^
main.c:4:21: note: each undeclared identifier is reported only once for each function it appears in
main.c:5:22: error: 'a' undeclared (first use in this function)
    5 |       scanf("%d %d",&a,&b);
      |                      ^
Language: C

#include <stdio.h>
int main(void)
{
      int a=??????1000,b=???1000;
      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:4:13: error: expected expression before '?' token
    4 |       int a=??????1000,b=???1000;
      |             ^
main.c:4:24: error: 'b' undeclared (first use in this function)
    4 |       int a=??????1000,b=???1000;
      |                        ^
main.c:4:24: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>
int main(void)
 
{
 int a,b;
 scanf("%d %d",&a,&b);
 if(a>b){
 printf("a>b\n");
 }
 else 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:17:1: error: expected declaration or statement at end of input
   17 | }
      | ^
Language: C

#include <stdio.h>
int main(void)
 
{
 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:17:1: error: expected declaration or statement at end of input
   17 | }
      | ^
Language: C

#include <stdio.h>
int main(void)
 
{
 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:17:1: error: expected declaration or statement at end of input
   17 | }
      | ^
Language: C

#include <stdio.h>
int main(void)
 
{
 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:17:1: error: expected declaration or statement at end of input
   17 | }
      | ^
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:12:5: error: expected declaration or statement at end of input
   12 |     return 0;
      |     ^~~~~~
Language: C

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

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

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

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

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

Compiler output:
main.c: In function 'main':
main.c:8:9: error: 'else' without a previous 'if'
    8 |         else if(a>b);{
      |         ^~~~
main.c:11:9: error: 'else' without a previous 'if'
   11 |         else(a==b);
      |         ^~~~
main.c:14:21: warning: unknown escape sequence: '\d'
   14 |         printf("%\d",&a,&b);
      |                     ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:8:9: error: 'else' without a previous 'if'
    8 |         else if(a>b);{
      |         ^~~~
main.c:11:9: error: 'else' without a previous 'if'
   11 |         else(a==b);
      |         ^~~~
main.c:14:21: warning: unknown escape sequence: '\d'
   14 |         printf("%\d",&a,&b);
      |                     ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:9:9: error: 'else' without a previous 'if'
    9 |         else if(a>b);{
      |         ^~~~
main.c:12:9: error: 'else' without a previous 'if'
   12 |         else(a==b);{
      |         ^~~~
main.c:15:21: warning: unknown escape sequence: '\d'
   15 |         printf("%\d",&a,&b);
      |                     ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:9:9: error: 'else' without a previous 'if'
    9 |         else if(a>b);{
      |         ^~~~
main.c:12:9: error: 'else' without a previous 'if'
   12 |         else(a==b);{
      |         ^~~~
main.c:15:27: warning: unknown escape sequence: '\d'
   15 |         printf("%\dn,%\dn",&a,&b);
      |                           ^
main.c:15:27: warning: unknown escape sequence: '\d'
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:8:10: error: 'else' without a previous 'if'
    8 |         }else if(a>b);{
      |          ^~~~
main.c:10:10: error: 'else' without a previous 'if'
   10 |         }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(a==b);{
		printf("a==b\n");
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:10: error: 'else' without a previous 'if'
    8 |         }else if(a>b);{
      |          ^~~~
main.c:10:10: error: 'else' without a previous 'if'
   10 |         }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(a==b){
		printf("a == b\n");
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:10: error: 'else' without a previous 'if'
    8 |         }else if(a>b){
      |          ^~~~
main.c:10:20: error: expected ';' before '{' token
   10 |         }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(a==b){
		printf("a == b\n");
	}
	return 0;
}

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

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

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

int s=a-b;

if(s>0){
printf("a > b");
}

else if(s<0)
printf("a < b");
}
else {
printf("a == b");
}
return 0;
}

Compiler output:
main.c:16:1: error: expected identifier or '(' before 'else'
   16 | else {
      | ^~~~
main.c:19:1: error: expected identifier or '(' before 'return'
   19 | return 0;
      | ^~~~~~
main.c:20:1: error: expected identifier or '(' before '}' token
   20 | }
      | ^
Language: C

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

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

int s=a-b;

if(s>0){
printf("a > b");
}

else if(s<0){
printf("a < b");
}
else if(s==0{
printf("a == b");
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:16:13: error: expected ')' before '{' token
   16 | else if(s==0{
      |        ~    ^
      |             )
main.c:20:1: error: expected expression before '}' token
   20 | }
      | ^
Language: C

#include <stdio.h>

int main(void)
{
int a,b;
-1,000<=a;
b<=1,000;
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:8:18: error: invalid operands to binary & (have 'int *' and 'int')
    8 | scanf("%d %d",&a &b);
      |               ~~ ^
      |               |
      |               int *
main.c:16:18: error: expected ')' before ';' token
   16 | printf("a == b\n";)
      |       ~          ^
      |                  )
main.c:16:20: error: expected ';' before '}' token
   16 | printf("a == b\n";)
      |                    ^
      |                    ;
   17 | }
      | ~
Language: C

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

Compiler output:
main.c:7:2: error: expected identifier or '(' before 'if'
    7 |  if(a>b){
      |  ^~
main.c:10:2: error: expected identifier or '(' before 'if'
   10 |  if(a==b){
      |  ^~
main.c:13:2: error: expected identifier or '(' before 'return'
   13 |  return 0;
      |  ^~~~~~
main.c:14:1: error: expected identifier or '(' before '}' token
   14 | }
      | ^
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) rintf("a<b\n");

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

return 0;

}

Compiler output:
main.c: In function 'main':
main.c:9:17: error: implicit declaration of function 'rintf' [-Wimplicit-function-declaration]
    9 | else if (a < b) rintf("a<b\n");
      |                 ^~~~~
main.c:2:1: note: include '<math.h>' or provide a declaration of 'rintf'
    1 | #include <stdio.h>
  +++ |+#include <math.h>
    2 | 
main.c:9:17: warning: incompatible implicit declaration of built-in function 'rintf' [-Wbuiltin-declaration-mismatch]
    9 | else if (a < b) rintf("a<b\n");
      |                 ^~~~~
main.c:9:17: note: include '<math.h>' or provide a declaration of 'rintf'
main.c:9:23: error: incompatible type for argument 1 of 'rintf'
    9 | else if (a < b) rintf("a<b\n");
      |                       ^~~~~~~
      |                       |
      |                       char *
main.c:9:23: note: expected 'float' but argument is of type 'char *'
Language: C

include <stdio.h>

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

Compiler output:
main.c:1:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include <stdio.h>
      |         ^
main.c:5:1: error: return type defaults to 'int' [-Wimplicit-int]
    5 | main(){
      | ^~~~
main.c: In function 'main':
main.c:6:9: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    6 |         scanf("%d%d",&a,&b);
      |         ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | include <stdio.h>
main.c:6:9: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    6 |         scanf("%d%d",&a,&b);
      |         ^~~~~
main.c:6:9: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:6:23: error: 'a' undeclared (first use in this function)
    6 |         scanf("%d%d",&a,&b);
      |                       ^
main.c:6:23: note: each undeclared identifier is reported only once for each function it appears in
main.c:10:17: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   10 |                 printf("a<b\n");
      |                 ^~~~~~
main.c:10:17: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:10:17: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:10:17: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:13:25: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   13 |                         printf("a>b\n");
      |                         ^~~~~~
main.c:13:25: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:16:25: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   16 |                         printf("a==b\n");
      |                         ^~~~~~
main.c:16:25: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

include <stdio.h>

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

Compiler output:
main.c:1:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include <stdio.h>
      |         ^
main.c:5:1: error: return type defaults to 'int' [-Wimplicit-int]
    5 | main(){
      | ^~~~
main.c: In function 'main':
main.c:6:9: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    6 |         scanf("%d%d",&a,&b);
      |         ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | include <stdio.h>
main.c:6:9: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    6 |         scanf("%d%d",&a,&b);
      |         ^~~~~
main.c:6:9: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:6:23: error: 'a' undeclared (first use in this function)
    6 |         scanf("%d%d",&a,&b);
      |                       ^
main.c:6:23: note: each undeclared identifier is reported only once for each function it appears in
main.c:10:17: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   10 |                 printf("a<b\n");
      |                 ^~~~~~
main.c:10:17: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:10:17: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:10:17: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:13:25: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   13 |                         printf("a>b\n");
      |                         ^~~~~~
main.c:13:25: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:16:25: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   16 |                         printf("a==b\n");
      |                         ^~~~~~
main.c:16:25: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

include <stdio.h>

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

Compiler output:
main.c:1:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include <stdio.h>
      |         ^
main.c:5:1: error: return type defaults to 'int' [-Wimplicit-int]
    5 | main(){
      | ^~~~
main.c: In function 'main':
main.c:6:9: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    6 |         scanf("%d%d",&a,&b);
      |         ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | include <stdio.h>
main.c:6:9: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    6 |         scanf("%d%d",&a,&b);
      |         ^~~~~
main.c:6:9: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:6:23: error: 'a' undeclared (first use in this function)
    6 |         scanf("%d%d",&a,&b);
      |                       ^
main.c:6:23: note: each undeclared identifier is reported only once for each function it appears in
main.c:10:17: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   10 |                 printf("a<b\n");
      |                 ^~~~~~
main.c:10:17: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:10:17: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:10:17: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:13:25: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   13 |                         printf("a>b\n");
      |                         ^~~~~~
main.c:13:25: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:16:25: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   16 |                         printf("a==b\n");
      |                         ^~~~~~
main.c:16:25: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

include <stdio.h>

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

Compiler output:
main.c:1:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include <stdio.h>
      |         ^
main.c:5:1: error: return type defaults to 'int' [-Wimplicit-int]
    5 | main(){
      | ^~~~
main.c: In function 'main':
main.c:6:9: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    6 |         scanf("%d%d",&a,&b);
      |         ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | include <stdio.h>
main.c:6:9: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    6 |         scanf("%d%d",&a,&b);
      |         ^~~~~
main.c:6:9: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:6:23: error: 'a' undeclared (first use in this function)
    6 |         scanf("%d%d",&a,&b);
      |                       ^
main.c:6:23: note: each undeclared identifier is reported only once for each function it appears in
main.c:10:17: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   10 |                 printf("a < b\n");
      |                 ^~~~~~
main.c:10:17: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:10:17: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:10:17: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:13:25: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   13 |                         printf("a > b\n");
      |                         ^~~~~~
main.c:13:25: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:16:25: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   16 |                         printf("a == b\n");
      |                         ^~~~~~
main.c:16:25: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

include <stdio.h>

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

Compiler output:
main.c:1:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include <stdio.h>
      |         ^
main.c:5:1: error: return type defaults to 'int' [-Wimplicit-int]
    5 | main(){
      | ^~~~
main.c: In function 'main':
main.c:6:9: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    6 |         scanf("%d%d",&a,&b);
      |         ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | include <stdio.h>
main.c:6:9: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    6 |         scanf("%d%d",&a,&b);
      |         ^~~~~
main.c:6:9: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:6:23: error: 'a' undeclared (first use in this function)
    6 |         scanf("%d%d",&a,&b);
      |                       ^
main.c:6:23: note: each undeclared identifier is reported only once for each function it appears in
main.c:10:17: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   10 |                 printf("a < b\n");
      |                 ^~~~~~
main.c:10:17: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:10:17: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:10:17: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:13:25: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   13 |                         printf("a > b\n");
      |                         ^~~~~~
main.c:13:25: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:16:25: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   16 |                         printf("a == b\n");
      |                         ^~~~~~
main.c:16:25: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

include <stdio.h>

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

Compiler output:
main.c:1:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include <stdio.h>
      |         ^
main.c:5:1: error: return type defaults to 'int' [-Wimplicit-int]
    5 | main(){
      | ^~~~
main.c: In function 'main':
main.c:6:9: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    6 |         scanf("%d %d",&a,&b);
      |         ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | include <stdio.h>
main.c:6:9: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    6 |         scanf("%d %d",&a,&b);
      |         ^~~~~
main.c:6:9: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:6:24: error: 'a' undeclared (first use in this function)
    6 |         scanf("%d %d",&a,&b);
      |                        ^
main.c:6:24: note: each undeclared identifier is reported only once for each function it appears in
main.c:10:17: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   10 |                 printf("a < b\n");
      |                 ^~~~~~
main.c:10:17: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:10:17: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:10:17: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:13:25: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   13 |                         printf("a > b\n");
      |                         ^~~~~~
main.c:13:25: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:16:25: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   16 |                         printf("a == b\n");
      |                         ^~~~~~
main.c:16:25: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

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

Compiler output:
main.c:1:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include <stdio.h>
      |         ^
main.c:4:1: error: return type defaults to 'int' [-Wimplicit-int]
    4 | main(){
      | ^~~~
main.c: In function 'main':
main.c:5:1: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    5 | scanf("%d %d",&a,&b);
      | ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | include <stdio.h>
main.c:5:1: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    5 | scanf("%d %d",&a,&b);
      | ^~~~~
main.c:5:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:5:16: error: 'a' undeclared (first use in this function)
    5 | scanf("%d %d",&a,&b);
      |                ^
main.c:5:16: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:1: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    8 | printf("a < b\n");
      | ^~~~~~
main.c:8:1: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:8:1: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:8:1: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:11:1: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   11 | printf("a > b\n");
      | ^~~~~~
main.c:11:1: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:14:1: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   14 | printf("a == b\n");
      | ^~~~~~
main.c:14:1: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

#include <stdio.h>

int a;
int b;
main(){
	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");
		}
}
}

Compiler output:
main.c:5:1: error: return type defaults to 'int' [-Wimplicit-int]
    5 | main(){
      | ^~~~
main.c:17:1: error: expected identifier or '(' before '}' token
   17 | }
      | ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:6:32: error: expected ')' before ';' token
    6 | else if(a>b) printf("%d>%d",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 
   {
       printf("a==b\n");
   }
   
   return 0;
}

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

#include<stdio.h>

int main(void){

inta,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:5:1: error: 'inta' undeclared (first use in this function); did you mean 'int'?
    5 | inta,b;
      | ^~~~
      | int
main.c:5:1: note: each undeclared identifier is reported only once for each function it appears in
main.c:5:6: error: 'b' undeclared (first use in this function)
    5 | inta,b;
      |      ^
main.c:7:16: error: 'a' undeclared (first use in this function)
    7 | scanf("%d %d",&a,&b);
      |                ^