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

import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.InputMismatchException;
import java.io.IOException;
import java.io.InputStream;

/**
 * Built using CHelper plug-in
 * Actual solution is at the top
 *
 * @author Ashish Karel rasensuriken
 */
public class Main {
    public static void main(String[] args) {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        FastReader in = new FastReader(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        TaskA solver = new TaskA();
        solver.solve(1, in, out);
        out.close();
    }

    static class TaskA {
        public void solve(int testNumber, FastReader in, PrintWriter out) {
            String s1 = = in.nextString();
            String s2 = in.nextString();
            String s3 = in.nextString();
            String ans = "" + s1.charAt(0) + s2.charAt(0) + s3.charAt(0);
            out.println(ans.toUpperCase());
        }

    }

    static class FastReader {
        private InputStream stream;
        private byte[] buf = new byte[1024];
        private int curChar;
        private int pnumChars;
        private FastReader.SpaceCharFilter filter;

        public FastReader(InputStream stream) {
            this.stream = stream;
        }

        public int read() {
            if (pnumChars == -1) {
                throw new InputMismatchException();
            }
            if (curChar >= pnumChars) {
                curChar = 0;
                try {
                    pnumChars = stream.read(buf);
                } catch (IOException e) {
                    throw new InputMismatchException();
                }
                if (pnumChars <= 0) {
                    return -1;
                }
            }
            return buf[curChar++];
        }

        public String nextString() {
            int c = read();
            while (isSpaceChar(c))
                c = read();
            StringBuilder res = new StringBuilder();
            do {
                res.appendCodePoint(c);
                c = read();
            } while (!isSpaceChar(c));
            return res.toString();
        }

        public boolean isSpaceChar(int c) {
            if (filter != null) {
                return filter.isSpaceChar(c);
            }
            return isWhitespace(c);
        }

        public static boolean isWhitespace(int c) {
            return c == ' ' || c == '\n' || c == '\r' || c == '\t' || c == -1;
        }

        public interface SpaceCharFilter {
            public boolean isSpaceChar(int ch);

        }

    }
}



Compiler output:
Main.java:28: error: illegal start of expression
            String s1 = = in.nextString();
                        ^
1 error
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;
  else if(a.size()<b.size())
    cout<<"LESS"<<endl;
  else if(a==b)
    cout<<"EQUAL"<<endl;
  else{
    for(int i=0;i<a.size();i++){
      ll x=stoi(a[i]),y=stoi(b[i]);
      if(x>y){
        cout<<"GREATER"<<endl;
        break;
      }
      else if(x<y){
        cout<<"LESS"<<endl;
        break;
      }
    }
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:7: error: 'll' was not declared in this scope
   14 |       ll x=stoi(a[i]),y=stoi(b[i]);
      |       ^~
a.cc:15:10: error: 'x' was not declared in this scope
   15 |       if(x>y){
      |          ^
a.cc:15:12: error: 'y' was not declared in this scope
   15 |       if(x>y){
      |            ^
Language: C++

#include <bits/stdc++.h>

using namespace std;

#define endl '\n'
#define Opy ios_base::sync_with_stdio(false),cin.tie(0),cout.tie(0)

typedef long long ll;

int main()
{
    //Opy;

/*-------------------------------------------------
#ifndef ONLINE_JUDGE
    freopen("input.txt", "r", stdin);
    freopen("output.txt", "w", stdout);
#endif
-------------------------------------------------*/
    string A, B;

    cin>> A>> B;

    if(A.size() > B.size()) cout<< "GREATER\n";

    else if(A.size() > B.size()) cout<< "LESS\n";

    else
    {
        if(A > B) cout<< "GREATER\n";

        else if(A < B) cout<< "LESS\n";

        else cout<< "EQUAL\n";


    return 0;
}

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

#include <bits/stdc++.h>
#defint int long long
using namespace std;
int main() {
  int A, B;
  cin >> A >> B;
  if (A > B) {cout << "GREATER" << endl;}
  else if (A < B) {cout << "LESS" << endl;}
  else {cout << "EQUAL" << endl;}
}

Compiler output:
a.cc:2:2: error: invalid preprocessing directive #defint; did you mean #define?
    2 | #defint int long long
      |  ^~~~~~
      |  define
Language: C++

#include <bits/stdc++.h>
#define rep(i,N) for (int i = 0; i < (N); ++i)
#define all(v) v.begin(), v.end()
using namespace std;
using ll = long long;
using P = pair<int, int>;
const int inf{int(1e9)};
int main(void){
  string A, B;
  cin >> A >> B;

  if (A.length() > B.length()){
    cout << "GREATER" << endl;
  }else if(A.length() < B.length()){
    cout << "LESS" << endl
  }else{
    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:15:27: error: expected ';' before '}' token
   15 |     cout << "LESS" << endl
      |                           ^
      |                           ;
   16 |   }else{
      |   ~
Language: C++

int main() {
	string A, B;
	cin >> A >> B;
	
	if (A.size()> B.size())
	{
		cout << "GREATER" << endl;
	}
	else if (A.size() < B.size()) {
		cout << "LESS" << endl;
	}
	else {
		rep(i, A.size()) {
			if (A.at(i) > B.at(i))
			{
				cout << "GREATER" << endl;
				return 0;
			}
			else if (A.at(i) < B.at(i)) {
				cout << "LESS" << endl;
				return 0;
			}
			else {
				continue;
			}
		}
		cout << "EQUAL" << endl;
	}
		return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:2:9: error: 'string' was not declared in this scope
    2 |         string A, B;
      |         ^~~~~~
a.cc:3:9: error: 'cin' was not declared in this scope
    3 |         cin >> A >> B;
      |         ^~~
a.cc:3:16: error: 'A' was not declared in this scope
    3 |         cin >> A >> B;
      |                ^
a.cc:3:21: error: 'B' was not declared in this scope
    3 |         cin >> A >> B;
      |                     ^
a.cc:7:17: error: 'cout' was not declared in this scope
    7 |                 cout << "GREATER" << endl;
      |                 ^~~~
a.cc:7:38: error: 'endl' was not declared in this scope
    7 |                 cout << "GREATER" << endl;
      |                                      ^~~~
a.cc:10:17: error: 'cout' was not declared in this scope
   10 |                 cout << "LESS" << endl;
      |                 ^~~~
a.cc:10:35: error: 'endl' was not declared in this scope
   10 |                 cout << "LESS" << endl;
      |                                   ^~~~
a.cc:13:21: error: 'i' was not declared in this scope
   13 |                 rep(i, A.size()) {
      |                     ^
a.cc:13:17: error: 'rep' was not declared in this scope
   13 |                 rep(i, A.size()) {
      |                 ^~~
a.cc:27:17: error: 'cout' was not declared in this scope
   27 |                 cout << "EQUAL" << endl;
      |                 ^~~~
a.cc:27:36: error: 'endl' was not declared in this scope
   27 |                 cout << "EQUAL" << endl;
      |                                    ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
using ll =long long;
#define all(v) v.begin(),v.end()
 
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;
  }
  
  
  for(ll i=0;i<S.size();i++) {
if(S[i]>B[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:19:16: error: 'S' was not declared in this scope
   19 |   for(ll i=0;i<S.size();i++) {
      |                ^
a.cc:24:18: error: 'T' was not declared in this scope
   24 |     else if(S[i]<T[i]) {
      |                  ^
Language: C++

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

#define inf 1072114514
#define llinf 4154118101919364364
#define mod 1000000007
#define pi 3.1415926535897932384


int round(int a,int b){if((a%b)*2 >= b){return (a/b)+1;}return a/b;} 
int gcd(int a,int b){int c;while(b!=0){c=a%b;a=b;b=c;}return a;}    //最大公約数
int lcm(int a,int b){int c=gcd(a,b);a/=c;return a*b;}     //最小公倍数
int nCr(int a,int b){int i,r=1;for(i=1;i<=b;i++){r*=(a+1-i);r/=i;}return r;} //コンビネーション
int nHr(int a,int b){return nCr(a+b-1,b);}       // 重複組み合わせ
int fact(int a){int i,r=1;for(i=1;i<=a;i++){r*=i;}return r;}  //階乗
int pow(int a,int b){int i,r=1;for(i=1;i<=b;i++){r*=a;}return r;} // a~bまでの階乗
int dsum(int x){int r=0;while(x){r+=(x%10);x/=10;}return r;}   //数字の各位の和
int dsumb(int x,int b){int r=0;while(x){r+=(x%b);x/=b;}return r;}  // b進数の各位の和？
int sankaku(int x){return ((1+x)*x)/2;} //三角数 xまでの和

//以下long long ver
long long llmax(long long a,long long b){if(a>b){return a;}return b;}
long long llmin(long long a,long long b){if(a<b){return a;}return b;}
long long llzt(long long a,long long b){return llmax(a,b)-llmin(a,b);}
long long llround(long long a,long long b){if((a%b)*2 >= b){return (a/b)+1;}return a/b;}
long long llceil(long long a,long long b){if(a%b==0){return a/b;}return (a/b)+1;}
long long llgcd(long long a,long long b){long long c;while(b!=0){c=a%b;a=b;b=c;}return a;}
long long lllcm(long long a,long long b){long long c=llgcd(a,b);a/=c;return a*b;}
long long llnCr(long long a,long long b){long long i,r=1;for(i=1;i<=b;i++){r*=(a+1-i);r/=i;}return r;}
long long llnHr(long long a,long long b){return llnCr(a+b-1,b);}
long long llfact(long long a){long long i,r=1;for(i=1;i<=a;i++){r*=i;}return r;}
long long llpow(long long a,long long b){long long i,r=1;for(i=1;i<=b;i++){r*=a;}return r;}
long long lldsum(long long x){long long r=0;while(x){r+=(x%10);x/=10;}return r;}
long long lldsumb(long long x,long long b){long long r=0;while(x){r+=(x%b);x/=b;}return r;}
long long llsankaku(long long x){return ((1+x)*x)/2;}

//double
double dbmax(double a,double b){if(a>b){return a;}return b;}
double dbmin(double a,double b){if(a<b){return a;}return b;}
double dbzt(double a,double b){return dbmax(a,b)-dbmin(a,b);}


typedef pair<int, int> ii;
typedef long long ll;
typedef vector<ll> vll;
typedef pair<ll,ll> pll;
#define forr(i,a,b) for(int i=(a); i<(b); i++)
#define clean(arr,val) memset(arr,val,sizeof(arr))
#define forn(i,n) forr(i,0,n)
#define PB push_back
typedef vector<int> vi;
typedef vector<ii> vii;
typedef vector<pll> vpll;
 
/*CODE START HERE*/
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 {
    cout << ( a<b ? "LESS" : a==B ? "EQUAL" : "GREATER") << endl;
  } 
}

Compiler output:
a.cc: In function 'int main()':
a.cc:64:33: error: 'B' was not declared in this scope
   64 |     cout << ( a<b ? "LESS" : a==B ? "EQUAL" : "GREATER") << endl;
      |                                 ^
Language: C++

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

#define inf 1072114514
#define llinf 4154118101919364364
#define mod 1000000007
#define pi 3.1415926535897932384


int round(int a,int b){if((a%b)*2 >= b){return (a/b)+1;}return a/b;} 
int gcd(int a,int b){int c;while(b!=0){c=a%b;a=b;b=c;}return a;}    //最大公約数
int lcm(int a,int b){int c=gcd(a,b);a/=c;return a*b;}     //最小公倍数
int nCr(int a,int b){int i,r=1;for(i=1;i<=b;i++){r*=(a+1-i);r/=i;}return r;} //コンビネーション
int nHr(int a,int b){return nCr(a+b-1,b);}       // 重複組み合わせ
int fact(int a){int i,r=1;for(i=1;i<=a;i++){r*=i;}return r;}  //階乗
int pow(int a,int b){int i,r=1;for(i=1;i<=b;i++){r*=a;}return r;} // a~bまでの階乗
int dsum(int x){int r=0;while(x){r+=(x%10);x/=10;}return r;}   //数字の各位の和
int dsumb(int x,int b){int r=0;while(x){r+=(x%b);x/=b;}return r;}  // b進数の各位の和？
int sankaku(int x){return ((1+x)*x)/2;} //三角数 xまでの和

//以下long long ver
long long llmax(long long a,long long b){if(a>b){return a;}return b;}
long long llmin(long long a,long long b){if(a<b){return a;}return b;}
long long llzt(long long a,long long b){return llmax(a,b)-llmin(a,b);}
long long llround(long long a,long long b){if((a%b)*2 >= b){return (a/b)+1;}return a/b;}
long long llceil(long long a,long long b){if(a%b==0){return a/b;}return (a/b)+1;}
long long llgcd(long long a,long long b){long long c;while(b!=0){c=a%b;a=b;b=c;}return a;}
long long lllcm(long long a,long long b){long long c=llgcd(a,b);a/=c;return a*b;}
long long llnCr(long long a,long long b){long long i,r=1;for(i=1;i<=b;i++){r*=(a+1-i);r/=i;}return r;}
long long llnHr(long long a,long long b){return llnCr(a+b-1,b);}
long long llfact(long long a){long long i,r=1;for(i=1;i<=a;i++){r*=i;}return r;}
long long llpow(long long a,long long b){long long i,r=1;for(i=1;i<=b;i++){r*=a;}return r;}
long long lldsum(long long x){long long r=0;while(x){r+=(x%10);x/=10;}return r;}
long long lldsumb(long long x,long long b){long long r=0;while(x){r+=(x%b);x/=b;}return r;}
long long llsankaku(long long x){return ((1+x)*x)/2;}

//double
double dbmax(double a,double b){if(a>b){return a;}return b;}
double dbmin(double a,double b){if(a<b){return a;}return b;}
double dbzt(double a,double b){return dbmax(a,b)-dbmin(a,b);}


typedef pair<int, int> ii;
typedef long long ll;
typedef vector<ll> vll;
typedef pair<ll,ll> pll;
#define forr(i,a,b) for(int i=(a); i<(b); i++)
#define clean(arr,val) memset(arr,val,sizeof(arr))
#define forn(i,n) forr(i,0,n)
#define PB push_back
typedef vector<int> vi;
typedef vector<ii> vii;
typedef vector<pll> vpll;
 
/*CODE START HERE*/
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 {
    cout << ( a<b ? "LESS" : a==B ? "EQUAL" : "GREATER") << endl;
  }
  } 
    }

Compiler output:
a.cc: In function 'int main()':
a.cc:64:33: error: 'B' was not declared in this scope
   64 |     cout << ( a<b ? "LESS" : a==B ? "EQUAL" : "GREATER") << endl;
      |                                 ^
a.cc: At global scope:
a.cc:67:5: error: expected declaration before '}' token
   67 |     }
      |     ^
Language: C++

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

int main() {
  string a ,b;
  cin >> a >> b;
  if ( a.size() == b.size()){
  cout << (a>b ?"LESS" : a==b ?"EQUAL" : "GREATER")
    << endl;
  }else if(a.size() > b.size()){
    cout << "GREATER" << endl;
  }else if(a.size() < b.size()){
    cout <<  "LESS"  << ensl;
  }      
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:25: error: 'ensl' was not declared in this scope
   13 |     cout <<  "LESS"  << ensl;
      |                         ^~~~
Language: C++

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

int main() {
  string a ,b;
  cin >> a >> b;
  if ( a.size() == b.size()){
  cout << (a>b ?"LESS" : a==b ?"EQUAL" : "GREATER")
    << endl;
  }else (a.size() > b.size()){
    cout << "GREATER" << endl;
  }else (a.size() < b.size()){
    cout <<  "LESS"  << ensl;
  }      
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:30: error: expected ';' before '{' token
   10 |   }else (a.size() > b.size()){
      |                              ^
      |                              ;
a.cc:12:4: error: 'else' without a previous 'if'
   12 |   }else (a.size() < b.size()){
      |    ^~~~
a.cc:12:30: error: expected ';' before '{' token
   12 |   }else (a.size() < b.size()){
      |                              ^
      |                              ;
Language: C++

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

int main() {
  string a ,b;
  cin >> a >> b;
  if ( a.size() == b.size(){
  cout << (a>b ?"LESS" : a==b ?"EQUAL" : "GREATER")
    << endl;
  }else (a.size() > b.size()){
    cout << "GREATER" << endl;
  }else (a.size() < b.size()){
    cout <<  "LESS"  << ensl;
  }      
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:28: error: expected ')' before '{' token
    7 |   if ( a.size() == b.size(){
      |      ~                     ^
      |                            )
a.cc:15:1: error: expected primary-expression before '}' token
   15 | }
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  string a, b;
  cin >> a >> b;
  
  if (a.size() > b.size())
    cout << "GREATER";
  
  else if (a.size() < b.size())
    cout << "LESS";
  
  else {
    bool fin = false;
    for (int i = 0; i < a.size(); i++) {
      if (a[i] > b[i]) {
        cout << "GREATER";
        fin = true;
        break;
      }
      else if (a[i] < b[i]) {
        cout << "LESS";
        fin = true;
        break;
      }
    }
    if (!fin)
      cout << "EQUAL";
}

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

#include <bits/stdc++.h>
#define rep(i,n) for (int i=0; i<(int)(n); i++)
#define REP(i,m,n) for(ll i=(ll)(m);i<(ll)(n);i++)
using namespace std;
using ll = long long;
using P = pair<int, int>;

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

Compiler output:
a.cc:23:2: error: expected class-name at end of input
   23 | ~
      |  ^
Language: Java

import java.util.Scanner;
public class Mainv {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String a = sc.next();
		String b = sc.next();
		int ans = 0;

		//1がaが大きい、2はｂが大きい、０は同じ
		if(a.length() > b.length()) {
			ans = 1;
		}else if(a.length() < b.length()) {
			ans = 2;
		}else {
			for (int i = 0; i < a.length(); i++) {
				if (a.charAt(i) > b.charAt(i)) {
					ans = 1;
					break;
				}else if (a.charAt(i) < b.charAt(i)) {
					ans = 2;
					break;
				}
			}
		}
		if(ans == 1) {
			System.out.println("GREATER");
		}else if(ans == 2) {
			System.out.println("LESS");
		}else {
			System.out.println("EQUAL");
		}
		sc.close();
	}
}

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

#include <iostream>
using namespace std;
string magnitude(string & x, string & y)
{
  if( x.size() > y.size() )
  	return "GREATER";
  else if( x.size() < y.size() )
    return "LESS";
  else{
    for(int i = 0; i < x.size(); i++)
      if( x[i] > y[i] )
        return "GREATER";
      else ( x[i] < y[i] )
        return "LESS";
    return "EQUAL";
  }
}
    
int main()
{
  	string a, b;
  	cin >> a >> b;
  	cout << magnitude(a,b);
	return 0;
}

Compiler output:
a.cc: In function 'std::string magnitude(std::string&, std::string&)':
a.cc:13:27: error: expected ';' before 'return'
   13 |       else ( x[i] < y[i] )
      |                           ^
      |                           ;
   14 |         return "LESS";
      |         ~~~~~~
Language: C++

#include <iostream>
using namespace std;
string magnitude(string & x, string & y)
{
  if( x.size() > y.size() )
  	return "GREATER";
  else if( x.size() < y.size() )
    return "LESS";
  else{
    for(int i = 0; i < x.size(); i++)
      if( x[i] > y[i] )
        return "GREATER";
      else ( x[i] < y[i] )
        return "LESS";
    return "EQUAL";
}
    
int main()
{
  	string a, b;
  	cin >> a >> b;
  	cout << magnitude(a,b);
	return 0;
}

Compiler output:
a.cc: In function 'std::string magnitude(std::string&, std::string&)':
a.cc:13:27: error: expected ';' before 'return'
   13 |       else ( x[i] < y[i] )
      |                           ^
      |                           ;
   14 |         return "LESS";
      |         ~~~~~~             
a.cc:18:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
   18 | int main()
      |         ^~
a.cc:18:9: note: remove parentheses to default-initialize a variable
   18 | int main()
      |         ^~
      |         --
a.cc:18:9: note: or replace parentheses with braces to value-initialize a variable
a.cc:19:1: error: a function-definition is not allowed here before '{' token
   19 | {
      | ^
a.cc:24:2: error: expected '}' at end of input
   24 | }
      |  ^
a.cc:4:1: note: to match this '{'
    4 | {
      | ^
Language: C++

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


Compiler output:
a.cc:16:19: warning: missing terminating " character
   16 |             cout<<"EQUAL;
      |                   ^
a.cc:16:19: error: missing terminating " character
   16 |             cout<<"EQUAL;
      |                   ^~~~~~~
a.cc: In function 'int main()':
a.cc:17:9: error: expected primary-expression before '}' token
   17 |         }
      |         ^
Language: C++

#include <bits/stdc++.h>
#include <boost/multiprecision/cpp_int.cpp>
#define rep(i,n)for(long long i=0;i<(long long)(n);i++)
#define all(a) a.begin(), a.end()
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
typedef pair<ll, ll> P;
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return true; } return false; }
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return true; } return false; }
 
const ll MOD=1e9+7;
const ll INF=1e18;
const int MAX=510000;
const double pi=acos(-1);
int dx[8] = {1,0,-1,0,1,1,-1,-1};
int dy[8] = {0,1,0,-1,-1,1,1,-1};
// int d[13]={0,31,28,31,30,31,30,31,31,30,31,30,31};

int main(){

  
  boost::multiprecision::cpp_int a,b;
  std:: cin >> a >> b;
  if(a>b) cout << "GREATER" << endl;
  else if(a<b) cout << "LESS" << endl;
  else cout << "EQUAL" << endl;
  return 0;
}


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

#include <bits/stdc++.h>
#include <boost/multiprecision/cpp_int.cpp>
#define rep(i,n)for(long long i=0;i<(long long)(n);i++)
#define all(a) a.begin(), a.end()
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
typedef pair<ll, ll> P;
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return true; } return false; }
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return true; } return false; }
 
const ll MOD=1e9+7;
const ll INF=1e18;
const int MAX=510000;
const double pi=acos(-1);
int dx[8] = {1,0,-1,0,1,1,-1,-1};
int dy[8] = {0,1,0,-1,-1,1,1,-1};
// int d[13]={0,31,28,31,30,31,30,31,31,30,31,30,31};

int main(){
  cin.tie(0);
  ios::sync_with_stdio(false); 
  
  boost::multiprecision::cpp_int a,b;
  cin >> a >> b;
  if(a>b) cout << "GREATER" << endl;
  else if(a<b) cout << "LESS" << endl;
  else cout << "EQUAL" << endl;
  return 0;
}


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

#include <bits/stdc++.h>
#include <boost/multiprecision/cpp_int.cpp>
#define rep(i,n)for(long long i=0;i<(long long)(n);i++)
#define all(a) a.begin(), a.end()
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
typedef pair<ll, ll> P;
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return true; } return false; }
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return true; } return false; }
 
const ll MOD=1e9+7;
const ll INF=1e18;
const int MAX=510000;
const double pi=acos(-1);
int dx[8] = {1,0,-1,0,1,1,-1,-1};
int dy[8] = {0,1,0,-1,-1,1,1,-1};
// int d[13]={0,31,28,31,30,31,30,31,31,30,31,30,31};

int main(){
  cin.tie(0);
  ios::sync_with_stdio(false); 
  
  cpp_int a,b;
  cin >> a >> b;
  if(a>b) cout << "GREATER" << endl;
  else if(a<b) cout << "LESS" << endl;
  else cout << "EQUAL" << endl;
  return 0;
}


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

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

int main() {
  long double A, B;
  cin >> A >> B;
  cout << ((A > B) ? "GREATER" ? (A < B) ? "LESS" : "EQUAL") << "\n";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:60: error: expected ':' before ')' token
    7 |   cout << ((A > B) ? "GREATER" ? (A < B) ? "LESS" : "EQUAL") << "\n";
      |                                                            ^
      |                                                            :
a.cc:7:60: error: expected primary-expression before ')' token
a.cc:7:60: error: expected ':' before ')' token
    7 |   cout << ((A > B) ? "GREATER" ? (A < B) ? "LESS" : "EQUAL") << "\n";
      |                                                            ^
      |                                                            :
a.cc:7:60: error: expected primary-expression before ')' token
Language: C++

#include <bits/stdc++.h>
#include<boost/multiprecision/cpp_int.hpp>

int main(){
    boost::multiprecision::cpp_int::cpp_int A,B;
    std::cin>>A>>B;
    if(A>B)std::cout<<"GREATER";
    else if(A<B)std::cout<<"LESS";
    else std::cout<<"EQUAL";
}


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

#include <bits/stdc++.h>
#include<boost/multiprecision/cpp_int.hpp>

int main(){
    boost::multiprecision::cpp_int::cpp_int A,B;
    std::cin>>A>>B;
    if(A>B)std::cout<<"GREATER";
    else if(A<B)std::cout<<"LESS;
    else std::cout<<"EQUAL";
}


Compiler output:
a.cc:2:9: 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>
using namespace std;
int main(){
string a,b; cin >> a >> b;
  if(a == b)cout << "EQUAL" << enld;
  if(a > b)cout << "GREATER" << endl;
  if(a < b)cout << "LESS" << endl;
}

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

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: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope
    5 |   cin >> a >> b;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | using namespace std;
a.cc:7:5: error: 'cout' was not declared in this scope
    7 |     cout << "GREATER" << endl;
      |     ^~~~
a.cc:7:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:7:26: error: 'endl' was not declared in this scope
    7 |     cout << "GREATER" << endl;
      |                          ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | using namespace std;
a.cc:10:5: error: 'cout' was not declared in this scope
   10 |     cout << "EQUAL" << endl;
      |     ^~~~
a.cc:10:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:10:24: error: 'endl' was not declared in this scope
   10 |     cout << "EQUAL" << endl;
      |                        ^~~~
a.cc:10:24: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
a.cc:13:5: error: 'cout' was not declared in this scope
   13 |     cout << "LESS" << endl;
      |     ^~~~
a.cc:13:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:13:23: error: 'endl' was not declared in this scope
   13 |     cout << "LESS" << endl;
      |                       ^~~~
a.cc:13:23: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: Java

import org.omg.PortableInterceptor.SYSTEM_EXCEPTION;

import java.lang.reflect.Array;
import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String a = sc.next();
        String b = sc.next();
        if (a.length() > b.length()) {
            System.out.println("GREATER");
            return;
        } else if (b.length() > a.length()) {
            System.out.println("LESS");
            return;
        }
        for(int i=0;i<b.length();i++){
            if(a.charAt(i)>b.charAt(i)){
                System.out.println("GREATER");
                return;
            }
            else if(b.charAt(i)>a.charAt(i)){
                System.out.println("LESS");
                return;
            }
        }
        System.out.println("EQUAL");
    }
}


Compiler output:
Main.java:1: error: package org.omg.PortableInterceptor does not exist
import org.omg.PortableInterceptor.SYSTEM_EXCEPTION;
                                  ^
1 error
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;
  }
  else if(A.size()<B.size(){
    cout << "LESS" << endl;
  }
  else 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:10:28: error: expected ')' before '{' token
   10 |   else if(A.size()<B.size(){
      |          ~                 ^
      |                            )
a.cc:22:1: error: expected primary-expression before '}' token
   22 | }
      | ^
Language: C

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

int main(void){
    
    int i;
    char b[101],a[101];
    
    scanf("%s%s",a,b);
    
    if(strlen(a)>strlen(b)){
        printf("GREATER\n");
    }
    else if(strlen(b)>strlen(a)){
        printf("LESS\n\n");
    }
    else if{
        for(i=0;i<strlen(a);i++){
            if(a[i]>b[i]){
                printf("GREATER\n");
                break;
                return 0;
            }
            else if(a[i]<b[i]){
                printf("LESS\n");
                break;
                return 0;
            }
        }
    }
    else{
        printf("EQUAL\n");
        return 0;
    }
}

Compiler output:
main.c: In function 'main':
main.c:17:12: error: expected '(' before '{' token
   17 |     else if{
      |            ^
      |            (
Language: C++

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

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:14: error: 'long long' specified with 'double'
    4 |         long long double a,b;
      |              ^~~~
a.cc:4:14: error: 'long long' specified with 'double'
Language: C++

// Created by ...Lusifer
#include<bits/stdc++.h>
using namespace std;
 
#define pb 		push_back
#define mp 		make_pair
#define prior   priority_queue
#define MOD 	1000000007
#define INF64 	(long long)1e18
#define INF 	(int)1e9
#define PI 		3.1415926535897932384626433832795 
#define ll      long long
#define ld		long double
#define ret     return
#define NUM 	1000001
const int SIZE = 2e5+4;
void fastio(){
	ios_base::sync_with_stdio(false);
	cin.tie(0);
	cout.tie(0);
}

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

	int t=1;
	//cin>>t;
	while(t--){
		solveTest();
 
	}
	return 0;
}

Compiler output:
a.cc: In function 'void solveTest()':
a.cc:41:40: error: expected ';' before '{' token
   41 |                         else(a[i]>b[i]){
      |                                        ^
      |                                        ;
Language: C++

#include<iostream>
int main()
{
    string s1,s2;std::cin>>s1>>s2;
    if(s1.size()>s2.size()) return puts("GREATER")*0;
    else if(s1.size()<s2.size()) return puts("LESSER")*0;
    else for(int i=0;i<s1.size();++i)
         if(s1[i]>s2[i]) return puts("GREATER")*0;
    	 else if(s1[i]<s2[i]) return puts("LESSER")*0;
}
    

Compiler output:
a.cc: In function 'int main()':
a.cc:4:5: error: 'string' was not declared in this scope
    4 |     string s1,s2;std::cin>>s1>>s2;
      |     ^~~~~~
a.cc:4:5: note: suggested alternatives:
In file included from /usr/include/c++/14/iosfwd:41,
                 from /usr/include/c++/14/ios:40,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
In file included from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44:
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:4:28: error: 's1' was not declared in this scope
    4 |     string s1,s2;std::cin>>s1>>s2;
      |                            ^~
a.cc:4:32: error: 's2' was not declared in this scope
    4 |     string s1,s2;std::cin>>s1>>s2;
      |                                ^~
Language: C++

#include <bits/stdc++.h>
#define rep(i, n) for(int i = 0; i < (n); i++)
#define prtd(var, i) cout << fixed << setprecision(i) << var << endl;
#define ll long long
using namespace std;
#define INF 1e18LL

const ll MAX = 1000000000000000000; //1e18

int main(){
    string a, b;
    ll x = 0;
    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{
        rep(i, a.size()){
            if(a[i] > b[i]){
                cout << "GREATER" << endl;
                return 0;
            }else if(a[i] < b[i]){
                cout << "LESS" << endl;
                return 0;
            }
        }
        cout << "EQUAL" << endl;
    }

}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:56: error: expected primary-expression before 'return'
   14 |     if(a.size() > b.size()) cout << "GREATER" << endl, return 0;
      |                                                        ^~~~~~
a.cc:15:58: error: expected primary-expression before 'return'
   15 |     else if(a.size() < b.size()) cout << "LESS" << endl, return 0;
      |                                                          ^~~~~~
Language: C++

#include "bits/stdc++.h"
using namespace std;
typedef long long ll;
#define REP(i, a, b) for(ll i = ll(a); i <= ll(b); i++)
int main()
{
    ll a,b;
    cin>>a>>b;
    if(a>b)
        cout<<"GREATER";
    else(a<b)
        cout<<"LESS";
    else if(a==b)
        cout<<"EQUAL";    
}

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

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

int main(){
    string a,b;
    cin>>a>>b;
    if(a==b){cout<<"EQUAL"<<endl;return 0;}
    rep(i, 0, min(a.size(),b.size()) ){
        int N=a[i]-'0';
        int M=b[i]-'0';
        if(N>M)
        {cout<<"GREATER"<<endl;return 0;}
        else if(N<M)
        {cout<<"LESS"<<endl;return 0;}
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: 'i' was not declared in this scope
    9 |     rep(i, 0, min(a.size(),b.size()) ){
      |         ^
a.cc:9:5: error: 'rep' was not declared in this scope
    9 |     rep(i, 0, min(a.size(),b.size()) ){
      |     ^~~
Language: C++

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


#define ll long long int
#define vll vector<ll>
#define vllv vector<vector<ll>> 
#define sz size()
#define pb push_back
#define ff first
#define ss second
#define all(v) v.begin(),v.end()
#define allr(v) v.rbegin(),v.rend()
#define fast ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0)

ll ceil1(ll n,ll m){if(n%m==0){return n/m;}return n/m +1;}
vll factor(ll n){
    vll ans;
    if(n>0)ans.pb(1);if(n==2)ans.pb(2);
    for(ll i=2;i*i<=n;i++){if(n%i==0){ans.pb(i);if(n/i!=i)ans.pb(n/i);}}if(n>2)ans.pb(n);
    return ans;
}
ll fact(ll n){
	
    ll res = 1; 
    for (ll i = 2; i <= n; i++) 
        res = res * i; 
    return res; 
} 
  
int nCr(ll n, ll r) 
{ 
    return fact(n) / (fact(r) * fact(n - r)); 
} 
  
void dfs(vllv &v,ll k,vll &par,vll &dis,ll p)
{
 
    par[k]=p;
    dis[k]=dis[p]+1;
    for(ll i=0;i<v[k].sz;i++){
        if(v[k][i]!=p){
            dfs(v,v[k][i],par,dis,k);
        }
    }
}
bool sortbysec(const pair<string,int> &a,const pair<string,int> &b){return (a.second<b.second);} 


ll ston(string s) 
{ 
    stringstream geek(s); 
    ll x = 0; 
    geek >> x; 
    
  
    return x; 
}
ll pow2(ll n,ll k){ll ans=1;
    while(k>0){
        if(k%2==1)ans=ans*n;n=n*n;k/=2;
    }return ans;}
bool prime(int n){
    int i,j;
    for(i=2;i<=sqrt(n);i++){
        if(n%i==0){
            return false;
        }
    }
    return true;
}
bool bserch(vector<string> a, string s){
	
	ll l=0,r=a.sz-1,mid;
	while(l<=r){
		mid=(l+r)/2;
		if(a[mid]==s)return true;
		if(a[mid]<s){
			l=mid+1;
		}else{
			r=mid-1;
		}
	}
	return false;
}

bool sortcol( const vector<int>& v1, 
               const vector<int>& v2 ) { 
 return v1[0] < v2[0]; 
} 

 ll degit(ll n)
 {
 	ll t=0;
 	while(n>0)
 	{
 		t++;
 		n/=10; 	}
 		return t;
 }
 

void solve()
{
	string s,t;
	cin>>s>>t;
	ll a=s.sz,b=b.sz;
	// ll a,b;
	// cin>>a>>b;
	if(a>b)
		cout<<"GREATER";
	else if(a<b)
		cout<<"LESS";
	else
	{
		for(ll i=0;i<a;i++)
		{
			if(s[i]>t[i])
			{
				cout<<"GREATER";
				return;
			}	
			else if(s[i]<t[i])
			{
				cout<<"LESS";
				return;
			}
			
		}
		cout<<"EQUAL";
	}
	
	return;	
}
	

int main()
{
	fast;
    ll q;
    q=1;
    // cin>>q;
    while(q--)
    {
        solve();
    }
    return 0;
}

Compiler output:
a.cc: In function 'void solve()':
a.cc:9:12: error: request for member 'size' in 'b', which is of non-class type 'long long int'
    9 | #define sz size()
      |            ^~~~
a.cc:108:23: note: in expansion of macro 'sz'
  108 |         ll a=s.sz,b=b.sz;
      |                       ^~
Language: Java

import java.util.*;

public class Main{
	
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
  	char[] a=sc.next().toCharArray(),b=sc.next().toCharArray();
    int f=0;
    if(a.length>b.length){
      System.out.println("GREATER");
    }else if(a.length<b.length){
      System.out.println("LESS");
    }else{
      for(int i=0;i<a.length;i++){
        if(Integer.parseInt(a[i])>Integer.parseInt(b[i])){
          System.out.println("GREATER");
          f++;
          break;
        }else if(Integer.parseInt(a[i])<Integer.parseInt(b[i])){
          System.out.println("LESS");
          f++;
          break;
        }else{}
      }
      if(f==0){
        System.out.println("EQUAL");
      }
    }
  }
}


Compiler output:
Main.java:15: error: incompatible types: char cannot be converted to String
        if(Integer.parseInt(a[i])>Integer.parseInt(b[i])){
                             ^
Main.java:15: error: incompatible types: char cannot be converted to String
        if(Integer.parseInt(a[i])>Integer.parseInt(b[i])){
                                                    ^
Main.java:19: error: incompatible types: char cannot be converted to String
        }else if(Integer.parseInt(a[i])<Integer.parseInt(b[i])){
                                   ^
Main.java:19: error: incompatible types: char cannot be converted to String
        }else if(Integer.parseInt(a[i])<Integer.parseInt(b[i])){
                                                          ^
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
4 errors
Language: C++

  string a, b;
  cin >> a >> b;

  if(a.size()<b.size()){
    prt("LESS");
    return 0;
  } else if(a.size()>b.size()){
    prt("GREATER");
    return 0;
  }

  rep(i,a.size()){
    if(a[i]<b[i]){
      prt("LESS");
      return 0;
    } else if(a[i]>b[i]){
      prt("GREATER");
      return 0;
    }
  }

  prt("EQUAL");

Compiler output:
a.cc:1:3: error: 'string' does not name a type
    1 |   string a, b;
      |   ^~~~~~
a.cc:2:3: error: 'cin' does not name a type
    2 |   cin >> a >> b;
      |   ^~~
a.cc:4:3: error: expected unqualified-id before 'if'
    4 |   if(a.size()<b.size()){
      |   ^~
a.cc:7:5: error: expected unqualified-id before 'else'
    7 |   } else if(a.size()>b.size()){
      |     ^~~~
a.cc:12:6: error: expected constructor, destructor, or type conversion before '(' token
   12 |   rep(i,a.size()){
      |      ^
a.cc:22:6: error: expected constructor, destructor, or type conversion before '(' token
   22 |   prt("EQUAL");
      |      ^
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;
  else if (A.size()<B.size()) cout << "LESS" << endl;
  else {
      for (int i=0; i<A.size(); i++) {
          if (atoi(A.at(i))>atoi(B.at(i))) {
              cout << "GREATER" << endl;break;
          }
          else if (atoi(A.at(i))<atoi(B.at(i))) {
              cout << "LESS" << endl;break;
          }
          if (i==A.size()-1) cout << "EQUAL" << endl;
      }
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:24: error: invalid conversion from '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} to 'const char*' [-fpermissive]
   11 |           if (atoi(A.at(i))>atoi(B.at(i))) {
      |                    ~~~~^~~
      |                        |
      |                        __gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type {aka 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:11:38: error: invalid conversion from '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} to 'const char*' [-fpermissive]
   11 |           if (atoi(A.at(i))>atoi(B.at(i))) {
      |                                  ~~~~^~~
      |                                      |
      |                                      __gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type {aka char}
/usr/include/stdlib.h:105:30: note:   initializing argument 1 of 'int atoi(const char*)'
  105 | extern int atoi (const char *__nptr)
      |                  ~~~~~~~~~~~~^~~~~~
a.cc:14:29: error: invalid conversion from '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} to 'const char*' [-fpermissive]
   14 |           else if (atoi(A.at(i))<atoi(B.at(i))) {
      |                         ~~~~^~~
      |                             |
      |                             __gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type {aka char}
/usr/include/stdlib.h:105:30: note:   initializing argument 1 of 'int atoi(const char*)'
  105 | extern int atoi (const char *__nptr)
      |                  ~~~~~~~~~~~~^~~~~~
a.cc:14:43: error: invalid conversion from '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} to 'const char*' [-fpermissive]
   14 |           else if (atoi(A.at(i))<atoi(B.at(i))) {
      |                                       ~~~~^~~
      |                                           |
      |                                           __gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type {aka 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>
#define rep(i,n) for (int i=0; i<(n); ++i)
#define rrep(i,n) for(int i=1; i<=(n); ++i)
#define drep(i,n) for(int i=(n)-1; i>=0; --i)
#define srep(i,s,t) for (int i=s; i<t; ++i)
#define pb push_back
using namespace std;
using P = pair<int,int>;
typedef long long ll;
typedef vector<int> vi;
typedef vector<vi> vvi;
typedef vector<ll> vl;
typedef tuple<int,int,int> T;
typedef vector<P> vp;
typedef vector<T> vt;

int main(void){
  int A, B;
  cin >> A >> B;
  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:25:28: error: expected ';' before '}' token
   25 |     cout << "EQUAL" << endl
      |                            ^
      |                            ;
   26 |   }
      |   ~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:16:16: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
   16 |         return "EQUAL";
      |                ^~~~~~~
      |                |
      |                const char*
Language: Java

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

Compiler output:
Main.java:2: error: '{' expected
public class Main() {
                 ^
1 error