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

#include<stdio.h>
#define a=10
#define b=11
#define c=12
#define d=13
#define e=14
#define f=15
int main(void)
{
char X,Y;
scanf("%c%c",&X,&Y);
if(X>Y)
{
printf("%c>%cです。",%X,%Y);
}
else if(X<Y){
printf("%c>%cです。",%Y,%X);
}
else{
printf("%c=%cです。",%X,%Y);
}
return 0;
}


Compiler output:
main.c:2:9: warning: ISO C99 requires whitespace after the macro name
    2 | #define a=10
      |         ^
main.c:3:9: warning: ISO C99 requires whitespace after the macro name
    3 | #define b=11
      |         ^
main.c:4:9: warning: ISO C99 requires whitespace after the macro name
    4 | #define c=12
      |         ^
main.c:5:9: warning: ISO C99 requires whitespace after the macro name
    5 | #define d=13
      |         ^
main.c:6:9: warning: ISO C99 requires whitespace after the macro name
    6 | #define e=14
      |         ^
main.c:7:9: warning: ISO C99 requires whitespace after the macro name
    7 | #define f=15
      |         ^
main.c: In function 'main':
main.c:14:22: error: expected expression before '%' token
   14 | printf("%c>%cです。",%X,%Y);
      |                      ^
main.c:17:22: error: expected expression before '%' token
   17 | printf("%c>%cです。",%Y,%X);
      |                      ^
main.c:20:22: error: expected expression before '%' token
   20 | printf("%c=%cです。",%X,%Y);
      |                      ^
Language: C

#include<stdio.h>
#define a==10
#define b==11
#define c==12
#define d==13
#define e==14
#define f==15
int main(void)
{
char X,Y;
scanf("%c%c",&X,&Y);
if(X>Y)
{
printf("%c>%cです。",%X,%Y);
}
else if(X<Y){
printf("%c>%cです。",%Y,%X);
}
else{
printf("%c=%cです。",%X,%Y);
}
return 0;
}


Compiler output:
main.c:2:9: warning: ISO C99 requires whitespace after the macro name
    2 | #define a==10
      |         ^
main.c:3:9: warning: ISO C99 requires whitespace after the macro name
    3 | #define b==11
      |         ^
main.c:4:9: warning: ISO C99 requires whitespace after the macro name
    4 | #define c==12
      |         ^
main.c:5:9: warning: ISO C99 requires whitespace after the macro name
    5 | #define d==13
      |         ^
main.c:6:9: warning: ISO C99 requires whitespace after the macro name
    6 | #define e==14
      |         ^
main.c:7:9: warning: ISO C99 requires whitespace after the macro name
    7 | #define f==15
      |         ^
main.c: In function 'main':
main.c:14:22: error: expected expression before '%' token
   14 | printf("%c>%cです。",%X,%Y);
      |                      ^
main.c:17:22: error: expected expression before '%' token
   17 | printf("%c>%cです。",%Y,%X);
      |                      ^
main.c:20:22: error: expected expression before '%' token
   20 | printf("%c=%cです。",%X,%Y);
      |                      ^
Language: C

#include<stdio.h>
int main(void)
{
int X,Y;
scanf("%d%d",&X,&Y);
if(X>Y){
printf("%d>%dです。",%X,%Y);
}
else if(X<Y){
printf("%d>%dです。",%Y,%X);
}
else{
printf("%d=%dです。",%X,%Y);
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:22: error: expected expression before '%' token
    7 | printf("%d>%dです。",%X,%Y);
      |                      ^
main.c:10:22: error: expected expression before '%' token
   10 | printf("%d>%dです。",%Y,%X);
      |                      ^
main.c:13:22: error: expected expression before '%' token
   13 | printf("%d=%dです。",%X,%Y);
      |                      ^
Language: Java

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        try (Scanner sc = new Scanner(System.in);) {
            solve(sc);
        }
    }

    public static void solve(Scanner sc) {
        String a = sc.next();
        String b = sc.next();
        System.out.println(a.compareTo(b) ? ">" : (a == b ? "=" : "<"));
    }
}

Compiler output:
Main.java:13: error: incompatible types: int cannot be converted to boolean
        System.out.println(a.compareTo(b) ? ">" : (a == b ? "=" : "<"));
                                      ^
1 error
Language: Java

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        try (Scanner sc = new Scanner(System.in);) {
            solve(sc);
        }
    }

    public static void solve(Scanner sc) {
        String a = sc.next();
        String b = sc.next();
        System.out.println(a.compareTo(b) ? ">" : a == b ? "=" : "<");
    }
}

Compiler output:
Main.java:13: error: incompatible types: int cannot be converted to boolean
        System.out.println(a.compareTo(b) ? ">" : a == b ? "=" : "<");
                                      ^
1 error
Language: C++

#include<iostream>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 'elseif' was not declared in this scope
    8 |   elseif(a<b)cout<<"<";
      |   ^~~~~~
a.cc:9:3: error: 'else' without a previous 'if'
    9 |   else cout<<">";
      |   ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;

#define EPS (1e-7)
#define INF (1e9)
#define PI (acos(-1))
//const ll mod = 1000000007;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:14:19: error: expected ';' before string constant
   14 |     if(a > b) cout ">" << endl;
      |                   ^~~~
      |                   ;
Language: C++

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

int num(char x) {
  int num = 0;
  if (x = 'A') {
    num = 1;
  } else if (x = 'B') {
    num = 2;
  } else if (x = 'C') {
    num = 3;
  } else if (x = 'D') {
    num = 4;
  } else if (x = 'E') {
    num = 5;
  } else {
    num = 6;
  }
  return num;
}

int main() {
  char x, y;
  cin >> x >> y;

  if (num(x) > num(y)) {
    cout << '>' endl;
  } else if (num(x) < num(y)) {
    cout << '<' << endl;
  } else {
    cout << '=' << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:27:16: error: expected ';' before 'endl'
   27 |     cout << '>' endl;
      |                ^~~~~
      |                ;
Language: C

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

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

#include <stdio.h>

int main(void)
{
	char x,y;
	
	scanf("%c%c",&x,&y);
	
	if(x-54>y-54)
	{
		printf(">\n")
	}
	else if(x-54==y-54)
	{
		printf("=\n")
		
	}
	else
	{
		printf("<");
	}
	
	return 0;
	
}

Compiler output:
main.c: In function 'main':
main.c:11:30: error: expected ';' before '}' token
   11 |                 printf(">\n")
      |                              ^
      |                              ;
   12 |         }
      |         ~                     
main.c:15:30: error: expected ';' before '}' token
   15 |                 printf("=\n")
      |                              ^
      |                              ;
   16 | 
   17 |         }
      |         ~
Language: C++

#include <bits/stdc++.h>
#define repd(i,a,b) for (int i=(a);i<(b);i++)
#define rep(i,n) repd(i,0,n)
typedef long long ll;
using namespace std;
const int MOD = 1000000007;
const int INF = 1010000000;
const double EPS = 1e-10;

int h,w,x;
char s[1000][1000];
bool visited [1000][1000];
pair<int,int> start,goal;
queue<pair<int,pair<int,int>>> q;
vector<pair<int,int>> ino;

int main(){
  string a,b,c,d;cin >>a>>b>>c>>d;
  string s = "=";
  long x = strtol(a,NULL,16);
  long y = strtol(b,NULL,16);
  if(x<y){
    s = "<";
  }else if(x>y){
    s = ">";
  }
  cout << s;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:20:19: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'const char*'
   20 |   long x = strtol(a,NULL,16);
      |                   ^
      |                   |
      |                   std::string {aka std::__cxx11::basic_string<char>}
In file included from /usr/include/c++/14/cstdlib:79,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:42,
                 from a.cc:1:
/usr/include/stdlib.h:177:48: note:   initializing argument 1 of 'long int strtol(const char*, char**, int)'
  177 | extern long int strtol (const char *__restrict __nptr,
      |                         ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
a.cc:21:19: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'const char*'
   21 |   long y = strtol(b,NULL,16);
      |                   ^
      |                   |
      |                   std::string {aka std::__cxx11::basic_string<char>}
/usr/include/stdlib.h:177:48: note:   initializing argument 1 of 'long int strtol(const char*, char**, int)'
  177 | extern long int strtol (const char *__restrict __nptr,
      |                         ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
Language: C++

#include <bits/stdc++.h>
#define repd(i,a,b) for (int i=(a);i<(b);i++)
#define rep(i,n) repd(i,0,n)
typedef long long ll;
using namespace std;
const int MOD = 1000000007;
const int INF = 1010000000;
const double EPS = 1e-10;

int h,w,x;
char s[1000][1000];
bool visited [1000][1000];
pair<int,int> start,goal;
queue<pair<int,pair<int,int>>> q;
vector<pair<int,int>> ino;

int main(){
  string a,b,c,d;cin >>a>>b>>c>>d;
  string s = "=";
  int x = strtol(a,NULL,16);
  int y = strtol(b,NULL,16);
  if(x<y){
    s = "<";
  }else if(x>y){
    s = ">";
  }
  cout << s;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:20:18: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'const char*'
   20 |   int x = strtol(a,NULL,16);
      |                  ^
      |                  |
      |                  std::string {aka std::__cxx11::basic_string<char>}
In file included from /usr/include/c++/14/cstdlib:79,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:42,
                 from a.cc:1:
/usr/include/stdlib.h:177:48: note:   initializing argument 1 of 'long int strtol(const char*, char**, int)'
  177 | extern long int strtol (const char *__restrict __nptr,
      |                         ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
a.cc:21:18: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'const char*'
   21 |   int y = strtol(b,NULL,16);
      |                  ^
      |                  |
      |                  std::string {aka std::__cxx11::basic_string<char>}
/usr/include/stdlib.h:177:48: note:   initializing argument 1 of 'long int strtol(const char*, char**, int)'
  177 | extern long int strtol (const char *__restrict __nptr,
      |                         ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
Language: C++

import scala.io.StdIn


object Hex {
  def main(args: Array[String]): Unit = {
    val Array(x,y) = readLine.split(" ")
    if(x < y) println("<")
    else if(x > y) println(">")
    else println("=")

  }
}

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import scala.io.StdIn
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
Language: C++

#include<iostream>
int main(){char a,b;std::cin>>a>>b;std::cout<<(a<b?'<':a==b?'=':'>')}

Compiler output:
a.cc: In function 'int main()':
a.cc:2:69: error: expected ';' before '}' token
    2 | int main(){char a,b;std::cin>>a>>b;std::cout<<(a<b?'<':a==b?'=':'>')}
      |                                                                     ^
      |                                                                     ;
Language: C++

#include <bita as/stdc++.h>
using namespace std;
int main()
{
	char a,b;
	cin>>a>>b;
	if (a<b)
		cout<<'<'<<endl;
	else if (a==b)
		cout<<'='<<endl;
	else
		cout<<'>'<<endl;
	return 0;
}

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

include <bits/stdc++.h>

using namespace std;

int main()
{
  char x,y;
  cin >> x >> y;
  if((int)x >= (int)y) cout << ">" << endl;
  else if((int)x == (int)y) cout << "=" << endl;
  else cout << "<" << endl; 
}


Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:8:3: error: 'cin' was not declared in this scope
    8 |   cin >> x >> y;
      |   ^~~
a.cc:9:24: error: 'cout' was not declared in this scope
    9 |   if((int)x >= (int)y) cout << ">" << endl;
      |                        ^~~~
a.cc:9:39: error: 'endl' was not declared in this scope
    9 |   if((int)x >= (int)y) cout << ">" << endl;
      |                                       ^~~~
a.cc:10:29: error: 'cout' was not declared in this scope
   10 |   else if((int)x == (int)y) cout << "=" << endl;
      |                             ^~~~
a.cc:10:44: error: 'endl' was not declared in this scope
   10 |   else if((int)x == (int)y) cout << "=" << endl;
      |                                            ^~~~
a.cc:11:8: error: 'cout' was not declared in this scope
   11 |   else cout << "<" << endl;
      |        ^~~~
a.cc:11:23: error: 'endl' was not declared in this scope
   11 |   else cout << "<" << endl;
      |                       ^~~~
Language: C++

#include <iostream>
using namespace std;

int main() {
  char x, y;
  cin >> x >> y;
  if (x < y)　cout << "<" << endl;
  else cout << ">" << endl;
}

Compiler output:
a.cc:7:13: error: extended character 　 is not valid in an identifier
    7 |   if (x < y)　cout << "<" << endl;
      |             ^
a.cc: In function 'int main()':
a.cc:7:13: error: '\U00003000cout' was not declared in this scope
    7 |   if (x < y)　cout << "<" << endl;
      |             ^~~~~~
Language: C++

using namespace std;
 
int main(){
  char x,y;
  cin >> x >> y;
  if(x == y){
    cout << '=' << endl;
  }else if(x > y){
    cout << '>' << endl;
  }else{
    cout << '<' << endl;
  }
 
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope
    5 |   cin >> x >> y;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | using namespace std;
a.cc:7:5: error: 'cout' was not declared in this scope
    7 |     cout << '=' << endl;
      |     ^~~~
a.cc:7:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:7:20: error: 'endl' was not declared in this scope
    7 |     cout << '=' << endl;
      |                    ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | using namespace std;
a.cc:9:5: error: 'cout' was not declared in this scope
    9 |     cout << '>' << endl;
      |     ^~~~
a.cc:9:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:9:20: error: 'endl' was not declared in this scope
    9 |     cout << '>' << endl;
      |                    ^~~~
a.cc:9:20: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
a.cc:11:5: error: 'cout' was not declared in this scope
   11 |     cout << '<' << endl;
      |     ^~~~
a.cc:11:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:11:20: error: 'endl' was not declared in this scope
   11 |     cout << '<' << endl;
      |                    ^~~~
a.cc:11:20: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

#include<cstdio>
#include<string>
#include<cstring>
#include<iostream>
#include<algorithm>
using namespace std;
int main()
{
	char x,y;
	int s,w;
	scanf("%c%c",&x,&y);
	if(x=='A')s=10;
	if(x=='B')s=11;
	if(x=='C')s=12;
	if(x=='D')s=13;
	if(x=='E')s=14;
	if(x=='F')s=15;
	if(x=='A')w=10;
	if(x=='B')w=11;
	if(x=='C')w=12;
	if(x=='D')w=13;
	if(x=='E')w=14;
	if(x=='F')w=15;
	if(s>W)
	{
		printf(">");
		return 0;
	}
	if(s==W)
	{
		printf("=");
		return 0;
	}
	if(s<W)
	{
		printf("<");
		return 0;
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:24:14: error: 'W' was not declared in this scope
   24 |         if(s>W)
      |              ^
a.cc:29:15: error: 'W' was not declared in this scope
   29 |         if(s==W)
      |               ^
a.cc:34:14: error: 'W' was not declared in this scope
   34 |         if(s<W)
      |              ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:43: error: expected ')' before ';' token
    5 |         printf("%d",a>b?'>':(a==b?'=':'<');
      |               ~                           ^
      |                                           )
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:5:8: error: cast from 'char*' to 'int' loses precision [-fpermissive]
    5 |     if((int)a>(int)b)printf(">\n");
      |        ^~~~~~
a.cc:5:15: error: cast from 'char*' to 'int' loses precision [-fpermissive]
    5 |     if((int)a>(int)b)printf(">\n");
      |               ^~~~~~
a.cc:6:13: error: cast from 'char*' to 'int' loses precision [-fpermissive]
    6 |     else if((int)a==(int)b)printf("=\n");
      |             ^~~~~~
a.cc:6:21: error: cast from 'char*' to 'int' loses precision [-fpermissive]
    6 |     else if((int)a==(int)b)printf("=\n");
      |                     ^~~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:14: error: lvalue required as left operand of assignment
    6 |     else if(((int)a=(int)b)printf("=");
      |              ^~~~~~
a.cc:7:5: error: expected primary-expression before 'else'
    7 |     else printf("<");
      |     ^~~~
a.cc:6:40: error: expected ')' before 'else'
    6 |     else if(((int)a=(int)b)printf("=");
      |            ~                           ^
      |                                        )
    7 |     else printf("<");
      |     ~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:14: error: unable to find character literal operator 'operator""endl' with 'char' argument
    8 |   else cout<<'<'endl;
      |              ^~~~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
string s,t;
int main(){
    scanf("%s%s",&s,&t;
    if(s<t){
        printf("<\n");
        return 0;
    }
    if(s>t){
        printf(">\n");
        return 0;
    }
    if(s==t){
        printf("=\n");
        return 0;
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:23: error: expected ')' before ';' token
    5 |     scanf("%s%s",&s,&t;
      |          ~            ^
      |                       )
Language: C++

#include<bits/stdc++.h>
using namespace std;
char s,t;
int main(){
    scanf("%c%c",&s,&t);
    if (x<y)printf("<");
    if (x>y)printf(">");
    if (x==y)printf("=");
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'x' was not declared in this scope
    6 |     if (x<y)printf("<");
      |         ^
a.cc:6:11: error: 'y' was not declared in this scope; did you mean 'yn'?
    6 |     if (x<y)printf("<");
      |           ^
      |           yn
a.cc:7:9: error: 'x' was not declared in this scope
    7 |     if (x>y)printf(">");
      |         ^
a.cc:7:11: error: 'y' was not declared in this scope; did you mean 'yn'?
    7 |     if (x>y)printf(">");
      |           ^
      |           yn
a.cc:8:9: error: 'x' was not declared in this scope
    8 |     if (x==y)printf("=");
      |         ^
a.cc:8:12: error: 'y' was not declared in this scope; did you mean 'yn'?
    8 |     if (x==y)printf("=");
      |            ^
      |            yn
Language: C++

#include<bits/stdc++.h>
using namespace std;
char s,t;
int main(){
    scanf("%d%d",&s,&t);
    if (x<y)printf("<");
    if (x>y)printf(">");
    if (x==y)printf("=");
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'x' was not declared in this scope
    6 |     if (x<y)printf("<");
      |         ^
a.cc:6:11: error: 'y' was not declared in this scope; did you mean 'yn'?
    6 |     if (x<y)printf("<");
      |           ^
      |           yn
a.cc:7:9: error: 'x' was not declared in this scope
    7 |     if (x>y)printf(">");
      |         ^
a.cc:7:11: error: 'y' was not declared in this scope; did you mean 'yn'?
    7 |     if (x>y)printf(">");
      |           ^
      |           yn
a.cc:8:9: error: 'x' was not declared in this scope
    8 |     if (x==y)printf("=");
      |         ^
a.cc:8:12: error: 'y' was not declared in this scope; did you mean 'yn'?
    8 |     if (x==y)printf("=");
      |            ^
      |            yn
Language: Java

import java.util.Scanner;

public class Numelon {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);


        String a = scanner.next();
        String b = scanner.next();

        if(a.charAt(0) == b.charAt(0)){
            System.out.println("=");
        }else if(a.charAt(0) < b.charAt(0)){
            System.out.println("<");
        }else{
            System.out.println(">");
        }


    }
}


Compiler output:
Main.java:3: error: class Numelon is public, should be declared in a file named Numelon.java
public class Numelon {
       ^
1 error
Language: C++

#include <cstdio>
char buf[3];
main () {
    gets(buf);
    putchar (buf[0] < buf[2] ? '<' : (buf[0] > buf[2] ? '>' : '='));
    putchar ('\n');
}

Compiler output:
a.cc:3:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    3 | main () {
      | ^~~~
a.cc: In function 'int main()':
a.cc:4:5: error: 'gets' was not declared in this scope; did you mean 'getw'?
    4 |     gets(buf);
      |     ^~~~
      |     getw
Language: C++

#include <cstdio>
using namespace std;
char a,b;
int main()
{
    scanf("%c%c",&a,&b);
    if(x>y) printf(">\n");
    else if(x<y) printf("<\n");
    else printf("=\n");
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:8: error: 'x' was not declared in this scope
    7 |     if(x>y) printf(">\n");
      |        ^
a.cc:7:10: error: 'y' was not declared in this scope
    7 |     if(x>y) printf(">\n");
      |          ^
Language: C++

#include <bits/c++std.h>
using namespace std;
typedef long long ll;
string s,k;
int main(){
    cin>>s>>k;
    if(s<k)
    {
        printf("<\n");
        return 0;
    }
    if(s>k)
    {
        printf(">\n");
        return 0;
    }
    if(s==k)
    {
        printf("=\n");
        return 0;
    }
    return 0;
}



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

#include <bits/stdc++.h>
#define REP(i,n) for(int i=0;i<(n);i++)
const int MOD=(int)1e9+7;
using namespace std;
int main(){
     int x,y;
     cin>>x>>y;
     char x,y;
     if(x<y) cout << '<' << endl;
     else if(x>y) cout << '>' << endl;
     else if(x==y) cout << '=' << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:11: error: conflicting declaration 'char x'
    8 |      char x,y;
      |           ^
a.cc:6:10: note: previous declaration as 'int x'
    6 |      int x,y;
      |          ^
a.cc:8:13: error: conflicting declaration 'char y'
    8 |      char x,y;
      |             ^
a.cc:6:12: note: previous declaration as 'int y'
    6 |      int x,y;
      |            ^
Language: C++

#include <bits/stdc++.h>
#define REP(i,n) for(int i=0;i<(n);i++)
const int MOD=(int)1e9+7;
using namespace std;
int main(){
     int x,y;
     cin>>x>>y;
     char x,y;
     if(x<y) cout << '<' << endl;
     else if(x>y) cout << '>' << endl;
     else cout << '=' << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:11: error: conflicting declaration 'char x'
    8 |      char x,y;
      |           ^
a.cc:6:10: note: previous declaration as 'int x'
    6 |      int x,y;
      |          ^
a.cc:8:13: error: conflicting declaration 'char y'
    8 |      char x,y;
      |             ^
a.cc:6:12: note: previous declaration as 'int y'
    6 |      int x,y;
      |            ^
Language: C++

#include <iostream>

using namespace std;

int main()
{
  char X, Y;
  cin >> X >> Y;
  if(X < Y){
    cout << "<";
  }else if(X > Y){
    cout << ">";
  }else{
    cout << "=";
  }
  rerurn 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:3: error: 'rerurn' was not declared in this scope
   16 |   rerurn 0;
      |   ^~~~~~
Language: C++

#include <iostream>
using namespace std;

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

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

#include<bits/stdc++.h>
using namespace std;
int main(){
    char x,y;
    cin>>x>>y;
    if(x>y) cout<<">"<<endl
    else if(x<y) cout<<"<"<<endl;
    else cout<<"="<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:28: error: expected ';' before 'else'
    6 |     if(x>y) cout<<">"<<endl
      |                            ^
      |                            ;
    7 |     else if(x<y) cout<<"<"<<endl;
      |     ~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define a 1;
#define b 2;
#define c 3;
#define e 5;
#define d 4;
#define f 6;
int main(){
    char x,y;
    cin>>x>>y;
    if(x>y) cout<<'>'<<endl
    else if(x<y) cout<<'<'<<endl;
    else cout<<"=="<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:28: error: expected ';' before 'else'
   12 |     if(x>y) cout<<'>'<<endl
      |                            ^
      |                            ;
   13 |     else if(x<y) cout<<'<'<<endl;
      |     ~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
    char a,b;
    cin>>a>>b;
    if(a>b) cout<<'>'<<endl
    else if(a<b) cout<<'<'<<endl;
    else cout<<"=="<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:28: error: expected ';' before 'else'
    6 |     if(a>b) cout<<'>'<<endl
      |                            ^
      |                            ;
    7 |     else if(a<b) cout<<'<'<<endl;
      |     ~~~~
Language: C++

A=input().split()
x=int(A[0],16)
y=int(A[1],16)
if x>y:
    print(">")
if x==y:
    print("=")
if x<y:
    print("<")

Compiler output:
a.cc:1:1: error: 'A' does not name a type
    1 | A=input().split()
      | ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:26: error: invalid operands of types 'const char [2]' and '<unresolved overloaded function type>' to binary 'operator<<'
   12 |     cout << (a<b)?"<":">"<< endl;
      |                       ~~~^~~~~~~
Language: C++

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

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

using namespace std;
#include <iostream>

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

  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:26: error: invalid operands of types 'const char [2]' and '<unresolved overloaded function type>' to binary 'operator<<'
   12 |     cout << (a<b)?"<":">"<< endl;
      |                       ~~~^~~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  char X, Y;
  cin >> X >> Y;
  int i,j; 
  if(X == 'A') i = 10; 
  else if(X == 'B') i = 11; 
  else if(X == 'C') i = 12; 
  else if(X == 'D') i = 13; 
  else if(X == 'E') i = 14; 
  else if(X == 'F') i = 15; 
  if(Y == 'A') j = 10; 
  else if(Y == 'B') j = 11; 
  else if(Y == 'C') j = 12; 
  else if(Y == 'D') j = 13; 
  else if(Y == 'E') j = 14; 
  else if(Y == 'F') j = 15; 
  if (i<j) cout "<" << endl; 
  if (i=j) cout "=" << endl;
  if (i>j) cout ">" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:16: error: expected ';' before string constant
   20 |   if (i<j) cout "<" << endl;
      |                ^~~~
      |                ;
a.cc:21:16: error: expected ';' before string constant
   21 |   if (i=j) cout "=" << endl;
      |                ^~~~
      |                ;
a.cc:22:16: error: expected ';' before string constant
   22 |   if (i>j) cout ">" << endl;
      |                ^~~~
      |                ;
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  char X, Y;
  cin >> X >> Y;
  int i,j; 
  if(X == 'A') i = 10; 
  else if(X == 'B') i = 11; 
  else if(X == 'C') i = 12; 
  else if(X == 'D') i = 13; 
  else if(X == 'E') i = 14; 
  else if(X == 'F') i = 15; 
  if(Y == 'A') j = 10; 
  else if(Y == 'B') j = 11; 
  else if(Y == 'C') j = 12; 
  else if(Y == 'D') j = 13; 
  else if(Y == 'E') j = 14; 
  else if(Y == 'F') j = 15; 
  if (i<j) cout "<"; endl; 
  if (i=j) cout "="; endl;
  if (i>j) cout ">"; endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:16: error: expected ';' before string constant
   20 |   if (i<j) cout "<"; endl;
      |                ^~~~
      |                ;
a.cc:20:26: error: statement cannot resolve address of overloaded function
   20 |   if (i<j) cout "<"; endl;
      |                          ^
a.cc:21:16: error: expected ';' before string constant
   21 |   if (i=j) cout "="; endl;
      |                ^~~~
      |                ;
a.cc:21:26: error: statement cannot resolve address of overloaded function
   21 |   if (i=j) cout "="; endl;
      |                          ^
a.cc:22:16: error: expected ';' before string constant
   22 |   if (i>j) cout ">"; endl;
      |                ^~~~
      |                ;
a.cc:22:26: error: statement cannot resolve address of overloaded function
   22 |   if (i>j) cout ">"; endl;
      |                          ^
Language: Java

import java.util.Scanner;

public class Hex {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		char A = sc.next().charAt(0);
		char B = sc.next().charAt(0);
		char ans = 0;
		if(A == B) {
			ans = '=';
		} else if(A > B) {
			ans = '>';
		} else if(A <B) {
			ans = '<';
		}
		System.out.println(ans);
	}
}


Compiler output:
Main.java:3: error: class Hex is public, should be declared in a file named Hex.java
public class Hex {
       ^
1 error
Language: C++

#define g getchar()
main(a,b){a=g;g;b=g;puts(a<b?"<":a>b?">":"=");}

Compiler output:
a.cc:2:5: error: expected constructor, destructor, or type conversion before '(' token
    2 | main(a,b){a=g;g;b=g;puts(a<b?"<":a>b?">":"=");}
      |     ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:13: error: conflicting declaration 'int x'
   11 |         int x;
      |             ^
a.cc:6:14: note: previous declaration as 'char x'
    6 |         char x, y;
      |              ^
Language: C++

#include "bits/stdc++.h"
#define MOD 1000000007
#define FOR(i,a,b) for(int i=(a);i<(b);i++)
#define REP(i,n)  FOR(i,0,n)
#define ITR(itr,mp) for(auto itr = (mp).begin(); itr != (mp).end(); ++itr)
#define dump(x)  cout << #x << " = " << (x) << endl;
#define debug(x) cout << #x << " = " << (x) << " (L" << __LINE__ << ")" << " " << __FILE__ << endl;
typedef long long ll;
typedef pair<ll,ll> P;
typedef vector<vector<P>> Graph;
using namespace std;

int main(){

  char a,b;
  cin >> a >> b;
  
  if(a>b) cout << ">" << endl;
  else if(a < b) cout << "<" << endl;
  else cout << "=" << endl;

 return 0;
}

Compiler output:
a.cc:9:9: error: 'pair' does not name a type
    9 | typedef pair<ll,ll> P;
      |         ^~~~
a.cc:10:9: error: 'vector' does not name a type
   10 | typedef vector<vector<P>> Graph;
      |         ^~~~~~
Language: C++

#include <bits/stdc++.h>
#define _USE_MATH_DEFINES
#include <cmath>
#include <vector>
using namespace std;
#define pi M_PI

int main(){
    char a, b;
    cin >> a >> b;
    if(a < b){
        cout << '<' << endl;
    }
    else if(a > b){
        cout << '>' << endl;
    }
    else cout << '=' << enld;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:25: error: 'enld' was not declared in this scope
   17 |     else cout << '=' << enld;
      |                         ^~~~
Language: C++

<?php
fscanf(STDIN, "%s %s", $x, $y);
$f = strcmp($x, $y);
if ($f > 0) {
	echo '>';
} elseif ($f < 0) {
	echo '<';
} else {
	echo '=';
}

Compiler output:
a.cc:1:1: error: expected unqualified-id before '<' token
    1 | <?php
      | ^
a.cc:3:1: error: '$f' does not name a type
    3 | $f = strcmp($x, $y);
      | ^~
a.cc:4:1: error: expected unqualified-id before 'if'
    4 | if ($f > 0) {
      | ^~
a.cc:6:10: error: expected constructor, destructor, or type conversion before '(' token
    6 | } elseif ($f < 0) {
      |          ^
a.cc:8:3: error: expected unqualified-id before 'else'
    8 | } else {
      |   ^~~~
Language: C++

#include <iostream>
using namespace std;
char a,b;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:14: error: expected primary-expression before 'int'
    7 |         if(a(int)==b(int)){
      |              ^~~
a.cc:7:17: error: 'a' cannot be used as a function
    7 |         if(a(int)==b(int)){
      |                 ^
a.cc:7:22: error: expected primary-expression before 'int'
    7 |         if(a(int)==b(int)){
      |                      ^~~
a.cc:7:25: error: 'b' cannot be used as a function
    7 |         if(a(int)==b(int)){
      |                         ^
a.cc:9:16: error: expected primary-expression before 'int'
    9 |     }else if(a(int)>b(int)){
      |                ^~~
a.cc:9:19: error: 'a' cannot be used as a function
    9 |     }else if(a(int)>b(int)){
      |                   ^
a.cc:9:23: error: expected primary-expression before 'int'
    9 |     }else if(a(int)>b(int)){
      |                       ^~~
a.cc:9:26: error: 'b' cannot be used as a function
    9 |     }else if(a(int)>b(int)){
      |                          ^
Language: C++

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

int main(){
string x,y;
cin >> x >> y;
if (x > y)　cout << ">" << endl;
if (x == y) cout << "=" << endl;
else cout << "<" << endl;
}

Compiler output:
a.cc:7:11: error: extended character 　 is not valid in an identifier
    7 | if (x > y)　cout << ">" << endl;
      |           ^
a.cc: In function 'int main()':
a.cc:7:11: error: '\U00003000cout' was not declared in this scope
    7 | if (x > y)　cout << ">" << endl;
      |           ^~~~~~
Language: C

#include <iostream>

using namespace std;

int main()
{
char x,y ;
cin >>x>>y;
int c=x,v=y;
if (c>v)x='>';
else if (c<v)x='<';
else x='=';
cout <<x<<endl;
cout <<c-55<<x<<v-55;
    return 0;
}


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

package main

import (
	"fmt"
	"bufio"
	"os"
)

func main() {
	var sc = bufio.NewScanner(os.Stdin)
	sc.Split(bufio.ScanWords)
	var x, y string

	if sc.Scan() {
		x = sc.Text()
	}
	if sc.Scan() {
		y = sc.Text()
	}

	if x < y {
		fmt.Println("<")
	} else if x > y {
		fmt.Println(">")
	} else {
		fmt.Println("=")
	}
}

Compiler output:
a.cc:1:1: error: 'package' does not name a type
    1 | package main
      | ^~~~~~~
Language: Java

import java.io.*;

public class Main
{
    public static void main (String[] args) throws IOException
    {
        InputStreamReader is = new InputStreamReader(System.in);
        BufferedReader br = new BufferedReader(is);

        String str1 = br.readLine();
        String[] str2 = str1.split(" ", 0);
        double i[] = new double[3];
        String result;

        for(int j=0; j<3; j++) {
        	i[j] = Integer.parseInt(str2[j]);
        	System.out.println(i[j]);
        }

		double r = i[0] / (i[1] + i[2]);

       	System.out.println(int(r);
       
      
    }
}

Compiler output:
Main.java:22: error: '.class' expected
       	System.out.println(int(r);
       	                      ^
Main.java:22: error: not a statement
       	System.out.println(int(r);
       	                       ^
Main.java:22: error: ';' expected
       	System.out.println(int(r);
       	                        ^
3 errors
Language: Java

import java.util.Scanner;
public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    Char x = sc.next().toCharArray()[0];
    Char y = sc.next().toCharArray()[0];
    if(x>y){
      System.out.println(">");
    }else if(x==y){
      System.out.println("=");
    }else{
      System.out.println("<");
    }
  }
}

Compiler output:
Main.java:5: error: cannot find symbol
    Char x = sc.next().toCharArray()[0];
    ^
  symbol:   class Char
  location: class Main
Main.java:6: error: cannot find symbol
    Char y = sc.next().toCharArray()[0];
    ^
  symbol:   class Char
  location: class Main
2 errors
Language: Java

import java.util.Scanner;
public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String x = sc.next().toCharArray()[0];
    String y = sc.next().toCharArray()[0];
    if(x<y){
      System.out.println("<");
    }else if(x==y){
      System.out.println("=");
    }else{
      System.out.println(">");
    }
  }
}

Compiler output:
Main.java:5: error: incompatible types: char cannot be converted to String
    String x = sc.next().toCharArray()[0];
                                      ^
Main.java:6: error: incompatible types: char cannot be converted to String
    String y = sc.next().toCharArray()[0];
                                      ^
Main.java:7: error: bad operand types for binary operator '<'
    if(x<y){
        ^
  first type:  String
  second type: String
3 errors
Language: Java

import java.util.*;
public class ABC089A {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// // 整数の入力
		// int a = sc.nextInt();
		// // スペース区切りの整数の入力
		// int b = sc.nextInt();
		// int c = sc.nextInt();
		// // 文字列の入力
		// String s = sc.next();
		// // 出力
    // System.out.println((a+b+c) + " " + s);
		char X = sc.next().toCharArray()[0];
		char Y = sc.next().toCharArray()[0];
		if (X < Y) {
			System.out.println("<");
		} else if (X == Y) {
			System.out.println("=");
		} else {
			System.out.println(">");
		}
	}
}

Compiler output:
Main.java:2: error: class ABC089A is public, should be declared in a file named ABC089A.java
public class ABC089A {
       ^
1 error
Language: C++

#include<iostram>
using namespace std;

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

    return 0;
}

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

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int X,Y,Z;
  scanf("%d", &X);
  scanf("%d", &Y);
  scanf("%d", &Z);
  int total = 0;
  int i = 0;
  while(1){
    if((Y*i + z*(i+1))>X){
      break;
    }
    i++;
  }
  total = Y*i + z*(i+1);
  printf("%d",total);
  return 0;
 }

Compiler output:
a.cc: In function 'int main()':
a.cc:12:15: error: 'z' was not declared in this scope
   12 |     if((Y*i + z*(i+1))>X){
      |               ^
a.cc:17:17: error: 'z' was not declared in this scope
   17 |   total = Y*i + z*(i+1);
      |                 ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int X,Y,Z;
  scanf("%d", &X);
  scanf("%d", &Y);
  scanf("%d", &Z);
  int total = 0;
  int i = 0;
  while(){
    if((Y*i + z*(i+1))>X){
      break;
    }
    i++;
  }
  total = Y*i + z*(i+1);
  printf("%d",total);
  return 0;
 }

Compiler output:
a.cc: In function 'int main()':
a.cc:11:9: error: expected primary-expression before ')' token
   11 |   while(){
      |         ^
a.cc:12:15: error: 'z' was not declared in this scope
   12 |     if((Y*i + z*(i+1))>X){
      |               ^
a.cc:17:17: error: 'z' was not declared in this scope
   17 |   total = Y*i + z*(i+1);
      |                 ^
Language: C++

l = input().split()
A, B = int(l[0], 16), int(l[1], 16)
if A < B:
    print('<')
elif A == B:
    print('=')
else:
    print('>')


Compiler output:
a.cc:1:1: error: 'l' does not name a type
    1 | l = input().split()
      | ^
Language: C

#include <stdio.h>

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

	return 0;
}

Compiler output:
main.c:3:1: error: return type defaults to 'int' [-Wimplicit-int]
    3 | main()
      | ^~~~
main.c: In function 'main':
main.c:9:10: error: implicit declaration of function 'elseif' [-Wimplicit-function-declaration]
    9 |         }elseif(a>b){
      |          ^~~~~~
main.c:9:21: error: expected ';' before '{' token
    9 |         }elseif(a>b){
      |                     ^
      |                     ;
Language: C++

#include<iostream>
#include<algorithm>
 
using namespace std;
typedef long long Int;
#define INF (1LL<<60)

Int dp[20][54000];
Int table[54000];

int main(){
	cin.tie(0);
    ios::sync_with_stdio(false);

	siting X,Y;
	cin >> X,Y;

	if(X<Y)	cout<<"<"<<endl;
	else if(X>Y)	cout<<">"<<endl;
	else 	cout<<"="<<endl;

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:9: error: 'siting' was not declared in this scope
   15 |         siting X,Y;
      |         ^~~~~~
a.cc:16:16: error: 'X' was not declared in this scope
   16 |         cin >> X,Y;
      |                ^
a.cc:16:18: error: 'Y' was not declared in this scope
   16 |         cin >> X,Y;
      |                  ^
Language: C++

#include <iostream>
#include <algorithm>
using namespace std;

int main () {
  char a,b;
  cin >> a >> b;
  if (a>b) cout <<'>'<< endl;
  else if (a==b) cout <<'='<<endl;
  else cout <<'<'<<endl;
  return 0;

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

#include <iostream>
#include <algorithm>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:11:11: error: expected ';' before '}' token
   11 |   return 0
      |           ^
      |           ;
   12 | }
      | ~
Language: C++

#include <iostream>
#include <algorithm>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:13: error: could not convert 'a.std::__cxx11::basic_string<char>::operator=(b)' from 'std::__cxx11::basic_string<char>' to 'bool'
    9 |   else if (a=b) cout << '=' <<endl;
      |            ~^~
      |             |
      |             std::__cxx11::basic_string<char>
a.cc:11:11: error: expected ';' before '}' token
   11 |   return 0
      |           ^
      |           ;
   12 | }
      | ~
Language: C++

#include <iostream>
using namespace std;

int main(){
  char X,Y;
  int x,y
  cin >> X >> Y ;

  x = int(X); y = int(Y);

  if (X > Y){
    cout << ">" << endl;
  }else{
    if (X == Y){
      cout << "=" <<endl;
    }else{
      cout << "<" << endl;
    }
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: expected initializer before 'cin'
    7 |   cin >> X >> Y ;
      |   ^~~
a.cc:9:15: error: 'y' was not declared in this scope
    9 |   x = int(X); y = int(Y);
      |               ^
Language: C++

  switch ( X ) {
    case 'A':
      X = 1 ; 
      break;
      case 'A':
        X = 1 ; 
        break;
      case 'B':
        X = 2 ; 
        break;
      case 'C':
        X = 3; 
        break;    
      case 'D':
        X = 4 ; 
        break;
      case 'E'
        X = 5
        break;
      case 'F'
        X = 6;
        break;
  }

Compiler output:
a.cc:1:3: error: expected unqualified-id before 'switch'
    1 |   switch ( X ) {
      |   ^~~~~~
Language: C++

#include <bits/stdc++.h>
// #include "bits/stdc++.h"

#define rep(i,a,n) for (int i = a;i < n;i++)
#define per(i,n,a) for (int i = n-1;i >= a;i--)

typedef long long ll;
using namespace std;

int main() {
  char a, b;
  cin >> a >> b;
  
  if(X < Y) printf("<\n");
  else if(a == b) printf("=\n");
  else printf(">\n");

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:6: error: 'X' was not declared in this scope
   14 |   if(X < Y) printf("<\n");
      |      ^
a.cc:14:10: error: 'Y' was not declared in this scope
   14 |   if(X < Y) printf("<\n");
      |          ^
Language: Java

import java.util.Scanner;

public class Main{

	ublic static void main(String[] args) {

		Scanner sc =  new Scanner(System.in);
		int X =sc.nextInt();
		int Y =sc.nextInt();
		int Z =sc.nextInt();
		int count = 0;
	 
		X -= Z;
		while(X >= (Y + Z)){
				X -= Y+Z;
				count++;
			
		}
		System.out.println(count);
	}
}

Compiler output:
Main.java:5: error: <identifier> expected
	ublic static void main(String[] args) {
	     ^
1 error
Language: C++

///
//  Author : Author
// Created On : Mon Dec 18 2017
//  File : a.cpp.cpp
//
#include <cstdint>
#include <iostream>

using namespace std;

int32_t mian() {
  char X, Y;
  cin >> X, Y;
  if (X == Y) {
    cout << "=" << endl;
  } else if (X < Y) {
    cout << "<" << endl;
  } else {
    cout << ">" << endl;
  }

  return 0;
}


Compiler output:
/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