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

#include <algorithm>
#include <vector>
#include <cstring>
#include <queue>
#include <functional>
#include <set>
#include <map>
#include <string>
#include <cmath>
#include<complex>
#include <cassert>
using namespace std;
#define rep(i, n) for (int i = 0; i < n; i++)
#define repd(i, n) for (int i = n; i >= 1; i--)
#define mod 1000000007
#define MOD 998244353
#define inf 1e20
typedef long long int ll;
typedef pair<ll, ll> pr;
typedef complex<double> com;


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

Compiler output:
a.cc: In function 'int main()':
a.cc:25:9: error: 'cin' was not declared in this scope
   25 |         cin >> a >> b;
      |         ^~~
a.cc:12:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
   11 | #include <cassert>
  +++ |+#include <iostream>
   12 | using namespace std;
a.cc:27:17: error: 'cout' was not declared in this scope
   27 |                 cout << "GREATER";
      |                 ^~~~
a.cc:27:17: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:30:17: error: 'cout' was not declared in this scope
   30 |                 cout << "LESS";
      |                 ^~~~
a.cc:30:17: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:33:17: error: 'cout' was not declared in this scope
   33 |                 cout << "EQUAL";
      |                 ^~~~
a.cc:33:17: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

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

int main(){
	long long int a, b;
  	string c, d;
  	cin >>c >> d;
  	//cin >> a >#include<iostream>
#include<string>
#include<algorithm>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:15:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
   15 | int main(){
      |         ^~
a.cc:15:9: note: remove parentheses to default-initialize a variable
   15 | int main(){
      |         ^~
      |         --
a.cc:15:9: note: or replace parentheses with braces to value-initialize a variable
a.cc:15:11: error: a function-definition is not allowed here before '{' token
   15 | int main(){
      |           ^
a.cc: At global scope:
a.cc:47:2: error: expected unqualified-id before '>' token
   47 | }> b;
      |  ^
a.cc:49:9: error: 'cout' does not name a type
   49 |         cout << c << endl;
      |         ^~~~
a.cc:50:9: error: 'cout' does not name a type
   50 |         cout << d << endl;
      |         ^~~~
a.cc:52:9: error: expected unqualified-id before 'if'
   52 |         if(c[0] - '0' > d[0] - '0'  && c.size() == d.size()){
      |         ^~
a.cc:57:9: error: expected unqualified-id before 'if'
   57 |         if(c.size() > d.size()){
      |         ^~
a.cc:61:9: error: expected unqualified-id before 'else'
   61 |         else if(c.size() < d.size()){
      |         ^~~~
a.cc:65:9: error: expected unqualified-id before 'else'
   65 |         else {
      |         ^~~~
a.cc:83:1: error: expected declaration before '}' token
   83 | }
      | ^
Language: C++

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

int main(){
	long long int a, b;
  	long long string c, d;
  	cin >> c >> d;
  	
  	if(c[0]-'0' > d[0]-'0'){
      cout << "GREATER" << endl;
      return 0;
    }
  	
  	a = stoi(c);
  	b = stoi(d);
  	
  	if(a > b){
      cout << "GREATER" << endl;
    }
  	else if(a == b){
	  cout << "EQUAL" << endl;
  	}
  	else {
      cout << "LESS" << endl;
  	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:26: error: expected initializer before 'c'
    7 |         long long string c, d;
      |                          ^
a.cc:8:16: error: 'c' was not declared in this scope
    8 |         cin >> c >> d;
      |                ^
a.cc:8:21: error: 'd' was not declared in this scope
    8 |         cin >> c >> d;
      |                     ^
Language: C++

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

int main()
{
  string a, b;
  cin >> a >> b;
  int ans = -1;
  if(a.size() > b.size())
  {
    ans = 0;
  }
  else if(a.size() < b.size())
  {
    ans = 1;
  }
  else if(a == b)
  {
    ans = 2;
  }
  else
  {
    int i;
    for(i = 0; i < a.size(); i++)
    {
      if(a.at(i) > b.size(i))
      {
        ans = 0;
        break;
      }
      else if(a.at(i) < b.size(i))
      {
        ans = 1;
        break;
      }
    }
  }
  if(ans == 0)
  {
    cout << "GREATER" << endl;
  }
  else if(ans == 1)
  {
    cout << "LESS" << endl;
  }
  else if(ans == 2)
  {
    cout << "EQUAL" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:26:26: error: no matching function for call to 'std::__cxx11::basic_string<char>::size(int&)'
   26 |       if(a.at(i) > b.size(i))
      |                    ~~~~~~^~~
In file included from /usr/include/c++/14/string:54,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52,
                 from a.cc:1:
/usr/include/c++/14/bits/basic_string.h:1076:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]'
 1076 |       size() const _GLIBCXX_NOEXCEPT
      |       ^~~~
/usr/include/c++/14/bits/basic_string.h:1076:7: note:   candidate expects 0 arguments, 1 provided
a.cc:31:31: error: no matching function for call to 'std::__cxx11::basic_string<char>::size(int&)'
   31 |       else if(a.at(i) < b.size(i))
      |                         ~~~~~~^~~
/usr/include/c++/14/bits/basic_string.h:1076:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]'
 1076 |       size() const _GLIBCXX_NOEXCEPT
      |       ^~~~
/usr/include/c++/14/bits/basic_string.h:1076:7: note:   candidate expects 0 arguments, 1 provided
Language: C++

#include<iosteream>

using namespace std;

int main(){
  long long N,M;
  cin>>N>>M;
  
  if(N==M){
    cout<<"EQUAL";
  }else if(N<M){
    cout<<"GREATER";
  }else{
    cout<<"LESS";
  }
  cout<<endl;
}

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

#include <iostream>
using namespace std;

using uint = unsigned int;
using ll = long long;
using ull = unsigned long long;
#include <string>
#include <cstdio>
#include <algorithm>
#include <vector>
#include <cmath>
#include <climits>
#include <bitset>
#include <array>
#include <deque>
#include <queue>
#include <map>
#include <set>
#define all(x) (x).begin(),(x).end()

const int MOD = 1e9 + 7;

void solve(){

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

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:31:13: error: 'strcmp' was not declared in this scope
   31 |         s = strcmp(a,b);
      |             ^~~~~~
a.cc:19:1: note: 'strcmp' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
   18 | #include <set>
  +++ |+#include <cstring>
   19 | #define all(x) (x).begin(),(x).end()
Language: C++

#include <iostream>
using namespace std;

using uint = unsigned int;
using ll = long long;
using ull = unsigned long long;
#include <string>
#include <cstdio>
#include <algorithm>
#include <vector>
#include <cmath>
#include <climits>
#include <bitset>
#include <array>
#include <deque>
#include <queue>
#include <map>
#include <set>
#define all(x) (x).begin(),(x).end()

const int MOD = 1e9 + 7;

void solve(){

}
int main(){
    string a,b;
    cin >> a >> b;
    int s = (int)a.size() - (int)b.size();
    if (s == 0) {
        s = strcmp(a,b);
    }
    if (r > 0) {
        cout << "GREATER" << endl;
    } else if (r < 0) {
        cout << "LESS" << endl;
    } else {
        cout << "EQUAL" << endl;
    }

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:31:13: error: 'strcmp' was not declared in this scope
   31 |         s = strcmp(a,b);
      |             ^~~~~~
a.cc:19:1: note: 'strcmp' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
   18 | #include <set>
  +++ |+#include <cstring>
   19 | #define all(x) (x).begin(),(x).end()
a.cc:33:9: error: 'r' was not declared in this scope
   33 |     if (r > 0) {
      |         ^
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() {
    //cout.precision(10);
    string a, b,;
  cin >> a >> b;
  if(a.size() > b.size()) {
    cout << "GREATER" << endl;
    return 0;
  }
  if(a.size() < b.size()) {
    cout << "LESS" << endl;
    return 0;
  }
  if(a > b) {
    cout << "GREATER" << endl;
  } else if(a < b) {
    cout << "LESS" << endl;
  } else {
    cout << "EQUAL" << endl;
  }
    return 0;
}


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

#include<stdio.h>
#include<string.h>

int main(){
  char s1[101], s2[101];
  
  scanf("%s %s", s1, s2);
  
  if(strcpm(s1, s2) > 0){
    printf("GREATER\n");
  } else if(strcpm(s1, s2) == 0){
    printf("EQUAL\n");
  } else {
    printf("LESS\n");
  }
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:6: error: implicit declaration of function 'strcpm'; did you mean 'strcmp'? [-Wimplicit-function-declaration]
    9 |   if(strcpm(s1, s2) > 0){
      |      ^~~~~~
      |      strcmp
Language: C

#include<stdio.h>
#iclude<string.h>

int main(){
  char s1[101], s2[101];
  
  scanf("%s %s", s1, s2);
  
  if(strcpm(s1, s2) > 0){
    printf("GREATER\n");
  } else if(strcpm(s1, s2) == 0){
    printf("EQUAL\n");
  } else {
    printf("LESS\n");
  }
  
  return 0;
}

Compiler output:
main.c:2:2: error: invalid preprocessing directive #iclude; did you mean #include?
    2 | #iclude<string.h>
      |  ^~~~~~
      |  include
main.c: In function 'main':
main.c:9:6: error: implicit declaration of function 'strcpm' [-Wimplicit-function-declaration]
    9 |   if(strcpm(s1, s2) > 0){
      |      ^~~~~~
Language: C++

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

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


Compiler output:
a.cc:15:17: warning: missing terminating " character
   15 |     cout<<"LESS""<<endl;
      |                 ^
a.cc:15:17: error: missing terminating " character
   15 |     cout<<"LESS""<<endl;
      |                 ^~~~~~~~
a.cc: In function 'int main()':
a.cc:15:17: error: expected ';' before '}' token
   15 |     cout<<"LESS""<<endl;
      |                 ^
      |                 ;
   16 | }
      | ~
Language: C++

#include <iostream>
#include <vector>
#include <algorithm>
#include <map>
#include <set>
#define FOR(i, a, n) for(int i = (int)(a); i < (int)(n); ++i)
#define REP(i, n) FOR(i, 0, n)
#define SORT(a) sort(a.begin(),a.end())
using namespace std;
int main(){
    //Seiranchan!
    string a,b;
    cin >> a>> b;
    string ans="EQUAL";

    if(a.size()>b.size()) ans = "GREATER";
    else if(a.size()<b.size())) ans = "LESS";
    else{
        REP(i,a.size()){
            if(a[i]>b[i]){
                ans = "GREATER";
                break;
            }else if(a[i<b[i]]){
                ans = "LESS";
                break;
            }
        }
    }
    cout << ans << endl;

    
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:31: error: expected primary-expression before ')' token
   17 |     else if(a.size()<b.size())) ans = "LESS";
      |                               ^
Language: C++

#include <iostream>
#include <vector>
#include <algorithm>
#include <map>
#include <set>
#define FOR(i, a, n) for(int i = (int)(a); i < (int)(n); ++i)
#define REP(i, n) FOR(i, 0, n)
#define SORT(a) sort(a.begin(),a.end())
using namespace std;
int main(){
    //Seiranchan!
    string a,b;
    cin >> a>> b;
    string ans="EQUAL";

    if(a.size()>b.size()) ans = "GREATER";
    else if(a.size(<b.size())) ans = "LESS";
    else{
        REP(i,a.size()){
            if(a[i]>b[i]){
                ans = "GREATER";
                break;
            }else if(a[i<b[i]]){
                ans = "LESS";
                break;
            }
        }
    }
    cout << ans << endl;

    
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:20: error: expected primary-expression before '<' token
   17 |     else if(a.size(<b.size())) ans = "LESS";
      |                    ^
Language: C++

#include <bits/stdc++.h> 
using namespace std;
typedef long long ll;
typedef pair<int,int> p;
const int inf=(1<<30);
#define rep(i,a,n)	for(int i=a;i<n;i++)
#define rrep(i,a,n) for(int i=(a-1);i>=n;i--)
	
int main(){
	string a,b;
	cin>>a>>b;
	string ans="EQUAL";
	if(a.size>b.size)ans="GREATER";
	else if(a.size()<b.size())ans="LESS";
	else{
		rep(i,0,a.size()){
			if(a[i]>b[i]){
				ans="GREATER";
				break;
			}
			else if(a[i]<b[i]){
				ans="LESS";
				break;
			}
		}
	}
	cout<<ans<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:14: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]' (did you forget the '()' ?)
   13 |         if(a.size>b.size)ans="GREATER";
      |            ~~^~~~
      |                  ()
a.cc:13:21: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]' (did you forget the '()' ?)
   13 |         if(a.size>b.size)ans="GREATER";
      |                   ~~^~~~
      |                         ()
Language: C++

#include <bits/stdc++.h> 
using namespace std;
typedef long long ll;
typedef pair<int,int> p;
const int inf=(1<<30);
#define rep(i,a,n)	for(int i=a;i<n;i++)
#define rrep(i,a,n) for(int i=(a-1);i>=n;i--)
	
int main(){
	string a,b;
	cin>>a>>b;
	string ans="EQUAL"
	if(a.size>b.size)ans="GREATER";
	else if(a.size()<b.size())ans="LESS";
	else{
		rep(i,0,a.size()){
			if(a[i]>b[i]){
				ans="GREATER";
				break;
			}
			else if(a[i]<b[i]){
				ans="LESS";
				break;
			}
		}
	}
	cout<<ans<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:9: error: expected ',' or ';' before 'if'
   13 |         if(a.size>b.size)ans="GREATER";
      |         ^~
a.cc:14:9: error: 'else' without a previous 'if'
   14 |         else if(a.size()<b.size())ans="LESS";
      |         ^~~~
Language: C++

#include<stdio.h>
#include<string.h>
const int maxn=1005+5;
char a[maxn],b[maxn];
int main()
{
int len_a,len_b;
	gets(a);
	gets(b);
	len_a=strlen(a);		
	len_b=strlen(b);
	if(len_a>len_b)
		printf("GREATER\n");
	if(len_a<len_b)
		printf("LESS\n");
	if(len_a==len_b)
	{	if(strcmp(a,b)>0)
			printf("REATER\n");
		if(strcmp(a,b)<0)
			printf("LESS\n");
		if(strcmp(a,b)==0)
			printf("EQUAL\n");
	}
	return 0;
}

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

#include<stdio.h>
#include<string.h>
const int maxn=1005+5;
char a[maxn],b[maxn];
int main()
{
int len_a,len_b;
	gets(a);
	gets(b);
	len_a=strlen(a);		
	len_b=strlen(b);
	if(len_a>len_b)
		printf("GREATER\n");
	if(len_a<len_b)
		printf("LESS\n");
	if(len_a==len_b)
	{	if(strcmp(a,b)>0)
			printf("REATER\n");
		if(strcmp(a,b)<0)
			printf("LESS\n");
		if(strcmp(a,b)==0)
			printf("EQUAL\n");
	}
	return 0;
}

Compiler output:
main.c:4:6: error: variably modified 'a' at file scope
    4 | char a[maxn],b[maxn];
      |      ^
main.c:4:14: error: variably modified 'b' at file scope
    4 | char a[maxn],b[maxn];
      |              ^
main.c: In function 'main':
main.c:8:9: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
    8 |         gets(a);
      |         ^~~~
      |         fgets
Language: C

#include<stdio.h>
#include<string.h>
using namespace std;
const int maxn=1005+5;
char a[maxn],b[maxn];
int main()
{
int len_a,len_b;
	gets(a);
	gets(b);
	len_a=strlen(a);		
	len_b=strlen(b);
	if(len_a>len_b)
		printf("GREATER\n");
	if(len_a<len_b)
		printf("LESS\n");
	if(len_a==len_b)
	{	if(strcmp(a,b)>0)
			printf("REATER\n");
		if(strcmp(a,b)<0)
			printf("LESS\n");
		if(strcmp(a,b)==0)
			printf("EQUAL\n");
	}
	return 0;
}

Compiler output:
main.c:3:1: error: unknown type name 'using'
    3 | using namespace std;
      | ^~~~~
main.c:3:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'
    3 | using namespace std;
      |                 ^~~
main.c:5:6: error: variably modified 'a' at file scope
    5 | char a[maxn],b[maxn];
      |      ^
main.c:5:14: error: variably modified 'b' at file scope
    5 | char a[maxn],b[maxn];
      |              ^
main.c: In function 'main':
main.c:9:9: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
    9 |         gets(a);
      |         ^~~~
      |         fgets
Language: C

#include<stdio.h>
#include<algorithm>
#include<string.h>
using namespace std;
const int maxn=1005+5;
char a[maxn],b[maxn];
int main()
{
int len_a,len_b;
	gets(a);
	gets(b);
	len_a=strlen(a);		
	len_b=strlen(b);
	if(len_a>len_b)
		printf("GREATER\n");
	if(len_a<len_b)
		printf("LESS\n");
	if(len_a==len_b)
	{	if(strcmp(a,b)>0)
			printf("REATER\n");
		if(strcmp(a,b)<0)
			printf("LESS\n");
		if(strcmp(a,b)==0)
			printf("EQUAL\n");
	
	
	}
	return 0;
}

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

#include<cstdio>
#include<algorithm>
#include<cstring>
using namespace std;
const int maxn=1005+5;
char a[maxn],b[maxn];
int main()
{
int len_a,len_b;
	gets(a);
	gets(b);
	len_a=strlen(a);		
	len_b=strlen(b);
	if(len_a>len_b)
		printf("GREATER\n");
	if(len_a<len_b)
		printf("LESS\n");
	if(len_a==len_b)
	{	if(strcmp(a,b)>0)
			printf("REATER\n");
		if(strcmp(a,b)<0)
			printf("LESS\n");
		if(strcmp(a,b)==0)
			printf("EQUAL\n");
	
	
	}
	
	
	
	return 0;
}

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<cstring>
using namespace std;
const int maxn=1005+5;
char a[maxn],b[maxn];
int main()
{
int len_a,len_b;
	gets(a);
	gets(b);
	len_a=strlen(a);		
	len_b=strlen(b);
	if(len_a>len_b)
		printf("GREATER\n");
	if(len_a<len_b)
		printf("LESS\n");
	if(len_a==len_b)
	{	if(strcmp(a,b)>0)
			printf("REATER\n");
		if(strcmp(a,b)<0)
			printf("LESS\n");
		if(strcmp(a,b)==0)
			printf("EQUAL\n");
	
	
	}
	
	
	
	return 0;
}

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

#include<cstdio>
int main()
{int long long a,b;
scanf("%lld %lld",&a,&b);
ofr(int i=1)
if(a>b)
printf("GREATER\n");
if(a<b)
printf("LESS\n");
if(a==b)
printf("LESS\n");
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:5: error: expected primary-expression before 'int'
    5 | ofr(int i=1)
      |     ^~~
a.cc:5:1: error: 'ofr' was not declared in this scope
    5 | ofr(int i=1)
      | ^~~
Language: C++

#include<cstdio>
#include<cstring>
using namespace std;

char s1[10005],s2[10005];
long long ls1,ls2,jud;

int main(){
	gets(s1);
	gets(s2);
	
	ls1 = strlen(s1);
	ls2 = strlen(s2);
	if(ls1 > ls2)	printf("GREATER");
	else if(ls1 < ls2)	printf("LESS");
	else{
		jud = strcmp(s1,s2);
		if(jud)	printf("GREATER");
		else	printf("LESS");
	}
}

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

#include<stdio.h>
int main(){
	int i,j,m,l;
	l=0;
	char a[101],b[101];
	gets(a);
	gets(b);
	for(i=0;a[i]!='\0';i++){}
	for(j=0;a[j]!='\0';j++){}
	if(i>j) printf("GREATER");
	else if(i<j) printf("LESS");
	else{
		for(m=0;a[m]!='\0';m++){
			if(a[m]>b[m]){
				printf("GREATER");
				l=1;
				break;
			}
			if(a[m]<b[m]){
				printf("LESS");
				l=1;
				break;
			}
		}
			if(l==0) printf("EQUAL");
	}
	return 0;
}
		
	

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

#include<stdio.h>
#include<string.h>
using namespace std;
const int maxn = 1e5+5;
 int main()
 {
 	 char a[maxn],b[maxn];
 	 int len = strlen(a);
 	 int len1 = strlen(b);
 	 int i;
 	 gets(a);
 	 gets(b);
 	if ( strcmp(a,b) == -1 ) printf("LESS\n");
 	else if ( strcmp(a,b)== 0) printf("EQUAL\n");
 	else printf("GREATER\n");
 	 	 return 0;
 	 	 }

Compiler output:
main.c:3:1: error: unknown type name 'using'
    3 | using namespace std;
      | ^~~~~
main.c:3:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'
    3 | using namespace std;
      |                 ^~~
main.c: In function 'main':
main.c:11:10: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
   11 |          gets(a);
      |          ^~~~
      |          fgets
Language: C

#include<cstdio>
#include<cstring>
using namespace std;
const int maxn = 1e5+5;
 int main()
 {
 	 char a[maxn],b[maxn];
 	 int len = strlen(a);
 	 int len1 = strlen(b);
 	 int i;
 	 gets(a);
 	 gets(b);
 	if ( strcmp(a,b) == -1 ) printf("LESS\n");
 	else if ( strcmp(a,b)== 0) printf("EQUAL\n");
 	else printf("GREATER\n");
 	 	 return 0;
 	 	 }

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

#include<cstdio>
#include<cstring>
using namespace std;
const int maxn = 1e5+5;
 int main()
 {
 	 char a[maxn],b[maxn];
 	 int len = strlen(a);
 	 int len1 = strlen(b);
 	 int i;
 	 gets(a);
 	 gets(b);
 	if ( strcmp(a,b) == -1 ) printf("LESS\n");
 	else if ( strcmp(a,b)== 0) printf("EQUAL\n");
 	else printf("GREATER\n");
 	 	 return 0;
 	 	 }

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

#include<stdio.h>
#include<string.h>
const int Max = 1e6;

int main(){
	char a[Max], b[Max];
	int A, B, flag = 0;
	gets(a);
	gets(b);
	if(strlen(a) > strlen(b)) flag = -1;
	if(strlen(a) < strlen(b)) flag = 1;
	if(strlen(a) == strlen(b)){
		 for(int i = 0; i < strlen(a); i++){
		 	 A = a[i], B = b[i];
		 	 if(A > B) { flag = -1; break; }
		 	 if(A < B) { flag = 1; break; }
		 }
	}
	if(flag == -1) printf("GREATER\n");
	if(flag == 0) printf("EQUAL\n");
	if(flag == 1) printf("LESS\n");
	return 0;
}

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

#include<cstdio>
int A[105];
int B[105];
int main(){
	scanf("%s %s",A,B);
    int len1 = strlen(A);
    int len2 = strlen(B);
	if(len1 > len2) printf("GREATER");
	if(len1 < len2) printf("LESS");
	if(len1 == len2) {
		if(strcmp(A,B) > 0) printf("GREATER");
		else if(strcmp(A,B) < 0)  printf("LESS");
		else printf("EQUAL");
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:16: error: 'strlen' was not declared in this scope
    6 |     int len1 = strlen(A);
      |                ^~~~~~
a.cc:2:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    1 | #include<cstdio>
  +++ |+#include <cstring>
    2 | int A[105];
a.cc:11:20: error: 'strcmp' was not declared in this scope
   11 |                 if(strcmp(A,B) > 0) printf("GREATER");
      |                    ^~~~~~
a.cc:11:20: note: 'strcmp' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
Language: C++

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

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

  if (a.size() > b.size()) {
    cout << "GREATER" << endl;
    return 0;
  } else if (a.size() < b.size()) {
    cout << "LESS" << endl;
    return 0;
  } else {
    for (int i = a.size() - 1; i >= 0; i ++) {
      if (a.at(i) > b.at(i)) {
        cout << "GREATER" << endl;
        return 0;
      } else if (.at(i) < b.at(i)) {
        cout << "LESS" << endl;
        return 0;
      }
    }
  }
  cout << "EQUAL" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:19:18: error: expected primary-expression before '.' token
   19 |       } else if (.at(i) < b.at(i)) {
      |                  ^
Language: C++

#include<iostream>
using namespace std;
int main()
{
  string s,t;
  cin >> s >> t;
  if(s.size() > t.size()){
    cout << "GREATER" << endl;
    return 0;
  }
  if(s.size() < t.size()){
    cout << "LESS" << endl;
    return 0;
  }
  if(s.size() == t.size()){
    cout << "EQUAL" << endl;
    return 0;
  }
  for(int i=0; i<s.size; i++){
	if(s[i] > t[i]){
      cout << "GREATER" << endl;
      return 0;
    }
    else if(s[i] < t[i]){
      cout << "LESS" << endl;
      return 0;
    }
  }
  cout << "EQUAL" << endl;
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:20: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]' (did you forget the '()' ?)
   19 |   for(int i=0; i<s.size; i++){
      |                  ~~^~~~
      |                        ()
Language: C++

#include<bits/stdc++.h>
#include<sstream>
#inlcude<string>
using namespace std;
string a, b;
int main(){
  cin >> a >> b;
  int asize = a.size();
  int bsize = b.size();
  if(asize < bsize) cout << "GREATER" << endl;
  else if(asize < bsize) cout << "LESS" << endl;
  else if(a > b) cout << "GREATER" << endl;
  else if(a < b) cout << "LESS" << endl;
  else cout << "EQUAL" << endl;
}

Compiler output:
a.cc:3:2: error: invalid preprocessing directive #inlcude; did you mean #include?
    3 | #inlcude<string>
      |  ^~~~~~~
      |  include
Language: C++

#include<bits/stdc++.h>
#include<sstream>
#inlcude<string>
using namespace std;
string a, b;
int main(){
  cin >> a >> b;
  int asize = a.size();
  int bsize = b.size();
  if(asize > bsize) cout << "GREATER" << endl;
  else if(asize < bsize) cout << "LESS" << endl;
  else if(asize == bsize){
    int a2 = istringstream(a);
    int b2 = istringstream(b);
    if(a2 > b2) cout << "GREATER" << endl;
    else if(a2 < b2) cout << "LESS" << endl;
    else if(a2 == b2) cout << "EQUAL" << endl; 
  }
}

Compiler output:
a.cc:3:2: error: invalid preprocessing directive #inlcude; did you mean #include?
    3 | #inlcude<string>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:13:14: error: cannot convert 'std::istringstream' {aka 'std::__cxx11::basic_istringstream<char>'} to 'int' in initialization
   13 |     int a2 = istringstream(a);
      |              ^~~~~~~~~~~~~~~~
      |              |
      |              std::istringstream {aka std::__cxx11::basic_istringstream<char>}
a.cc:14:14: error: cannot convert 'std::istringstream' {aka 'std::__cxx11::basic_istringstream<char>'} to 'int' in initialization
   14 |     int b2 = istringstream(b);
      |              ^~~~~~~~~~~~~~~~
      |              |
      |              std::istringstream {aka std::__cxx11::basic_istringstream<char>}
Language: C++

#include<bits/stdc++.h>
#inlcude<string>
using namespace std;
string a, b;
int main(){
  cin >> a >> b;
  int asize = a.size();
  int bsize = b.size();
  if(asize > bsize) cout << "GREATER" << endl;
  else if(asize < bsize) cout << "LESS" << endl;
  else if(asize == bsize){
    int a2 = atoi(a);
    int b2 = atoi(b);
    if(a2 > b2) cout << "GREATER" << endl;
    else if(a2 < b2) cout << "LESS" << endl;
    else if(a2 == b2) cout << "EQUAL" << endl; 
  }
}

Compiler output:
a.cc:2:2: error: invalid preprocessing directive #inlcude; did you mean #include?
    2 | #inlcude<string>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:12:19: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'const char*'
   12 |     int a2 = atoi(a);
      |                   ^
      |                   |
      |                   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:105:30: note:   initializing argument 1 of 'int atoi(const char*)'
  105 | extern int atoi (const char *__nptr)
      |                  ~~~~~~~~~~~~^~~~~~
a.cc:13:19: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'const char*'
   13 |     int b2 = atoi(b);
      |                   ^
      |                   |
      |                   std::string {aka std::__cxx11::basic_string<char>}
/usr/include/stdlib.h:105:30: note:   initializing argument 1 of 'int atoi(const char*)'
  105 | extern int atoi (const char *__nptr)
      |                  ~~~~~~~~~~~~^~~~~~
Language: C++

#include<bits/stdc++.h>
#inlcude<string>
using namespace std;
string a, b;
int main(){
  cin >> a >> b;
  int asize = a.size();
  int bsize = b.size();
  if(asize > bsize) cout << "GREATER" << endl;
  else if(asize < bsize) cout << "LESS" << endl;
  else if(asize == bsize){
    int a = atoi(a);
    int b = atoi(b);
    if(a > b) cout << "GREATER" << endl;
    else if(a < b) cout << "LESS" << endl;
    else if(a == b) cout << "EQUAL" << endl; 
  }
}

Compiler output:
a.cc:2:2: error: invalid preprocessing directive #inlcude; did you mean #include?
    2 | #inlcude<string>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:12:18: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
   12 |     int a = atoi(a);
      |                  ^
      |                  |
      |                  int
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:105:30: note:   initializing argument 1 of 'int atoi(const char*)'
  105 | extern int atoi (const char *__nptr)
      |                  ~~~~~~~~~~~~^~~~~~
a.cc:13:18: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
   13 |     int b = atoi(b);
      |                  ^
      |                  |
      |                  int
/usr/include/stdlib.h:105:30: note:   initializing argument 1 of 'int atoi(const char*)'
  105 | extern int atoi (const char *__nptr)
      |                  ~~~~~~~~~~~~^~~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
string a, b;
int main(){
  cin >> a >> b;
  int asize = a.size();
  int bsize = b.size();
  if(asize > bsize) cout << "GREATER" << endl;
  else if(asize < bsize) cout << "LESS" << endl;
  else if(asize == bsize){
    int a = atoi(a);
    int b = atoi(b);
    if(a > b) cout << "GREATER" << endl;
    else if(a < b) cout << "LESS" << endl;
    else if(a == b) cout << "EQUAL" << endl; 
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:18: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
   11 |     int a = atoi(a);
      |                  ^
      |                  |
      |                  int
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:105:30: note:   initializing argument 1 of 'int atoi(const char*)'
  105 | extern int atoi (const char *__nptr)
      |                  ~~~~~~~~~~~~^~~~~~
a.cc:12:18: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
   12 |     int b = atoi(b);
      |                  ^
      |                  |
      |                  int
/usr/include/stdlib.h:105:30: note:   initializing argument 1 of 'int atoi(const char*)'
  105 | extern int atoi (const char *__nptr)
      |                  ~~~~~~~~~~~~^~~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
char a, b;
int main(){
  cin >> a >> b;
  int asize = a.size();
  int bsize = b.size();
  if(asize > bsize) cout << "GREATER" << endl;
  else if(asize < bsize) cout << "LESS" << endl;
  else if(asize == bsize){
    int a = atoi(a);
    int b = atoi(b);
    if(a > b) cout << "GREATER" << endl;
    else if(a < b) cout << "LESS" << endl;
    else if(a == b) cout << "EQUAL" << endl; 
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:17: error: request for member 'size' in 'a', which is of non-class type 'char'
    6 |   int asize = a.size();
      |                 ^~~~
a.cc:7:17: error: request for member 'size' in 'b', which is of non-class type 'char'
    7 |   int bsize = b.size();
      |                 ^~~~
a.cc:11:18: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
   11 |     int a = atoi(a);
      |                  ^
      |                  |
      |                  int
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:105:30: note:   initializing argument 1 of 'int atoi(const char*)'
  105 | extern int atoi (const char *__nptr)
      |                  ~~~~~~~~~~~~^~~~~~
a.cc:12:18: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
   12 |     int b = atoi(b);
      |                  ^
      |                  |
      |                  int
/usr/include/stdlib.h:105:30: note:   initializing argument 1 of 'int atoi(const char*)'
  105 | extern int atoi (const char *__nptr)
      |                  ~~~~~~~~~~~~^~~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int a, b;
int main(){
  cin >> a >> b;
  int asize = a.size();
  int bsize = b.size();
  if(asize > bsize) cout << "GREATER" << endl;
  else if(asize < bsize) cout << "LESS" << endl;
  else if(asize == bsize){
    if(a > b) cout << "GREATER" << endl;
    else if(a < b) cout << "LESS" << endl;
    else if(a == b) cout << "EQUAL" << endl; 
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:17: error: request for member 'size' in 'a', which is of non-class type 'int'
    6 |   int asize = a.size();
      |                 ^~~~
a.cc:7:17: error: request for member 'size' in 'b', which is of non-class type 'int'
    7 |   int bsize = b.size();
      |                 ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int a, b;
int sizea, sizeb;
int main(){
  cin >> a >> b;
  sizea = a.size();
  sizeb = b.size();
  if(sizea > sizeb) cout << "GREATER" << endl;
  else if(sizea < sizeb) cout << "LESS" << endl;
  else if(sizea == sizeb){
    if(a > b) cout << "GREATER" << endl;
    else if(a < b) cout << "LESS" << endl;
    else if(a == b) cout << "EQUAL" << endl; 
  }

Compiler output:
a.cc: In function 'int main()':
a.cc:7:13: error: request for member 'size' in 'a', which is of non-class type 'int'
    7 |   sizea = a.size();
      |             ^~~~
a.cc:8:13: error: request for member 'size' in 'b', which is of non-class type 'int'
    8 |   sizeb = b.size();
      |             ^~~~
a.cc:15:4: error: expected '}' at end of input
   15 |   }
      |    ^
a.cc:5:11: note: to match this '{'
    5 | int main(){
      |           ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:13:5: error: 'else' without a previous 'if'
   13 |     else if(nt > ns)cout << "LESS" << endl; return 0;
      |     ^~~~
a.cc:14:5: error: 'else' without a previous 'if'
   14 |     else{
      |     ^~~~
a.cc:17:13: error: 'else' without a previous 'if'
   17 |             else if(s[i] < t[i]) cout "LESS" << endl; return 0;
      |             ^~~~
a.cc:17:38: error: expected ';' before string constant
   17 |             else if(s[i] < t[i]) cout "LESS" << endl; return 0;
      |                                      ^~~~~~~
      |                                      ;
Language: C++

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

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

#include <bits/stdc++.h>
using namespace std;
int main() {
  strings,t;
  cin>>s>>t;
  if(s.size()>t.size()){
      cout<<"GREATER";
    }
  else if(s.size()<t.size())cout<<"LESS";
  else{
      if(a > b)cout<<"GREATER";
      else if(a < b)cout<<"LESS";
      else cout<<"EQUAL";
	}
  cout<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'strings' was not declared in this scope; did you mean 'stdin'?
    4 |   strings,t;
      |   ^~~~~~~
      |   stdin
a.cc:4:11: error: 't' was not declared in this scope; did you mean 'tm'?
    4 |   strings,t;
      |           ^
      |           tm
a.cc:5:8: error: 's' was not declared in this scope
    5 |   cin>>s>>t;
      |        ^
a.cc:11:10: error: 'a' was not declared in this scope
   11 |       if(a > b)cout<<"GREATER";
      |          ^
a.cc:11:14: error: 'b' was not declared in this scope
   11 |       if(a > b)cout<<"GREATER";
      |              ^
Language: C++

#include<iostream>
#include<cstdio>
#include<vector>
#include<algorithm>
#include<array>

using namespace std;
int main(){
    long long long a,b;
    cin >> a >> b;
    if(a > b)
      cout << "GREATER" << endl;
    else if(b > a)
      cout << "LESS" << endl;
    else
      cout << "EQUAL" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:15: error: 'long long long' is too long for GCC
    9 |     long long long a,b;
      |               ^~~~
Language: C++

#include <iostream>
#include <string>

int main() {
  std::string A, B;
  std::cin >> A >> B;

  int n = A.length();
  int m = B.length();
  if ( n > m ) std::cout << "GREATER" << std::endl;
  else if ( n < m ) std::cout << "LESS" << std::endl;
  else {
    bool flag = false;
    for (int i = 0; i < n; ++i) {
      if ( atoi(a[i]) > atoi(b[i]) ) {
        std::cout << "GREATER" << std::endl;
        flag = true;
        break;
      }
      else if ( atoi(a[i]) < atoi(b[i]) ) {
        std::cout << "LESS" << std::endl;
        flag = true;
        break;
      }
    }
    if ( !flag ) std::cout << "EQUAL" << std::endl;
  }

  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:17: error: 'a' was not declared in this scope
   15 |       if ( atoi(a[i]) > atoi(b[i]) ) {
      |                 ^
a.cc:15:30: error: 'b' was not declared in this scope
   15 |       if ( atoi(a[i]) > atoi(b[i]) ) {
      |                              ^
Language: C++

#include <iostream>
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(int i=0;i<a.size();i++){
   		if(a[i]>b[i]){cout<<"GREATHER"<<endl;return 0;}
   		if(a[i]<b[i]){cout<<"LESS"<<endl;return 0;}
   		if(i==a.size-1){cout<<"EQARL"<<endl;return 0;}
   		}
   }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:25: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]' (did you forget the '()' ?)
   12 |                 if(i==a.size-1){cout<<"EQARL"<<endl;return 0;}
      |                       ~~^~~~
      |                             ()
Language: C++

#include <iostream>
using namespace std;

int main() {
    long A,B;
    cin>>>>B;
    if(A>B){
        cout<<"CGREATER"<<endl;
    }else if(A<B){
        cout<<"LESS"<<endl;
    }else{
        cout<<"EQUAL"<<endl;
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:10: error: expected primary-expression before '>>' token
    6 |     cin>>>>B;
      |          ^~
Language: C++

#include <iostream>
using namespace std;

int main() {
    long A,B;
    cin>>>>B;
    if(>bB){
        cout<<"CGREATER"<<endl;
    }else if(A>B){
        cout<<"LESS"<<endl;
    }else{
        cout<<"EQUAL"<<endl;
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:10: error: expected primary-expression before '>>' token
    6 |     cin>>>>B;
      |          ^~
a.cc:7:8: error: expected primary-expression before '>' token
    7 |     if(>bB){
      |        ^
a.cc:7:9: error: 'bB' was not declared in this scope; did you mean 'B'?
    7 |     if(>bB){
      |         ^~
      |         B
Language: C

#include <stdio.h>
int main()
{
  int a;
  int b;
  scanf ("%d %d",&a,&b);
  if(a>b)
  {
    printf("%c\n" "GREATER");
  }
  elseif(a<b)
  {
    printf("%c\n" "LESS");
  }
  else
  {
    printf("%c\n" "EQUAL");
  }
}
    

Compiler output:
main.c: In function 'main':
main.c:11:3: error: implicit declaration of function 'elseif' [-Wimplicit-function-declaration]
   11 |   elseif(a<b)
      |   ^~~~~~
main.c:11:14: error: expected ';' before '{' token
   11 |   elseif(a<b)
      |              ^
      |              ;
   12 |   {
      |   ~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:14:34: error: invalid type argument of unary '*' (have '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'})
   14 |                         if (atoi(*a[i]) < atoi(*b[i])) {
a.cc:14:48: error: invalid type argument of unary '*' (have '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'})
   14 |                         if (atoi(*a[i]) < atoi(*b[i])) {
a.cc:17:41: error: invalid type argument of unary '*' (have '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'})
   17 |                         } else if (atoi(*a[i]) > atoi(*b[i])) {
a.cc:17:55: error: invalid type argument of unary '*' (have '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'})
   17 |                         } else if (atoi(*a[i]) > atoi(*b[i])) {
Language: C++

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

int main(){
  int i,array[200001]={},b,c;
  string a,b;
  cin>>a>>b;
  if(a.size()<b.size()){
    cout<<"LESS"<<endl;
    return 0;
  }else if(a.size()>b.size()){
    cout<<"GREATER"<<endl;
  }else{
    for(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;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:12: error: conflicting declaration 'std::string b'
    6 |   string a,b;
      |            ^
a.cc:5:26: note: previous declaration as 'int b'
    5 |   int i,array[200001]={},b,c;
      |                          ^
a.cc:8:17: error: request for member 'size' in 'b', which is of non-class type 'int'
    8 |   if(a.size()<b.size()){
      |                 ^~~~
a.cc:11:23: error: request for member 'size' in 'b', which is of non-class type 'int'
   11 |   }else if(a.size()>b.size()){
      |                       ^~~~
a.cc:15:16: error: invalid types 'int[int]' for array subscript
   15 |       if(a[i]<b[i]){
      |                ^
a.cc:18:22: error: invalid types 'int[int]' for array subscript
   18 |       }else if(a[i]>b[i]){
      |                      ^
Language: Java

import java.util.*;

public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        long a = sc.nextLong();
        long b = sc.nextLong());
        if(a == b){
            System.out.println("EQUAL");
        }else if(a < b){
            System.out.println("LESS");
        }else{
            System.out.println("GREATER");
        }
    }
}

Compiler output:
Main.java:7: error: ';' expected
        long b = sc.nextLong());
                              ^
1 error
Language: C

#include <string>
#include <cmath>

int main()
{
  std::string s, t;
  std::cin >> s >> t;

  int ss = s.size();
  int ts = t.size();

  int len = std::abs( ss - ts );
  if( ss > ts ) {
    for( int i = 0; i < len; i++ ) {
      t = "0" + t;
    }
  }
  else {
    for( int i = 0; i < len; i++ ) {
      s = "0" + s;
    }
  }

  std::string a;
  if( s > t ) {
    a = "GREATER";
  }
  if( s < t ) {
    a = "LESS";
  }
  if( s == t ) {
    a = "EQUAL";
  }

  std::cout << a << std::endl;

  return 0;
}


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