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

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
int ctoi(const char c) {
    if ('0' <= c && c <= '9') return (c - '0');
    return -1;
}
vector<int> input(int n) {
    vector<int> vec(n);
    for (int i = 0; i < n; i++) {
        cin >> vec.at(i);
    }
    return vec;
}
void output(vector<int> vec) {
    for (int i = 0; i < vec.size(); i++) {
        cout << vec[i] << " ";
    }
    return;
}
vector<vector<int>> input(int n, int m) {
    vector<vector<int>> table(n, vector<int>(m));
    for (int i = 0; i < n; i++) {
        for (int j = 0; j < m; j++) {
            cin >> table. at(i).at(j);
        }
    }
    return table;
}
void output(vector<vector<int>> table) {
    for (int i = 0; i < table.size(); i++) {
        for (int j = 0; j < table.at(0).size(); j++) {
            cout << table.at(i).at(j) << " ";
        }
        cout << endl;
    }
}
long long perm(int n, int r) {
    if (n < r) {
        cout << "error" << endl;
        return 0;
    }
    long long perm = 1;
    for (int i = n; i > n - r; i--) {
        perm *= i;
    }
    return perm;
}
long long comb(int n, int r) {
    if (n < r) {
        cout << "error" << endl;
        return 0;
    }
    long long comb = perm(n,r);
    for (int i = r; i > 0; i--) {
        comb /= i;
    }
    return comb;
}
long long homo(int n, int r) {
    return comb(n + r - 1, n - 1);
}
long long fact(int n) {
    long long fact = 1;
    for (int i = n; i > 0; i--) {
        fact *= i;
    }
    return fact;
}
int gcd(int a, int b)
{
    if (a % b == 0)
    {
        return(b);
    }
    else
    {
        return(gcd(b, a % b));
    }
}
int lcm(int a, int b) {
    return a * b / gcd(a, b);
}
int main() {
  string s1,s2;
  cin >> s1 >> s2;
  if(s1.size()>s2.size()){
    cout << "GREATER" << endl;
    return 0;
  }
  else if(s1.size()<s2.size()){
    cout << "LESS" << endl;
    return 0;
  }else{
    if(si>s2){
      cout << "GREATER" << endl;
    }
    else if(s1<s2){
      cout << "LESS" << endl;
    }else{
      cout << "EQUAL" << endl;
    }
  }
  
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:95:8: error: 'si' was not declared in this scope; did you mean 's2'?
   95 |     if(si>s2){
      |        ^~
      |        s2
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  char s[200],t[200];
  cin >> s >> t;
  if(strlen(s)<strlen(t))cout << "LESS";
  else if(strlen(s)>strlen(t))cout << "GREATER";
  else if(strcmp(s,t)<0)cout << "LESS";
  else if(strcmp(t,s)<0)cout << "GREATER";
  else cout << "EQUAL";
     /*#include<bits/stdc++.h>
using namespace std;
int main(){
  int a,b,c;
  cin >> a >> b >> c;
  int k;
  cin >> k;
  if(a>=b&&a>=c)a=a*pow(2,k);
  if(b>=a&&b>=c)b=b*pow(2,k);
  if(c>=b&&c>=a)c=c*pow(2*k);
  cout << a+b+c;
}

}

Compiler output:
a.cc:11:6: error: unterminated comment
   11 |      /*#include<bits/stdc++.h>
      |      ^
a.cc: In function 'int main()':
a.cc:10:24: error: expected '}' at end of input
   10 |   else cout << "EQUAL";
      |                        ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define INF 1e9
#define PI 3.14159265359
#define MOD 1000000007
#define ALL(v) v.begin(),v.end()
#define ALLR(v) v.rbegin(),v.rend()
typedef long long ll;
const int dx[4] = {1,0,-1,0};
const int dy[4] = {0,1,0,-1};
//isPrime
//modpow modinv
//getDigit
int main() {
  cout << fixed << setprecision(10);
  string 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:22:3: warning: capture of variable 'std::cout' with non-automatic storage duration
   22 |   cout << "EQUAL" << endl;
      |   ^~~~
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:63:18: note: 'std::ostream std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:22:7: error: expected ',' before '<<' token
   22 |   cout << "EQUAL" << endl;
      |       ^~~
      |       ,
a.cc:22:8: error: expected identifier before '<<' token
   22 |   cout << "EQUAL" << endl;
      |        ^~
a.cc:22:26: error: expected ']' before ';' token
   22 |   cout << "EQUAL" << endl;
      |                          ^
      |                          ]
a.cc: In lambda function:
a.cc:22:26: error: expected '{' before ';' token
a.cc: In function 'int main()':
a.cc:23:3: error: expected primary-expression before ']' token
   23 |   ]else{
      |   ^
Language: C

#include<stdio.h>
int main()
{
	unsinged long long int64 A,B;
	scanf("%llu",&A);
	scanf("%llu",&B);
	if(A>B)
	printf("GREATER\n");
	else if(A<B)
	printf("LESS\n");
	else 
	printf("EQUAL\n");
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:9: error: 'unsinged' undeclared (first use in this function)
    4 |         unsinged long long int64 A,B;
      |         ^~~~~~~~
main.c:4:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:4:17: error: expected ';' before 'long'
    4 |         unsinged long long int64 A,B;
      |                 ^~~~~
      |                 ;
main.c:5:23: error: 'A' undeclared (first use in this function)
    5 |         scanf("%llu",&A);
      |                       ^
main.c:6:23: error: 'B' undeclared (first use in this function)
    6 |         scanf("%llu",&B);
      |                       ^
Language: C

#include<stdio.h>
#include<string.h>
int main ()
{
    string A,B;
    scanf("%s%s",A,B);
    if (strlen(A)>strlen(B))
    printf("GREATER");
    
    else if (strlen(A)>strlen(B))
    printf("LESS");
    
    else{
	
	if (a>b)
	printf("GREATER");
	
	else if (a<b)
	printf("LESS");
	
	else
	printf("EQUAL");
}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:5: error: unknown type name 'string'; did you mean 'stdin'?
    5 |     string A,B;
      |     ^~~~~~
      |     stdin
main.c:7:16: error: passing argument 1 of 'strlen' makes pointer from integer without a cast [-Wint-conversion]
    7 |     if (strlen(A)>strlen(B))
      |                ^
      |                |
      |                int
In file included from main.c:2:
/usr/include/string.h:407:35: note: expected 'const char *' but argument is of type 'int'
  407 | extern size_t strlen (const char *__s)
      |                       ~~~~~~~~~~~~^~~
main.c:7:26: error: passing argument 1 of 'strlen' makes pointer from integer without a cast [-Wint-conversion]
    7 |     if (strlen(A)>strlen(B))
      |                          ^
      |                          |
      |                          int
/usr/include/string.h:407:35: note: expected 'const char *' but argument is of type 'int'
  407 | extern size_t strlen (const char *__s)
      |                       ~~~~~~~~~~~~^~~
main.c:10:21: error: passing argument 1 of 'strlen' makes pointer from integer without a cast [-Wint-conversion]
   10 |     else if (strlen(A)>strlen(B))
      |                     ^
      |                     |
      |                     int
/usr/include/string.h:407:35: note: expected 'const char *' but argument is of type 'int'
  407 | extern size_t strlen (const char *__s)
      |                       ~~~~~~~~~~~~^~~
main.c:10:31: error: passing argument 1 of 'strlen' makes pointer from integer without a cast [-Wint-conversion]
   10 |     else if (strlen(A)>strlen(B))
      |                               ^
      |                               |
      |                               int
/usr/include/string.h:407:35: note: expected 'const char *' but argument is of type 'int'
  407 | extern size_t strlen (const char *__s)
      |                       ~~~~~~~~~~~~^~~
main.c:15:13: error: 'a' undeclared (first use in this function)
   15 |         if (a>b)
      |             ^
main.c:15:13: note: each undeclared identifier is reported only once for each function it appears in
main.c:15:15: error: 'b' undeclared (first use in this function)
   15 |         if (a>b)
      |               ^
Language: C

#include<stdio.h>
int main()
{
	__int64 A,B;
	scanf("%i64d",&A);
	scanf("%i64d",&B);
	if(A>B)
	printf("GREATER\n");
	else if(A<B)
	printf("LESS\n");
	else 
	printf("EQUAL\n");
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:9: error: unknown type name '__int64'; did you mean '__int64_t'?
    4 |         __int64 A,B;
      |         ^~~~~~~
      |         __int64_t
Language: C

#include<stdio.h>
int main()
{
	__int64 A,B;
	scanf("%l64d",&A);
	scanf("%l64d",&B);
	if(A>B)
	printf("GREATER\n");
	else if(A<B)
	printf("LESS\n");
	else 
	printf("EQUAL\n");
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:9: error: unknown type name '__int64'; did you mean '__int64_t'?
    4 |         __int64 A,B;
      |         ^~~~~~~
      |         __int64_t
Language: C

#include<stdio.h>
int main()
{
	__int64 A,B;
	scanf("%164d",&A);
	scanf("%164d",&B);
	if(A>B)
	printf("GREATER\n");
	else if(A<B)
	printf("LESS\n");
	else 
	printf("EQUAL\n");
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:9: error: unknown type name '__int64'; did you mean '__int64_t'?
    4 |         __int64 A,B;
      |         ^~~~~~~
      |         __int64_t
Language: C++

int main(void){
    // Your code here!
    char num[2][102];
    int cnt[2] = {};
    
    scanf("%101s%101s",num[0],num[1]);
    
    for(int i = 0; i < 2; i++){
        for(int j = 0; num[i][j] != '\0'; j++){
            cnt[i]++;
        }
    }
    
    if(strcmp(num[0],num[1]) == 0){
        printf("EQUAL\n");
    }
    else if(cnt[0] > cnt[1]){
        printf("GREATER\n");
    }
    else if(cnt[0] < cnt[1]){
        printf("LESS\n");
    }
    else{
        for(int i = 1; i < cnt[0]; i++){
            if(num[0][i] > num[1][i]){
                printf("GREATER\n");
                break;
            }
            else if(num[0][i] < num[1][i]){
                printf("LESS\n");
                break;
            }
        }
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: 'scanf' was not declared in this scope
    6 |     scanf("%101s%101s",num[0],num[1]);
      |     ^~~~~
a.cc:14:8: error: 'strcmp' was not declared in this scope
   14 |     if(strcmp(num[0],num[1]) == 0){
      |        ^~~~~~
a.cc:1:1: note: 'strcmp' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
  +++ |+#include <cstring>
    1 | int main(void){
a.cc:15:9: error: 'printf' was not declared in this scope
   15 |         printf("EQUAL\n");
      |         ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main(void){
a.cc:18:9: error: 'printf' was not declared in this scope
   18 |         printf("GREATER\n");
      |         ^~~~~~
a.cc:18:9: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
a.cc:21:9: error: 'printf' was not declared in this scope
   21 |         printf("LESS\n");
      |         ^~~~~~
a.cc:21:9: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
a.cc:26:17: error: 'printf' was not declared in this scope
   26 |                 printf("GREATER\n");
      |                 ^~~~~~
a.cc:26:17: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
a.cc:30:17: error: 'printf' was not declared in this scope
   30 |                 printf("LESS\n");
      |                 ^~~~~~
a.cc:30:17: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:5: error: 'int256_t' was not declared in this scope; did you mean 'int16_t'?
    5 |     int256_t A,B;
      |     ^~~~~~~~
      |     int16_t
a.cc:6:12: error: 'A' was not declared in this scope
    6 |     cin >> A >> B;
      |            ^
a.cc:6:17: error: 'B' was not declared in this scope
    6 |     cin >> A >> B;
      |                 ^
Language: C++

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


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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:18:22: error: expected ';' before '}' token
   18 |       cout << "EQUAL"
      |                      ^
      |                      ;
   19 |   }
      |   ~                   
a.cc:20:2: error: expected '}' at end of input
   20 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
using ll=long long;
const ll MOD=1000000007;
const double PI=3.14159265358979;
const ll INF= pow(10,18);
typedef pair<ll,ll> P;
typedef vector<ll> vl;
typedef vector<vl> vvl;
#define FOR(i,a,b) for(ll i=a;i<b;i++)
#define rep(i,n) FOR(i,0,n)
string abc="abcdefghijklmnopqrstuvwxyz";
string ABC="ABCDEFGHIJKLMNOPQRSTUVWXYZ";

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

Compiler output:
a.cc: In function 'int main()':
a.cc:21:5: error: 'x' was not declared in this scope
   21 |     x=1;
      |     ^
a.cc:24:5: error: 'x' was not declared in this scope
   24 |     x=-1;
      |     ^
a.cc:28:7: error: 'x' was not declared in this scope
   28 |       x=1;
      |       ^
a.cc:31:7: error: 'x' was not declared in this scope
   31 |       x=-1;
      |       ^
a.cc:34:7: error: 'x' was not declared in this scope
   34 |       x=0;
      |       ^
a.cc:36:6: error: 'x' was not declared in this scope
   36 |   if(x==0){
      |      ^
Language: C++

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

#define ll long long
#define vecll vector<long long>
#define vec2ll vector<vector<long long>>
#define vecbool vector<bool>
#define vecpairll vector<pair<long long,long long>>
#define forll(s,a,b) for(long long s = a;s < b;s++)
#define forllde(s,a) for(long long s = a;s > 0;s--)

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

Compiler output:
a.cc: In function 'int main()':
a.cc:17:24: error: expected ';' before 'else'
   17 |         cout << "EQUAL"
      |                        ^
      |                        ;
   18 |   else if (a.length() > b.length())
      |   ~~~~
Language: C++

#include <bits/stdc++.h>

using namespace std;
using ll = __SIZEOF_DOUBLE__;

#define REP(i, n) for (ll i = 0; i < n; i++)
#define INF 9223372036854775807
#define all(x) (x).begin(), (x).end()

ll ts = 1000000007;

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

  ll a, b;
  cin >> a >> b;

  if (a > b)
    cout << "GREATER"
         << "\n";
  else if (a < b)
    cout << "LESS"
         << "\n";
  else
    cout << "EQUAL"
         << "\n";
}

Compiler output:
a.cc:4:12: error: expected type-specifier before numeric constant
    4 | using ll = __SIZEOF_DOUBLE__;
      |            ^~~~~~~~~~~~~~~~~
a.cc:10:1: error: 'll' does not name a type; did you mean 'all'?
   10 | ll ts = 1000000007;
      | ^~
      | all
a.cc: In function 'int main()':
a.cc:16:3: error: 'll' was not declared in this scope; did you mean 'all'?
   16 |   ll a, b;
      |   ^~
      |   all
a.cc:17:10: error: 'a' was not declared in this scope
   17 |   cin >> a >> b;
      |          ^
a.cc:17:15: error: 'b' was not declared in this scope
   17 |   cin >> a >> b;
      |               ^
Language: C++

#include<Stdio.h>
int main(void){
  long long int a,b;
  scanf("%lld %lld",&a,&b);
  if(a>b){
    printf("GREATER");
  }else if(a<b){
    printf("LESS");
  }else{
    printf("EQUAL");
  }
  return 0;
}

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

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

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{
    bool b = 1
    rep(i,A.size()){
      if(A.at(i)>B.at(i)){
        cout << "GREATER" << endl;
        b = 0; break;
      }else if(A.at(i)<B.at(i)){
        cout << "LESS" << endl;
        b = 0; break;
      }
    }
    if(b){
      cout << "EQUAL" << endl;
    }
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:4:18: error: expected ',' or ';' before 'for'
    4 | #define rep(i,n) for(int i=0;i<n;++i)
      |                  ^~~
a.cc:15:5: note: in expansion of macro 'rep'
   15 |     rep(i,A.size()){
      |     ^~~
a.cc:15:9: error: 'i' was not declared in this scope
   15 |     rep(i,A.size()){
      |         ^
a.cc:4:30: note: in definition of macro 'rep'
    4 | #define rep(i,n) for(int i=0;i<n;++i)
      |                              ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:6: error: expected primary-expression before '.' token
    9 |   if(.size()>B.size()){
      |      ^
a.cc:4:18: error: expected ',' or ';' before 'for'
    4 | #define rep(i,n) for(int i=0;i<n;++i)
      |                  ^~~
a.cc:15:5: note: in expansion of macro 'rep'
   15 |     rep(i,A.size()){
      |     ^~~
a.cc:15:9: error: 'i' was not declared in this scope
   15 |     rep(i,A.size()){
      |         ^
a.cc:4:30: note: in definition of macro 'rep'
    4 | #define rep(i,n) for(int i=0;i<n;++i)
      |                              ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:6: error: expected primary-expression before '.' token
    8 |   if(.size()>B.size()){
      |      ^
a.cc:14:5: error: expected ',' or ';' before 'rep'
   14 |     rep(i,A.size()){
      |     ^~~
Language: C++

A = int(input())
B = int(input())
if A > B:
    print('GREATER')
elif A < B:
    print('LESS')
else:
    print('EQUAL')

Compiler output:
a.cc:4:11: warning: multi-character literal with 7 characters exceeds 'int' size of 4 bytes
    4 |     print('GREATER')
      |           ^~~~~~~~~
a.cc:6:11: warning: multi-character character constant [-Wmultichar]
    6 |     print('LESS')
      |           ^~~~~~
a.cc:8:11: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
    8 |     print('EQUAL')
      |           ^~~~~~~
a.cc:1:1: error: 'A' does not name a type
    1 | A = int(input())
      | ^
Language: C++

A = int(input())
B = int(input())

if A > B:
    print('GREATER')
elif A < B:
    print('LESS')
else:
    print('EQUAL')


Compiler output:
a.cc:5:11: warning: multi-character literal with 7 characters exceeds 'int' size of 4 bytes
    5 |     print('GREATER')
      |           ^~~~~~~~~
a.cc:7:11: warning: multi-character character constant [-Wmultichar]
    7 |     print('LESS')
      |           ^~~~~~
a.cc:9:11: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
    9 |     print('EQUAL')
      |           ^~~~~~~
a.cc:1:1: error: 'A' does not name a type
    1 | A = int(input())
      | ^
Language: C++

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

int main(){
    ill a,b;
    cin >> a >> b;
    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:6:5: error: 'ill' was not declared in this scope; did you mean 'll'?
    6 |     ill a,b;
      |     ^~~
      |     ll
a.cc:7:12: error: 'a' was not declared in this scope
    7 |     cin >> a >> b;
      |            ^
a.cc:7:17: error: 'b' was not declared in this scope
    7 |     cin >> a >> b;
      |                 ^
Language: C++

#include<string>
#include<iostream>
using namespace std;
string A,B;
int i=0;
int main(){
  cin>>A>>B;
  if(A.length()>B.length()){
   cout<<"GREATER"<<endl;
  }else if(A.length()<B.length()){
      cout<<"LESS"<<endl;
  }else{
    while(i<A.length()){
    if(A[i]>B[i]){
      cout<<"GREATER"<<endl;
      break;
    }else if(A[i]<B[i]){
      cout<<"LESS"<<endl;
      break;
    }
      i++;
    }
  if(i==(A.length())cout<<"EQUAL"<<endl;
  } 
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:23:21: error: expected ';' before 'cout'
   23 |   if(i==(A.length())cout<<"EQUAL"<<endl;
      |                     ^~~~
      |                     ;
a.cc:24:3: error: expected primary-expression before '}' token
   24 |   }
      |   ^
a.cc:23:41: error: expected ')' before '}' token
   23 |   if(i==(A.length())cout<<"EQUAL"<<endl;
      |     ~                                   ^
      |                                         )
   24 |   }
      |   ~                                      
a.cc:24:3: error: expected primary-expression before '}' token
   24 |   }
      |   ^
Language: C++

#include<string>
#include<iostream>
using namespace std;
string A,B,ant;
int main(){
  cin>>A>>B;
  if(A.length()>B.length()){
   cout<<"GREATER"<<endl;
  }else if(A[i]<B[i]){
      cout<<"LESS"<<endl;
  }else{
    while(i<A.length()){
    if(A[i]>B[i]){
      cout<<"GREATER"<<endl;
      break;
    }else if(A[i]<B[i]){
      cout<<"LESS"<<endl;
      break;
    }
      if(i==(A.length()-1))cout<<"EQUAL"<<endl;
  }
  } 
  return 0;
}

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

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

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

  double a = a/1000000;
  double b = b/1000000;
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:8:10: error: conflicting declaration 'double a'
    8 |   double a = a/1000000;
      |          ^
a.cc:5:12: note: previous declaration as 'long long int a'
    5 | long long  a,b;
      |            ^
a.cc:9:10: error: conflicting declaration 'double b'
    9 |   double b = b/1000000;
      |          ^
a.cc:5:14: note: previous declaration as 'long long int b'
    5 | long long  a,b;
      |              ^
Language: C++

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

int main(){
long long  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:9:17: warning: missing terminating " character
    9 |         cout << "GREATER
      |                 ^
a.cc:9:17: error: missing terminating " character
    9 |         cout << "GREATER
      |                 ^~~~~~~~
a.cc:10:1: warning: missing terminating " character
   10 | " <<endl;
      | ^
a.cc:10:1: error: missing terminating " character
   10 | " <<endl;
      | ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:11:1: error: expected primary-expression before '}' token
   11 | }
      | ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:8:16: error: expected ';' before 'printf'
    8 |     else (a==b) printf("EQUAL\n");
      |                ^~~~~~~
      |                ;
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:8:15: error: expected ';' before 'printf'
    8 |     else (a=b) printf("EQUAL\n");
      |               ^~~~~~~
      |               ;
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:2:3: error: 'string' was not declared in this scope
    2 |   string a,b;
      |   ^~~~~~
a.cc:3:3: error: 'cin' was not declared in this scope
    3 |   cin >> a >> b;
      |   ^~~
a.cc:3:10: error: 'a' was not declared in this scope
    3 |   cin >> a >> b;
      |          ^
a.cc:3:15: error: 'b' was not declared in this scope
    3 |   cin >> a >> b;
      |               ^
a.cc:4:25: error: 'puts' was not declared in this scope
    4 |   if(a.size()>b.size()) puts("GREATER");
      |                         ^~~~
a.cc:5:30: error: 'puts' was not declared in this scope
    5 |   else if(a.size()<b.size()) puts("LESS");
      |                              ^~~~
a.cc:10:9: error: 'puts' was not declared in this scope
   10 |         puts("GREATER");
      |         ^~~~
a.cc:13:9: error: 'puts' was not declared in this scope
   13 |         puts("LESS");
      |         ^~~~
a.cc:17:5: error: 'puts' was not declared in this scope
   17 |     puts("EQUAL");
      |     ^~~~
Language: C++

#include<iostream>
using namespace std;
int main(){
string str;
  string ntr;
  cin>>str;
  cin>>ntr;
  if(str.compare(ntr)<0)
    cout<<"LESS";
  else if(str.compare(ntr)>0)
    cout<<"GREATER;
    else cout<<"EQUAL";
}

Compiler output:
a.cc:11:11: warning: missing terminating " character
   11 |     cout<<"GREATER;
      |           ^
a.cc:11:11: error: missing terminating " character
   11 |     cout<<"GREATER;
      |           ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:12:5: error: expected primary-expression before 'else'
   12 |     else cout<<"EQUAL";
      |     ^~~~
Language: C++

#include<bits/stdc++.h>
#define rep(i,n)for(int i=0;i<n;++i)
#include<string>
#include<vector>
using namespace std;
typedef long long ll;
typedef pair<int, int>P;
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; }
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; }
//max=({});
//条件式が真ならwhileの中身を回し続ける
//printf("%d\n", ans);

//pairの入力
//vector<pair<ll, ll>>work(n);
//rep(i, n) {
//	ll a, b;
//	cin >> a >> b;
//	work[i] = make_pair(a, b);
//for(auto p:mp)(mapの探索)
//printf("%.10f\n",なんちゃら)

int g[15][15];
const int INF = 1001001001;
const int dx[4] = { -1,0,1,0 };
const int dy[4] = { 0,-1,0,1 };

//最大公約数
ll gcd(ll x, ll y) {
	return y ? gcd(y, x % y) : x;
}

ll lcm(ll x, ll y) {
	if (x == 0 || y == 0)return 0;
	return (x / gcd(x, y) * y);
}

//素因数分解
vector<pair<ll, int>>factorize(ll n) {
	vector<pair<ll, int>>res;
	for (ll i = 2;i * i <= n;++i) {
		if (n % i)continue;
		res.emplace_back(i, 0);
		while (n % i == 0) {
			n /= i;
			res.back().second++;
		}
	}
	if (n != 1)res.emplace_back(n, 1);
	return res;
}

int bingo[3][3];
bool flag[3][3];
int cnt[2][105];
int h, w;
int choco[1010][1010];
int s[11][11];

int main() {
	string s, t;
	cin >> s >> t;
	int s1 = s.length();
	int t1 = t.length();
	if (s1 > t1)puts("GREATER");
	else if (s1 < t1)puts("LESS");
	else {
		rep(i, n) {
			if (s[i] > t[i]) {
				puts("GREATER");
				return 0;
			}
			else if (s[i] < t[i]) {
				puts("LESS");
				return 0;
			}
		}
		puts("EQUAL");
	}
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:68:24: error: 'n' was not declared in this scope
   68 |                 rep(i, n) {
      |                        ^
a.cc:2:31: note: in definition of macro 'rep'
    2 | #define rep(i,n)for(int i=0;i<n;++i)
      |                               ^
Language: C++

///AJoy Sarker ,CSE JAHANGIRNAGAR UNIVERSITY 48 Batch

#include<bits/stdc++.h>

using namespace std;
#define SORT(c) sort((c).begin(),(c).end());
#define inf INT_MAX/3
#define pb push_back
#define MP make_pair
#define pii pair<int,int>
#define pcc pair<char,char>
#define pic pair<int,char>
#define pci pair<char,int>
#define VS vector<string>
#define VI vector<int>
#define MIN(a,b) (a>b?b:a)
#define MAX(a,b) (a>b?a:b)
#define pi 3.141592653589793
#define in scanf
#define out printf
#define ll long long
#define ull unsigned long long
typedef unsigned long long UL;
template<typename T>inline T  S(T a)
{
    return a*a;
}
template<class T>inline string tostring(T a)
{
    ostringstream os("");
    os << a;
    return os.str();
}
template<typename T>inline ll tolong(T a)
{
    ll res;
    istringstream os(a);
    os>>res;
    return res;
}
template<typename T>inline T gcd(T a, T b)
{
    if (b == 0)return a;
    else return gcd(b, a % b);
}
template<typename T>inline T bigmod(T a, T b, T m)
{
    if (b == 0)return 1;
    else if (b % 2 == 0)return S(bigmod(a, b / 2, m)) % m;
    else return (a % m*bigmod(a, b - 1, m)) % m;
}

int main()
{
    ios_base::sync_with_stdio(0);
    //ll n,c,cnt=0,prev;
    string s,s1;
    cin>>s>>s1;
    int len1=s.length();
    int len2=s1.length();

    if(len==len2)
    {
        if(s==s1)cout<<"EQUAL"<<endl;
        else if(s[0]>s1[0])cout<<"GREATER"<<endl;
        else cout<<"LESS"<<endl;
    }
}




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

#include <bits/stdc++.h>

using namespace std;

int main() {
  string s, t; cin >> s >> t;
  int n = s.length();
  int m = t.length();
  if(n > m) {
    printf("GREATER");
  }
  else if(n < m) {
    print("LESS");
  }
  else {
    if(s > t) {
      printf("GREATER");
    }
    else if(s < t) {
      printf("LESS");
    }
    else {
      printf("EQUAL");
    }
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:5: error: 'print' was not declared in this scope; did you mean 'rint'?
   13 |     print("LESS");
      |     ^~~~~
      |     rint
Language: C++

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

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

#include<bits/stdc++>
using namespace std;
int main() {
  string num1, num2;
  cin >> num1 >> num2;
  if(num1.size() > num2.size()) {
  	cout << "GREATER";
  } else if(num1.size() < num2.size()) {
  	cout << "LESS";
  } else {
    bool isEq = true;
    for(int i = 0; i < num1.size() && isEq; ++i) {
    	if(num1[i] > num2[i]) {
          cout << "GREATER";
          isEq = false;
        } else if(num1[i] < num2[i]) {
          cout << "LESS";
          isEq = false;
        }
    }
    if(isEq) {
      cout << "EQUAL";
    }
  }
  return 0;
}

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

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

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

  
  cout << ans << endl;
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:19:11: error: invalid types 'int[int]' for array subscript
   19 |       if(a[i] - b[i] > 0){
      |           ^
a.cc:19:18: error: invalid types 'int[int]' for array subscript
   19 |       if(a[i] - b[i] > 0){
      |                  ^
a.cc:22:22: error: invalid types 'int[int]' for array subscript
   22 |           }else if( a[i] - b[i] < 0){
      |                      ^
a.cc:22:29: error: invalid types 'int[int]' for array subscript
   22 |           }else if( a[i] - b[i] < 0){
      |                             ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0;i<(int)(n);i++)
int main(){
    string[100] = a,b; cin >> a >> b;
    int A = a.size(),B = b.size();
    if(A == B){
        if(a > b){
            cout << "GREATER" << endl;
        }else if(a < b){
            cout << "LESS" << endl;
        }else{
            cout << "EQOAL" << endl;
        }
    }else{
        if(A < B){
            cout << "LESS" << endl;
        }else{
            cout << "GREATER" << endl;
        }
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:12: error: expected identifier before numeric constant
    5 |     string[100] = a,b; cin >> a >> b;
      |            ^~~
a.cc:5:12: error: expected ']' before numeric constant
    5 |     string[100] = a,b; cin >> a >> b;
      |            ^~~
      |            ]
a.cc:5:11: error: structured binding declaration cannot have type 'std::string' {aka 'std::__cxx11::basic_string<char>'}
    5 |     string[100] = a,b; cin >> a >> b;
      |           ^
a.cc:5:11: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:5:11: error: empty structured binding declaration
a.cc:5:19: error: 'a' was not declared in this scope
    5 |     string[100] = a,b; cin >> a >> b;
      |                   ^
a.cc:5:36: error: 'b' was not declared in this scope
    5 |     string[100] = a,b; cin >> a >> b;
      |                                    ^
a.cc:7:13: error: 'B' was not declared in this scope
    7 |     if(A == B){
      |             ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0;i<(int)(n);i++)
int main(){
    string[100] a,b; cin >> a >> b;
    int A = a.size(),B = b.size();
    if(A == B){
        if(a > b){
            cout << "GREATER" << endl;
        }else if(a < b){
            cout << "LESS" << endl;
        }else{
            cout << "EQOAL" << endl;
        }
    }else{
        if(A < B){
            cout << "LESS" << endl;
        }else{
            cout << "GREATER" << endl;
        }
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:12: error: expected identifier before numeric constant
    5 |     string[100] a,b; cin >> a >> b;
      |            ^~~
a.cc:5:12: error: expected ']' before numeric constant
    5 |     string[100] a,b; cin >> a >> b;
      |            ^~~
      |            ]
a.cc:5:11: error: structured binding declaration cannot have type 'std::string' {aka 'std::__cxx11::basic_string<char>'}
    5 |     string[100] a,b; cin >> a >> b;
      |           ^
a.cc:5:11: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:5:11: error: empty structured binding declaration
a.cc:5:17: error: expected initializer before 'a'
    5 |     string[100] a,b; cin >> a >> b;
      |                 ^
a.cc:5:29: error: 'a' was not declared in this scope
    5 |     string[100] a,b; cin >> a >> b;
      |                             ^
a.cc:5:34: error: 'b' was not declared in this scope
    5 |     string[100] a,b; cin >> a >> b;
      |                                  ^
a.cc:7:13: error: 'B' was not declared in this scope
    7 |     if(A == B){
      |             ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:12:33: error: expected ';' before 'i'
   12 |     for (int i = 0; i < A.size() i++) {
      |                                 ^~
      |                                 ;
a.cc:14:7: error: 'else' without a previous 'if'
   14 |       else (int(A[i]) < int(B[i])) cout << "LESS" << endl;  k = false; break;
      |       ^~~~
a.cc:14:35: error: expected ';' before 'cout'
   14 |       else (int(A[i]) < int(B[i])) cout << "LESS" << endl;  k = false; break;
      |                                   ^~~~~
      |                                   ;
Language: C++

//#define _GLIBCXX_DEBUG

#include<bits/stdc++.h>
#define PI 3.14159265359
using namespace std;
const int INF= 1e9+5;
typedef long long ll;
typedef vector<int> vi;
typedef vector<vector<int>>vvi;

int main(){
  string a,b;
  cin>>a>>b;
  int A=a.size(); B=b.size();
  if(A>B)cout<<"GREATER"<<endl;
  else if(A<B)cout<<"LESS"<<endl;
  else{
    bool equal=true;
    for(int i=0;i<A;i++){
      if(a[i]!=b[i])equal=false;
    }
    if(equal){
      cout<<"EQUAL"<<endl;
      return 0;
    }
    bool a_big=false;
    for(int i=0;i<A;i++){
      if(a[i]>b[i]){
        a_big=true;
        break;
      }
    }
    if(a_big)cout<<"GREATER"<<endl;
    else cout<<"LESS"<<endl;
  }
}

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:17:25: error: expected ')' before '{' token
   17 |       if(A.at(i)>B.at(i){
      |         ~               ^
      |                         )
a.cc:25:5: error: expected primary-expression before '}' token
   25 |     }
      |     ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:17:25: error: expected ')' before '{' token
   17 |       if(A.at(i)>B.at(i){
      |         ~               ^
      |                         )
a.cc:25:5: error: expected primary-expression before '}' token
   25 |     }
      |     ^
Language: C++

#include <bits/stdc++.h>

std::string a, b;

int main(){
cin >> a >> b;
int a_size = a.size();
int b_size = b.size();

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 | cin >> a >> b;
      | ^~~
      | std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
Language: C++

#include <bits/stdc++.h>

long long a, b;

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 | cin >> a >> b;
      | ^~~
      | std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
Language: C++

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

int main(){
  string 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:14:3: error: extended character 　 is not valid in an identifier
   14 |   else　{
      |   ^
a.cc: In function 'int main()':
a.cc:14:3: error: 'else\U00003000' was not declared in this scope
   14 |   else　{
      |   ^~~~~~
Language: C++

#include<string>
#include<iostring>

int main(){
  std::string a, b;
  std::cin >> a;
  std::cin >> b;
  int flag,n = a.length(), m = b.length();
  if(n != m){
    if(n > m)
      std::cout << "GREATER" << std::endl;
    else
      std::cout << "LESS" << std::endl;
  }
  else{
    flag = 1;
    int i;
    for(i = 0; i < n; i++){
      if(a[i] == b[i])
        continue;
      else if(a[i] > b[i]){
        std::cout << "GREATER" << std::endl;
        break;
      }
      else{
        std::cout << "LESS" << std::endl;
        break;
      }
    }
    if(i == n)
      std::cout << "EQUAL" << std::endl;
  }
  return 0;
}

      

Compiler output:
a.cc:2:9: fatal error: iostring: No such file or directory
    2 | #include<iostring>
      |         ^~~~~~~~~~
compilation terminated.
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 << "LESS" <<endl;
    
  }else if(A == B){
    
    cout << "EQUAL" <<endl;
  }
  rerun 0;
}

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

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

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

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

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

int main()
{
  	string a, b;
  	cin>>a>>b;
  	if(a.length() > b.length())
      	cout<<"GREATER";
  	else if(a.length() < b.length())
      	cout<<"LESS";
  	else
    {
      	int flag = 0, eq = 0;
  		for(int i = 0; i < a.length(); i++)
        {
        	if(a[i]-b[i] < 0)
            {
            	flag = 1;
              	eq = 1;
              	break;
            }
          	else if(a[i]-b[i] > 0)
              	eq = 1;
        }
      	if(flag == 1 && eq == 1)
          	cout<<"LESS"
        else if(flag == 0 && eq == 1)
          	cout<<"GREATER";
      	else
          	cout<<"EQUAL";
    }
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:27:29: error: expected ';' before 'else'
   27 |                 cout<<"LESS"
      |                             ^
      |                             ;
   28 |         else if(flag == 0 && eq == 1)
      |         ~~~~
Language: C++

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

int main() {

string A,B;
  cin>>A>>B;
  if(A==B){cout<<"EQUAL"<<endl;}
  else{
  if(A.length()>B.length()) cout<<"GREATER"<<endl;
  else if(B.length()>A.length()) cout<<"LESS"<<endl;
  else{ for(int i=0;i<A.length();i++){
    if(A.at(i)>B.at(i)){cout<<"GREATER"<<endl;}
    else if(B.at(i)>A.at(i)){cout<<"LESS"<<endl;}
  }
  }
	
}



Compiler output:
a.cc: In function 'int main()':
a.cc:18:2: error: expected '}' at end of input
   18 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
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 if(a > b){
        cout << "GREATER" << endl;
    }else if(b >a){
        cout << "LESS "<< endl;
    }else{
        cout << "EQUAL" << endl;
    }
    return 0;
}





Compiler output:
a.cc: In function 'int main()':
a.cc:2:5: error: 'string' was not declared in this scope
    2 |     string a, b;
      |     ^~~~~~
a.cc:3:5: error: 'cin' was not declared in this scope
    3 |     cin >> a >> b;
      |     ^~~
a.cc:3:12: error: 'a' was not declared in this scope
    3 |     cin >> a >> b;
      |            ^
a.cc:3:17: error: 'b' was not declared in this scope
    3 |     cin >> a >> b;
      |                 ^
a.cc:5:9: error: 'cout' was not declared in this scope
    5 |         cout << "GREATER" << endl;
      |         ^~~~
a.cc:5:30: error: 'endl' was not declared in this scope
    5 |         cout << "GREATER" << endl;
      |                              ^~~~
a.cc:7:9: error: 'cout' was not declared in this scope
    7 |         cout << "LESS "<< endl;
      |         ^~~~
a.cc:7:27: error: 'endl' was not declared in this scope
    7 |         cout << "LESS "<< endl;
      |                           ^~~~
a.cc:9:9: error: 'cout' was not declared in this scope
    9 |         cout << "GREATER" << endl;
      |         ^~~~
a.cc:9:30: error: 'endl' was not declared in this scope
    9 |         cout << "GREATER" << endl;
      |                              ^~~~
a.cc:11:9: error: 'cout' was not declared in this scope
   11 |         cout << "LESS "<< endl;
      |         ^~~~
a.cc:11:27: error: 'endl' was not declared in this scope
   11 |         cout << "LESS "<< endl;
      |                           ^~~~
a.cc:13:9: error: 'cout' was not declared in this scope
   13 |         cout << "EQUAL" << endl;
      |         ^~~~
a.cc:13:28: error: 'endl' was not declared in this scope
   13 |         cout << "EQUAL" << endl;
      |                            ^~~~