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

#nclude<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 if(a==b){
        printf("a == b");
    }
    return 0;
}

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

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

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

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

Compiler output:
main.c: In function 'main':
main.c:11:14: error: expected ';' before '{' token
   11 |     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:7:17: error: stray '\' in program
    7 |     printf("a<b"\n);
      |                 ^
main.c:7:17: error: expected ')' before 'n'
    7 |     printf("a<b"\n);
      |           ~     ^~
      |                 )
main.c:10:17: error: stray '\' in program
   10 |     printf("a>b"\n);
      |                 ^
main.c:10:17: error: expected ')' before 'n'
   10 |     printf("a>b"\n);
      |           ~     ^~
      |                 )
main.c:13:18: error: stray '\' in program
   13 |     printf("a==b"\n);
      |                  ^
main.c:13:18: error: expected ')' before 'n'
   13 |     printf("a==b"\n);
      |           ~      ^~
      |                  )
Language: C

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


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

}

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

include<stdio.h>

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

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

#include<stdio.h>

int main(void)

{
    int a;
    int 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:19:1: error: expected identifier or '(' before '~' token
   19 | ~
      | ^
Language: C

#include<stdio.h>

int main()
{
nclude<stdio.h>

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

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

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

Compiler output:
main.c: In function 'main':
main.c:5:1: error: 'nclude' undeclared (first use in this function)
    5 | nclude<stdio.h>
      | ^~~~~~
main.c:5:1: note: each undeclared identifier is reported only once for each function it appears in
main.c:5:8: error: 'stdio' undeclared (first use in this function); did you mean 'stdin'?
    5 | nclude<stdio.h>
      |        ^~~~~
      |        stdin
main.c:7:1: error: expected expression before 'int'
    7 | int main()
      | ^~~
main.c:22:1: error: expected declaration or statement at end of input
   22 | }
      | ^
Language: C

#include<stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:5:1: error: 'nclude' undeclared (first use in this function)
    5 | nclude<stdio.h>
      | ^~~~~~
main.c:5:1: note: each undeclared identifier is reported only once for each function it appears in
main.c:5:8: error: 'stdio' undeclared (first use in this function); did you mean 'stdin'?
    5 | nclude<stdio.h>
      |        ^~~~~
      |        stdin
main.c:7:1: error: expected expression before 'int'
    7 | int main()
      | ^~~
main.c:22:1: error: expected declaration or statement at end of input
   22 | }
      | ^
Language: C

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

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

Compiler output:
main.c: In function 'main':
main.c:7:5: error: 'else' without a previous 'if'
    7 |     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\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:26: error: expected ';' before 'return'
    9 |   else printf("a == b\n")
      |                          ^
      |                          ;
   10 |   return 0;
      |   ~~~~~~
Language: C

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

#include<stdio.h>

int main(){
  int x, y;
  scanf("%d "%d", &x, &y);
  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:5:16: warning: missing terminating " character
    5 |   scanf("%d "%d", &x, &y);
      |                ^
main.c:5:16: error: missing terminating " character
    5 |   scanf("%d "%d", &x, &y);
      |                ^~~~~~~~~~~
main.c:5:15: error: 'd' undeclared (first use in this function)
    5 |   scanf("%d "%d", &x, &y);
      |               ^
main.c:5:15: note: each undeclared identifier is reported only once for each function it appears in
main.c:5:16: error: expected ')' before 'if'
    5 |   scanf("%d "%d", &x, &y);
      |        ~       ^
      |                )
    6 |   if(a > b) {
      |   ~~            
main.c:14:1: error: expected declaration or statement at end of input
   14 | }
      | ^
Language: C

#include<stdio.h>

int main(){
  int x, y;
  scanf("%d "%d", &x, &y);
  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:5:16: warning: missing terminating " character
    5 |   scanf("%d "%d", &x, &y);
      |                ^
main.c:5:16: error: missing terminating " character
    5 |   scanf("%d "%d", &x, &y);
      |                ^~~~~~~~~~~
main.c:5:15: error: 'd' undeclared (first use in this function)
    5 |   scanf("%d "%d", &x, &y);
      |               ^
main.c:5:15: note: each undeclared identifier is reported only once for each function it appears in
main.c:5:16: error: expected ')' before 'if'
    5 |   scanf("%d "%d", &x, &y);
      |        ~       ^
      |                )
    6 |   if(a > b) {
      |   ~~            
main.c:14:1: error: expected declaration or statement at end of input
   14 | }
      | ^
Language: C

#include<stdio.h>

int main(){
  int x, y;
  scanf("%d %d", &x, &y);
  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:6:6: error: 'a' undeclared (first use in this function)
    6 |   if(a > b) {
      |      ^
main.c:6:6: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:10: error: 'b' undeclared (first use in this function)
    6 |   if(a > b) {
      |          ^
main.c:8:3: error: expected '}' before 'else'
    8 |   else if(a < b){
      |   ^~~~
main.c:10:3: error: expected '}' before 'else'
   10 |   else(a == b){
      |   ^~~~
main.c:10:15: error: expected ';' before '{' token
   10 |   else(a == b){
      |               ^
      |               ;
Language: C

#include<stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:8:3: error: expected '}' before 'else'
    8 |   else if(x < y){
      |   ^~~~
main.c:10:3: error: expected '}' before 'else'
   10 |   else(x == y){
      |   ^~~~
main.c:10:15: error: expected ';' before '{' token
   10 |   else(x == y){
      |               ^
      |               ;
Language: C

#include<stdio.h>

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

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

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

#include<iostream>
int main(){
int a,b;
std::cin >> a >> b;
std::cout << "a " << ((a-b)?(a>b?">":"<"):"==") << " b" << std::endl;
return 0;
}

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

#include<stdio.h>

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

Compiler output:
main.c:13:1: error: expected identifier or '(' before '}' token
   13 | }
      | ^
Language: C

a, b = gets.to_s.split("\s").map{ |i| i.to_i }
symbol = '>' if a > b
symbol = '<' if a < b
symbol = '==' if a == b 
puts "a#{symbol}b"

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | a, b = gets.to_s.split("\s").map{ |i| i.to_i }
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 'a' [-Wimplicit-int]
main.c:1:4: error: type defaults to 'int' in declaration of 'b' [-Wimplicit-int]
    1 | a, b = gets.to_s.split("\s").map{ |i| i.to_i }
      |    ^
main.c:1:8: error: 'gets' undeclared here (not in a function)
    1 | a, b = gets.to_s.split("\s").map{ |i| i.to_i }
      |        ^~~~
main.c:1:28: warning: unknown escape sequence: '\s'
    1 | a, b = gets.to_s.split("\s").map{ |i| i.to_i }
      |                            ^
main.c:1:33: error: expected ',' or ';' before '{' token
    1 | a, b = gets.to_s.split("\s").map{ |i| i.to_i }
      |                                 ^
main.c:2:1: warning: data definition has no type or storage class
    2 | symbol = '>' if a > b
      | ^~~~~~
main.c:2:1: error: type defaults to 'int' in declaration of 'symbol' [-Wimplicit-int]
main.c:2:14: error: expected ',' or ';' before 'if'
    2 | symbol = '>' if a > b
      |              ^~
main.c:4:10: warning: multi-character character constant [-Wmultichar]
    4 | symbol = '==' if a == b
      |          ^~~~
Language: C

#include<studio.h>

int main(){

 	int a,b

 	if (a==b){

	a=b

	}else if(a>b){

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

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

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

 	int a,b

 	if (a==b){

	a=b

	}else if(a>b){

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

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

#include<stdio.h>

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

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

else if(b>a){
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 %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:13:11: error: expected ';' before '{' token
   13 | else(a==b){
      |           ^
      |           ;
Language: C

#include<stdio.h>

int main(){
	int a,b

	if (a==b){

	printf("a=b");

	} else if (a>b)

	printf("a>b");

	} else if (a<b){

	printf("a<b");
	
	return 0;
]

Compiler output:
main.c: In function 'main':
main.c:6:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'if'
    6 |         if (a==b){
      |         ^~
main.c:10:11: error: 'else' without a previous 'if'
   10 |         } else if (a>b)
      |           ^~~~
main.c:10:22: error: 'b' undeclared (first use in this function)
   10 |         } else if (a>b)
      |                      ^
main.c:10:22: note: each undeclared identifier is reported only once for each function it appears in
main.c: At top level:
main.c:14:11: error: expected identifier or '(' before 'else'
   14 |         } else if (a<b){
      |           ^~~~
Language: C

#include<stdio.h>
main(){
  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:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main(){
      | ^~~~
main.c: In function 'main':
main.c:6:20: error: expected ';' before '}' token
    6 |     printf("a < b")
      |                    ^
      |                    ;
    7 |       }
      |       ~             
main.c:9:20: error: expected ';' before '}' token
    9 |     printf("a > b")
      |                    ^
      |                    ;
   10 |       }
      |       ~             
main.c:12:21: error: expected ';' before '}' token
   12 |     printf("a == b")
      |                     ^
      |                     ;
   13 |       }
      |       ~
Language: C

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

Compiler output:
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main(){
      | ^~~~
main.c: In function 'main':
main.c:6:22: error: expected ';' before '}' token
    6 |     printf("a < b\n")
      |                      ^
      |                      ;
    7 |       }
      |       ~               
main.c:9:22: error: expected ';' before '}' token
    9 |     printf("a > b\n")
      |                      ^
      |                      ;
   10 |       }
      |       ~               
main.c:12:23: error: expected ';' before '}' token
   12 |     printf("a == b\n")
      |                       ^
      |                       ;
   13 |       }
      |       ~
Language: C

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

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

	if(a < b)
	   puts("a < b");
	if else(a > b)
	   puts("a > b");
	if else(a == b)
	   puts("a == b");

	return 0;         
}

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

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

#include <iostream>
using namespace std;

int main() {
	int	a = 0,b = 0;
	
	scanf("%d %d",&a,&b);
	
	if (a > b){
		printf("a > b");
	}
	if (a < b){
		printf("a < b");
	}
	if (a==b){
		printf("a == b");
		
	}
	// your code goes here
	return 0;
}

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

#include <cstdio>
using namespace std;

int main() {
	int	a = 0,b = 0;
	
	scanf("%d %d",&a,&b);
	
	if (a > b){
		printf("a > b");
	}
	if (a < b){
		printf("a < b");
	}
	if (a==b){
		printf("a = b");
		
	}
	// your code goes here
	return 0;
}

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

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

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

include<stdio.h>

int main(void){

int a,b;

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

if(a < b)

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

if(a == b)

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

if(a > b)

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

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(int argc, const char * argv[])
{
    int a,b;
    scanf("%d %d",&a,&b);
    if(a>b)primtf("a > b");
    else if(a == b)printf("a == b");
    else printf("a < b");
    return 0;
}

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

#include <stdio.h>

int main(int argc, const char * argv[])
{
    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:10:5: error: 'else' without a previous 'if'
   10 |     else if(a == b){
      |     ^~~~
main.c:13:5: error: 'else' without a previous 'if'
   13 |     else{
      |     ^~~~
Language: C++

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



Compiler output:
a.cc: In function 'int min()':
a.cc:10:1: warning: no return statement in function returning non-void [-Wreturn-type]
   10 | }
      | ^
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:5:12: error: conflicting declaration 'std::string x'
    5 |     string x;
      |            ^
a.cc:4:13: note: previous declaration as 'int x'
    4 |     int a,b,x;
      |             ^
a.cc:8:13: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
    8 |         x = " > ";
      |             ^~~~~
      |             |
      |             const char*
a.cc:10:13: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
   10 |         x = " < ";
      |             ^~~~~
      |             |
      |             const char*
a.cc:12:13: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
   12 |         x = " == "
      |             ^~~~~~
      |             |
      |             const char*
a.cc:12:19: error: expected ';' before '}' token
   12 |         x = " == "
      |                   ^
      |                   ;
   13 |     }
      |     ~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:12:19: error: expected ';' before '}' token
   12 |         x = " == "
      |                   ^
      |                   ;
   13 |     }
      |     ~
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
        cuot << "a = b" << endl;

            
    return 0; 
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:24: error: invalid operands of types 'const char [6]' and '<unresolved overloaded function type>' to binary 'operator<<'
   13 |         cout < "a < b" << endl;
      |                ~~~~~~~~^~~~~~~
a.cc:15:9: error: 'cuot' was not declared in this scope
   15 |         cuot << "a = b" << endl;
      |         ^~~~
Language: C++

#include<iostream>
using namespace std;
int main(){
	int a,b;
	cin>>a>>b;
	/*if(条件){
	条件が正しければ実行
}*/
	if(a<b){cout<<"a<b"<<endl};
	if(a>b){cout<<"a>b"<<endl};
	if(a==b){cout<<"a==b"<<endl};
	return 0;
}




Compiler output:
a.cc: In function 'int main()':
a.cc:9:34: error: expected ';' before '}' token
    9 |         if(a<b){cout<<"a<b"<<endl};
      |                                  ^
      |                                  ;
a.cc:10:34: error: expected ';' before '}' token
   10 |         if(a>b){cout<<"a>b"<<endl};
      |                                  ^
      |                                  ;
a.cc:11:36: error: expected ';' before '}' token
   11 |         if(a==b){cout<<"a==b"<<endl};
      |                                    ^
      |                                    ;
Language: C++

#include<iostream>
using namespace std;
int main(){
	int a,b;
	cin>>a>>b;
	/*if(条件){
	条件が正しければ実行
}*/
	if(a<b){cout<<"a<b"<<endl}
	if(a>b){cout<<"a>b"<<endl}
	if(a==b){cout<<"a==b"<<endl};
	return 0;
}





Compiler output:
a.cc: In function 'int main()':
a.cc:9:34: error: expected ';' before '}' token
    9 |         if(a<b){cout<<"a<b"<<endl}
      |                                  ^
      |                                  ;
a.cc:10:34: error: expected ';' before '}' token
   10 |         if(a>b){cout<<"a>b"<<endl}
      |                                  ^
      |                                  ;
a.cc:11:36: error: expected ';' before '}' token
   11 |         if(a==b){cout<<"a==b"<<endl};
      |                                    ^
      |                                    ;
Language: C++

// Example program
#include <iostream>
#include <string>
using namespace std;
int main()
{
  int a,b;
  cin>>a>>b;
  if(a<b){cout<<"a<b"<<endl}
      if(a>b){cout<<"a>b"<<endl}
          if(a==b){cout<<"a==b"<<endl};
         
  return 0;
      
}



Compiler output:
a.cc: In function 'int main()':
a.cc:9:28: error: expected ';' before '}' token
    9 |   if(a<b){cout<<"a<b"<<endl}
      |                            ^
      |                            ;
a.cc:10:32: error: expected ';' before '}' token
   10 |       if(a>b){cout<<"a>b"<<endl}
      |                                ^
      |                                ;
a.cc:11:38: error: expected ';' before '}' token
   11 |           if(a==b){cout<<"a==b"<<endl};
      |                                      ^
      |                                      ;
Language: C++

// Example program
#include <iostream>
#include <string>
using namespace std;
int main()
{
  int a,b;
  cin>>a>>b;
  if(a<b){
      cout<<"a<b"<<endl
      }
      if(a>b){
          cout<<"a>b"<<endl
          }
          if(a==b){
              cout<<"a==b"<<endl
              };
         
  return 0;
      
}




Compiler output:
a.cc: In function 'int main()':
a.cc:10:24: error: expected ';' before '}' token
   10 |       cout<<"a<b"<<endl
      |                        ^
      |                        ;
   11 |       }
      |       ~                 
a.cc:13:28: error: expected ';' before '}' token
   13 |           cout<<"a>b"<<endl
      |                            ^
      |                            ;
   14 |           }
      |           ~                 
a.cc:16:33: error: expected ';' before '}' token
   16 |               cout<<"a==b"<<endl
      |                                 ^
      |                                 ;
   17 |               };
      |               ~
Language: C++

// Example program
#include <iostream>
#include <string>
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;
          };
  return 0;
      
      
      
}






Compiler output:
a.cc: In function 'int main()':
a.cc:10:16: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
   10 |       cout<<a<b<<endl;
      |               ~^~~~~~
a.cc:12:20: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
   12 |           cout<<a>b<<endl;
      |                   ~^~~~~~
a.cc:14:25: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
   14 |               cout<<a==b<<endl;
      |                        ~^~~~~~
Language: C++

#include <iostream>

int main(){
    int a,b;
    std::cin >> a >> b;
    std::cout << "a ";
    if(a==b){
        std::cout << "==";
    }
    else if(a<b){
        std::cout << "<";
    }
    else{
        std::cout << ">";
    }
    std::cout << " b" << endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:26: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   16 |     std::cout << " b" << endl;
      |                          ^~~~
      |                          std::endl
In file included from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include<cstdio>

using namespace std;

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");


Compiler output:
a.cc: In function 'int main()':
a.cc:19:25: error: expected '}' at end of input
   19 |        printf("a==b\n");
      |                         ^
a.cc:18:10: note: to match this '{'
   18 |     else {
      |          ^
a.cc:19:25: error: expected '}' at end of input
   19 |        printf("a==b\n");
      |                         ^
a.cc:5:11: note: to match this '{'
    5 | int main(){
      |           ^
Language: C++

#include<cstdio>

using namespace std;

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");


Compiler output:
a.cc: In function 'int main()':
a.cc:19:27: error: expected '}' at end of input
   19 |        printf("a == b\n");
      |                           ^
a.cc:18:10: note: to match this '{'
   18 |     else {
      |          ^
a.cc:19:27: error: expected '}' at end of input
   19 |        printf("a == b\n");
      |                           ^
a.cc:5:11: note: to match this '{'
    5 | int main(){
      |           ^
Language: C++

#include <bits/stdc++.c>
using namespace std;

int main(void) {
  int a, b;
  cin >> a >> b;
  if(a < b) cout << "a < b";
  else if(a > b) cout << "a > b";
  else cout << "a == b";
  cout << endl;
}


Compiler output:
a.cc:1:10: fatal error: bits/stdc++.c: No such file or directory
    1 | #include <bits/stdc++.c>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:4:9: error: 'scanf' was not declared in this scope
    4 |         scanf("%","%d",&a,&b);
      |         ^~~~~
a.cc:6:18: error: 'printf' was not declared in this scope
    6 |                 {printf("a>b");
      |                  ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main(void)
a.cc:9:18: error: 'printf' was not declared in this scope
    9 |                 {printf("a>b");
      |                  ^~~~~~
a.cc:9:18: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
a.cc:12:18: error: 'printf' was not declared in this scope
   12 |                 {printf("a==b");
      |                  ^~~~~~
a.cc:12:18: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
Language: C++

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


Compiler output:
a.cc:1:9: error: #include expects "FILENAME" or <FILENAME>
    1 | #include(iostream)
      |         ^
a.cc: In function 'int main()':
a.cc:4:4: error: 'a' was not declared in this scope
    4 | if(a>b)
      |    ^
a.cc:4:6: error: 'b' was not declared in this scope
    4 | if(a>b)
      |      ^
a.cc:5:1: error: 'cout' was not declared in this scope
    5 | cout<<"a>b"<<endl;
      | ^~~~
a.cc:1:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #include(iostream)
a.cc:5:14: error: 'endl' was not declared in this scope
    5 | cout<<"a>b"<<endl;
      |              ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #include(iostream)
a.cc: At global scope:
a.cc:7:1: error: expected unqualified-id before 'if'
    7 | if(a<b)
      | ^~
a.cc:9:1: error: expected declaration before '}' token
    9 | }
      | ^
a.cc:10:1: error: expected unqualified-id before 'if'
   10 | if(a==b)
      | ^~
a.cc:12:1: error: expected declaration before '}' token
   12 | }
      | ^
a.cc:13:1: error: 'return0' does not name a type
   13 | return0
      | ^~~~~~~
a.cc:14:1: error: expected declaration before '}' token
   14 | }
      | ^
Language: C++

import java.util.Scanner;

class Main
{
    public static void main(String args[])
    {
        Scanner scan = new Scanner(System.in);
        
        int a = scan.nextInt();
        int b = scan.nextInt();
        
        if(a<b){
        System.out.println("a < b");
        }
        if(a>b){
        System.out.println("a > b");
        }
        if(a==b){
        System.out.println("a == b");
        }
    }
}


Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.Scanner;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:5:11: error: expected ':' before 'static'
    5 |     public static void main(String args[])
      |           ^~~~~~~
      |           :
a.cc:5:29: error: 'String' has not been declared
    5 |     public static void main(String args[])
      |                             ^~~~~~
a.cc:22:2: error: expected ';' after class definition
   22 | }
      |  ^
      |  ;
a.cc: In static member function 'static void Main::main(int*)':
a.cc:7:9: error: 'Scanner' was not declared in this scope
    7 |         Scanner scan = new Scanner(System.in);
      |         ^~~~~~~
a.cc:9:17: error: 'scan' was not declared in this scope
    9 |         int a = scan.nextInt();
      |                 ^~~~
a.cc:13:9: error: 'System' was not declared in this scope
   13 |         System.out.println("a < b");
      |         ^~~~~~
a.cc:16:9: error: 'System' was not declared in this scope
   16 |         System.out.println("a > b");
      |         ^~~~~~
a.cc:19:9: error: 'System' was not declared in this scope
   19 |         System.out.println("a == b");
      |         ^~~~~~
Language: C++

#include<iostream>
using namespace std;

void Check(int a, int b);

int main(){
    int a, b;
    
    cin >> a;
    cin >> b;
    
    Check(a, b);
    return 0;
}

void Check(int a, int b){
    if(a > b) cout << "a > b" << endl;
    else if(a < b) cout << "a < b" << endl;
    else (a == b) cout << "a == b" << endl;
}


Compiler output:
a.cc: In function 'void Check(int, int)':
a.cc:19:18: error: expected ';' before 'cout'
   19 |     else (a == b) cout << "a == b" << endl;
      |                  ^~~~~
      |                  ;
Language: C++

#include<iostream>
using namespace std;

void Check(int a, int b);

int main(){
    int a, b;
    
    cin >> a;
    cin >> b;
    
    Check(a, b);
    return 0;
}

void Check(int a, int b){
    if(a > b) cout << "a > b" << endl;
    else if(a < b) cout << "a < b" << endl;
    else(a == b) cout << "a == b" << endl;
}


Compiler output:
a.cc: In function 'void Check(int, int)':
a.cc:19:17: error: expected ';' before 'cout'
   19 |     else(a == b) cout << "a == b" << endl;
      |                 ^~~~~
      |                 ;
Language: C++

#include <iostream>
using namespace std;

int main(){
	int a,b;
	cin >> a >> b;

	if(a<b){
	 cout << "a<b ";
	}
	if(a==b){ 
	    cout << "a==b ";
	}
	if(a>b){
	    cout << "a>b "<< end1;
	}
	
	
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:30: error: 'end1' was not declared in this scope
   15 |             cout << "a>b "<< end1;
      |                              ^~~~
Language: C++

#include <iostream>
using namespace std;

int main(){
	int a,b;
	cin >> a >> b;

	if(a<b){
	 cout << "a<b "<<end1;
	}
	if(a==b){ 
	    cout << "a==b "<<end1;
	}
	if(a>b){
	    cout << "a>b "<< end1;
	}
	
	
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:26: error: 'end1' was not declared in this scope
    9 |          cout << "a<b "<<end1;
      |                          ^~~~
a.cc:12:30: error: 'end1' was not declared in this scope
   12 |             cout << "a==b "<<end1;
      |                              ^~~~
a.cc:15:30: error: 'end1' was not declared in this scope
   15 |             cout << "a>b "<< end1;
      |                              ^~~~
Language: C++

#include <iostream>
using namespace std;

int main(){
	int a,b;
	cin >> a >> b;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:28: error: 'end1' was not declared in this scope
    9 |          cout << "a < b "<<end1;
      |                            ^~~~
a.cc:12:32: error: 'end1' was not declared in this scope
   12 |             cout << "a == b "<<end1;
      |                                ^~~~
a.cc:15:32: error: 'end1' was not declared in this scope
   15 |             cout << "a > b "<< end1;
      |                                ^~~~
Language: C++

#include <iostream>
using namespace std;

int main(){
	int a,b;
	cin >> a >> b;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:15:32: error: 'end1' was not declared in this scope
   15 |             cout << "a > b "<< end1;
      |                                ^~~~
Language: C++

#include <iostream>
using namespace std;
int main(){
 
 
int a,b,A,B,C;
 
cin>>a>>b;
 
     if (a<b)
       A= "a<b"
     else
        if (a>b)
          B= "a>b"
        else
          C= "a==b"
        end if
     endif
        
cout<<A<<B<<C<<endl;
 
 
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:11: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
   11 |        A= "a<b"
      |           ^~~~~
      |           |
      |           const char*
a.cc:11:16: error: expected ';' before 'else'
   11 |        A= "a<b"
      |                ^
      |                ;
   12 |      else
      |      ~~~~
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
          count<<"a==b"<<endl; 


return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:12:11: error: 'count' was not declared in this scope
   12 |           count<<"a==b"<<endl;
      |           ^~~~~
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
          count<<"a == b"<<endl; 


return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:12:11: error: 'count' was not declared in this scope
   12 |           count<<"a == b"<<endl;
      |           ^~~~~
Language: C++

#include <iostream>
using namespace std;
int main(){
 
 
int a,b,A,B,C;
 
cin>>a>>b;
 
     if (a<b)
       A= "a<b";
     else
        if (a>b)
          B= "a>b";
        else
          C= "a==b";
        end if
     endif
        
cout<<A<<B<<C<<endl;
 
 
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:11: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
   11 |        A= "a<b";
      |           ^~~~~
      |           |
      |           const char*
a.cc:14:14: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
   14 |           B= "a>b";
      |              ^~~~~
      |              |
      |              const char*
a.cc:16:14: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
   16 |           C= "a==b";
      |              ^~~~~~
      |              |
      |              const char*
a.cc:17:12: error: expected ';' before 'if'
   17 |         end if
      |            ^~~
      |            ;
a.cc:20:20: error: statement cannot resolve address of overloaded function
   20 | cout<<A<<B<<C<<endl;
      |                    ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:11:11: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
   11 |        A= "a<b";
      |           ^~~~~
      |           |
      |           const char*
a.cc:14:14: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
   14 |           B= "a>b";
      |              ^~~~~
      |              |
      |              const char*
a.cc:16:14: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
   16 |           C= "a==b";
      |              ^~~~~~
      |              |
      |              const char*
Language: C++


#include <iostream>
using namespace std;

int main(){


int a,b;
cin>>a>>b;
 if(a>b)cout<<"a>b"<<andl;
    alse
    if(a<b)cout<<"a<b"<<endl;
         alse
           cout<<"a==b"<<andl;




return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:22: error: 'andl' was not declared in this scope
   10 |  if(a>b)cout<<"a>b"<<andl;
      |                      ^~~~
a.cc:11:5: error: 'alse' was not declared in this scope
   11 |     alse
      |     ^~~~
a.cc:13:14: error: expected ';' before 'cout'
   13 |          alse
      |              ^
      |              ;
   14 |            cout<<"a==b"<<andl;
      |            ~~~~
Language: C++

#include<iostream>
using namespace std;

int main(){
    
    int a,b;
    cin>>a>>b;
      if(a>b)cout<<"a>b"<<endi; 
      else
      if(a>b)cout<<"a>b"<<endi; 
       else
     cout<<"a==B"<<endl;  
      
      
      
}



Compiler output:
a.cc: In function 'int main()':
a.cc:8:27: error: 'endi' was not declared in this scope
    8 |       if(a>b)cout<<"a>b"<<endi;
      |                           ^~~~
a.cc:10:27: error: 'endi' was not declared in this scope
   10 |       if(a>b)cout<<"a>b"<<endi;
      |                           ^~~~
Language: C++


#include <iostream>
using namespace std;

int main(){


int a,b;
cin>>a>>b;
 if(a>b)cout<<"a>b"<<endl;
    alse
    if(a<b)cout<<"a<b"<<endl;
         alse
           cout<<"a==b"<<endl;




return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:5: error: 'alse' was not declared in this scope
   11 |     alse
      |     ^~~~
a.cc:13:14: error: expected ';' before 'cout'
   13 |          alse
      |              ^
      |              ;
   14 |            cout<<"a==b"<<endl;
      |            ~~~~
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
              cout<<"a==b"<<endl;
 
 
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: expected unqualified-id before ';' token
    6 | int a,b,;
      |         ^
Language: C++


#include <iostream>
using namespace std;

int main(){


int a,b;
cin>>a>>b;
 if(a>b)cout<<"a>b"<<endl;
    alse
    if(a<b)cout<<"a<b"<<endl;
         alse
           cout<<"a==b"<<endl;


return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:5: error: 'alse' was not declared in this scope
   11 |     alse
      |     ^~~~
a.cc:13:14: error: expected ';' before 'cout'
   13 |          alse
      |              ^
      |              ;
   14 |            cout<<"a==b"<<endl;
      |            ~~~~
Language: C++


#include <iostream>
using namespace std;

int main(){


int a,b;
cin>>a>>b;
 if(a>b)cout<<"a>b"<<endl;
     alse
     if(a<b)cout<<"a<b"<<endl;
          alse
             cout<<"a==b"<<endl;


return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:6: error: 'alse' was not declared in this scope
   11 |      alse
      |      ^~~~
a.cc:13:15: error: expected ';' before 'cout'
   13 |           alse
      |               ^
      |               ;
   14 |              cout<<"a==b"<<endl;
      |              ~~~~
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
			cout<<"a==b"<<endl       //偽の場合

return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:43: error: expected ';' before 'return'
   14 |                         cout<<"a==b"<<endl       //偽の場合
      |                                           ^
      |                                           ;
   15 | 
   16 | return 0;
      | ~~~~~~
Language: C++

#include<iostream>
using namespace std;

int main(){
    
    int a,b;
    cin>>a>>b;
      if(a>b)cout<<"a>b"<<endi; 
      else
      if(a>b)cout<<"a<b"<<endi; 
       else
     cout<<"a==B"<<endl;  
      
      return 0;
      
}



Compiler output:
a.cc: In function 'int main()':
a.cc:8:27: error: 'endi' was not declared in this scope
    8 |       if(a>b)cout<<"a>b"<<endi;
      |                           ^~~~
a.cc:10:27: error: 'endi' was not declared in this scope
   10 |       if(a>b)cout<<"a<b"<<endi;
      |                           ^~~~