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

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

Compiler output:
main.c: In function 'main':
main.c:20:17: error: implicit declaration of function 'pritnf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   20 |                 pritnf("%d %d",a ,b);
      |                 ^~~~~~
      |                 printf
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
	{
		pritnf("%d %d",a ,b);
	}
	
	
	return 0;
	
}

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

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

Compiler output:
main.c: In function 'main':
main.c:10:22: error: passing argument 1 of 'puts' makes pointer from integer without a cast [-Wint-conversion]
   10 |                 puts(a ,b);
      |                      ^
      |                      |
      |                      int
In file included from main.c:1:
/usr/include/stdio.h:714:30: note: expected 'const char *' but argument is of type 'int'
  714 | extern int puts (const char *__s);
      |                  ~~~~~~~~~~~~^~~
main.c:10:17: error: too many arguments to function 'puts'
   10 |                 puts(a ,b);
      |                 ^~~~
/usr/include/stdio.h:714:12: note: declared here
  714 | extern int puts (const char *__s);
      |            ^~~~
main.c:15:22: error: passing argument 1 of 'puts' makes pointer from integer without a cast [-Wint-conversion]
   15 |                 puts(b ,a);
      |                      ^
      |                      |
      |                      int
/usr/include/stdio.h:714:30: note: expected 'const char *' but argument is of type 'int'
  714 | extern int puts (const char *__s);
      |                  ~~~~~~~~~~~~^~~
main.c:15:17: error: too many arguments to function 'puts'
   15 |                 puts(b ,a);
      |                 ^~~~
/usr/include/stdio.h:714:12: note: declared here
  714 | extern int puts (const char *__s);
      |            ^~~~
main.c:20:22: error: passing argument 1 of 'puts' makes pointer from integer without a cast [-Wint-conversion]
   20 |                 puts(a ,b);
      |                      ^
      |                      |
      |                      int
/usr/include/stdio.h:714:30: note: expected 'const char *' but argument is of type 'int'
  714 | extern int puts (const char *__s);
      |                  ~~~~~~~~~~~~^~~
main.c:20:17: error: too many arguments to function 'puts'
   20 |                 puts(a ,b);
      |                 ^~~~
/usr/include/stdio.h:714:12: note: declared here
  714 | extern int puts (const char *__s);
      |            ^~~~
Language: C

#include<stdio.h>

int main(){
	int a;
	int 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:35: error: expected ';' before '}' token
    7 |         printf("aはbより小さい\n")} else if(a > b){
      |                                   ^
      |                                   ;
main.c:8:35: error: expected ';' before '}' token
    8 |         printf("aはbより大きい\n")}else{
      |                                   ^
      |                                   ;
main.c:9:37: error: expected ';' before '}' token
    9 |         printf("aとbの値は等しい\n")}
      |                                     ^
      |                                     ;
Language: C

#include<stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:5:21: error: expected ';' before 'if'
    5 | scanf("%d %d",&a,&b)
      |                     ^
      |                     ;
    6 | 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:5:7: error: expected expression before '%' token
    5 | scanf(%d %d", &a, &b);
      |       ^
main.c:5:12: warning: missing terminating " character
    5 | scanf(%d %d", &a, &b);
      |            ^
main.c:5:12: error: missing terminating " character
    5 | scanf(%d %d", &a, &b);
      |            ^~~~~~~~~~~
main.c:12:10: error: expected ';' before '}' token
   12 | return 0;
      |          ^
      |          ;
   13 | }
      | ~
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:5:7: error: expected expression before '%' token
    5 | scanf(%d %d", &a, &b);
      |       ^
main.c:5:12: warning: missing terminating " character
    5 | scanf(%d %d", &a, &b);
      |            ^
main.c:5:12: error: missing terminating " character
    5 | scanf(%d %d", &a, &b);
      |            ^~~~~~~~~~~
main.c:12:10: error: expected ';' before '}' token
   12 | return 0;
      |          ^
      |          ;
   13 | }
      | ~
Language: C

#include<stdio.h>
main(){
  int a;b;
  scanf("%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:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main(){
      | ^~~~
main.c: In function 'main':
main.c:3:9: error: 'b' undeclared (first use in this function)
    3 |   int a;b;
      |         ^
main.c:3:9: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>

int main(void)
{
  float a,b;

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

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:13:3: error: expected '}' before 'else'
   13 |   else{
      |   ^~~~
Language: C

#include<stdio.h>

int main(void)
{
  int a,b;

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

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

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:16: error: 'B' undeclared (first use in this function)
    8 |   scanf("%d", &B);
      |                ^
main.c:8:16: 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 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>
      |        ^
main.c:12:19: error: stray '\' in program
   12 |    printf("a == b"\n);
      |                   ^
Language: C

include<stdio.h>
   int main(void)
{
   int a, b;
   scanf("%d", &a);
   scanf("%d", &b);
   if(a < b)
   printf("a < b\n");
   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, 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\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>
#include<math.h>
 
int main(void)
{
  int a,b,,c;

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

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

Compiler output:
main.c: In function 'main':
main.c:6:11: error: expected identifier or '(' before ',' token
    6 |   int a,b,,c;
      |           ^
main.c:8:27: error: 'c' undeclared (first use in this function)
    8 |   scanf("%d &d &d",&a,&b,&c);
      |                           ^
main.c:8:27: note: each undeclared identifier is reported only once for each function it appears in
main.c:12:14: warning: missing terminating " character
   12 |       printf("a > b\n);
      |              ^
main.c:12:14: error: missing terminating " character
   12 |       printf("a > b\n);
      |              ^~~~~~~~~~
main.c:13:5: error: expected expression before '}' token
   13 |     }else{
      |     ^
main.c:12:14: error: expected ';' before '}' token
   12 |       printf("a > b\n);
      |              ^
      |              ;
   13 |     }else{
      |     ~         
main.c:16:3: error: expected '}' before 'else'
   16 |   else{
      |   ^~~~
main.c:20:1: error: expected declaration or statement at end of input
   20 | }
      | ^
Language: C

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

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

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

Compiler output:
main.c: In function 'main':
main.c:6:11: error: expected identifier or '(' before ',' token
    6 |   int a,b,,c;
      |           ^
main.c:8:27: error: 'c' undeclared (first use in this function)
    8 |   scanf("%d &d &d",&a,&b,&c);
      |                           ^
main.c:8:27: note: each undeclared identifier is reported only once for each function it appears in
main.c:12:14: warning: missing terminating " character
   12 |       printf("a > b\n);
      |              ^
main.c:12:14: error: missing terminating " character
   12 |       printf("a > b\n);
      |              ^~~~~~~~~~
main.c:13:5: error: expected expression before '}' token
   13 |     }else{
      |     ^
main.c:12:14: error: expected ';' before '}' token
   12 |       printf("a > b\n);
      |              ^
      |              ;
   13 |     }else{
      |     ~         
main.c:16:3: error: expected '}' before 'else'
   16 |   else{
      |   ^~~~
Language: C

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

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

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

Compiler output:
main.c: In function 'main':
main.c:6:11: error: expected identifier or '(' before ',' token
    6 |   int a,b,,c;
      |           ^
main.c:8:27: error: 'c' undeclared (first use in this function)
    8 |   scanf("%d &d &d",&a,&b,&c);
      |                           ^
main.c:8:27: note: each undeclared identifier is reported only once for each function it appears in
main.c:16:3: error: expected '}' before 'else'
   16 |   else{
      |   ^~~~
Language: C

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

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

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

Compiler output:
main.c: In function 'main':
main.c:6:11: error: expected identifier or '(' before ',' token
    6 |   int a,b,,c;
      |           ^
main.c:8:27: error: 'c' undeclared (first use in this function)
    8 |   scanf("%d %d %d",&a,&b,&c);
      |                           ^
main.c:8:27: note: each undeclared identifier is reported only once for each function it appears in
main.c:16:3: error: expected '}' before 'else'
   16 |   else{
      |   ^~~~
Language: C

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

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

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

Compiler output:
main.c: In function 'main':
main.c:6:11: error: expected identifier or '(' before ',' token
    6 |   int a,b,,c;
      |           ^
main.c:8:27: error: 'c' undeclared (first use in this function)
    8 |   scanf("%d %d %d",&a,&b,&c);
      |                           ^
main.c:8:27: note: each undeclared identifier is reported only once for each function it appears in
main.c:16:3: error: expected '}' before 'else'
   16 |   else{
      |   ^~~~
main.c: At top level:
main.c:19:3: error: expected identifier or '(' before 'return'
   19 |   return 0;
      |   ^~~~~~
main.c:20:1: error: expected identifier or '(' before '}' token
   20 | }
      | ^
Language: C

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

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

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

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

#include <stdio.h>

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

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

SmallLargeor 
#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:13: error: expected ';' before 'typedef'
    1 | SmallLargeor
      |             ^
      |             ;
Language: C

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:10:11: warning: missing terminating " character
   10 |      puts("a > b);
      |           ^
main.c:10:11: error: missing terminating " character
   10 |      puts("a > b);
      |           ^~~~~~~~
main.c:11:4: error: expected expression before '}' token
   11 |    } else {
      |    ^
main.c:10:11: error: expected ';' before '}' token
   10 |      puts("a > b);
      |           ^
      |           ;
   11 |    } else {
      |    ~
Language: C

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

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

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

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

import java.io.*;
import java.util.*;
import java.math.*;

public class Main{
	public static void main(String[] args) throws java.io.IOException{
//    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		String[] ia;
		
		ia = in.readLine().split(" ");
		int a = Integer.parseInt(ia[0]);
		int b = Integer.parseInt(ia[1]);
		
		if(a<b){
			System.out.println("a < b");
		}else if(a==b){
			System.out.println("a == b");
		}else if(a>b){
			System.out.println("a > b");
		}

	}
}

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.io.*;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:2:1: error: 'import' does not name a type
    2 | import java.util.*;
      | ^~~~~~
a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: 'import' does not name a type
    3 | import java.math.*;
      | ^~~~~~
a.cc:3:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:5:1: error: expected unqualified-id before 'public'
    5 | public class Main{
      | ^~~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:14: error: expected ';' before 'cout'
    7 |     else(a>b)cout<<"a > b"<<endl;
      |              ^~~~
      |              ;
a.cc:8:5: error: 'else' without a previous 'if'
    8 |     else cout<<"a == b"<<endl;
      |     ^~~~
Language: C++

#include<iostream>
#include<cstdlib>
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;
}
return 0;
}

Compiler output:
a.cc:19:1: error: expected unqualified-id before 'return'
   19 | return 0;
      | ^~~~~~
a.cc:20:1: error: expected declaration before '}' token
   20 | }
      | ^
Language: C++

a,b = map(int,raw_input().split())
if a>b:
    s = ">"
elif a<b:
    s = "<"
else:
    s = "=="
print 'a',s,'b'

Compiler output:
a.cc:1:1: error: 'a' does not name a type
    1 | a,b = map(int,raw_input().split())
      | ^
Language: C++

#include <iostream>
#include <string>

using namespace std;

string compstr(int a, int b)
{
  if(a < b) return "a < b";
  if(a > b) return "a > b";
  return "a == b";
}

int main()
{
  int a, b;
  cin >> a >> b;
  cout << solve(a,b) << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:11: error: 'solve' was not declared in this scope
   17 |   cout << solve(a,b) << endl;
      |           ^~~~~
Language: C++

#include<stdio.h>

int main(){

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


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

return 0;

Compiler output:
a.cc: In function 'int main()':
a.cc:13:10: error: expected '}' at end of input
   13 | return 0;
      |          ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

#include <iosteram>
using namespace std;

string compare(const int a, const int b)
{
    return a < b ? '<' : a > b ? '>' : "==";
}

int main()
{
    int a, b;
    cin >> a >> b;
    cout << a << ' '
         << compare(a, b)
         << ' ' << b;

    return 0;    
}

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

#include <iostream>
using namespace std;

string compare(const int a, const int b)
{
    return a < b ? '<' : a > b ? '>' : "==";
}

int main()
{
    int a, b;
    cin >> a >> b;
    cout << a << ' '
         << compare(a, b)
         << ' ' << b;

    return 0;    
}

Compiler output:
a.cc: In function 'std::string compare(int, int)':
a.cc:6:32: error: operands to '?:' have different types 'char' and 'const char*'
    6 |     return a < b ? '<' : a > b ? '>' : "==";
      |                          ~~~~~~^~~~~~~~~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:19: error: 'x' was not declared in this scope
    4 |     scanf("%d%d",&x,&y);
      |                   ^
a.cc:4:22: error: 'y' was not declared in this scope
    4 |     scanf("%d%d",&x,&y);
      |                      ^
a.cc:12:27: error: expected ';' before '}' token
   12 |         printf("a == b\n")
      |                           ^
      |                           ;
   13 |     }
      |     ~
Language: C++

#include <iostream>
#include <string>

using namespace std;

int main()
{
	int a = 0;
	int b = 0;
        cin >> a >> b;
if (a < b)
	{
		 << "a<b" << ;
	}
if (a > b)
	{
		 << "a>b" << ;
	}
if (a == b)
	{
	         << "a==b" <<;
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:18: error: expected primary-expression before '<<' token
   13 |                  << "a<b" << ;
      |                  ^~
a.cc:13:30: error: expected primary-expression before ';' token
   13 |                  << "a<b" << ;
      |                              ^
a.cc:17:18: error: expected primary-expression before '<<' token
   17 |                  << "a>b" << ;
      |                  ^~
a.cc:17:30: error: expected primary-expression before ';' token
   17 |                  << "a>b" << ;
      |                              ^
a.cc:21:18: error: expected primary-expression before '<<' token
   21 |                  << "a==b" <<;
      |                  ^~
a.cc:21:30: error: expected primary-expression before ';' token
   21 |                  << "a==b" <<;
      |                              ^
Language: C++

#include <iostream>
#include <string>

using namespace std;

int main()
{
int a=0;
int b=0;
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:13:14: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
   13 |     cout<<a<b<<endl;
      |             ~^~~~~~
a.cc:17:14: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
   17 |     cout<<a>b<<endl;
      |             ~^~~~~~
a.cc:21:15: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
   21 |     cout<<a==b<<endl;
      |              ~^~~~~~
Language: C++

int main(){
	int a , b;
	cin >> a >> b;
	a<b ? cout << "a < b" : a>b ? cout << "a > b" : cout << "a==b";
	return 0; 
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:9: error: 'cin' was not declared in this scope
    3 |         cin >> a >> b;
      |         ^~~
a.cc:4:15: error: 'cout' was not declared in this scope
    4 |         a<b ? cout << "a < b" : a>b ? cout << "a > b" : cout << "a==b";
      |               ^~~~
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:16:5: error: expected ';' before string constant
   16 | cout"a == b"<<endl;
      |     ^~~~~~~~
      |     ;
Language: C++

a,b = map(int,input().split(" "))
if(a == b)print("a == b")
elseif(a < b)print("a < b")
else(a > b)print("a > b")
 

Compiler output:
a.cc:1:1: error: 'a' does not name a type
    1 | a,b = map(int,input().split(" "))
      | ^
Language: C++

#include<iostream>
using namespace std;

int main()
{
   int a;int b;
   cin >> a >> b;c
   if(a < b){
      cout << "a < b";
   }else if(a > b){
      cout << "a > b";
   }else{
      cout << "a == b";
}
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:18: error: 'c' was not declared in this scope
    7 |    cin >> a >> b;c
      |                  ^
a.cc:10:5: error: 'else' without a previous 'if'
   10 |    }else if(a > b){
      |     ^~~~
Language: C++

import java.util.Scanner;

public class Main {
	public szatic void mian(String[] args){
		int a = sc.nextInt();
		int b = sc.nextInt();
		if(a>b){
			System.out.println("a > b");
		}else if(a<b){
			System.out.println("a < b");
		}else{
			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:3:1: error: expected unqualified-id before 'public'
    3 | public class Main {
      | ^~~~~~
Language: C++

#include <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");
     }

return 0;
}

Compiler output:
a.cc:20:1: error: expected unqualified-id before 'return'
   20 | return 0;
      | ^~~~~~
a.cc:21:1: error: expected declaration before '}' token
   21 | }
      | ^
Language: C++

import java.util.Scanner;

public class Main {

public static void main(String[] args) {

// ?¨??????\???????????????????????????????????????

Scanner sc = new Scanner(System.in);

// 2?????????????????????????????´??°?????¨????????????????????????

int a = sc.nextInt();

int b = sc.nextInt();

if (a < b) {

System.out.println("a < b");

} else if (a > b){

System.out.println("a > b");

} else 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:3:1: error: expected unqualified-id before 'public'
    3 | public class Main {
      | ^~~~~~
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:
a.cc:1:1: error: 'include' does not name a type
    1 | include<stdio.h>
      | ^~~~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:15: error: expected ';' before 'if'
    5 | scanf("%d",&b)
      |               ^
      |               ;
    6 | if(a>b){
      | ~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:1: error: 'sanf' was not declared in this scope; did you mean 'scanf'?
    4 | sanf("%d %d",&a,&b);
      | ^~~~
      | scanf
Language: C++

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

Compiler output:
a.cc:3:7: error: expected constructor, destructor, or type conversion before '(' token
    3 |  scanf("%d %d",&a,&b);
      |       ^
a.cc:4:1: error: expected unqualified-id before 'if'
    4 | if(%d>%d,a,b){
      | ^~
a.cc:7:1: error: expected unqualified-id before 'if'
    7 | if(%d<%d,a,b){
      | ^~
Language: C++

#include<stdio.h>
int main(){
  int a,b;
  scanf("%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:
a.cc: In function 'int main()':
a.cc:4:16: error: expected ')' before 'b'
    4 |   scanf("%d",&a b);
      |        ~       ^~
      |                )
Language: C++

#include<stdio.h>
int main(){
  int a,b;
  scanf("%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:
a.cc: In function 'int main()':
a.cc:4:17: error: invalid operands of types 'int*' and 'int' to binary 'operator&'
    4 |   scanf("%d",&a &b);
      |              ~~ ^~
      |              |   |
      |              |   int
      |              int*
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:15:3: error: 're' was not declared in this scope
   15 |   re
      |   ^~
a.cc:15:5: error: expected '}' at end of input
   15 |   re
      |     ^
a.cc:2:11: note: to match this '{'
    2 | int main(){
      |           ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:13: error: expected '}' at end of input
   12 |   return(0);
      |             ^
a.cc:2:11: note: to match this '{'
    2 | int main(){
      |           ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:2: error: expected '}' at end of input
   12 | }
      |  ^
a.cc:2:11: note: to match this '{'
    2 | int main(){
      |           ^
Language: C++

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

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<stdio.h>
      | ^~~~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:18: error: 'n' was not declared in this scope
    4 |   scanf("%d %d",&n,&m);
      |                  ^
a.cc:4:21: error: 'm' was not declared in this scope
    4 |   scanf("%d %d",&n,&m);
      |                     ^
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:7:7: error: expected initializer before 'b'
    7 | int a b;
      |       ^
a.cc:8:8: error: 'a' was not declared in this scope
    8 | cin>>  a  >>  b;
      |        ^
a.cc:8:15: error: 'b' was not declared in this scope
    8 | cin>>  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:
a.cc: In function 'int main()':
a.cc:5:7: error: expected primary-expression before '%' token
    5 | scanf(%d %d,&a,&b);
      |       ^
a.cc:5:8: error: 'd' was not declared in this scope
    5 | scanf(%d %d,&a,&b);
      |        ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:12: error: expected '(' before '{' token
   12 |     else if{
      |            ^
      |            (
Language: C++

import java.util.Scanner;
public class small{
    public static void main(String[]args){
	Scanner sc=new Scanner(System.in);

	int a=sc.nextInt();
	int b=sc.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:2:1: error: expected unqualified-id before 'public'
    2 | public class small{
      | ^~~~~~
Language: C++

import java.util.Scanner;
public class Mian{
    public static void main(String[]args){
	Scanner sc=new Scanner(System.in);

	int a=sc.nextInt();
	int b=sc.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:2:1: error: expected unqualified-id before 'public'
    2 | public class Mian{
      | ^~~~~~
Language: C++

import java.util.Scanner;
public class Main{
    public static void main(String[]args){
	Scanner sc=new Scanner(System.in);

	int a=sc.nextInt();
	int b=sc.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:2:1: error: expected unqualified-id before 'public'
    2 | public class Main{
      | ^~~~~~
Language: C++

import java.util.Scanner;
public class Main {
    public static void main(String[]args){
	Scanner sc=new Scanner(System.in);

	int a=sc.nextInt();
	int b=sc.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:2:1: error: expected unqualified-id before 'public'
    2 | public class Main {
      | ^~~~~~
Language: C++

import java.util.Scanner;
public class Main { public static void main(String[] args) {  Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.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:2:1: error: expected unqualified-id before 'public'
    2 | public class Main { public static void main(String[] args) {  Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); if (a < b) { System.out.println("a < b"); }  if (a > b) { System.out.println("a > b"); }
      | ^~~~~~
Language: C++

#include <stdio.h>               
using namespace std;             
                                 
int main(void){                  
    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 main()':
a.cc:6:5: error: 'cin' was not declared in this scope
    6 |     cin >> a >> b;
      |     ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include <stdio.h>
  +++ |+#include <iostream>
    2 | using namespace std;
a.cc:8:9: error: 'cout' was not declared in this scope
    8 |         cout << "a > b" << endl;
      |         ^~~~
a.cc:8:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:8:28: error: 'endl' was not declared in this scope
    8 |         cout << "a > b" << endl;
      |                            ^~~~
a.cc:2:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    1 | #include <stdio.h>
  +++ |+#include <ostream>
    2 | using namespace std;
a.cc:10:9: error: 'cout' was not declared in this scope
   10 |         cout << "a < b" << endl;
      |         ^~~~
a.cc:10:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:10:28: error: 'endl' was not declared in this scope
   10 |         cout << "a < b" << endl;
      |                            ^~~~
a.cc:10:28: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
a.cc:12:9: error: 'cout' was not declared in this scope
   12 |         cout << "a == b" << endl;
      |         ^~~~
a.cc:12:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:12:29: error: 'endl' was not declared in this scope
   12 |         cout << "a == b" << endl;
      |                             ^~~~
a.cc:12:29: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

#include <stdio.h>               
using namespace std;             
                                 
int main(void){                  
    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 main()':
a.cc:6:5: error: 'cin' was not declared in this scope
    6 |     cin >> a >> b;
      |     ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include <stdio.h>
  +++ |+#include <iostream>
    2 | using namespace std;
a.cc:8:9: error: 'cout' was not declared in this scope
    8 |         cout << "a > b" << endl;
      |         ^~~~
a.cc:8:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:8:28: error: 'endl' was not declared in this scope
    8 |         cout << "a > b" << endl;
      |                            ^~~~
a.cc:2:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    1 | #include <stdio.h>
  +++ |+#include <ostream>
    2 | using namespace std;
a.cc:10:9: error: 'cout' was not declared in this scope
   10 |         cout << "a < b" << endl;
      |         ^~~~
a.cc:10:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:10:28: error: 'endl' was not declared in this scope
   10 |         cout << "a < b" << endl;
      |                            ^~~~
a.cc:10:28: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
a.cc:12:9: error: 'cout' was not declared in this scope
   12 |         cout << "a == b" << endl;
      |         ^~~~
a.cc:12:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:12:29: error: 'endl' was not declared in this scope
   12 |         cout << "a == b" << endl;
      |                             ^~~~
a.cc:12:29: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
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;
  }
}

Compiler output:
a.cc:15:1: error: expected declaration before '}' token
   15 | }
      | ^
Language: C++

include<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");
	}
	return 0;
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<stdio.h>
      | ^~~~~~~
Language: C++

// AOJ10003 Small, Large, or Equal

import java.util.*;

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

Compiler output:
a.cc:3:1: error: 'import' does not name a type
    3 | import java.util.*;
      | ^~~~~~
a.cc:3:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:5:1: error: expected unqualified-id before 'public'
    5 | public class Main
      | ^~~~~~
Language: C++

#include<iostream>

using namespace std;

char ope(int x, int y);

int main(void){
int a, b;

cin >>a >>b;
cout <<a ope(a, b) b<<endl;

return 0;
}

char ope(int x, int y){
char ans_ope;

if(x < y){
ans_ope = '<';
} else if(x > y){
ans_ope = '>';
} else{
ans_ope = '=';

return ans_ope;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:9: error: expected ';' before 'ope'
   11 | cout <<a ope(a, b) b<<endl;
      |         ^~~~
      |         ;
a.cc: In function 'char ope(int, int)':
a.cc:27:2: error: expected '}' at end of input
   27 | }
      |  ^
a.cc:16:23: note: to match this '{'
   16 | char ope(int x, int y){
      |                       ^
a.cc:27:2: warning: control reaches end of non-void function [-Wreturn-type]
   27 | }
      |  ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:2: error: expected '}' at end of input
   12 | }
      |  ^
a.cc:2:11: note: to match this '{'
    2 | int main(){
      |           ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:1:20: error: 'scanf' was not declared in this scope
    1 | int main(){int a,b;scanf("%d%d",&a,&b);printf("a %s b\n",a==b?"==":a>b?">":"<");}
      |                    ^~~~~
a.cc:1:40: error: 'printf' was not declared in this scope
    1 | int main(){int a,b;scanf("%d%d",&a,&b);printf("a %s b\n",a==b?"==":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(){int a,b;scanf("%d%d",&a,&b);printf("a %s b\n",a==b?"==":a>b?">":"<");}
Language: C++

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

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.*;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:2:1: error: expected unqualified-id before 'public'
    2 | public class Main {
      | ^~~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'prnitf' was not declared in this scope; did you mean 'printf'?
    6 | if(a==b)prnitf("a == b\n");
      |         ^~~~~~
      |         printf
Language: C++

#include<stdio.h>

int main()
{
	int a,b;
	if(a>b){
		printf("a>b\n");
		break;
	}
	if(a<b){
		printf("a<b\n");
		break;
	}
	if(a==b){
		printf("a==b\n");
		break;
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:17: error: break statement not within loop or switch
    8 |                 break;
      |                 ^~~~~
a.cc:12:17: error: break statement not within loop or switch
   12 |                 break;
      |                 ^~~~~
a.cc:16:17: error: break statement not within loop or switch
   16 |                 break;
      |                 ^~~~~
Language: C++

#include<stdio.h>

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:16:19: error: expected ';' before '{' token
   16 |         else(a==b){
      |                   ^
      |                   ;
Language: C++

#include <cstdio>
#include <cstdlib>
#include <iostream>
using namespace std;

void solve() {
  
  int a;
  int b;

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

int main( int argc, char** argv ) {
  
  solve();
  
  return EXIT_SUCCESS;
}

Compiler output:
a.cc: In function 'void solve()':
a.cc:14:3: error: expected '}' before 'else'
   14 |   else
      |   ^~~~
a.cc:12:14: note: to match this '{'
   12 |   if (a < b) {
      |              ^
a.cc:17:3: error: expected '}' before 'else'
   17 |   else {
      |   ^~~~
a.cc:15:14: note: to match this '{'
   15 |   if (a > b) {
      |              ^
Language: C++

#include "stdafx.h"


int main(int argc, _TCHAR* argv[])
{

	int a,b;

	printf("aの値を入力\n");
	scanf("%d",&a);


	printf("bの値を入力\n");
	scanf("%d",&b);
	

	if(a>b){

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

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

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

	while(1);

	return 0;
}

Compiler output:
a.cc:1:10: fatal error: stdafx.h: No such file or directory
    1 | #include "stdafx.h"
      |          ^~~~~~~~~~
compilation terminated.
Language: C++

#include<stdio.h>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:18:23: error: expected ';' before '{' token
   18 |         else  (a == b){
      |                       ^
      |                       ;
Language: C++

import java.io.*;
import java.util.*;

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

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.io.*;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:2:1: error: 'import' does not name a type
    2 | import java.util.*;
      | ^~~~~~
a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:4:1: error: expected unqualified-id before 'public'
    4 | public class Main {
      | ^~~~~~
Language: C++

#include<stdio.h>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:14: error: expected ';' before '{' token
    7 |      int(a<b){
      |              ^
      |              ;
a.cc:9:7: error: 'else' without a previous 'if'
    9 |      }else if(a>b){
      |       ^~~~