criyle/codenet-compile-errors huggingface dataset:
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:7:11: error: stray '\' in program
    7 | printf(a>b\n);
      |           ^
main.c:7:11: error: expected ')' before 'n'
    7 | printf(a>b\n);
      |       ~   ^~
      |           )
main.c:7:9: error: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion]
    7 | 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:10:11: error: stray '\' in program
   10 | printf(a<b\n);
      |           ^
main.c:10:11: error: expected ')' before 'n'
   10 | printf(a<b\n);
      |       ~   ^~
      |           )
main.c:10:9: error: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion]
   10 | printf(a<b\n);
      |        ~^~
      |         |
      |         int
/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:13:12: error: stray '\' in program
   13 | printf(a==b\n);
      |            ^
main.c:13:12: error: expected ')' before 'n'
   13 | printf(a==b\n);
      |       ~    ^~
      |            )
main.c:13:9: error: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion]
   13 | printf(a==b\n);
      |        ~^~~
      |         |
      |         int
/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, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
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:16:1: error: expected identifier or '(' before 'return'
   16 | return 0;
      | ^~~~~~
main.c:17:1: error: expected identifier or '(' before '}' token
   17 | }
      | ^
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:16:1: error: expected identifier or '(' before 'return'
   16 | return 0;
      | ^~~~~~
main.c:17:1: error: expected identifier or '(' before '}' token
   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:17:1: error: expected identifier or '(' before 'return'
   17 | return 0;
      | ^~~~~~
main.c:18:1: error: expected identifier or '(' before '}' token
   18 | }
      | ^
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:19: error: invalid operands to binary & (have 'int *' and 'int')
    7 |   scanf("%d%d",&a &b);
      |                ~~ ^
      |                |
      |                int *
Language: C

#include <stdio.h>

int main(void)
{
  int a,b;

  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:9:22: error: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion]
    9 |   if(a<b) printf("%d"<"%d",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:10:23: error: assignment to expression with array type
   10 |   if(a==b) printf("%d"="%d",a,b);
      |                       ^
main.c:11:22: error: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion]
   11 |   if(a>b) printf("%d">"%d",a,b);
      |                  ~~~~^~~~~
      |                      |
      |                      int
/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, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
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:9:21: error: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion]
    9 |   if(a<b) 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:10:22: error: assignment to expression with array type
   10 |   if(a==b) printf("a"="b\n");
      |                      ^
main.c:11:22: error: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion]
   11 |   if(a>b) printf("%a">"b\n");
      |                  ~~~~^~~~~~
      |                      |
      |                      int
/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, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
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:21: error: expected ')' before ';' token
    7 |  scanf("%d %d",&a,&b;
      |       ~             ^
      |                     )
main.c:15:10: error: expected ';' before '}' token
   15 | return 0;
      |          ^
      |          ;
   16 | 
   17 | }
      | ~
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:11:5: error: expected expression before '?' token
   11 | 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\n");
}
	if(a>b){
		printf("a>b\n");
}
	if(a==b){
		printf("a==b\n");
}

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

 #include <iostream>
using namespace std;
	int main(){
		int a,b;
		cin >> a >> b;
		if ( a < b )
			cout << " a < b "<< endl;
		else if ( a > b ) 
			cout << " a > b "<< endl;
		else if ( a == b )
			cout << " a == b "<< endl;
	}

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

#include<stdio.h>

int main(void){


int a;


int 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:27:17: error: expected ';' before 'return'
   27 | printf("a==b\n")
      |                 ^
      |                 ;
......
   30 | return 0;
      | ~~~~~~
Language: C

#include<stdio.h>

int main(void)


int a,b;


scanf("%d",a);


scanf("%d",b);


if(a<b && a>b && a==b){


return 0;


}

Compiler output:
main.c: In function 'main':
main.c:9:1: error: expected declaration specifiers before 'scanf'
    9 | scanf("%d",a);
      | ^~~~~
main.c:12:1: error: expected declaration specifiers before 'scanf'
   12 | scanf("%d",b);
      | ^~~~~
main.c:15:1: error: expected declaration specifiers before 'if'
   15 | if(a<b && a>b && a==b){
      | ^~
main.c:3:5: error: old-style parameter declarations in prototyped function definition
    3 | int main(void)
      |     ^~~~
main.c:22: error: expected '{' at end of input
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:11:4: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'scanf'
   11 |    scanf("%d %d",&a,&b);
      |    ^~~~~
main.c:14:10: error: 'b' undeclared (first use in this function)
   14 |    if(a==b){
      |          ^
main.c:14:10: note: each undeclared identifier is reported only once for each function it appears in
main.c:38:24: error: expected ')' before 'a'
   38 |        printf("%d>%d\n"a,b);
      |              ~         ^
      |                        )
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:38:24: error: expected ')' before 'a'
   38 |        printf("%d>%d\n"a,b);
      |              ~         ^
      |                        )
Language: C

#include<stdio.h>

int main(void){

int a;

int 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:19:17: error: expected ';' before '}' token
   19 | printf("a==b\n")}
      |                 ^
      |                 ;
Language: C

#include<stdio.h>
int mmain(void){
int a,b;
scanf("%d %d2,&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 'mmain':
main.c:4:7: warning: missing terminating " character
    4 | scanf("%d %d2,&a,&b);
      |       ^
main.c:4:7: error: missing terminating " character
    4 | scanf("%d %d2,&a,&b);
      |       ^~~~~~~~~~~~~~~
main.c:5:1: error: expected expression before 'if'
    5 | if(a<b){
      | ^~
main.c:10:16: error: expected ';' before '}' token
   10 | 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 %d2,&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:7: warning: missing terminating " character
    4 | scanf("%d %d2,&a,&b);
      |       ^
main.c:4:7: error: missing terminating " character
    4 | scanf("%d %d2,&a,&b);
      |       ^~~~~~~~~~~~~~~
main.c:5:1: error: expected expression before 'if'
    5 | if(a<b){
      | ^~
main.c:10:16: error: expected ';' before '}' token
   10 | 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");
}
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:5:21: error: expected expression before ')' token
    5 | scanf("%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 if(a==b)
printf("a=b\n")}
return 0;

Compiler output:
main.c: In function 'main':
main.c:6:16: error: expected ';' before '}' token
    6 | printf("a<b\n")}
      |                ^
      |                ;
main.c:8:16: error: expected ';' before '}' token
    8 | printf("a>b\n")}
      |                ^
      |                ;
main.c:10:16: error: expected ';' before '}' token
   10 | 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: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("%d<%d",a,b);


}


else(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:27:10: error: expected ';' before '{' token
   27 | else(a>b)
      |          ^
      |          ;
......
   30 | {
      | ~
Language: C

#include<stdio.h>

int main(void){


int a,b;


scanf("%d",&a);


scanf("%d",&b);


if(a<b){


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


}


else{


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


}


else{


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


return 0;


}

Compiler output:
main.c: In function 'main':
main.c:33:1: error: 'else' without a previous 'if'
   33 | else{
      | ^~~~
main.c:42:1: error: expected declaration or statement at end of input
   42 | }
      | ^
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");

 }

 if(a==b){

  printf("a==b");

 }

 return 0;

}

Compiler output:
main.c: In function 'main':
main.c:9:2: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'scanf'
    9 |  scanf("%d %d",&a,&b);
      |  ^~~~~
main.c:11:7: error: 'b' undeclared (first use in this function)
   11 |  if(a<b){
      |       ^
main.c:11:7: 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");}
else if(a==b)
printf("a==b\n");}
}
return 0;

Compiler output:
main.c:12:1: error: expected identifier or '(' before 'return'
   12 | 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:12:1: error: expected identifier or '(' before 'return'
   12 | return 0;
      | ^~~~~~
main.c:13:1: error: expected identifier or '(' before '}' token
   13 | }
      | ^
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(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:19:10: error: expected ';' before '{' token
   19 | else(a>b)
      |          ^
      |          ;
   20 | 
   21 | {
      | ~
Language: C

#include<stdio.h>

int main(void)

int a,b;


scanf("%d",a);


scanf("%d",b);


if(a < b && a > b && a == b){


}


return 0;


}

Compiler output:
main.c: In function 'main':
main.c:8:1: error: expected declaration specifiers before 'scanf'
    8 | scanf("%d",a);
      | ^~~~~
main.c:11:1: error: expected declaration specifiers before 'scanf'
   11 | scanf("%d",b);
      | ^~~~~
main.c:14:1: error: expected declaration specifiers before 'if'
   14 | if(a < b && a > b && a == b){
      | ^~
main.c:20:1: error: expected declaration specifiers before 'return'
   20 | return 0;
      | ^~~~~~
main.c:23:1: error: expected declaration specifiers before '}' token
   23 | }
      | ^
main.c:3:5: error: old-style parameter declarations in prototyped function definition
    3 | int main(void)
      |     ^~~~
main.c:24: error: expected '{' at end of input
Language: C

#include<stdio.h>

int main()

int a,b;


if(a<=b){


if(a==b){


printf("a==b")

}


else


{


printf("a<b")

}


else


{


printf("a>b")


}


return 0


}

Compiler output:
main.c: In function 'main':
main.c:8:1: error: expected declaration specifiers before 'if'
    8 | if(a<=b){
      | ^~
main.c:5:7: error: declaration for parameter 'b' but no such parameter
    5 | int a,b;
      |       ^
main.c:5:5: error: declaration for parameter 'a' but no such parameter
    5 | int a,b;
      |     ^
main.c:46: error: expected '{' at end of input
Language: C

#include<stdio.h>

int main()

int a,b;


if(a<=b){


if(a==b){


printf("a==b")

}


else


{


printf("a<b")

}


else


{


printf("a>b")


}


return 0;


}

Compiler output:
main.c: In function 'main':
main.c:8:1: error: expected declaration specifiers before 'if'
    8 | if(a<=b){
      | ^~
main.c:5:7: error: declaration for parameter 'b' but no such parameter
    5 | int a,b;
      |       ^
main.c:5:5: error: declaration for parameter 'a' but no such parameter
    5 | int a,b;
      |     ^
main.c:46: error: expected '{' at end of input
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:9:3: error: 'else' without a previous 'if'
    9 |   else{
      |   ^~~~
main.c:13:5: error: 'else' without a previous 'if'
   13 |     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");

}

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",&a);

scanf("%d",&b);

if(a<b){

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

}

else{

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

}

else(a==b){


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


}


return 0;

}

Compiler output:
main.c: In function 'main':
main.c:23:1: error: 'else' without a previous 'if'
   23 | else(a==b){
      | ^~~~
main.c:23:11: error: expected ';' before '{' token
   23 | else(a==b){
      |           ^
      |           ;
Language: C

#include<stdio.h>

int main()

int a,b;


if(a<=b){


if(a==b){


printf("a==b");

}


else


{


printf("a<b");

}


else


{


printf("a>b");


}


return 0;


}

Compiler output:
main.c: In function 'main':
main.c:8:1: error: expected declaration specifiers before 'if'
    8 | if(a<=b){
      | ^~
main.c:5:7: error: declaration for parameter 'b' but no such parameter
    5 | int a,b;
      |       ^
main.c:5:5: error: declaration for parameter 'a' but no such parameter
    5 | int a,b;
      |     ^
main.c:46: error: expected '{' at end of input
Language: C

#include<stdio.h>

int main(void)

{

int a,b ;

scan("%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:1: error: implicit declaration of function 'scan'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    9 | scan("%d %d",&a,&b) ;
      | ^~~~
      | scanf
Language: C

#include<stdio.h>

int main(void)

{

int a,b;

scanf("%d",&a);

scanf("%d",&b);

if(a<b)

{

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

}

else

{

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

}

else(a==b)

{


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


}


return 0;

}

Compiler output:
main.c: In function 'main':
main.c:29:1: error: 'else' without a previous 'if'
   29 | else(a==b)
      | ^~~~
main.c:29:11: error: expected ';' before '{' token
   29 | else(a==b)
      |           ^
      |           ;
   30 | 
   31 | {
      | ~
Language: C

#include <stdio.h>

int main()

{     

    int a b;

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

    if(a<=b){

       if(a==b){

          printf("a==b");

       }


       else{

          printf("a<b");

       }

    }

    else{

        printf("a>b");

    }

    return 0;

}

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

#include<stdio.h>

int main()

int a,b;

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

if(a<=b){


if(a==b){


printf("a==b");

}


else


{


printf("a<b");

}


else


{


printf("a>b");


}


return 0;


}

Compiler output:
main.c: In function 'main':
main.c:7:1: error: expected declaration specifiers before 'scanf'
    7 | scanf("%d %d",&a,&b);
      | ^~~~~
main.c:9:1: error: expected declaration specifiers before 'if'
    9 | if(a<=b){
      | ^~
main.c:5:7: error: declaration for parameter 'b' but no such parameter
    5 | int a,b;
      |       ^
main.c:5:5: error: declaration for parameter 'a' but no such parameter
    5 | int a,b;
      |     ^
main.c:47: error: expected '{' at end of input
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: 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){


if(a==b){


printf("a==b");

}


else


{


printf("a<b");

}


if(a>b)


{


printf("a>b");


}


return 0;


}

Compiler output:
main.c: In function 'main':
main.c:7:1: error: expected declaration specifiers before 'scanf'
    7 | scanf("%d %d",&a,&b);
      | ^~~~~
main.c:9:1: error: expected declaration specifiers before 'if'
    9 | if(a<=b){
      | ^~
main.c:5:7: error: declaration for parameter 'b' but no such parameter
    5 | int a,b;
      |       ^
main.c:5:5: error: declaration for parameter 'a' but no such parameter
    5 | int a,b;
      |     ^
main.c:47: 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)

{

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

}

else

{

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

}

else(a==b)

{


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


}


}


return 0;

}

Compiler output:
main.c: In function 'main':
main.c:29:1: error: 'else' without a previous 'if'
   29 | else(a==b)
      | ^~~~
main.c:29:11: error: expected ';' before '{' token
   29 | else(a==b)
      |           ^
      |           ;
   30 | 
   31 | {
      | ~          
main.c: At top level:
main.c:43:1: error: expected identifier or '(' before 'return'
   43 | return 0;
      | ^~~~~~
main.c:45:1: error: expected identifier or '(' before '}' token
   45 | }
      | ^
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:11:21: error: invalid operands to binary & (have 'int *' and 'int')
   11 |    scanf("%d %d",&a &b);
      |                  ~~ ^
      |                  |
      |                  int *
Language: C

#include<stdio.h>

int main()

{

int a,b;

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

if(a<=b){


if(a==b){


printf("a==b");

}


else


{


printf("a<b");

}


else


{


printf("a>b");


}


return 0;


}

Compiler output:
main.c: In function 'main':
main.c:33:1: error: expected '}' before 'else'
   33 | else
      | ^~~~
Language: C

#include<stdio.h>

int main(void)

{

int a,b ;

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


if (a<b || a>b || a==b) ;


{


printf("\n") ;


}


return 0 ;


}

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

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

int a,b;
printf("??´??°?????\???>>");
scanf("%d %d"%a,b);

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

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

if(a==b){
printf("a==b");

return 0;

}
}
}

Compiler output:
main.c: In function 'main':
main.c:5:22: warning: trigraph ??> ignored, use -trigraphs to enable [-Wtrigraphs]
    5 | printf("??´??°?????\???>>");
main.c:6:14: error: invalid operands to binary % (have 'char *' and 'int')
    6 | scanf("%d %d"%a,b);
      |       ~~~~~~~^
      |       |
      |       char *
main.c:21:1: error: expected declaration or statement at end of input
   21 | }
      | ^
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{

printf("a > b\n");

}

else(a==b){


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


}


}


return 0;

}

Compiler output:
main.c: In function 'main':
main.c:23:1: error: 'else' without a previous 'if'
   23 | else(a==b){
      | ^~~~
main.c:23:11: error: expected ';' before '{' token
   23 | else(a==b){
      |           ^
      |           ;
main.c: At top level:
main.c:35:1: error: expected identifier or '(' before 'return'
   35 | return 0;
      | ^~~~~~
main.c:37:1: error: expected identifier or '(' before '}' token
   37 | }
      | ^
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:6:18: error: invalid operands to binary & (have 'int *' and 'int')
    6 | scanf("%d %d",&a &b);
      |               ~~ ^
      |               |
      |               int *
main.c:19:1: error: expected declaration or statement at end of input
   19 | }
      | ^
Language: C


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

int a,b; printf("??´??°?????\???>>"); scanf("%d %d"%a,b);

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

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

if(a==b){ printf("a==b");

return 0;

} 

Compiler output:
main.c:2:19: warning: extra tokens at end of #include directive
    2 | #include<stdio.h> int main(void){
      |                   ^~~
main.c:4:31: warning: trigraph ??> ignored, use -trigraphs to enable [-Wtrigraphs]
    4 | int a,b; printf("??´??°?????\???>>"); scanf("%d %d"%a,b);
main.c:4:17: error: expected declaration specifiers or '...' before string constant
    4 | int a,b; printf("??´??°?????\???>>"); scanf("%d %d"%a,b);
      |                 ^~~~~~~~~~~~~~~~~~~
main.c:4:45: error: expected declaration specifiers or '...' before string constant
    4 | int a,b; printf("??´??°?????\???>>"); scanf("%d %d"%a,b);
      |                                             ^~~~~~~
main.c:4:55: error: expected declaration specifiers or '...' before 'b'
    4 | int a,b; printf("??´??°?????\???>>"); scanf("%d %d"%a,b);
      |                                                       ^
main.c:6:1: error: expected identifier or '(' before 'if'
    6 | if(a<b){ printf("a<b");
      | ^~
Language: C

#include<stdio.h>

int main(void)

{

int a,b ;

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


if (a<b||a>b||a==b) 


{


printf("\n") ;


}


return 0 ;


}

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

#include<stdio.h>

int main()

{

int a,b;

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

if(a!=b){


if(a<b){


printf("a<b");

}


else


{


printf("a>b");

}


else


{


printf("a==b");


}


return 0;


}

Compiler output:
main.c: In function 'main':
main.c:33:1: error: expected '}' before 'else'
   33 | else
      | ^~~~
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:6:18: 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("%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:11:4: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'scanf'
   11 |    scanf("%d %d",&a,&b);
      |    ^~~~~
main.c:14:10: error: 'b' undeclared (first use in this function)
   14 |    if(a==b){
      |          ^
main.c:14:10: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>

int main(void){

int a,b;

scanf("%d",&a);

scanf("%d",&b);

if(a<b){

printf("a < b\n");

}

else{

printf("a > b\n");

}

else(a==b){


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


}


return 0;

}

Compiler output:
main.c: In function 'main':
main.c:23:1: error: 'else' without a previous 'if'
   23 | else(a==b){
      | ^~~~
main.c:23:11: error: expected ';' before '{' token
   23 | 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:6:18: 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\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:6:18: 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){


       if(a<b){


          printf("a<b");

       }


       else{


          printf("a>b");

       }


     else{


        printf("a==b");
     }


     return 0;


}

Compiler output:
main.c: In function 'main':
main.c:30:6: error: expected '}' before 'else'
   30 |      else{
      |      ^~~~
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: invalid operands to binary & (have 'int *' and 'int')
    6 | scanf("%d %d",&a &b);
      |               ~~ ^
      |               |
      |               int *
main.c:20:1: error: expected declaration or statement at end of input
   20 | }
      | ^
Language: C

#include<stdio.h>

int main(void)

{

int a,b ;

scan("%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:1: error: implicit declaration of function 'scan'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    9 | scan("%d %d",&a,&b) ;
      | ^~~~
      | scanf
Language: C

#include<stdio.h>

int main(void){

int a,b;

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:23:16: error: stray '\' in program
   23 | printf("a == b"\n);
      |                ^
main.c:23:16: error: expected ')' before 'n'
   23 | printf("a == b"\n);
      |       ~        ^~
      |                )
main.c:29:1: error: expected declaration or statement at end of input
   29 | }
      | ^
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:20:1: error: expected declaration or statement at end of input
   20 | }
      | ^
Language: C

#include<stdio.h>

int main(void){

int a,b;

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:29:1: error: expected declaration or statement at end of input
   29 | }
      | ^
Language: C

#include<stdio.h>

int main(void)

{

int a,b ;

scan("%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:1: error: implicit declaration of function 'scan'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    9 | scan("%d %d",&a,&b) ;
      | ^~~~
      | scanf
Language: C

#include<stdio.h>

int main(void){

int a,b;

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:29:1: error: expected declaration or statement at end of input
   29 | }
      | ^
Language: C

#include
int main(void){
int a,b ;
scanf("%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:1:9: error: #include expects "FILENAME" or <FILENAME>
    1 | #include
      |         ^
main.c: In function 'main':
main.c:4:1: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    4 | scanf("%d %d",&a,&b);
      | ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | #include
main.c:4:1: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    4 | scanf("%d %d",&a,&b);
      | ^~~~~
main.c:4:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:6:1: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    6 | printf("a<b\n");
      | ^~~~~~
main.c:6:1: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:6:1: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:6:1: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:10:1: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   10 | printf("a>b");
      | ^~~~~~
main.c:10:1: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:13:1: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   13 | printf("a==b");
      | ^~~~~~
main.c:13:1: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

#include<stdio.h>

int main(void){

int a,b;

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:29:1: error: expected declaration or statement at end of input
   29 | }
      | ^
Language: C

#include<stdio.h>

int main(void){
int a,b;
    scanf("%d",&a) ;
    scanf("%d",&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:9:8: warning: missing terminating " character
    9 | printf("%d > %d\n,a,b);
      |        ^
main.c:9:8: error: missing terminating " character
    9 | printf("%d > %d\n,a,b);
      |        ^~~~~~~~~~~~~~~~
main.c:10:1: error: expected expression before '}' token
   10 | }
      | ^
main.c:9:8: error: expected ';' before '}' token
    9 | printf("%d > %d\n,a,b);
      |        ^
      |        ;
   10 | }
      | ~       
main.c:12:8: warning: missing terminating " character
   12 | printf("%d < %d\n,a,b);
      |        ^
main.c:12:8: error: missing terminating " character
   12 | printf("%d < %d\n,a,b);
      |        ^~~~~~~~~~~~~~~~
main.c:13:1: error: expected expression before '}' token
   13 | }
      | ^
main.c:12:8: error: expected ';' before '}' token
   12 | printf("%d < %d\n,a,b);
      |        ^
      |        ;
   13 | }
      | ~       
main.c:15:8: warning: missing terminating " character
   15 | printf("%d == %d\n,a,b);
      |        ^
main.c:15:8: error: missing terminating " character
   15 | printf("%d == %d\n,a,b);
      |        ^~~~~~~~~~~~~~~~~
main.c:16:1: error: expected expression before '}' token
   16 | }
      | ^
main.c:15:8: error: expected ';' before '}' token
   15 | printf("%d == %d\n,a,b);
      |        ^
      |        ;
   16 | }
      | ~
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:27:1: error: expected declaration or statement at end of input
   27 | }
      | ^
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:32:1: error: expected identifier or '(' before 'return'
   32 | return 0;
      | ^~~~~~
main.c:34:1: error: expected identifier or '(' before '}' token
   34 | }
      | ^
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:17:3: error: expected declaration or statement at end of input
   17 |   return 0;
      |   ^~~~~~
Language: C

#include <stdio.h>

int main(void)


{


int a,b;


printf("??´??°?????\???>>");


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:12:22: warning: trigraph ??> ignored, use -trigraphs to enable [-Wtrigraphs]
   12 | printf("??´??°?????\???>>");
main.c: At top level:
main.c:30:1: error: expected identifier or '(' before 'return'
   30 | return 0;
      | ^~~~~~
main.c:33:1: error: expected identifier or '(' before '}' token
   33 | }
      | ^
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:27:1: error: expected declaration or statement at end of input
   27 | 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");

}

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:14: error: invalid operands to binary % (have 'char *' and 'int')
    9 | scanf("%d %d"%a,b);
      |       ~~~~~~~^
      |       |
      |       char *
main.c:35:9: error: expected ';' at end of input
   35 | return 0
      |         ^
      |         ;
main.c:35:1: error: expected declaration or statement at end of input
   35 | 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");

}

if(a>b){

printf("a > b\n");

}

if(a==b){

printf("a = b\n");

}

else{}

return 0;

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

#include<stdio.h>

int main(void){
int a,b;
    scanf("%d",&a) ;
    scanf("%d",&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:9:8: warning: missing terminating " character
    9 | printf("%d < %d\n,a,b);
      |        ^
main.c:9:8: error: missing terminating " character
    9 | printf("%d < %d\n,a,b);
      |        ^~~~~~~~~~~~~~~~
main.c:10:1: error: expected expression before '}' token
   10 | }
      | ^
main.c:9:8: error: expected ';' before '}' token
    9 | printf("%d < %d\n,a,b);
      |        ^
      |        ;
   10 | }
      | ~       
main.c:12:8: warning: missing terminating " character
   12 | printf("%d > %d\n,a,b);
      |        ^
main.c:12:8: error: missing terminating " character
   12 | printf("%d > %d\n,a,b);
      |        ^~~~~~~~~~~~~~~~
main.c:13:1: error: expected expression before '}' token
   13 | }
      | ^
main.c:12:8: error: expected ';' before '}' token
   12 | printf("%d > %d\n,a,b);
      |        ^
      |        ;
   13 | }
      | ~       
main.c:15:8: warning: missing terminating " character
   15 | printf("%d == %d\n,a,b);
      |        ^
main.c:15:8: error: missing terminating " character
   15 | printf("%d == %d\n,a,b);
      |        ^~~~~~~~~~~~~~~~~
main.c:16:1: error: expected expression before '}' token
   16 | }
      | ^
main.c:15:8: error: expected ';' before '}' token
   15 | printf("%d == %d\n,a,b);
      |        ^
      |        ;
   16 | }
      | ~
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:8:14: error: invalid operands to binary % (have 'char *' and 'int')
    8 | scanf("%d %d"%a,b);
      |       ~~~~~~~^
      |       |
      |       char *
main.c:34:9: error: expected ';' before '}' token
   34 | return 0
      |         ^
      |         ;
   35 | 
   36 | }
      | ~
Language: C

#include<stdio.h>

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

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:4:7: error: expected declaration specifiers or '...' before string constant
    4 | scanf("%d %d",%a,&b);
      |       ^~~~~~~
main.c:4:15: error: expected declaration specifiers or '...' before '%' token
    4 | scanf("%d %d",%a,&b);
      |               ^
main.c:4:18: error: expected declaration specifiers or '...' before '&' token
    4 | scanf("%d %d",%a,&b);
      |                  ^
main.c:7:1: error: expected identifier or '(' before 'if'
    7 | if(a<b){
      | ^~
main.c:16:1: error: expected identifier or '(' before 'else'
   16 | else if(a>b){
      | ^~~~
Language: C

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

Compiler output:
main.c:13:5: error: expected identifier or '(' before 'if'
   13 |     if(a==b){
      |     ^~
main.c:16:5: error: expected identifier or '(' before 'return'
   16 |     return 0;
      |     ^~~~~~
main.c:17:1: error: expected identifier or '(' before '}' token
   17 | }
      | ^
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:8:1: error: expected declaration specifiers before 'scanf'
    8 | scanf("%d",a);
      | ^~~~~
main.c:11:1: error: expected declaration specifiers before 'scanf'
   11 | scanf("%d",b);
      | ^~~~~
main.c:14:1: error: expected declaration specifiers before 'if'
   14 | if(a<b){
      | ^~
main.c:23:1: error: expected declaration specifiers before 'else'
   23 | else if(a>b){
      | ^~~~
main.c:32:1: error: expected declaration specifiers before 'else'
   32 | else{
      | ^~~~
main.c:44:1: error: expected declaration specifiers before 'return'
   44 | return 0;
      | ^~~~~~
main.c:47:1: error: expected declaration specifiers before '}' token
   47 | }
      | ^
main.c:3:5: error: old-style parameter declarations in prototyped function definition
    3 | int main(void)
      |     ^~~~
main.c:48: error: expected '{' at end of input
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{


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


}


return 0;


}

Compiler output:
main.c: In function 'main':
main.c:9:15: error: expected expression before '%' token
    9 | scanf("%d %d",%a,&b);
      |               ^
main.c:25:1: error: expected '}' before 'else'
   25 | else{
      | ^~~~
Language: C

#include<stdio.h>




int main (void)


{


    int a,b;


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


    scanf("%d\n",&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:42:5: error: expected '}' before 'else'
   42 |     else(a == b)
      |     ^~~~
main.c:42:17: error: expected ';' before '{' token
   42 |     else(a == b)
      |                 ^
      |                 ;
......
   45 |     {
      |     ~            
main.c: At top level:
main.c:57:1: error: expected identifier or '(' before 'return'
   57 | return 0;
      | ^~~~~~
main.c:60:1: error: expected identifier or '(' before '}' token
   60 | }
      | ^
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:9:18: error: invalid operands to binary & (have 'int *' and 'int')
    9 | scanf("%d %d",&a &b);
      |               ~~ ^
      |               |
      |               int *