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

#include <iostream>
#include <cstring>

int main(void){
  char a[128],b[128];
  int d;
  cin >> a >> b;
  if (d = strcmp(a,b)){
    cout << "EQUAL";
  } else if (d > 0){
    cout << "GREATER";
  } else{
    cout << "LESS";
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |   cin >> a >> b;
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:9:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |     cout << "EQUAL";
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:11:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |     cout << "GREATER";
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:13:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   13 |     cout << "LESS";
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#include<iostream>
#include<string>
#include<vector>
#include<algorithm>
#include <cstdlib>

void Display(void);

int main(){

	long a,b;
	cin >> a >> b;
	if( a == b ){
		cout << "EQUAL" <<endl;
	}
	else if( a > b ){
		cout << "GREATER" <<endl;
	}
	else{
		cout << "LESS" <<endl;
	}


	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   12 |         cin >> a >> b;
      |         ^~~
      |         std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:14:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   14 |                 cout << "EQUAL" <<endl;
      |                 ^~~~
      |                 std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:14:35: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   14 |                 cout << "EQUAL" <<endl;
      |                                   ^~~~
      |                                   std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:17:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   17 |                 cout << "GREATER" <<endl;
      |                 ^~~~
      |                 std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:17:37: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   17 |                 cout << "GREATER" <<endl;
      |                                     ^~~~
      |                                     std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:20:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   20 |                 cout << "LESS" <<endl;
      |                 ^~~~
      |                 std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:20:34: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   20 |                 cout << "LESS" <<endl;
      |                                  ^~~~
      |                                  std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include<iostream>
#include<string.h>
using namespace std;

int main() {
	string a, b;
	cin >> a >> b;
	int com=strcmp(a,b);
	if (com>0)cout << "LESS";
	else if (com<0)cout << "GREATER";
	else cout << "EQUAL";
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:24: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'const char*'
    8 |         int com=strcmp(a,b);
      |                        ^
      |                        |
      |                        std::string {aka std::__cxx11::basic_string<char>}
In file included from a.cc:2:
/usr/include/string.h:156:32: note:   initializing argument 1 of 'int strcmp(const char*, const char*)'
  156 | extern int strcmp (const char *__s1, const char *__s2)
      |                    ~~~~~~~~~~~~^~~~
Language: C++

#include <iostream>
#include <algorithm>
#include <cmath>
#include <limits>
#include <vector>
#include<cstdio>
#include<bits/stdc++.h>
using namespace std;
using ll =long long;

int main (void) {
  ll A,B;
  cin >> A >> B;
  if (A>B) cout <<"GREATER";
  else if(A==B) cout <<"EQUAL";
  else (A<B) cout <<"LESS";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:13: error: expected ';' before 'cout'
   16 |   else (A<B) cout <<"LESS";
      |             ^~~~~
      |             ;
Language: C++

#include <iostream>
using namespace std;
typedef long long  ll;

#define rep(i,s,n)for(ll i=s;i<n;i++)
#define repe(i,s,n)for(ll i=s;i<=n;i++)

ll strlen(const ll *s) {
	ll l = 0;
	while (*s++)l++;
	return l;
}

int main()
{
	char A[101], B[101]; cin >> A >> B;
	ll strA = strlen(A);
	ll strB = strlen(B);

	if (strA > strB) {
		cout << "GREATER" << endl;
	}
	else if (strA < strB) {
		cout << "LESS" << endl;
	}
	else {
		ll i = 0;
		while (A[i] == B[i]) {
			if (A[i] == '\0') {
				cout << "EQUAL" << endl;
				return 0;
			}
			i++;
		}

		cout << ((A[i] > B[i]) ? "GREATER" : "LESS") << endl;
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:26: error: cannot convert 'char*' to 'const ll*' {aka 'const long long int*'}
   17 |         ll strA = strlen(A);
      |                          ^
      |                          |
      |                          char*
a.cc:8:21: note:   initializing argument 1 of 'll strlen(const ll*)'
    8 | ll strlen(const ll *s) {
      |           ~~~~~~~~~~^
a.cc:18:26: error: cannot convert 'char*' to 'const ll*' {aka 'const long long int*'}
   18 |         ll strB = strlen(B);
      |                          ^
      |                          |
      |                          char*
a.cc:8:21: note:   initializing argument 1 of 'll strlen(const ll*)'
    8 | ll strlen(const ll *s) {
      |           ~~~~~~~~~~^
Language: C++

#include <iostream>
#include <string>
#include <algorithm>
#include <utility>
#include <iomanip>
#include <functional>
#include <queue>
#include <stack>
#include <cmath>
#define INF 100000000
#define MOD 1000000007
using namespace std;
int main(){
  int a,b;
  cin>>a>>b;
  if(a>b){cout<<"GREATER"<<endl;
    }eise if(a<b){cout<<"LESS"<<endl;
    }else if(a=b){cout<<"EQUAL"<<endl;
     }
 } 

Compiler output:
a.cc: In function 'int main()':
a.cc:17:6: error: 'eise' was not declared in this scope
   17 |     }eise if(a<b){cout<<"LESS"<<endl;
      |      ^~~~
a.cc:18:6: error: 'else' without a previous 'if'
   18 |     }else if(a=b){cout<<"EQUAL"<<endl;
      |      ^~~~
Language: C++

import java.util.*;
public class Main {
 
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner sc = new  Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int gal = a - b;
		if(gal>0) {
			System.out.println("GREATER");
		}else if(gal<0) {
			System.out.println("LESS");
		}else if(gal == 0) {
			System.out.println("EQUAL");
		}
	}
 
}

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 <iostream>using namespace std;int main(){double A,B;cin>>A>>B;if(A>B)cout<<"GREATER";if(A<B)cout<<"LESS";if(A==B)cout<<"EQUAL";}

Compiler output:
a.cc:1:26: warning: extra tokens at end of #include directive
    1 | #include <iostream>using namespace std;int main(){double A,B;cin>>A>>B;if(A>B)cout<<"GREATER";if(A<B)cout<<"LESS";if(A==B)cout<<"EQUAL";}
      |                          ^~~~~~~~~
a.cc:1:10: fatal error: iostream>usin: No such file or directory
    1 | #include <iostream>using namespace std;int main(){double A,B;cin>>A>>B;if(A>B)cout<<"GREATER";if(A<B)cout<<"LESS";if(A==B)cout<<"EQUAL";}
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include <iostream>
using namespace std;

int main(){
	string A, B;
	cin >> A >> B;
	int x=A.size(), y=B.size(), c=0;
	if(x>y) cout << "GREATER", c++;
	if(x<y) cout << "LESS", c++;
	else {
		if(a>b) cout << "GREATER";
		else if(a<b) cout << "LESS";
		else cout << "EQUAL";
	}
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:20: error: 'a' was not declared in this scope
   11 |                 if(a>b) cout << "GREATER";
      |                    ^
a.cc:11:22: error: 'b' was not declared in this scope
   11 |                 if(a>b) cout << "GREATER";
      |                      ^
Language: C++

#include <iostream>
using namespace std;

int main(){
	string A, B;
	cin >> A >> B;
	int x=A.size(), y=B.size(), c=0;
	if(x>y) cout << "GREATER";
	if(x<y) cout << "LESS";
	if(x==y){
		for(int i=0;l;i++){
			if(A[i]>B[i]){
				c++;
				cout << "GREATER";
				break;
			} else if(A[i]<B[i]){
				c++;
				cout << "LESS";
				break;
			}
		}
	}
	if(c==0) cout << "EQUAL" ;;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:29: error: 'l' was not declared in this scope
   11 |                 for(int i=0;l;i++){
      |                             ^
Language: C++

#include <iostream>
using namespace std;

int main(){
	string A, B;
	cin >> A >> B;
	int x=A.size(), y=B.size();
	if(x>y) cout << "GREATER";
	if(x<y) cout << "LESS";
	if(x==y){
		for(int i=0;i<l;i++){
			if(A[i]>B[i]){
				cout << "GREATER";
				break;
			} else if(A[i]<B[i]){
				cout << "LESS";
				break;
			}
		}
	}
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:31: error: 'l' was not declared in this scope
   11 |                 for(int i=0;i<l;i++){
      |                               ^
Language: C++

#include <iostream>
using namespace std;

int main(){
	string A, B;
	cin >> A >> B;
	int x=A.size(), y=B.size();
	if(x>y) cout << "GREATER";
	if(x<y) cout << "LESS";
	if(x==y){
		for(int i=0;l;i++){
			if(A[i]>B[i]){
				cout << "GREATER";
				break;
			} else if(A[i]<B[i]){
				cout << "LESS";
				break;
			}
		}
	}
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:29: error: 'l' was not declared in this scope
   11 |                 for(int i=0;l;i++){
      |                             ^
Language: C++

#include <iostream>
using namespace std;

int main(){
	string A, B;
	cin >> A >> B;
	if(size.A()>size.B()) cout << "GREATER";
	if(size.A()<size.B()) cout << "LESS";
	if(size.A()==size.B()){
		for(int i=0;i<size.A();i++){
			if(A[i]>B[i]){
				cout << "GREATER";
				break;
			} else if(A[i]<B[i]){
				cout << "LESS";
				break;
			}
		}
	}
	if(i==size.A()-1) cout << "EQUAL" ;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:17: error: overloaded function with no contextual type information
    7 |         if(size.A()>size.B()) cout << "GREATER";
      |                 ^
a.cc:7:26: error: overloaded function with no contextual type information
    7 |         if(size.A()>size.B()) cout << "GREATER";
      |                          ^
a.cc:8:17: error: overloaded function with no contextual type information
    8 |         if(size.A()<size.B()) cout << "LESS";
      |                 ^
a.cc:8:26: error: overloaded function with no contextual type information
    8 |         if(size.A()<size.B()) cout << "LESS";
      |                          ^
a.cc:9:17: error: overloaded function with no contextual type information
    9 |         if(size.A()==size.B()){
      |                 ^
a.cc:9:27: error: overloaded function with no contextual type information
    9 |         if(size.A()==size.B()){
      |                           ^
a.cc:10:36: error: overloaded function with no contextual type information
   10 |                 for(int i=0;i<size.A();i++){
      |                                    ^
a.cc:20:12: error: 'i' was not declared in this scope
   20 |         if(i==size.A()-1) cout << "EQUAL" ;
      |            ^
a.cc:20:20: error: overloaded function with no contextual type information
   20 |         if(i==size.A()-1) cout << "EQUAL" ;
      |                    ^
Language: C++

#include <iostream>
#include "libstdc++"

#define rep(i,n) for(int (i)=0;(i)<(n);(i)++)
#define rep(i,j,n) for(int (i)=(j);(i)<(n);(i)++)

using namespace std;

int main() {
	int a, b;
	cin >> a>> b;
	string ans;
	if (a > b)ans = "GREATER";
	if (a < b)ans = "LESS";
	if(a == b)ans = "EQUAL";
	cout << ans << endl;
	return 0;
}

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

#include <iostream>
#include "libstdc++.h"

#define rep(i,n) for(int (i)=0;(i)<(n);(i)++)
#define rep(i,j,n) for(int (i)=(j);(i)<(n);(i)++)

using namespace std;

int main() {
	int a, b;
	cin >> a>> b;
	string ans;
	if (a > b)ans = "GREATER";
	if (a < b)ans = "LESS";
	if(a == b)ans = "EQUAL";
	cout << ans << endl;
	return 0;
}

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

#include<cstdio>
#include<cstring>
#include<cmath>
#include<cstdlib>
#include<algorithm>
#include<queue>
#include<vector>
#include<set>
#include<map>
#include<ctime>
#include<iostream>
using namespace std;

const long long MaxN = 1e10;
char a[MaxN],b[MaxN];
long long la,lb;

int main()
{
	cin>>a>>b;
	la = strlen(a);
	lb = strlen(b);
	if(la > lb) printf("GREATER\n");
	else if(la < lb) printf("LESS");
	else{
		if(strcmp(a,b) == 0) printf("EQUAL");
		if(strcmp(a,b) < 0) printf("LESS");
		if(strcmp(a,b) > 0) printf("GREATER\n");
	}
	return 0;
}

Compiler output:
/tmp/ccnstrkf.o: in function `main':
a.cc:(.text+0x23): relocation truncated to fit: R_X86_64_PC32 against symbol `b' defined in .bss section in /tmp/ccnstrkf.o
a.cc:(.text+0x44): relocation truncated to fit: R_X86_64_PC32 against symbol `la' defined in .bss section in /tmp/ccnstrkf.o
a.cc:(.text+0x4b): relocation truncated to fit: R_X86_64_PC32 against symbol `b' defined in .bss section in /tmp/ccnstrkf.o
a.cc:(.text+0x5a): relocation truncated to fit: R_X86_64_PC32 against symbol `lb' defined in .bss section in /tmp/ccnstrkf.o
a.cc:(.text+0x61): relocation truncated to fit: R_X86_64_PC32 against symbol `la' defined in .bss section in /tmp/ccnstrkf.o
a.cc:(.text+0x68): relocation truncated to fit: R_X86_64_PC32 against symbol `lb' defined in .bss section in /tmp/ccnstrkf.o
a.cc:(.text+0x88): relocation truncated to fit: R_X86_64_PC32 against symbol `la' defined in .bss section in /tmp/ccnstrkf.o
a.cc:(.text+0x8f): relocation truncated to fit: R_X86_64_PC32 against symbol `lb' defined in .bss section in /tmp/ccnstrkf.o
a.cc:(.text+0xb4): relocation truncated to fit: R_X86_64_PC32 against symbol `b' defined in .bss section in /tmp/ccnstrkf.o
a.cc:(.text+0xe5): relocation truncated to fit: R_X86_64_PC32 against symbol `b' defined in .bss section in /tmp/ccnstrkf.o
a.cc:(.text+0x116): additional relocation overflows omitted from the output
collect2: error: ld returned 1 exit status
Language: C++

#include<cstdio>
#include<cstring>
#include<cmath>
#include<cstdlib>
#include<algorithm>
#include<queue>
#include<vector>
#include<set>
#include<map>
#include<ctime>
#include<iostream>
using namespace std;

const long long MaxN = 1e10;
char a[MaxN],b[MaxN];
long long la,lb;

int main()
{
	cin>>a>>b;
	la = strlen(a);
	lb = strlen(b);
	if(la > lb) printf("GREATER\n");
	else if(la < lb) printf("LESS");
	else{
		if(strcmp(a,b) == 0) printf("EQUAL");
		if(strcmp(a,b) < 0) printf("LESS");
		if(strcmp(a,b) > 0) printf("GREATER\n");
	}
	return 0;
}

Compiler output:
/tmp/ccOcEmSW.o: in function `main':
a.cc:(.text+0x23): relocation truncated to fit: R_X86_64_PC32 against symbol `b' defined in .bss section in /tmp/ccOcEmSW.o
a.cc:(.text+0x44): relocation truncated to fit: R_X86_64_PC32 against symbol `la' defined in .bss section in /tmp/ccOcEmSW.o
a.cc:(.text+0x4b): relocation truncated to fit: R_X86_64_PC32 against symbol `b' defined in .bss section in /tmp/ccOcEmSW.o
a.cc:(.text+0x5a): relocation truncated to fit: R_X86_64_PC32 against symbol `lb' defined in .bss section in /tmp/ccOcEmSW.o
a.cc:(.text+0x61): relocation truncated to fit: R_X86_64_PC32 against symbol `la' defined in .bss section in /tmp/ccOcEmSW.o
a.cc:(.text+0x68): relocation truncated to fit: R_X86_64_PC32 against symbol `lb' defined in .bss section in /tmp/ccOcEmSW.o
a.cc:(.text+0x88): relocation truncated to fit: R_X86_64_PC32 against symbol `la' defined in .bss section in /tmp/ccOcEmSW.o
a.cc:(.text+0x8f): relocation truncated to fit: R_X86_64_PC32 against symbol `lb' defined in .bss section in /tmp/ccOcEmSW.o
a.cc:(.text+0xb4): relocation truncated to fit: R_X86_64_PC32 against symbol `b' defined in .bss section in /tmp/ccOcEmSW.o
a.cc:(.text+0xe5): relocation truncated to fit: R_X86_64_PC32 against symbol `b' defined in .bss section in /tmp/ccOcEmSW.o
a.cc:(.text+0x116): additional relocation overflows omitted from the output
collect2: error: ld returned 1 exit status
Language: C++

#include<cmath>
#include<cstring>
#include<iostream>
#include<algorithm>
#include<cstdio>
using namespace std;

int main()
{
	string a,b;
	cin>>a>>b;
	if (a.size()>b.size())
		cout<<"GREATER"<<endl;
	else if (b.size()>a.size())
		cout<<"LESS"<<endl;
	else
	{
		for(long long i=0;i<a.size();i++)
		{
			if (a[i]>b[i])
			{
				cout<<"GREATER"<<endl;
				break;
			}
			else if (a[i]<b[i])
			{
				cout<<"LESS"<<endl;
				break;
			}
		}
		if(i==a.size())
			cout<< "EQUAL" <<endl;
	}
	return 0;	
}

Compiler output:
a.cc: In function 'int main()':
a.cc:31:20: error: 'i' was not declared in this scope
   31 |                 if(i==a.size())
      |                    ^
Language: C++

#include<cstdio>
#include<cstring>
#include<iostream>
#include<cmath>
#include<map>
#include<queue>
#include<algorithm>
#include<cstdlib>
using namespace std;

int main(){
	char a[100];
	char b[100];
	int s;
	int n;
	int m;
	gets(a);
	gets(b);
	n=strlen(a);
	m=strlen(b);
	if(n>m) printf("GREATER\n");
	if(m>n) printf("LESS\n");
	if(m==n){
		s=strcmp(a,b);
		if(s>0) printf("GREATER\n");
		if(s<0) printf("LESS\n");
        if(s==0)  printf("EQUAL\n");
	}	
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
   17 |         gets(a);
      |         ^~~~
      |         getw
Language: C++

#include<cstdio>
#include<cstring>
#include<iostream>
#include<cmath>
#include<map>
#include<queue>
#include<algorithm>
#include<cstdlib>
#include<cstring>
using namespace std;

int main(){
	char a[100];
	char b[100];
	int s;
	int n;
	int m;
	gets(a);
	gets(b);
	n=strlen(a);
	m=strlen(b);
	if(n>m) printf("GREATER\n");
	if(m>n) printf("LESS\n");
	if(m==n){
		s=strcmp(a,b);
		if(s>0) printf("GREATER\n");
		if(s<0) printf("LESS\n");
        if(s==0)  printf("EQUAL\n");
	}	
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
   18 |         gets(a);
      |         ^~~~
      |         getw
Language: C++

#include<cstdio>
#include<cstring>
#include<iostream>
#include<cmath>
#include<map>
#include<queue>
#include<algorithm>
#include<cstdlib>
using namespace std;


int main(){
	char a[100];
	char b[100];
	int s;
	int n;
	int m;
	gets(a);
	gets(b);
	n=strlen(a);
	m=strlen(b);
	if(n>m) printf("GREATER\n");
	if(m>n) printf("LESS\n");
	if(m==n){
		s=strcmp(a,b);
		if(s>0) printf("GREATER\n");
		if(s<0) printf("LESS\n");
        if(s==0)  printf("EQUAL\n");
	}	
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
   18 |         gets(a);
      |         ^~~~
      |         getw
Language: C++

#include<cstdio>
#include<algorithm>
#include<cstring>
#include<iostream>
#include<cmath>
#define n 10^100
char a[n], b[n];
using namespace std;
int main()
{
	int i, cnt = 0;
	gets(a);
	gets(b);
	if(strlen(a)>strlen(b))
		printf("GREATER\n");
	else if(strlen(a)<strlen(b))
		printf("LESS\n");
    else
	{
    	for(i = 0; i < strlen(a); i++)
	    {
	    	if(a[i]>b[i])
	    	{
		     	printf("GREATER\n");
		    	break;
	    	}
	     	else if(a[i]<b[i])
	     	{
	     		printf("LESS\n");
	     		break;
			}
			else
				cnt++;
		}
		if(cnt == strlen(a))
			printf("EQUAL\n");
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
   12 |         gets(a);
      |         ^~~~
      |         getw
Language: C++

#include<stdio.h>
#include<algorithm>
#include<cstring>
#include<iostream>
#include<cmath>
#define n 10^100
using namespace std;
int main()
{
	char a[n], b[n];
	int i, cnt = 0;
	gets(a);
	gets(b);
	if(strlen(a)>strlen(b))
		printf("GREATER\n");
	else if(strlen(a)<strlen(b))
		printf("LESS\n");
    else
	{
    	for(i = 0; i < strlen(a); i++)
	    {
	    	if(a[i]>b[i])
	    	{
		     	printf("GREATER\n");
		    	break;
	    	}
	     	else if(a[i]<b[i])
	     	{
	     		printf("LESS\n");
	     		break;
			}
			else
				cnt++;
		}
		if(cnt == strlen(a))
			printf("EQUAL\n");
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
   12 |         gets(a);
      |         ^~~~
      |         getw
Language: C++

#include<cstdio>
#include<algorithm>
#include<cstring>
#include<iostream>
#include<cmath>
#define n 10^100
using namespace std;
int main()
{
	char a[n], b[n];
	int i, cnt = 0;
	gets(a);
	gets(b);
	if(strlen(a)>strlen(b))
		printf("GREATER\n");
	else if(strlen(a)<strlen(b))
		printf("LESS\n");
    else
	{
    	for(i = 0; i < strlen(a); i++)
	    {
	    	if(a[i]>b[i])
	    	{
		     	printf("GREATER\n");
		    	break;
	    	}
	     	else if(a[i]<b[i])
	     	{
	     		printf("LESS\n");
	     		break;
			}
			else
				cnt++;
		}
		if(cnt == strlen(a))
			printf("EQUAL\n");
	}
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
   12 |         gets(a);
      |         ^~~~
      |         getw
Language: C++

#include<cstdio>
#include<cstdlib>
#include<cstring>
#include<queue>
#include<algorithm>
#include<cmath>
#include<map>
#include<set>
using namespace std;
int main()
{
	char a[101],b[101];
    int len,len1,max;
    gets(a);
    gets(b);
			max=strcmp(a,b);
			if(max==1){
				printf("GREATER\n");
				}
				if(max==0)
				{
					printf("EQUAL\n");
				}
					if(max==-1)
					{
                     printf("LESS\n");
					}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:5: error: 'gets' was not declared in this scope; did you mean 'getw'?
   14 |     gets(a);
      |     ^~~~
      |     getw
Language: C

#include<cstdio>
#include<cstdlib>
#include<cstring>
#include<queue>
#include<algorithm>
#include<cmath>
#include<map>
#include<set>
using namespace std;
int main()
{
	char a[101],b[101];
    int len,len1,max;
    gets(a);
    gets(b);
			max=strcmp(a,b);
			if(max==1){
				printf("GREATER\n");
				}
				if(max==0)
				{
					printf("EQUAL\n");
				}
					if(max==-1)
					{
                     printf("LESS\n");
					}
}

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

#include <cstdio>
#include <algorithm>
#include <cstdio>
#include <cmath>
#include <string>
#include <cstring>
using namespace std;

char a[10005], b[10005];
int main()
{
	int lena, lenb, flag = 1;
	gets(a);
	gets(b);
	lena = strlen(a);
	lenb = strlen(b);
	for(int i = 0; i != max(lena, lenb); i++)
	{
		if(a[i] > b[i])
		{
			printf("GREATER\n");
			break;
		}
		else if(a[i] < b[i])
		{
			printf("LESS\n");
			break;
		}
		else
		{
			flag = 0;
			continue;
		}
	}
	if(flag == 0)
	{
		printf("EQUAL\n");
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
   13 |         gets(a);
      |         ^~~~
      |         getw
Language: Java

import java.math.*;
import java.util.Scanner;
public class demo {

	public static void main(String[] args) {
		BigInteger a,b,c;
		Scanner cin = new Scanner(System.in);
		while(cin.hasNext()) {
			a = cin.nextBigInteger();
			b = cin.nextBigInteger();
			c = a.max(b);
			if(a.equals(c)) 
				System.out.println("GREATER");
			else 
				System.out.println("LESS");
		}
		cin.close();
	}

}


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

#include<cstdio>
#include<cstring>
#include<algorithm>
#include<cmath>
using namespace std;
int main()
{
	char a[105],b[105];
	int len1,len2,flag,;
	scanf("%s",a);
	scanf("%s",b);
	len1 = strlen(a);
	len2 = strlen(b);
	if(len1 < len2)
		flag = 0;
	else
		if(len1 > len2)
			flag = 1;
	else 
		for(int i = 0; i < len1 ; i++)
		{
			if(a[i]==b[i])
				continue;
			else if(a[i] > b[i])
			{
				flag = 1;
				break;
			}
			else 
			{
				flag = 0;
				break;
			}
	    }
	    if(flag == 0)
	    	printf("LESS\n");
	    else if(flag == 1)
	    	printf("GREATER\n");
	    	else
	    		printf("EQUAL\n");
	    	return 0;
}

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

#include<cstdio>
#include<cstdlib>
#include<cmath>
#include<algorithm>
#include<iostream>
#include<string>
#include<cstring>

const int MaxN = 1e6;
using namespace std;
char a[MaxN],b[MaxN];

int main()
{
	int flag=0,n,m,i;
	gets(a),gets(b);
	n=strlen(a),m=strlen(b);
	if(strcmp(a,b)==0)
		printf("EQUAL\n");
	if(n==m)
	{
		for(i = 0;i < n;i++)
		{
			if(a[i]>b[i])
			{
				flag=1;
				break;
			}
			if(a[i]<b[i])
			{
				flag=2;
				break;
			}
		}
	}
	if(n>m || flag==1)
		printf("GREATER\n");
	if(n<m || flag==2)
		printf("LESS\n");
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
   16 |         gets(a),gets(b);
      |         ^~~~
      |         getw
Language: C++

#include<cstdio>
#include<cstdlib>
#include<cmath>
#include<algorithm>
#include<iostream>
#include<string>
#include<cstring>

const int MaxN = 1e6;
using namespace std;

int main()
{
	char a[MaxN],b[MaxN];
	int flag=0,n,m,i;
	gets(a);
	gets(b);
	n=strlen(a),m=strlen(b);
	if(strcmp(a,b)==0)
		printf("EQUAL\n");
	if(n==m)
	{
		for(i = 0;i < n;i++)
		{
			if(a[i]>b[i])
			{
				flag=1;
				break;
			}
			if(a[i]<b[i])
			{
				flag=2;
				break;
			}
		}
	}
	if(n>m || flag==1)
		printf("GREATER\n");
	if(n<m || flag==2)
		printf("LESS\n");
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
   16 |         gets(a);
      |         ^~~~
      |         getw
Language: C++

#include<cstdio>
#include<cstdlib>
#include<cmath>
#include<algorithm>
#include<iostream>
#include<string>
#include<cstring>

const int MaxN = 1e6;
using namespace std;

int main()
{
	char a[MaxN],b[MaxN];
	int flag=0,n,m,i;
	gets(a);
	gets(b);
	n=strlen(a),m=strlen(b);
	if(strcmp(a,b)==0)
		printf("EQUAL\n");
	if(n==m)
	{
		for(i = 0;i < n;i++)
		{
			if(a[i]>b[i])
			{
				flag=1;
				break;
			}
			if(a[i]<b[i])
			{
				flag=2;
				break;
			}
		}
	}
	if(n>m || flag==1)
		printf("GREATER\n");
	if(n<m || flag==2)
		printf("LESS\n");
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
   16 |         gets(a);
      |         ^~~~
      |         getw
Language: C

#include <cstdio>
#include <cmath>
#include <cstring>
#include <algorithm>
using namespace std;
char a[1005], b[1005];
int main()
{
	scanf("%s %s",a,b);
	int lena = strlen(a);
	int lenb = strlen(b);
	if(lena > lenb)
	{
		printf("GREATER\n");
		return 0;
	}
	else if(lena < lenb)
	{
		printf("LESS\n");
		return 0;
	}
	else 
	{
		int flag = 0;
		for(int i = 0;i < lena;i++)
		{
			if(a[i] > b[i])
			{
				printf("GREATER\n");
				flag = 1;
				return 0;
			}
			else if(a[i] < b[i])
			{
				printf("LESS\n");
				flag = 1;
				return 0;
			}
		}
		if(flag == 0) printf("EQUAL\n");
	}
	return 0;
}

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

#include<iostream>
#include<cstdio>  
#include<cstring>  
using namespace std;  
string a,b;  
int main()  
{ 
    cin>>a>>b;
    if(a>b)cout<<"GREATER"<<endl;
     if(a<b)cout<<"LESS"<<endl;
     if(a==b)cout<<"EQUAL"<<endl
	return 0;
}  

Compiler output:
a.cc: In function 'int main()':
a.cc:11:33: error: expected ';' before 'return'
   11 |      if(a==b)cout<<"EQUAL"<<endl
      |                                 ^
      |                                 ;
   12 |         return 0;
      |         ~~~~~~
Language: C++

#include <iostream>
using namespace std;

//A>B のときGREATER、A<B のときLESS、A=B のときEQUAL

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

  if (a > b)
  {
    cout << "GREATER" << endl;
  }
  else if (a < b)
  {
    cout << "LESS" << endl;
  }
  else if (a == b)
  {
    "EQUAL"
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:21:12: error: expected ';' before '}' token
   21 |     "EQUAL"
      |            ^
      |            ;
   22 |   }
      |   ~
Language: C++

#include <iostream.h>
using namespace std;

//A>B のときGREATER、A<B のときLESS、A=B のときEQUAL

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

  if (a > b)
  {
    cout << "GREATER" << endl;
  }
  else if (a < b)
  {
    cout << "LESS" << endl;
  }
  else if (a == b)
  {
    "EQUAL"
  }
}


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

#include <algorithm>
#include <climits>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <ctime>
#include <iostream>
#include <sstream>
#include <functional>
#include <map>
#include <string>
#include <cstring>
#include <vector>
#include <queue>
#include <stack>
#include <deque>
#include <set>
#include <list>
#include <numeric>
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
typedef pair<ll,ll> P;
const double PI = 3.14159265358979323846;
const double EPS = 1e-12;
const ll INF = 1LL<<29;
const ll mod = 1e9+7;
#define rep(i,n) for(int (i)=0;(i)<(ll)(n);++(i))
#define repd(i,n,d) for(ll (i)=0;(i)<(ll)(n);(i)+=(d))
#define all(v) (v).begin(), (v).end()
#define pb(x) push_back(x)
#define mp(x,y) make_pair((x),(y))
#define mset(m,v) memset((m),(v),sizeof(m))
#define chmin(x,y) (x=min(x,y))
#define chmax(x,y) (x=max(x,y))
#define fst first
#define snd second
#define UNIQUE(x) (x).erase(unique(all(x)),(x).end())
template<class T> ostream &operator<<(ostream &os, const vector<T> &v){int n=v.size();rep(i,n)os<<v[i]<<(i==n-1?"":" ");return os;}

int main(){
	string a, b;
  cin>>a>>b;
  int res;
  if(a.size()<b.size()) res = -1;
  else if(a.size()>b.size()) res = 1;
  else if(a<b) res = -1;
  else if(b>a) res = 1;
  cout<<(res==1?"GREATER":res==0?"EUQAL":"LESS")<<endl;
  else res = 0;
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:50:3: error: 'else' without a previous 'if'
   50 |   else res = 0;
      |   ^~~~
Language: C++

#include <algorithm>
#include <climits>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <ctime>
#include <iostream>
#include <sstream>
#include <functional>
#include <map>
#include <string>
#include <cstring>
#include <vector>
#include <queue>
#include <stack>
#include <deque>
#include <set>
#include <list>
#include <numeric>
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
typedef pair<ll,ll> P;
const double PI = 3.14159265358979323846;
const double EPS = 1e-12;
const ll INF = 1LL<<29;
const ll mod = 1e9+7;
#define rep(i,n) for(int (i)=0;(i)<(ll)(n);++(i))
#define repd(i,n,d) for(ll (i)=0;(i)<(ll)(n);(i)+=(d))
#define all(v) (v).begin(), (v).end()
#define pb(x) push_back(x)
#define mp(x,y) make_pair((x),(y))
#define mset(m,v) memset((m),(v),sizeof(m))
#define chmin(x,y) (x=min(x,y))
#define chmax(x,y) (x=max(x,y))
#define fst first
#define snd second
#define UNIQUE(x) (x).erase(unique(all(x)),(x).end())
template<class T> ostream &operator<<(ostream &os, const vector<T> &v){int n=v.size();rep(i,n)os<<v[i]<<(i==n-1?"":" ");return os;}

int main(){
	string a, b;
  cin>>a>>b;
  int res;
  if(a.size()<b.size()) res = -1;
  else if(a.size()>b.size()) res = 1;
  else if(a<b) res = -1;
  else if(b>a) res = 1;
  cout<<(res==1?"GREATER":res==0"EUQAL":"LESS")<<endl;
  else res = 0;
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:49:16: error: operands to '?:' have different types 'const char*' and 'bool'
   49 |   cout<<(res==1?"GREATER":res==0"EUQAL":"LESS")<<endl;
      |          ~~~~~~^~~~~~~~~~~~~~~~~
a.cc:49:33: error: expected ')' before string constant
   49 |   cout<<(res==1?"GREATER":res==0"EUQAL":"LESS")<<endl;
      |         ~                       ^~~~~~~
      |                                 )
a.cc:50:3: error: 'else' without a previous 'if'
   50 |   else res = 0;
      |   ^~~~
Language: C++

#include <iostream>
#include <string>

using namespace std;

string A, B;

int main(void)
{
	cin >> A >> B;
	if(A.size() > B.size()){
		string T = A, A = B, B = T;
	}
	
	string Z = "";
	for(int i = 0; i < B.size() - A.size(); i++){
		Z += "0";
	}
	T = Z + A;
	A = T;
	
	for(int i = 0; i < A.size(); i++){
		if(A[i] < B[i]){
			cout << "LESS" << endl;
			return 0;
		}
		else if(A[i] > B[i]){
			cout << "GREATER" << endl;
			return 0;
		}
	}
	
	cout << "EQUAL" << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:9: error: 'T' was not declared in this scope
   19 |         T = Z + A;
      |         ^
Language: C++

#include <cstdio>
#include <algorithm>
#include <cstring>
#include <cmath>
using namespace std;
typedef long long llong;
int main(){
  llong A,B;
  scanf("%lld %lld",&A,&B);
  if(A>B) printf("GREATER\n");
  else(A<B) printf("LESS\n");
  else printf("EQUAL\n");
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:12: error: expected ';' before 'printf'
   11 |   else(A<B) printf("LESS\n");
      |            ^~~~~~~
      |            ;
a.cc:12:3: error: 'else' without a previous 'if'
   12 |   else printf("EQUAL\n");
      |   ^~~~
Language: C++

#include <iostream>
#include <string>
using namespace std;
int main(void){
    // Your code here!
    string A, B;
    cin >> A;
    cin >> B;
    int C, D
    int C = stoi(A)
    int D = stoi(B)
    if (C > D)
    {
        cout << "GREATER" << endl;
    }
    else if (C < D)
    {
        cout << "LESS" << endl;
    }
    else
    {
        cout << "EQUAL" << endl;
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:5: error: expected initializer before 'int'
   10 |     int C = stoi(A)
      |     ^~~
a.cc:16:5: error: 'else' without a previous 'if'
   16 |     else if (C < D)
      |     ^~~~
a.cc:16:18: error: 'D' was not declared in this scope
   16 |     else if (C < D)
      |                  ^
Language: C++

#include <iostream>
#include <string>
using namespace std;
int main(void){
    // Your code here!
    string A, B;
    cin >> A;
    cin >> B;
    int C, D
    int C = int.stoi(A)
    int D = int.stoi(B)
    if (C > D)
    {
        cout << "GREATER" << endl;
    }
    else if (C < D)
    {
        cout << "LESS" << endl;
    }
    else
    {
        cout << "EQUAL" << endl;
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:5: error: expected initializer before 'int'
   10 |     int C = int.stoi(A)
      |     ^~~
a.cc:16:5: error: 'else' without a previous 'if'
   16 |     else if (C < D)
      |     ^~~~
a.cc:16:18: error: 'D' was not declared in this scope
   16 |     else if (C < D)
      |                  ^
Language: C++

#include <iostream>
#include <string>
using namespace std;
int main(void){
    // Your code here!
    string A, B;
    cin >> A;
    cin >> B;
    int C = int.stoi(A)
    int D = int.stoi(B)
    if (C > D)
    {
        cout << "GREATER" << endl;
    }
    else if (C < D)
    {
        cout << "LESS" << endl;
    }
    else
    {
        cout << "EQUAL" << endl;
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:13: error: expected primary-expression before 'int'
    9 |     int C = int.stoi(A)
      |             ^~~
a.cc:19:5: error: 'else' without a previous 'if'
   19 |     else
      |     ^~~~
Language: C++

#include <iostream>
#include <string>
using namespace std;
int main(void){
    // Your code here!
    string A, B;
    cin >> A;
    cin >> B;
    int C = int.stoi(A)
    int D = int.stoi(B)
    if (A > B)
    {
        cout << "GREATER" << endl;
    }
    else if (A < B)
    {
        cout << "LESS" << endl;
    }
    else
    {
        cout << "EQUAL" << endl;
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:13: error: expected primary-expression before 'int'
    9 |     int C = int.stoi(A)
      |             ^~~
a.cc:19:5: error: 'else' without a previous 'if'
   19 |     else
      |     ^~~~
Language: C++

#include <iostream>
#include <string>
using namespace std;
int main(void){
    // Your code here!
    string A, B;
    cin >> A;
    cin >> B;
    int C = int.Palse(A)
    int D = int.Palse(B)
    if (A > B)
    {
        cout << "GREATER" << endl;
    }
    else if (A < B)
    {
        cout << "LESS" << endl;
    }
    else
    {
        cout << "EQUAL" << endl;
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:13: error: expected primary-expression before 'int'
    9 |     int C = int.Palse(A)
      |             ^~~
a.cc:19:5: error: 'else' without a previous 'if'
   19 |     else
      |     ^~~~
Language: Java



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

public class Main {
	BigDecimal A = in.nextBigDecimal();
	BigDecimal B = in.nextBigDecimal();

	if(A.compareTo(B) > 0) System.out.println("GREATER");
	if(A.compareTo(B) == 0) System.out.println("EQUAL");
	if(A.compareTo(B) < 0) System.out.println("LESS");

	in.close();

	}
}

Compiler output:
Main.java:5: error: not a statement
import java.math.BigDecimal;
                ^
Main.java:6: error: not a statement
import java.util.Scanner;
                ^
Main.java:3: error: unnamed classes are a preview feature and are disabled by default.
  public static void main(String[] args) {
                ^
  (use --enable-preview to enable unnamed classes)
Main.java:5: error: illegal start of expression
import java.math.BigDecimal;
^
Main.java:6: error: illegal start of expression
import java.util.Scanner;
^
Main.java:8: error: illegal start of expression
public class Main {
^
Main.java:12: error: illegal start of type
	if(A.compareTo(B) > 0) System.out.println("GREATER");
	^
Main.java:12: error: <identifier> expected
	if(A.compareTo(B) > 0) System.out.println("GREATER");
	              ^
Main.java:12: error: <identifier> expected
	if(A.compareTo(B) > 0) System.out.println("GREATER");
	                ^
Main.java:12: error: ';' expected
	if(A.compareTo(B) > 0) System.out.println("GREATER");
	                 ^
Main.java:13: error: illegal start of type
	if(A.compareTo(B) == 0) System.out.println("EQUAL");
	^
Main.java:13: error: <identifier> expected
	if(A.compareTo(B) == 0) System.out.println("EQUAL");
	              ^
Main.java:13: error: <identifier> expected
	if(A.compareTo(B) == 0) System.out.println("EQUAL");
	                ^
Main.java:13: error: ';' expected
	if(A.compareTo(B) == 0) System.out.println("EQUAL");
	                 ^
Main.java:14: error: illegal start of type
	if(A.compareTo(B) < 0) System.out.println("LESS");
	^
Main.java:14: error: <identifier> expected
	if(A.compareTo(B) < 0) System.out.println("LESS");
	              ^
Main.java:14: error: <identifier> expected
	if(A.compareTo(B) < 0) System.out.println("LESS");
	                ^
Main.java:14: error: ';' expected
	if(A.compareTo(B) < 0) System.out.println("LESS");
	                 ^
Main.java:14: error: <identifier> expected
	if(A.compareTo(B) < 0) System.out.println("LESS");
	                   ^
Main.java:14: error: illegal start of type
	if(A.compareTo(B) < 0) System.out.println("LESS");
	                    ^
Main.java:14: error: <identifier> expected
	if(A.compareTo(B) < 0) System.out.println("LESS");
	                                         ^
Main.java:14: error: illegal start of type
	if(A.compareTo(B) < 0) System.out.println("LESS");
	                                          ^
Main.java:16: error: <identifier> expected
	in.close();
	        ^
Main.java:19: error: class, interface, enum, or record expected
}
^
24 errors
Language: C++

#include <bits/stdc++.h>
using namespace std;
     
int main(){
 double A,B;
 cin >> A >> B;
 string ans="EQUAL";
 
 if(A>size)

 if(A>B){
 ans="GREATER";
 }else if(A<B){
 ans="LESS";
 }

 cout << ans << endl;

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:6: error: invalid operands of types 'double' and '<unresolved overloaded function type>' to binary 'operator>'
    9 |  if(A>size)
      |     ~^~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
     
int main(){
 int A,B;
 cin >> A >> B;
 string ans="EQUAL";

 if(A>B){
 ans="GREATER";
 }else if{
 (A<B)ans="LESS";
 }

 cout << ans << endl;

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:10: error: expected '(' before '{' token
   11 |  }else if{
      |          ^
      |          (
Language: Java

import java.util.Scanner;

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.print("GREATER");
		}else if( a == b ){
			System.out.print("EQUAL");
		}else if( a < b ){
			System.out.print("LESS");
		}else{
			break;
		}

		sc.close();
	}
}

Compiler output:
Main.java:18: error: break outside switch or loop
			break;
			^
1 error
Language: C++

x = input().split(" ")
a = int(x[0])
b = int(x[1])


if (a>b):
    print("GREATER")
elif(a==b):
    print("EQUAL")
else:
    print("LESS")


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

#include<iostream>
#include<string>

using namespace std;

int main(){
  string a,b,la,lb;
  cin>>a>>b;

  la=a.length();
  lb=b.lemgth();

  if(a>b||la>lb){
    cout<<"GREATER"<<endl;
  }else if(a<b||la<lb){
    cout<<"LESS"<<endl;
  }else{
    cout<<"EQUAL"<<endl;
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:8: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'lemgth'; did you mean 'length'?
   11 |   lb=b.lemgth();
      |        ^~~~~~
      |        length
Language: C++

#include <iostream>
#include <vector>
#include <queue>
#include <sstream>
#include <algorithm>
#include <bitset>
#include <limits>
#include <map>
#include <set>
#include <iomanip>
#include <cmath>

using namespace std;

typedef long long int ll;
typedef std::numeric_limits<double> dbl;
const long long int LL_INF=1LL<<60;

vector<string> split(const string& input, char delimiter)
{
    stringstream stream(input);
    
    string field;
    vector<string> result;
    while (getline(stream, field, delimiter)) {
        result.push_back(field);
    }
    return result;
}

//#define DEBUG

ll A, B, M, N, D, K, Q, W, H, T, X, Y;

int main()
{
    string s1, s2;
    cin >> s1 >> s2;
    if (s1.size() > s2.size())
        cout << "GREATER" << endl;
    else if (s1.size() < s2.size())
        cout << "LESS" << endl;
    else {
    for (int i = 0; i < s1.size(); ++i) {
        if (s1[i] > s2[i]) {
            cout << "GREATER" << endl; return 0;
        }else if (s[i] < s2[i]) {
            cout << "LESS" << endl; return 0;
        }
    }
    cout << "EQUAL" << endl;
    }

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:47:19: error: 's' was not declared in this scope
   47 |         }else if (s[i] < s2[i]) {
      |                   ^
Language: C++

#!/usr/bin/env python3
# -*- coding: utf-8 -*-

a = input()
b = input()

a = int(a)
b = int(b)
if a > b:
    print("GREATER")
elif a < b:
    print("LESS")
else:
    print("EQUAL")


Compiler output:
a.cc:1:2: error: invalid preprocessing directive #!
    1 | #!/usr/bin/env python3
      |  ^
a.cc:2:3: error: invalid preprocessing directive #-
    2 | # -*- coding: utf-8 -*-
      |   ^
a.cc:4:1: error: 'a' does not name a type
    4 | a = input()
      | ^
Language: C++

#include <iostream>
#include <string>
	using namespace std;
	int main(){
		string a, b;
		int ans = 0;
		cin >> a >> b;
		if (a.size() > b.size()){ ans = 1; }
		if (a.size() < b.size()){ ans = 2; }
		if (a.size() == b.size()){
			for (int i = 0(); i<a.size(); i++){
				if (a[i]>b[i]){ ans = 1; break; }
				if (a[i] < b[i]) { ans = 2; break; }
			}
		}
		if (ans == 0){ cout << "EQUAL" << endl; }
		if (ans == 1){ cout << "GREATER" << endl; }
		if (ans == 2){ cout << "LESS" << endl; }
		return 0;
	}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:39: error: expression cannot be used as a function
   11 |                         for (int i = 0(); i<a.size(); i++){
      |                                      ~^~
Language: C++

#include <iostream>
#include <boost/multiprecision/cpp_int.hpp>

namespace mp = boost::multiprecision

int main() {
        mp::cpp_int x, y;
        std::cin >> x >> y;
        if (x > y) std::cout << "GREATER" << std::endl;
        else if (x < y) std::cout << "LESS" << std::endl;
        else std::cout << "EQUAL" << std::endl;
        return 0;
}


Compiler output:
a.cc:2:10: fatal error: boost/multiprecision/cpp_int.hpp: No such file or directory
    2 | #include <boost/multiprecision/cpp_int.hpp>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include<iostream>
#include<string>
using namespace std;
int main() {
	cin.tie(0);
   	ios::sync_with_stdio(false);

	unsigned long long int A,B;
	string result='EQUAL';
	cin >> A;
	cin >> B;
    if(A>B) result='GREATER';
    else if (A>B) result='LESS';
	cout << result << "\n";
}

Compiler output:
a.cc:9:23: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
    9 |         string result='EQUAL';
      |                       ^~~~~~~
a.cc:12:20: warning: multi-character literal with 7 characters exceeds 'int' size of 4 bytes
   12 |     if(A>B) result='GREATER';
      |                    ^~~~~~~~~
a.cc:13:26: warning: multi-character character constant [-Wmultichar]
   13 |     else if (A>B) result='LESS';
      |                          ^~~~~~
a.cc: In function 'int main()':
a.cc:9:23: error: conversion from 'int' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
    9 |         string result='EQUAL';
      |                       ^~~~~~~
a.cc:12:20: warning: overflow in conversion from 'int' to 'char' changes value from '1096041810' to '82' [-Woverflow]
   12 |     if(A>B) result='GREATER';
      |                    ^~~~~~~~~
a.cc:13:26: warning: overflow in conversion from 'int' to 'char' changes value from '1279611731' to '83' [-Woverflow]
   13 |     else if (A>B) result='LESS';
      |                          ^~~~~~