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

#include <bits/stdc++.h>
#include <string>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
using namespace std;

int my_abs(int num){
   if (num > 0)
      return num;
   else
      return -num;
}

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

    cout << ans << endl;

}

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

#include<bits/stdc++.h>

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

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:20: error: expected ';' before ':' token
   11 |     cout<<"GREATER":
      |                    ^
      |                    ;
a.cc:13:17: error: expected ';' before ':' token
   13 |     cout<<"LESS":
      |                 ^
      |                 ;
a.cc:15:18: error: expected ';' before ':' token
   15 |     cout<<"EQUAL":
      |                  ^
      |                  ;
Language: C++

#include<bits/stdc++.h>

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

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":
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:20: error: expected ';' before ':' token
   11 |     cout<<"GREATER":
      |                    ^
      |                    ;
a.cc:13:17: error: expected ';' before ':' token
   13 |     cout<<"LESS":
      |                 ^
      |                 ;
a.cc:15:18: error: expected ';' before ':' token
   15 |     cout<<"EQUAL":
      |                  ^
      |                  ;
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();
    char[] b=sc.next().toCharArray();
    String ans;
    if(a.length>b.length){
      ans="GREATER";
    }else if(a.length<b.length){
      ans="LESS";
    }else{
      for(int i=0;i<a.length;i++){
        if(a[i]>b[i]){
          ans="GREATER";
          break;
        }else if(a[i]<b[i]){
          ans="LESS";
          break;
        }
      }
    }
    if(ans==null){
      System.out.println("EQUAL");
    }else{
      System.out.println(ans);
    }
  }
}

Compiler output:
Main.java:24: error: variable ans might not have been initialized
    if(ans==null){
       ^
1 error
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();
    char[] b=sc.next().toCharArray();
    String ans;
    if(a.length>b.length){
      ans="GREATER";
    }else if(a.length<b.length){
      ans="LESS";
    }else{
      for(int i=0;i<a.length;i++){
        if(a[i]>b[i]){
          ans="GREATER";
          break;
        }else if(a[i]<b[i]){
          ans="LESS";
          break;
        }
      }
      if(ans==null){
        ans="EQUAL";
      }
    }
    System.out.println(ans);
  }
}

Compiler output:
Main.java:23: error: variable ans might not have been initialized
      if(ans==null){
         ^
1 error
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();
    char[] b=sc.next().toCharArray();
    String ans;
    if(a.length>b.length){
      ans="GREATER";
    }else if(a.length<b.length){
      ans="LESS";
    }else{
      for(int i=0;i<a.length;i++){
        if(a[i]>b[i]){
          ans="GREATER";
          break;
        }else if(a[i]<b[i]){
          ans="LESS";
          break;
        }
      }
    }
    System.out.println(ans);
  }
}

Compiler output:
Main.java:24: error: variable ans might not have been initialized
    System.out.println(ans);
                       ^
1 error
Language: C++

#include<cstdio>
void main()
{
	char A,B,m,n;
	scanf("%ld%ld",&A,&B);
	if(A > B)
		printf("GREATER\n");
		else if(A < B)
			printf("LESS\n");
			else
				printf("EQUAL\n");
				return;
	}

Compiler output:
a.cc:2:1: error: '::main' must return 'int'
    2 | void main()
      | ^~~~
a.cc: In function 'int main()':
a.cc:12:33: error: return-statement with no value, in function returning 'int' [-fpermissive]
   12 |                                 return;
      |                                 ^~~~~~
Language: C++

#include <bits/stdc++.h>

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

using namespace std;

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

	cout<<(a==b?"EQUAL":tie(a.length(),a)>tie(b.length(),b)?"GREATER":"LESS")<<endl;

	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:41: error: cannot bind non-const lvalue reference of type 'long unsigned int&' to an rvalue of type 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'}
   10 |         cout<<(a==b?"EQUAL":tie(a.length(),a)>tie(b.length(),b)?"GREATER":"LESS")<<endl;
      |                                 ~~~~~~~~^~
In file included from /usr/include/c++/14/bits/memory_resource.h:47,
                 from /usr/include/c++/14/string:68,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52,
                 from a.cc:1:
/usr/include/c++/14/tuple:2791:19: note:   initializing argument 1 of 'constexpr std::tuple<_Elements& ...> std::tie(_Elements& ...) [with _Elements = {long unsigned int, __cxx11::basic_string<char, char_traits<char>, allocator<char> >}]'
 2791 |     tie(_Elements&... __args) noexcept
      |         ~~~~~~~~~~^~~~~~~~~~
a.cc:10:59: error: cannot bind non-const lvalue reference of type 'long unsigned int&' to an rvalue of type 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'}
   10 |         cout<<(a==b?"EQUAL":tie(a.length(),a)>tie(b.length(),b)?"GREATER":"LESS")<<endl;
      |                                                   ~~~~~~~~^~
/usr/include/c++/14/tuple:2791:19: note:   initializing argument 1 of 'constexpr std::tuple<_Elements& ...> std::tie(_Elements& ...) [with _Elements = {long unsigned int, __cxx11::basic_string<char, char_traits<char>, allocator<char> >}]'
 2791 |     tie(_Elements&... __args) noexcept
      |         ~~~~~~~~~~^~~~~~~~~~
Language: C

#include <stdio.h>

int main(void){
    int i;
    int a[100],b[100];
    int arrayN_a,arrayN_b;
    int flag;
    for(i=0;i<100;i++){
        scanf("%d",&a[i]);
    }
    for(i=0;i<100;i++){
        scanf("%d",&b[i]);
    }
    arrayN_a = sizeof a / sizeof a[0];
    arrayN_b = sizeof b / sizeof b[0];
    if(arrayN_a > arrayN_b){
        flag = 1;
    }else if(arrayN_a < arrayN_b){
        flfag = -1;
    }else{
        for(i=0;a[i] != b[i];i++){
            if(a[i] > b[i]) flag = 1;
            else if(a[i] < b[i]) flag = -1;
            else flag = 0;
        }
    }
    if(flag == 1) printf("GREATER\n");
    else if(flag == -1) printf("LESS\n");
    else printf("EQUAL\n");
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:19:9: error: 'flfag' undeclared (first use in this function); did you mean 'flag'?
   19 |         flfag = -1;
      |         ^~~~~
      |         flag
main.c:19:9: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>

int main(void){
    int i;
    int a[100],b[100];
    int arrayN_a,arrayN_b;
    for(i=0;i<100;i++){
        scanf("%d",&a[i]);
    }
    for(i=0;i<100;i++){
        scanf("%d",&b[i]);
    }
    arrayN_a = sizeof a / sizeof a[0];
    arrayN_b = sizeof b / sizeof b[0];
    if(arrayN_a > arrayN_b) printf("GREATER");
    else if(arrayN_a < arrayN_b) printf("LESS");
    else if(a[0] > b[0]) printf("GREATER");
    else if(a[0] < b[0]) printf("LESS");
    else if printf("EQUAL");
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:19:13: error: expected '(' before 'printf'
   19 |     else if printf("EQUAL");
      |             ^~~~~~
      |             (
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:8: error: request for member 'size' in 'a', which is of non-class type 'int'
    8 |   if(a.size()>b.size()){
      |        ^~~~
a.cc:8:17: error: request for member 'size' in 'b', which is of non-class type 'int'
    8 |   if(a.size()>b.size()){
      |                 ^~~~
a.cc:10:14: error: request for member 'size' in 'a', which is of non-class type 'int'
   10 |   }else if(a.size()<b.size()){
      |              ^~~~
a.cc:10:23: error: request for member 'size' in 'b', which is of non-class type 'int'
   10 |   }else if(a.size()<b.size()){
      |                       ^~~~
a.cc:12:14: error: request for member 'size' in 'a', which is of non-class type 'int'
   12 |   }else if(a.size()==b.size()){
      |              ^~~~
a.cc:12:24: error: request for member 'size' in 'b', which is of non-class type 'int'
   12 |   }else if(a.size()==b.size()){
      |                        ^~~~
a.cc:14:18: error: 'n' was not declared in this scope
   14 |    for(int i=0;i<n;i++){
      |                  ^
a.cc:15:10: error: invalid types 'int[int]' for array subscript
   15 |      if(a[i]<b[i]){
      |          ^
a.cc:15:15: error: invalid types 'int[int]' for array subscript
   15 |      if(a[i]<b[i]){
      |               ^
a.cc:17:16: error: invalid types 'int[int]' for array subscript
   17 |      }else if(a[i]>b[i]){
      |                ^
a.cc:17:21: error: invalid types 'int[int]' for array subscript
   17 |      }else if(a[i]>b[i]){
      |                     ^
a.cc:22:2: error: expected '}' at end of input
   22 | }
      |  ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

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

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

{
	int A,B;
	scanf("%d %d",&A,&B);
	if(A > B)
	{
		printf("GREATER\n");
		}
		else {
			if(A < B)
			{
				printf("LESS\n");
			}
			else {
				if(A == B)
				{
					printf("EQUAL\n");
				}
			}
		}
	return 0;
}

Compiler output:
a.cc:1:1: error: expected unqualified-id before '{' token
    1 | {
      | ^
Language: C++

include<stdio.h>
int  main()
{
     long int A, B;
      while(~scanf("%d%d\n",&A,&B)){
      1<=A;B<=10^{100};
      if(A=B)  printf("EQUAL\n");
      if(A>B)  printf(GREATER\n);
      if(A<B)  printf(LESS\n);
      }
      return  0;
}

Compiler output:
a.cc:8:30: error: stray '\' in program
    8 |       if(A>B)  printf(GREATER\n);
      |                              ^
a.cc:9:27: error: stray '\' in program
    9 |       if(A<B)  printf(LESS\n);
      |                           ^
a.cc:1:1: error: 'include' does not name a type
    1 | include<stdio.h>
      | ^~~~~~~
Language: C++

#include<cstdio>
#include<iostream>
#include<algorithm>
#include<string>
#include<cstring>
#include<string.h>
#include<cmath>
#include<cstdlib>
using namespace std;
const int maxn = 1e2 + 5;
#define PI 3.14159265359
int main(){
	char a[maxn],b[maxn];
	gets(a);
	gets(b);
	if(strlen(a) > strlen(b)){
	cout << "GREATER" << endl;
		return 0;
	}
	else if (strlen(a) < strlen(b)){
		cout << "LESS" << endl;
		return 0;
	}
	if(strcmp(a,b) > 0 ) cout << "GREATER" << endl;
	if(strcmp(a,b) == 0) cout << "EQUAL" << endl;
	if(strcmp(a,b) < 0) cout << "LESS" << endl;
	return 0;
}

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

#include<cstdio>
#include<iostream>
#include<cmath>
#include<algorithm>
#include<cstring>
using namespace std;
int main()
{
	char a[105];
	char b[105];
	gets(a);
	//getchar();
	gets(b);
	int len_a = strlen(a);
	int len_b = strlen(b);
	//printf("%d %d\n",len_a,len_b);
	if(len_a > len_b) printf("GREATER\n");
	else if(len_a < len_b) printf("LESS\n");
	else 
	{
		if(strcmp(a,b)>0) printf("GREATER\n");
		else  if(strcmp(a,b)<0) printf("LESS\n");
		else printf("EQUAL\n");
	}
	return 0;
}

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

#include<bits/stdc++.h>
using namespace std;
string a,b;
int type=0;
int main(){
	cin >> a >> b;
	if(a.size()>b.size()){
		printf("GREATER");
	}else if(a.size()<b.size()){
		printf("LESS");
	}else{
		for(int i=1;i<=s.size();i++){
			if(a[i-1]>b[i-1]){
				type=1;
				break;
			}
			if(a[i-1]<b[i-1]){
				type=-1;
				break;
			}
		}
		if(type==1){
			printf("GREATER");
		}else if(type==0){
			printf("EQUAL");
		}else printf("LESS");
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:32: error: 's' was not declared in this scope
   12 |                 for(int i=1;i<=s.size();i++){
      |                                ^
Language: C++

rrrrrrrrrrrrrrrrrc++.h>

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

using namespace std;

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

    long long a, b; cin >> a >> b;

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


Compiler output:
a.cc:1:1: error: 'rrrrrrrrrrrrrrrrrc' does not name a type
    1 | rrrrrrrrrrrrrrrrrc++.h>
      | ^~~~~~~~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:9:5: error: 'cin' was not declared in this scope
    9 |     cin.tie(0);
      |     ^~~
a.cc:10:5: error: 'ios' has not been declared
   10 |     ios::sync_with_stdio(false);
      |     ^~~
a.cc:14:15: error: 'cout' was not declared in this scope
   14 |     if(a > b) cout << "GREATER";
      |               ^~~~
a.cc:15:21: error: 'cout' was not declared in this scope
   15 |     else if(a == b) cout << "EQUAL";
      |                     ^~~~
a.cc:16:20: error: 'cout' was not declared in this scope
   16 |     else if(a < b) cout << "LESS";
      |                    ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define rep(i, n) for(int i = 0; i < (n); ++i)
typedef long long ll;
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1;} return 0;}
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1;} return 0;}
const ll INF = 1LL << 60;

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


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

#include<bits/stdc++.h>
using namespace std;
#define rep(i, n) for(int i = 0; i < (n); ++i)
typedef long long ll;
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1;} return 0;}
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1;} return 0;}
const ll INF = 1LL << 60;

int main(){
	string a, b;
	cin >> a >> b;
	if(a.size() > b.size) puts("GREATER");
	else if (a.size() < b.size())puts("LESS");
	else{
		for(int i = 0; i < a.size(); ++i){
			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:12:25: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]' (did you forget the '()' ?)
   12 |         if(a.size() > b.size) puts("GREATER");
      |                       ~~^~~~
      |                             ()
Language: C

#include<stdio.h>

int man(void){

    int A,B;
    scanf("%d %d",&A,&B);

    if(A > B) printf("GREATER\n");
    else if(A < B) printf("LESS\n");
    else printf("EQUAL\n");

    return 0;
}


Compiler output:
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  long long int a,b;
  cin>>a>>b;
  if(a.size()>b.size()){
    cout<<"GREATER"<<endl;
  }else if(b.size()>a.size()){
    cout<<"LESS"<<endl;
  }else{
    for(int i=0;i<a.size();i++){
      if(a[i]>b[i]){
        cout<<"GREATER"<<endl;
        return 0;
      }else if(b[i]>a[i]){
        cout<<"LESS"<<endl;
        return 0;
      }
    }
    cout<<"EQUAL"<<endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:8: error: request for member 'size' in 'a', which is of non-class type 'long long int'
    6 |   if(a.size()>b.size()){
      |        ^~~~
a.cc:6:17: error: request for member 'size' in 'b', which is of non-class type 'long long int'
    6 |   if(a.size()>b.size()){
      |                 ^~~~
a.cc:8:14: error: request for member 'size' in 'b', which is of non-class type 'long long int'
    8 |   }else if(b.size()>a.size()){
      |              ^~~~
a.cc:8:23: error: request for member 'size' in 'a', which is of non-class type 'long long int'
    8 |   }else if(b.size()>a.size()){
      |                       ^~~~
a.cc:11:21: error: request for member 'size' in 'a', which is of non-class type 'long long int'
   11 |     for(int i=0;i<a.size();i++){
      |                     ^~~~
a.cc:12:11: error: invalid types 'long long int[int]' for array subscript
   12 |       if(a[i]>b[i]){
      |           ^
a.cc:12:16: error: invalid types 'long long int[int]' for array subscript
   12 |       if(a[i]>b[i]){
      |                ^
a.cc:15:17: error: invalid types 'long long int[int]' for array subscript
   15 |       }else if(b[i]>a[i]){
      |                 ^
a.cc:15:22: error: invalid types 'long long int[int]' for array subscript
   15 |       }else if(b[i]>a[i]){
      |                      ^
Language: C++

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

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


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

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

#define FOR(i, a, b) for (int i = int(a); i < int(b); i++)
#define REP(i, b) FOR(, 0, b)
#define MP make_pair
#define PB push_back
#define EB emplace_back
#define ALL(x) x.begin(), x.end()

using pi = pair<int, int>;
using vi = vector<int>;
using ld = long double;

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

    return 0;
}

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

#include <iostream>
#include <vector>

using namespace std;

string compare(string a, string b){
  
  if(a == b)return "EQUAL";
  else if(a.size() > b.size()) return "GREATER";
  else if(a.size() < b.size()) return "LESS";
  }else{
    int t = a.size();
    t--;
      if(a[t] == b[t]){
        int n = t;
        while(a[n] == b[n] && n >= 0)n--;
        if(a[n]-'0' < b[n]-'0') return "LESS";
        else return "GREATER";
      }else{
        if(a[t]-'0' < b[t]-'0') return "LESS";
        else return "GREATER";
      }
    }
}

int main(){
  string a, b;
  cin >> a >> b;
  string ans;
  ans = compare(a, b);
  cout << ans;
}


Compiler output:
a.cc:11:4: error: expected unqualified-id before 'else'
   11 |   }else{
      |    ^~~~
a.cc:24:1: error: expected declaration before '}' token
   24 | }
      | ^
a.cc: In function 'std::string compare(std::string, std::string)':
a.cc:11:3: warning: control reaches end of non-void function [-Wreturn-type]
   11 |   }else{
      |   ^
Language: C++

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

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


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

#include<stdio.h>
#include<stdlib.h>
#include<iostream>
#include<string>
#include<algorithm>
#include<vector> 
#include<limits>
#include<numeric>
#include<type_traits>
#include<math.h>
#include<fstream>
#include<set>
using namespace std;
typedef long long ll;

#define rep(i, n) for(int i = 0; i < (int)(n); i++)
#define repi(i,a,b) for(int i = (int)(a); i < (int)(b); i++)
#define out(str) cout << str << endl
#define ALL(a) (a).begin(),(a).end()
#define INF (1<<29)

template<class T>bool chmax(T &a, const T &b) { if (a<b) { a=b; return 1; } return 0; }
template<class T>bool chmin(T &a, const T &b) { if (b<a) { a=b; return 1; } return 0; }

int A,B;

int main(){
    cin>>A>>B;
    if(A>B) out("GREATER");
    else if(A<B) out("LESS");
    else out("EQUAL")
    
    
}


Compiler output:
a.cc: In function 'int main()':
a.cc:34:1: error: expected ';' before '}' token
   34 | }
      | ^
Language: Java

import java.util.*;
import java.lang.*;
import java.util.function.Function;

public class Main {
    static String addZeros(String number, int digits){
        while(number.length()<digits) number = "0"+number;
        return number;
    }
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String A = addZeros(sc.next(),110);
        String B = addZeros(sc.next(),110);

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

    }
}
import java.util.*;
import java.lang.*;
import java.util.function.Function;

public class Main {
    static String addZeros(String number, int digits){
        while(number.length()<digits) number = "0"+number;
        return number;
    }
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String A = addZeros(sc.next(),110);
        String B = addZeros(sc.next(),110);

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

    }
}


Compiler output:
Main.java:21: error: class, interface, enum, or record expected
import java.util.*;
^
Main.java:22: error: class, interface, enum, or record expected
import java.lang.*;
^
Main.java:23: error: class, interface, enum, or record expected
import java.util.function.Function;
^
3 errors
Language: C++

#include <algorithm>
#include <iomanip>
#include <random>
#include <cstdio>
#include <cmath>
#include <map>
using namespace std;
typedef long long ll;
#define rep(i, n) for(int i = 0; i < (int) n; i++)

int main() {
    string a,b; cin >> a >> b;
    if (a.length() > b.length())
    {
        cout << "GREATER\n";
        return 0;
    } else if (a.length() < b.length()) {
        cout << "LESS\n";
        return 0;
    }
    if (a > b) {
        cout << "GREATER\n";
    } else if (a == b) {
        cout << "EQUAl\n";
    } else {
        cout << "LESS\n";
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:17: error: 'cin' was not declared in this scope
   12 |     string a,b; cin >> a >> b;
      |                 ^~~
a.cc:7:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    6 | #include <map>
  +++ |+#include <iostream>
    7 | using namespace std;
a.cc:15:9: error: 'cout' was not declared in this scope
   15 |         cout << "GREATER\n";
      |         ^~~~
a.cc:15:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:18:9: error: 'cout' was not declared in this scope
   18 |         cout << "LESS\n";
      |         ^~~~
a.cc:18:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:22:9: error: 'cout' was not declared in this scope
   22 |         cout << "GREATER\n";
      |         ^~~~
a.cc:22:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:24:9: error: 'cout' was not declared in this scope
   24 |         cout << "EQUAl\n";
      |         ^~~~
a.cc:24:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:26:9: error: 'cout' was not declared in this scope
   26 |         cout << "LESS\n";
      |         ^~~~
a.cc:26:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: Java

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

Compiler output:
Main.java:12: error: ';' expected
      	System.out.println("LESS")
      	                          ^
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 << "LESS" << endl;
  }
  else if (a.size()>b.size()){
    cout << "GREATER" << endl;
  }
  else {
    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:18:24: error: expected ';' before 'endl'
   18 |       cout << "GREATER" endl;
      |                        ^~~~~
      |                        ;
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:4:23: error: invalid operands to binary & (have 'double *' and 'double')
    4 |   scanf("%lf %lf", &a &b);
      |                    ~~ ^
      |                    |
      |                    double *
Language: C

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


  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:4:23: error: invalid operands to binary & (have 'double *' and 'double')
    4 |   scanf("%lf %lf", &a &b);
      |                    ~~ ^
      |                    |
      |                    double *
main.c:6:5: error: 'x' undeclared (first use in this function)
    6 |     x="GREATER";
      |     ^
main.c:6:5: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:11: error: 'A' was not declared in this scope
   12 |   else if(A==B){
      |           ^
a.cc:12:14: error: 'B' was not declared in this scope
   12 |   else if(A==B){
      |              ^
Language: C++

include<bits/stdc++.h>
using namespace std;
int main(){
long long A,B;

cin>>A;
cin>>B;


		if(A>B)
	cout<<"GREATER";
	else if(B>A)
	cout<<"LESS";
	else if(A==B)
	cout<<"EQULE";

	
	return 0;
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:6:1: error: 'cin' was not declared in this scope
    6 | cin>>A;
      | ^~~
a.cc:11:9: error: 'cout' was not declared in this scope
   11 |         cout<<"GREATER";
      |         ^~~~
a.cc:13:9: error: 'cout' was not declared in this scope
   13 |         cout<<"LESS";
      |         ^~~~
a.cc:15:9: error: 'cout' was not declared in this scope
   15 |         cout<<"EQULE";
      |         ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main (){
string a,b;
int x,y;
bool z=0;
cin>>a;
cin>>b;
x=a.size();
y=b.size();
if(x>y)
printf("GREATER\n");
else if (y>x)
printf("LESS\n");
else
{

    for (int i=0;i<x;++i){
	    if(a.at(i)>b.at(i)){
	     z=1;
	    printf("GREATER\n");
	    break;
	    }
	else if (a.at(i)<b.at(i)){
     z=1;
	printf("LESS\n");
	break;123456789012345678901234567890
		}
    }
if (z==0)
printf("EQUAL\n");	


}
}






Compiler output:
a.cc:27:15: warning: integer constant is too large for its type
   27 |         break;123456789012345678901234567890
      |               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:27:45: error: expected ';' before '}' token
   27 |         break;123456789012345678901234567890
      |                                             ^
      |                                             ;
   28 |                 }
      |                 ~
Language: Java

import java.util.*;

public class B_059_Comparison{

	public static void Main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String num_a = sc.next();
		String num_b = sc.next();
		int a_length = num_a.length();
		int b_length = num_b.length();
		String message = "";
		if(a_length > b_length) {
			message = "GREATER";
		} else if(a_length < b_length) {
			message = "LESS";
		} else {
			int i = 0;
			for(i = 0; i < a_length; i++) {
				int a = Integer.parseInt(num_a.charAt(i) + "");
				int b = Integer.parseInt(num_b.charAt(i) + "");
				if(a > b) {
					message = "GREATER";
					break;
				} else if(a < b) {
					message = "LESS";
					break;
				}
			}
			if(i == a_length) {
				message = "EQUAL";
			}
		}
		System.out.println(message);

Compiler output:
Main.java:33: error: reached end of file while parsing
		System.out.println(message);
		                            ^
1 error
Language: C++

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

int main(){

    string A;
    string B;
	cin>>A;
	cin>>B;
	"A"=0;
	"B"=0;
	

    if (A>B)
	cout <<"GREATER";
	else if(A<B)
	cout <<"LESS";
	else
	cout <<"EQUAL";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:12: error: assignment of read-only location '"A"'
   10 |         "A"=0;
      |         ~~~^~
a.cc:11:12: error: assignment of read-only location '"B"'
   11 |         "B"=0;
      |         ~~~^~
Language: C++

#include <iostream>

using namespace std;

int main(){
double a,b;
cin>>a>>b;
if(a>b){

    cout<<" GREATER ";

}
else if(a<b){

    cout<<" LESS ";
}
else{
    cout<<" EQUAL ";
}


Compiler output:
a.cc: In function 'int main()':
a.cc:19:2: error: expected '}' at end of input
   19 | }
      |  ^
a.cc:5:11: note: to match this '{'
    5 | int main(){
      |           ^
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(a.size() < b.size()){
    cout << "LESS" << endl;
  }else{
    sort(a.begin(),a.end());
    sort(b.begin(),b.end());
    if(a > b){
      cout << "GREATER" << endl;
    }else if(a < b){
      cout << "LESS" << endl;
    }else{
      cout << "EQUAL" << endl;
    }
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:29: error: expected ';' before '{' token
    9 |   }else(a.size() < b.size()){
      |                             ^
      |                             ;
a.cc:11:4: error: 'else' without a previous 'if'
   11 |   }else{
      |    ^~~~
Language: Java

#include <bits/stdc++.h>
#include <string>
 
using namespace std ;
 
int main ( )
{
	string x , y;
	cin >> x >> y ;
    bool flag=0;
	if  (x.size() > y.size())
	{
		cout << "GREATER\n" ;
	}
	else if (x.size()==y.size() )
	{
		for (int i =0;i<x.size();i++)
		{
			if (x[i]>y[i])
			{
				cout << "GREATER\n" ;
				flag=1;
				break ;
 
			}
			else if (x[i] <y[i])
			{
				cout <<"LESS\n" ;
				flag=1;
				break ;
			}
		}
		if(flag==0)
            cout << "EQUAL\n" ;
 
	}
	else if (x.size()<y.size() )
	cout << "LESS\n" ;
	else
			cout << "EQUAL\n" ;
 
		return 0 ;
}

Compiler output:
Main.java:1: error: illegal character: '#'
#include <bits/stdc++.h>
^
Main.java:1: error: class, interface, enum, or record expected
#include <bits/stdc++.h>
         ^
Main.java:2: error: illegal character: '#'
#include <string>
^
Main.java:9: error: not a statement
	cin >> x >> y ;
	         ^
Main.java:13: error: not a statement
		cout << "GREATER\n" ;
		     ^
Main.java:21: error: not a statement
				cout << "GREATER\n" ;
				     ^
Main.java:28: error: not a statement
				cout <<"LESS\n" ;
				     ^
Main.java:34: error: not a statement
            cout << "EQUAL\n" ;
                 ^
Main.java:38: error: not a statement
	cout << "LESS\n" ;
	     ^
Main.java:40: error: not a statement
			cout << "EQUAL\n" ;
			     ^
Main.java:6: error: unnamed classes are a preview feature and are disabled by default.
int main ( )
^
  (use --enable-preview to enable unnamed classes)
11 errors
Language: C++

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

int  main ()
{
    long double a,b;
    cin>>a>>b;
    a!=0;
    b!=o;
    if (a>b)
        cout<<"GREATER\n";
    else if (a==b)
        cout<<"EQUIL\n";
    else cout<<"LESS\n";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:8: error: 'o' was not declared in this scope
   10 |     b!=o;
      |        ^
Language: C++

#include <iostream>
using namespace std;
 
int main() {
	string A, B;
cin>>A;
cin>>B;
if(A==B) {
cout<<"EQAL" ;
} else if(A>B) {
cout<<"GREATER" ;
} else if(A<B) {
cout<<"LESS" ;
} 
	return 0;


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

#include<bits/stdc++.h>
using namespace std;
#define int long long
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:
cc1plus: error: '::main' must return 'int'
Language: C++

#include<bits/stdc++.h>
using namespace std;
typedef long long int;
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:3:19: error: declaration does not declare anything [-fpermissive]
    3 | typedef long long int;
      |                   ^~~
Language: C++


#include<iostream>
using namespace std;
int main(){
long long A,B;
cin>>A>>B;
if(A>B)
cout<<"GREATER";
else
cout<<"LESS";
else
if(A==B)
cout<<"EQUAL";

}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:1: error: 'else' without a previous 'if'
   11 | else
      | ^~~~
Language: C++

#include<iostream>
using namespace std ;
int main ()
{
    long double a, b;
    cin>>a>>b;
    if( (a != 0)||(b != 0))
        {
            if(a>b)
                cout <<"GREATER ";
            else if(a <b )
                cout <<"LESS ";
            else
                cout <<"EQUAL ";
        }
return 0 ;

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

#include<iostream>
#include<string.h>
using namespace std;
int main(){
	long long97202469720246 s,y;
	cin>>s;
	cin>>y;
	if((s/y)!=0)
	cout<<"GREATER";
	else 
	cout<<"LESS";

	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:33: error: expected initializer before 's'
    5 |         long long97202469720246 s,y;
      |                                 ^
a.cc:6:14: error: 's' was not declared in this scope
    6 |         cin>>s;
      |              ^
a.cc:7:14: error: 'y' was not declared in this scope
    7 |         cin>>y;
      |              ^
Language: C++

using namespace std;
int main()
{
	double A,B;
	cin>>A;
	cin>>B;
	
	if(A>B)
	{
		cout<<"GERATER";
	
	}
	else if(A<B)
		cout<<"LESS";
	
	 else 
	
	  cout<<"EQUAL";
	  


	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'cin' was not declared in this scope
    5 |         cin>>A;
      |         ^~~
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:10:17: error: 'cout' was not declared in this scope
   10 |                 cout<<"GERATER";
      |                 ^~~~
a.cc:10:17: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:14:17: error: 'cout' was not declared in this scope
   14 |                 cout<<"LESS";
      |                 ^~~~
a.cc:14:17: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:18:11: error: 'cout' was not declared in this scope
   18 |           cout<<"EQUAL";
      |           ^~~~
a.cc:18:11: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

#include<iostream>
using namespace std;
#include<bits/stdc++.h> 
int main()
{
	char A[10000],B[10000];
    cin>>A>>B;
	int x=strlen(A);
	int y=strlen(B);
	if(x!=y){
		if(x>y)
		    cout<<"Number A Greater Than B\n";
		else
		    cout<<"Number B Greater Than A\n";
	}
	else{
		for(int i=0;i<x;i++){
			if(a[i]!=b[i]){
				if(a[i]>b[i])
				  cout<<"Number A Greater Than B\n\n";
				else
		           cout<<"Number B Greater Than A\n";
		           break;}
			if(i+1==x)
			   cout<<"Equall\n";
			   continue;
		}}
		return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:28: error: 'a' was not declared in this scope
   18 |                         if(a[i]!=b[i]){
      |                            ^
a.cc:18:34: error: 'b' was not declared in this scope
   18 |                         if(a[i]!=b[i]){
      |                                  ^
Language: C++

#include<ioatream>
using namespace std;
#include<bits/stdc++.h> 
int main()
{
	char a[10000],b[10000];
    cin>>a>>b;
	int x=strlen(a);
	int y=strlen(b);
	if(x!=y){
		if(x>y)
		    cout<<"Number A Greater Than B\n";
		else
		    cout<<"Number B Greater Than A\n";
	}
	else{
		for(int i=0;i<x;i++){
			if(a[i]!=b[i]){
				if(a[i]>b[i])
				  cout<<"Number A Greater Than B\n\n";
				else
		           cout<<"Number B Greater Than A\n";
		           break;
			}
			if(i+1==x)
			   cout<<"Equall\n";
			   continue;
		}}
		return 0;
}

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

#include<iostream>
#include<bits/stdc++.h> 
int main()
{
	char a[10000],b[10000];
//	scanf("%c%c",&a,&b);
    cin>>a>>b;
	int x=strlen(a);
	int y=strlen(b);
	if(x!=y){
		if(x>y)
		    //printf("Greater\n");
		    cout<<"Greater\n";
		else
		    //printf("Less\n");
		    cout<<"Less\n";
	}
	else{
		for(int i=0;i<x;i++){
			if(a[i]!=b[i]){
				if(a[i]>b[i])
				  // printf("Greater\n");
				  cout<<"Greater\n";
				else
		          // printf("Less\n");
		           cout<<"Less\n";
		           break;
			}
			if(i+1==x)
			   //printf("Equall\n");
			   cout<<"Equall\n";
			   continue;
		}}
		return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |     cin>>a>>b;
      |     ^~~
      |     std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:13:21: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   13 |                     cout<<"Greater\n";
      |                     ^~~~
      |                     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:16:21: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   16 |                     cout<<"Less\n";
      |                     ^~~~
      |                     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:23:35: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   23 |                                   cout<<"Greater\n";
      |                                   ^~~~
      |                                   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:26:28: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   26 |                            cout<<"Less\n";
      |                            ^~~~
      |                            std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:31:28: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   31 |                            cout<<"Equall\n";
      |                            ^~~~
      |                            std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#include<stdio.h>
#include<bits/stdc++.h> 
int main()
{
	char a[10000],b[10000];
//	scanf("%c%c",&a,&b);
    cin>>a>>b;
	int x=strlen(a);
	int y=strlen(b);
	if(x!=y){
		if(x>y)
		    //printf("Greater\n");
		    cout<<"Greater\n";
		else
		    //printf("Less\n");
		    cout<<"Less\n";
	}
	else{
		for(int i=0;i<x;i++){
			if(a[i]!=b[i]){
				if(a[i]>b[i])
				  // printf("Greater\n");
				  cout<<"Greater\n";
				else
		          // printf("Less\n");
		           cout<<"Less\n";
		           break;
			}
			if(i+1==x)
			   //printf("Equall\n");
			   cout<<"Equall\n";
			   continue;
		}}
		return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |     cin>>a>>b;
      |     ^~~
      |     std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:2:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:13:21: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   13 |                     cout<<"Greater\n";
      |                     ^~~~
      |                     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:16:21: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   16 |                     cout<<"Less\n";
      |                     ^~~~
      |                     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:23:35: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   23 |                                   cout<<"Greater\n";
      |                                   ^~~~
      |                                   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:26:28: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   26 |                            cout<<"Less\n";
      |                            ^~~~
      |                            std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:31:28: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   31 |                            cout<<"Equall\n";
      |                            ^~~~
      |                            std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

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

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:16: error: expected initializer before 'a'
    4 | {double string a,b;cin>>a>>b;
      |                ^
a.cc:4:25: error: 'a' was not declared in this scope
    4 | {double string a,b;cin>>a>>b;
      |                         ^
a.cc:4:28: error: 'b' was not declared in this scope
    4 | {double string a,b;cin>>a>>b;
      |                            ^
Language: C++

#include<iostream>
using namespace std;
int main(){
	int M,N;
	cin>>M>>N;
	cout<<(MN - 1)/2;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:16: error: 'MN' was not declared in this scope; did you mean 'N'?
    6 |         cout<<(MN - 1)/2;
      |                ^~
      |                N