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

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

Compiler output:
a.cc:1:2: error: stray '#' in program
    1 | r#include<iostream>
      |  ^
a.cc:1:1: error: 'r' does not name a type
    1 | r#include<iostream>
      | ^
a.cc: In function 'int main()':
a.cc:5:9: error: 'cin' was not declared in this scope
    5 |         cin>>M>>N;
      |         ^~~
a.cc:6:9: error: 'cout' was not declared in this scope
    6 |         cout<<(MN - 1)/2;
      |         ^~~~
a.cc:6:16: error: 'MN' was not declared in this scope; did you mean 'N'?
    6 |         cout<<(MN - 1)/2;
      |                ^~
      |                N
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";
	return 0;
}


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 <bits/std.c++.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";
	return 0;
}

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:4:5: error: 'string' was not declared in this scope
    4 |     string A;
      |     ^~~~~~
a.cc:1:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
  +++ |+#include <string>
    1 | using namespace std;
a.cc:5:11: error: expected ';' before 'B'
    5 |     string B;
      |           ^~
      |           ;
a.cc:6:9: error: 'cin' was not declared in this scope
    6 |         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:6:14: error: 'A' was not declared in this scope
    6 |         cin>>A;
      |              ^
a.cc:7:14: error: 'B' was not declared in this scope
    7 |         cin>>B;
      |              ^
a.cc:8:12: error: ordered comparison of pointer with integer zero ('const char*' and 'int')
    8 |         "A">=0;
      |         ~~~^~~
a.cc:9:12: error: ordered comparison of pointer with integer zero ('const char*' and 'int')
    9 |         "B">=0;
      |         ~~~^~~
a.cc:13:9: error: 'cout' was not declared in this scope
   13 |         cout <<"GREATER";
      |         ^~~~
a.cc:13:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:15:9: error: 'cout' was not declared in this scope
   15 |         cout <<"LESS";
      |         ^~~~
a.cc:15:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:17:9: error: 'cout' was not declared in this scope
   17 |         cout <<"EQUAL";
      |         ^~~~
a.cc:17:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:4:5: error: 'string' was not declared in this scope
    4 |     string A;
      |     ^~~~~~
a.cc:1:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
  +++ |+#include <string>
    1 | using namespace std;
a.cc:5:11: error: expected ';' before 'B'
    5 |     string B;
      |           ^~
      |           ;
a.cc:6:9: error: 'cin' was not declared in this scope
    6 |         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:6:14: error: 'A' was not declared in this scope
    6 |         cin>>A;
      |              ^
a.cc:7:14: error: 'B' was not declared in this scope
    7 |         cin>>B;
      |              ^
a.cc:8:12: error: ordered comparison of pointer with integer zero ('const char*' and 'int')
    8 |         "A">=0;
      |         ~~~^~~
a.cc:9:12: error: ordered comparison of pointer with integer zero ('const char*' and 'int')
    9 |         "b">=0;
      |         ~~~^~~
a.cc:13:9: error: 'cout' was not declared in this scope
   13 |         cout <<"GREATER";
      |         ^~~~
a.cc:13:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:15:9: error: 'cout' was not declared in this scope
   15 |         cout <<"LESS";
      |         ^~~~
a.cc:15:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:17:9: error: 'cout' was not declared in this scope
   17 |         cout <<"EQUAL";
      |         ^~~~
a.cc:17:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:11: error: invalid types 'double[int]' for array subscript
    5 | if(a>=1&&b[0]>=1&&a[0]>=1)
      |           ^
a.cc:5:20: error: invalid types 'double[int]' for array subscript
    5 | if(a>=1&&b[0]>=1&&a[0]>=1)
      |                    ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:8: error: expected primary-expression before 'int'
    4 | {int a[int];int b[int];cin>>a>>b;
      |        ^~~
a.cc:4:8: error: expected ']' before 'int'
    4 | {int a[int];int b[int];cin>>a>>b;
      |        ^~~
      |        ]
a.cc:4:19: error: expected primary-expression before 'int'
    4 | {int a[int];int b[int];cin>>a>>b;
      |                   ^~~
a.cc:4:19: error: expected ']' before 'int'
    4 | {int a[int];int b[int];cin>>a>>b;
      |                   ^~~
      |                   ]
a.cc:4:29: error: 'a' was not declared in this scope
    4 | {int a[int];int b[int];cin>>a>>b;
      |                             ^
a.cc:4:32: error: 'b' was not declared in this scope
    4 | {int a[int];int b[int];cin>>a>>b;
      |                                ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:11: error: invalid types 'int[int]' for array subscript
    5 | if(a>=1&&b[0]>=1&&a[0]>=1)
      |           ^
a.cc:5:20: error: invalid types 'int[int]' for array subscript
    5 | if(a>=1&&b[0]>=1&&a[0]>=1)
      |                    ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{double a[];double b[];cin>>a>>b;
if(a>=1&&b[0]>=1&&a[0]>=1)
{
if(a>b)
{cout<<"GREATER";}
if(a<b)
{cout<<"LESS";}
else
{cout<<"EQUAL";}
}
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:9: error: storage size of 'a' isn't known
    4 | {double a[];double b[];cin>>a>>b;
      |         ^
a.cc:4:20: error: storage size of 'b' isn't known
    4 | {double a[];double b[];cin>>a>>b;
      |                    ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{double a,b;cin>>a>>b;
if(a>=1&&a[0]>0&&b[0]>0)
{
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:5:11: error: invalid types 'double[int]' for array subscript
    5 | if(a>=1&&a[0]>0&&b[0]>0)
      |           ^
a.cc:5:19: error: invalid types 'double[int]' for array subscript
    5 | if(a>=1&&a[0]>0&&b[0]>0)
      |                   ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{double a,b;cin>>a>>b;
if(a<=1&&a[0]>0&&b[0]>0)
{
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:5:11: error: invalid types 'double[int]' for array subscript
    5 | if(a<=1&&a[0]>0&&b[0]>0)
      |           ^
a.cc:5:19: error: invalid types 'double[int]' for array subscript
    5 | if(a<=1&&a[0]>0&&b[0]>0)
      |                   ^
Language: C++

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

Compiler output:
a.cc:1:1: error: stray '#' in program
    1 | ً#include<bits/stdc++.h>
      | ^
a.cc:1:1: error: '\U0000064b' does not name a type
    1 | ً#include<bits/stdc++.h>
      |  
a.cc: In function 'int main()':
a.cc:4:9: error: 'string' was not declared in this scope
    4 |         string a,b;
      |         ^~~~~~
a.cc:5:9: error: 'cin' was not declared in this scope
    5 |         cin>>a>>b;
      |         ^~~
a.cc:5:14: error: 'a' was not declared in this scope
    5 |         cin>>a>>b;
      |              ^
a.cc:5:17: error: 'b' was not declared in this scope
    5 |         cin>>a>>b;
      |                 ^
a.cc:7:9: error: 'cout' was not declared in this scope
    7 |         cout<<"GRATER";
      |         ^~~~
a.cc:9:9: error: 'cout' was not declared in this scope
    9 |         cout<<"LESS";
      |         ^~~~
a.cc:11:9: error: 'cout' was not declared in this scope
   11 |         cout<<"EQUAL";
      |         ^~~~
Language: C++

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

Compiler output:
a.cc:1:1: error: stray '#' in program
    1 | ً#include<bits/stdc++.h>
      | ^
a.cc:1:1: error: '\U0000064b' does not name a type
    1 | ً#include<bits/stdc++.h>
      |  
a.cc: In function 'int main()':
a.cc:4:9: error: 'string' was not declared in this scope
    4 |         string a,b;
      |         ^~~~~~
a.cc:5:9: error: 'cin' was not declared in this scope
    5 |         cin>>a>>b;
      |         ^~~
a.cc:5:14: error: 'a' was not declared in this scope
    5 |         cin>>a>>b;
      |              ^
a.cc:5:17: error: 'b' was not declared in this scope
    5 |         cin>>a>>b;
      |                 ^
a.cc:7:9: error: 'cout' was not declared in this scope
    7 |         cout<<"GRATER\n";
      |         ^~~~
a.cc:9:9: error: 'cout' was not declared in this scope
    9 |         cout<<"LESS\n";
      |         ^~~~
a.cc:11:9: error: 'cout' was not declared in this scope
   11 |         cout<<"EQUAL\n";
      |         ^~~~
Language: C++

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

Compiler output:
a.cc:1:1: error: stray '#' in program
    1 | ً#include<bits\stdc++.h>
      | ^
a.cc:1:14: error: stray '\' in program
    1 | ً#include<bits\stdc++.h>
      |              ^
a.cc:1:1: error: '\U0000064b' does not name a type
    1 | ً#include<bits\stdc++.h>
      |  
a.cc: In function 'int main()':
a.cc:4:9: error: 'string' was not declared in this scope
    4 |         string a,b;
      |         ^~~~~~
a.cc:5:9: error: 'cin' was not declared in this scope
    5 |         cin>>a>>b;
      |         ^~~
a.cc:5:14: error: 'a' was not declared in this scope
    5 |         cin>>a>>b;
      |              ^
a.cc:5:17: error: 'b' was not declared in this scope
    5 |         cin>>a>>b;
      |                 ^
a.cc:7:9: error: 'cout' was not declared in this scope
    7 |         cout<<"GRATER\n";
      |         ^~~~
a.cc:9:9: error: 'cout' was not declared in this scope
    9 |         cout<<"LESS\n";
      |         ^~~~
a.cc:11:9: error: 'cout' was not declared in this scope
   11 |         cout<<"EQUAL\n";
      |         ^~~~
Language: C++

#include <iostream>
#include <stdio.h>
using namespace std;
int main() {
	int  long long a, b;
	scanf_s("%d %d", &a, &b);
	if (a > b)
		printf_s("GREATER");
	else if (a < b)
		printf_s("LESS");
	else if (a = b)
		printf_s("EQUAL");



}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
    6 |         scanf_s("%d %d", &a, &b);
      |         ^~~~~~~
      |         scanf
a.cc:8:17: error: 'printf_s' was not declared in this scope; did you mean 'printf'?
    8 |                 printf_s("GREATER");
      |                 ^~~~~~~~
      |                 printf
a.cc:10:17: error: 'printf_s' was not declared in this scope; did you mean 'printf'?
   10 |                 printf_s("LESS");
      |                 ^~~~~~~~
      |                 printf
a.cc:12:17: error: 'printf_s' was not declared in this scope; did you mean 'printf'?
   12 |                 printf_s("EQUAL");
      |                 ^~~~~~~~
      |                 printf
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:19: error: two or more data types in declaration of 'x'
    4 |         long long int int x,y;
      |                   ^~~
a.cc:4:19: error: two or more data types in declaration of 'y'
a.cc:5:14: error: 'x' was not declared in this scope
    5 |         cin>>x>>y;
      |              ^
a.cc:5:17: error: 'y' was not declared in this scope
    5 |         cin>>x>>y;
      |                 ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:23: error: 'long long long' is too long for GCC
    4 |         long long int long long x,y;
      |                       ^~~~
a.cc:4:28: error: 'long long long' is too long for GCC
    4 |         long long int long long x,y;
      |                            ^~~~
Language: C++

using namespace std;
int main(){
	long long A;
       long long B;
	cin>>A;
	cin>>B;
	if(A>0&&B>0)
		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: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:9:25: error: 'cout' was not declared in this scope
    9 |                         cout<<"GREATER"<<endl;
      |                         ^~~~
a.cc:9:25: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:9:42: error: 'endl' was not declared in this scope
    9 |                         cout<<"GREATER"<<endl;
      |                                          ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | using namespace std;
a.cc:12:25: error: 'cout' was not declared in this scope
   12 |                         cout<<"LESS"<<endl;
      |                         ^~~~
a.cc:12:25: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:12:39: error: 'endl' was not declared in this scope
   12 |                         cout<<"LESS"<<endl;
      |                                       ^~~~
a.cc:12:39: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
a.cc:16:9: error: 'cout' was not declared in this scope
   16 |         cout<<"EQUAL"<<endl;}
      |         ^~~~
a.cc:16:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:16:24: error: 'endl' was not declared in this scope
   16 |         cout<<"EQUAL"<<endl;}
      |                        ^~~~
a.cc:16:24: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

#include<iostream>
using namespace std;
int main(){
	int A,B;
	cin>>A>>B;
	if(A!=0&&B!=0){
		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:13:10: error: expected '}' at end of input
   13 |         }
      |          ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
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 if(A==B)cout << "EQUAL";
  else if{
    for(int i=0;true;i++){
      if(A[i]>B[i]){
        cout << "GREATER";
        break;
      }
      else if(A[i]<B[i]){
        cout << "LESS";
        break;
      }
    }
  }
}



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

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

int main(){
	string a,b;cin>>a>>b;
  if(a==b)cout<<"EQUAL"<<endl,exit(0);
  if(a.size()>b.size())cout<<"GREATER"<<endl;exit(0);
  if(a.size()<b.size())cout<<"LESS"<<endl;exit(0);
  for(int i=0;i<a.size();i++){
  if(a[i]>b[i])cout<<"GREATER"<<endl;exit(0);
  if(a[i]<b[i])cout<<"LESS"<<endl;exit(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;
  if(a.size()>b.size())cout<<"GREATER"<<endl;
  else if(a.size()<b.size())cout<<"LESS"<<endl;
  else if(a==b)cout<<"EQUAL"<<endl;
  else{
    for(int i=0;i<a.size()<i++){
      if(a.at(i)>b.at(i)){
        cout<<"GREATER"<<endl;
        break;
      }
      else if(a.at(i)<b.at(i)){
        cout<<"LESS"<<endl;
        break;
      }
    }
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:31: error: expected ';' before ')' token
    9 |     for(int i=0;i<a.size()<i++){
      |                               ^
      |                               ;
Language: C++

#include <iostream>
#include <fstream>
#include <vector>
#include <algorithm>
#include <cmath>
using namespace std;


int main(int argc, const char * argv[]) {
  if(sa == sb){
    cout << "EQUAL" << endl;
  }else if(sa.size() > sb.size() || (sa.size() == sb.size() && sa > sb)){
    cout << "GREATER" << endl;
  }else{
    cout << "LESS" << endl;
  }
  return 0;
}


Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:10:6: error: 'sa' was not declared in this scope
   10 |   if(sa == sb){
      |      ^~
a.cc:10:12: error: 'sb' was not declared in this scope
   10 |   if(sa == sb){
      |            ^~
Language: Java

import util.java.*;
 
public class Main {
	static Scanner scanner = new Scanner(System.in);
 
	public static void main(String[]$) {
		int compare = scanner.next().compareTo(scanner.next());
		System.out.println(compare == 1 ? "GREATER" : compare == 0 ? "EQUAL" : "LESS");
	}
}

Compiler output:
Main.java:4: error: cannot find symbol
	static Scanner scanner = new Scanner(System.in);
	       ^
  symbol:   class Scanner
  location: class Main
Main.java:1: error: package util.java does not exist
import util.java.*;
^
Main.java:4: error: cannot find symbol
	static Scanner scanner = new Scanner(System.in);
	                             ^
  symbol:   class Scanner
  location: class Main
3 errors
Language: Java

import util.java.*;

public class Main {
  	static Scanner scanner = new Scanner(System.in);

    public static void main(String[]$) {
    	int compare = scanner.next().compareTo(scanner.next());
		System.out.println(compare == 1 ? "GREATER" : compare == 0 ? "EQUAL" : "LESS");
    }
}

Compiler output:
Main.java:4: error: cannot find symbol
  	static Scanner scanner = new Scanner(System.in);
  	       ^
  symbol:   class Scanner
  location: class Main
Main.java:1: error: package util.java does not exist
import util.java.*;
^
Main.java:4: error: cannot find symbol
  	static Scanner scanner = new Scanner(System.in);
  	                             ^
  symbol:   class Scanner
  location: class Main
3 errors
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
 string A,B;
  cin>>A>>B;
  
  if(A.size()!=B.size()){
    if(A.size()>B.size()){
      cout<<"GREATER"<<endl;
    }
    
    else if(A.size()<B.size()){
      cout<<"LESS"<<endl;
    }
    
    else{
      cout<<"EQUAL"<<endl;
    }
  }
  
  else if(A.size()==B.size()){
    
    if(A==B){
cout<<"EQUAL"<<endl;
    }
    
    else {
    
    for(int i=0;i<A.size();i++){
     if(A.size(i)-'0'!=B.size()-'0'){
       if(A.size(i)-'0'>B.size()-'0'){
cout<<"GREATER"<<endl;
       }

       else if(A.size(i)-'0'<B.size()-'0'){
         cout<<"LESS"<<endl;
       }
     }
    }
    }
    
  }

       
     
    

Compiler output:
a.cc: In function 'int main()':
a.cc:30:15: error: no matching function for call to 'std::__cxx11::basic_string<char>::size(int&)'
   30 |      if(A.size(i)-'0'!=B.size()-'0'){
      |         ~~~~~~^~~
In file included from /usr/include/c++/14/string:54,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52,
                 from a.cc:1:
/usr/include/c++/14/bits/basic_string.h:1076:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]'
 1076 |       size() const _GLIBCXX_NOEXCEPT
      |       ^~~~
/usr/include/c++/14/bits/basic_string.h:1076:7: note:   candidate expects 0 arguments, 1 provided
a.cc:31:17: error: no matching function for call to 'std::__cxx11::basic_string<char>::size(int&)'
   31 |        if(A.size(i)-'0'>B.size()-'0'){
      |           ~~~~~~^~~
/usr/include/c++/14/bits/basic_string.h:1076:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]'
 1076 |       size() const _GLIBCXX_NOEXCEPT
      |       ^~~~
/usr/include/c++/14/bits/basic_string.h:1076:7: note:   candidate expects 0 arguments, 1 provided
a.cc:35:22: error: no matching function for call to 'std::__cxx11::basic_string<char>::size(int&)'
   35 |        else if(A.size(i)-'0'<B.size()-'0'){
      |                ~~~~~~^~~
/usr/include/c++/14/bits/basic_string.h:1076:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]'
 1076 |       size() const _GLIBCXX_NOEXCEPT
      |       ^~~~
/usr/include/c++/14/bits/basic_string.h:1076:7: note:   candidate expects 0 arguments, 1 provided
a.cc:42:4: error: expected '}' at end of input
   42 |   }
      |    ^
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++)

int main(){
    usigned long long 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: In function 'int main()':
a.cc:6:5: error: 'usigned' was not declared in this scope; did you mean 'unsigned'?
    6 |     usigned long long A,B;
      |     ^~~~~~~
      |     unsigned
a.cc:7:10: error: 'A' was not declared in this scope
    7 |     cin>>A>>B;
      |          ^
a.cc:7:13: error: 'B' was not declared in this scope
    7 |     cin>>A>>B;
      |             ^
Language: C++

#include <bits/stdc++.h>
#define x first
#define y second
#define pii pair<int,int>
using namespace std;

int main() {
	// your code goes here
	string num1,num2;
	cin>>num1>>num2;
	int res = s1.compare(s2);
	if(res==0) printf("EQUAL");
	else printf("%s\n", res <0 ? "GREATER" : "LESS");
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:19: error: 's1' was not declared in this scope; did you mean 'y1'?
   11 |         int res = s1.compare(s2);
      |                   ^~
      |                   y1
a.cc:11:30: error: 's2' was not declared in this scope
   11 |         int res = s1.compare(s2);
      |                              ^~
Language: C++

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

vector<int> A;
vector<int> B;
cin>>A>>B;
int C==A.size() -1;
if(A.size()>B.size())
  cout<<"GREATER"<<endl;
if(A.size()<B.size())
  cout<<"LESS"<<endl;
if(A.size()==B.size()){
for(int i=0;i<1000;i++){
   if(A.at(i)>B.at(i)){
cout<<"GREATER"<<endl;
     break;
   }
   if(A.at(i)<B.at(i)){
cout<<"LESS"<<endl;
     break;
   }
  if(A.at(i)==B.at(i)){
    if(i==C){
cout<<"EQUAL"<<endl;
    }
  }
}
}

Compiler output:
a.cc:6:1: error: 'cin' does not name a type
    6 | cin>>A>>B;
      | ^~~
a.cc:7:6: error: expected initializer before '==' token
    7 | int C==A.size() -1;
      |      ^~
a.cc:8:1: error: expected unqualified-id before 'if'
    8 | if(A.size()>B.size())
      | ^~
a.cc:10:1: error: expected unqualified-id before 'if'
   10 | if(A.size()<B.size())
      | ^~
a.cc:12:1: error: expected unqualified-id before 'if'
   12 | if(A.size()==B.size()){
      | ^~
Language: C++

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

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


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

#include <iostream>
#include <string>
#define rep(i, n) for(int i = 0; i < n; i++)
using namespace std;

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

  if(a == b) {
    cout << "EQUAL" << endl;
    return 0;
  }

  if(a.size() > b.size()) {
    cout << "GREATER" << endl;
  } else if(a.size() < b.size()) {
    cout << "LESS" << endl;
  } else {
    string l[2] = {a, b};
    // 文字列で昇順ソート
    sort(l, l+2);
    cout << (l[0]==a ? "LESS" : "GREATER") << endl;
  }
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:21:5: error: 'sort' was not declared in this scope; did you mean 'short'?
   21 |     sort(l, l+2);
      |     ^~~~
      |     short
Language: C++

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

int main(void)
{

	string s1, s2;
	cin >> s1;
	cin >> s2;

	if (s1.size() == s2.size())
	{

		if (s1 > s2)
		{
			cout << "GREATER" << endl;
			　
		}
		else if (s1 < s2)
		{
			cout << "LESS" << endl;
			　
		}
		else
		{
			cout << "EQUAL" << endl;
			　
		}
	}
	else
	{
		if (s1.size()> s2.size())
		{
			cout << "GREATER" << endl;
		}
		else
		{
			cout << "LESS" << endl;
		}
		　    
　
	}
}


Compiler output:
a.cc:21:25: error: extended character 　 is not valid in an identifier
   21 |                         　
      |                         ^
a.cc:26:25: error: extended character 　 is not valid in an identifier
   26 |                         　
      |                         ^
a.cc:31:25: error: extended character 　 is not valid in an identifier
   31 |                         　
      |                         ^
a.cc:44:17: error: extended character 　 is not valid in an identifier
   44 |                 　
      |                 ^
a.cc:45:1: error: extended character 　 is not valid in an identifier
   45 | 　
      | ^
a.cc: In function 'int main()':
a.cc:21:25: error: '\U00003000' was not declared in this scope
   21 |                         　
      |                         ^~
a.cc:26:25: error: '\U00003000' was not declared in this scope
   26 |                         　
      |                         ^~
a.cc:31:25: error: '\U00003000' was not declared in this scope
   31 |                         　
      |                         ^~
a.cc:44:17: error: '\U00003000' was not declared in this scope
   44 |                 　
      |                 ^~
Language: C++

#include<iostream>
#include <vector>
#include <string>
#include <cmath>
#include <deque>
#include <utility>
#include <algorithm>
	using namespace std;

int main(void)
{

	string s1, s2;
	cin >> s1;
	cin >> s2;

	if (s1.size() == s2.size())
	{

		if (s1 > s2)
		{
			cout << "GREATER" << endl;
			　
		}
		else if (s1 < s2)
		{
			　 cout << "LESS" << endl;
			　
		}
		else
		{
			　 cout << "EQUAL" << endl;
			　
		}
	}
	else
	{
		if (s1.size() > s2.size())
		{
			cout << "GREATER" << endl;
		}
		else
		{
			cout << "LESS" << endl;
		}
		　    
　
	}
}


Compiler output:
a.cc:23:25: error: extended character 　 is not valid in an identifier
   23 |                         　
      |                         ^
a.cc:27:25: error: extended character 　 is not valid in an identifier
   27 |                         　 cout << "LESS" << endl;
      |                         ^
a.cc:28:25: error: extended character 　 is not valid in an identifier
   28 |                         　
      |                         ^
a.cc:32:25: error: extended character 　 is not valid in an identifier
   32 |                         　 cout << "EQUAL" << endl;
      |                         ^
a.cc:33:25: error: extended character 　 is not valid in an identifier
   33 |                         　
      |                         ^
a.cc:46:17: error: extended character 　 is not valid in an identifier
   46 |                 　
      |                 ^
a.cc:47:1: error: extended character 　 is not valid in an identifier
   47 | 　
      | ^
a.cc: In function 'int main()':
a.cc:23:25: error: '\U00003000' was not declared in this scope
   23 |                         　
      |                         ^~
a.cc:27:25: error: '\U00003000' was not declared in this scope
   27 |                         　 cout << "LESS" << endl;
      |                         ^~
a.cc:28:27: error: expected ';' before '}' token
   28 |                         　
      |                           ^
      |                           ;
   29 |                 }
      |                 ~          
a.cc:32:25: error: '\U00003000' was not declared in this scope
   32 |                         　 cout << "EQUAL" << endl;
      |                         ^~
a.cc:33:27: error: expected ';' before '}' token
   33 |                         　
      |                           ^
      |                           ;
   34 |                 }
      |                 ~          
a.cc:46:17: error: '\U00003000' was not declared in this scope
   46 |                 　
      |                 ^~
Language: C++

#include <iostream>
#include <vector>
#include <string>
#include <cmath>
#include <deque>
#include <utility>
#include <algorithm>
using namespace std;

int main(void){
   
   string s1, s2;
　
    cin>>s1;
    cin>>s2;
　
    if(s1.size()==s2.size()){

    　if(s1>s2){
        cout<<"GREATER"<<endl;
　    }else if(s1<s2){
　      cout<<"LESS"<<endl;
　    }else{
　      cout<<"EQUAL"<<endl;
　    }
    }else{
        if(s1.size()>s2.size()){
            cout<<"GREATER"<<endl;
        }else{
            cout<<"LESS"<<endl;
        }
　    
　  }
}


Compiler output:
a.cc:13:1: error: extended character 　 is not valid in an identifier
   13 | 　
      | ^
a.cc:16:1: error: extended character 　 is not valid in an identifier
   16 | 　
      | ^
a.cc:19:5: error: extended character 　 is not valid in an identifier
   19 |     　if(s1>s2){
      |     ^
a.cc:21:1: error: extended character 　 is not valid in an identifier
   21 | 　    }else if(s1<s2){
      | ^
a.cc:22:1: error: extended character 　 is not valid in an identifier
   22 | 　      cout<<"LESS"<<endl;
      | ^
a.cc:23:1: error: extended character 　 is not valid in an identifier
   23 | 　    }else{
      | ^
a.cc:24:1: error: extended character 　 is not valid in an identifier
   24 | 　      cout<<"EQUAL"<<endl;
      | ^
a.cc:25:1: error: extended character 　 is not valid in an identifier
   25 | 　    }
      | ^
a.cc:32:1: error: extended character 　 is not valid in an identifier
   32 | 　
      | ^
a.cc:33:1: error: extended character 　 is not valid in an identifier
   33 | 　  }
      | ^
a.cc: In function 'int main()':
a.cc:13:1: error: '\U00003000' was not declared in this scope
   13 | 　
      | ^~
a.cc:16:3: error: expected ';' before 'if'
   16 | 　
      |   ^
      |   ;
   17 |     if(s1.size()==s2.size()){
      |     ~~
a.cc:26:6: error: 'else' without a previous 'if'
   26 |     }else{
      |      ^~~~
a.cc:32:3: error: expected ';' before '\U00003000'
   32 | 　
      |   ^
      |   ;
   33 | 　  }
      | ~~
Language: C++

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

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


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

#include <iostream>
#include <cstdio>
#include <string>
#include <cstdlib>
#include <vector>
#include <algorithm>
#include <functional>
#include <iomanip>
#include <stdlib.h>
#include <cmath>
#include <map>
#include <queue>
#include <deque>
#include <stack>
#include <set>
const long long INF = 1e9 + 7;
using namespace std;
map<int, int> mp;
int main()
{
	string a, b;
	cin >> a >> b;
	if (a.size() > b.size())
		cout << "GREATER";
	else if (a.size() < b.size())
		cout << "LESS";
	else {
		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:35:2: error: expected '}' at end of input
   35 | }
      |  ^
a.cc:20:1: note: to match this '{'
   20 | {
      | ^
Language: C++

#include <bits/stdc++.h>

using namespace std;
typedef long long ll;
typedef pair<int,int> P;

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

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

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

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

    return 0;

}

Compiler output:
a.cc:22:5: error: expected unqualified-id before 'return'
   22 |     return 0;
      |     ^~~~~~
a.cc:24:1: error: expected declaration before '}' token
   24 | }
      | ^
Language: C++

#include <iostream>
#include <vector>
#include <string>
#include <cstdlib>
#include <algorithm>
#include <cstdio>
#include <cstring>
#include <stack>
#include <math.h>
#include <map>
#define Z class
#define ln cout<<'\n'
#define ll long long
#define rep(i, n) for(int i = 0; i < (n); ++i)
//ASCII a=97, A=65
// int H[N]; rep(i,N) scanf("%d", &H[i]);
// int max_x = *std::max_element(x.begin(), x.end());
// int min_y = *std::min_element(y.begin(), y.end());
using namespace std;
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;}
template<Z A>void pr(A a){cout<<a;ln;}
template<Z A,Z B>void pr(A a,B b){cout<<a<<' ';pr(b);}
template<Z A,Z B,Z C>void pr(A a,B b,C c){cout<<a<<' ';pr(b,c);}
template<Z A,Z B,Z C,Z D>void pr(A a,B b,C c,D d){cout<<a<<' ';pr(b,c,d);}
template<Z A>void PR(A a,ll n){rep(i,n){if(i)cout<<' ';cout<<a[i];}ln;}

int GCD(int a, int b) { return b ? GCD(b, a%b) : a; }
const long long INF = 1LL << 60;

int main(){
    char A[110],B[110]; cin >> A >> B;
    string res = "EQUAL";
    
    if(strlen(A) > strlen(B)){
        res = "GREATER";
    }else if(strlen(A) < strlen(B)){
        res = "LESS";
    }
    
    else{
        rep(i,strlen(A)){
            if(A[i]==B[i]){
                continue;
            }else if(A[i]>B[i]){
                res = "GREATER";
                break;
            }else if(A[i]<B[i]){
                res = "LESS";
                break;
        } 
    }
    pr(res);
}


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

#include <iostream>
using namespace std;
int main(void){
    string A,B;
    int ans;
    cin >> A >> B;
    
    if(A.length() > B.length()){
        ans = 1;
    }else if(A.length() < B.length()){
        ans = 2;
    }else if(A.length == B.length){
        for(int i = 0; i < A.length(); i++){
            if(A[i] > B[i]){
                ans = 1;
                break;
            }else if(A[i] < B[i]){
                ans = 2;
                break;
            }else{
                ans = 3;
            }
        }
    }
    
    if(ans == 1){
        cout << "GREATER" << endl;
    }else if(ans == 2){
        cout << "LESS" << endl;
    }else{
        cout << "EQUOL" << endl;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:16: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::length() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]' (did you forget the '()' ?)
   12 |     }else if(A.length == B.length){
      |              ~~^~~~~~
      |                      ()
a.cc:12:28: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::length() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]' (did you forget the '()' ?)
   12 |     }else if(A.length == B.length){
      |                          ~~^~~~~~
      |                                  ()
Language: C++

#include <iostream>
#include <sstream>
#include <vector>
#include <string>
#include <cmath>
#include <algorithm>
#include <map>
#include <stdio.h>

using namespace std;

//typedefリスト
typedef vector<long long int> vint;
typedef vector<string> vstr;
typedef long long int llint;



int main(void) {
	string A, B;
	cin >> A >> B;
	llint sizA = A.length();
	llint sizB = B.length();

	if (sizA > sizB)cout << "GREATER" << endl;
	else if (sizB > sizA)cout << "LESS" << endl;
	else{
		for (int = ; i < sizA; i++){
			if (A[i]>B[i]){
				cout << "GREATER" << endl;
				break;
			}
			else{
				cout << "LESS" << endl;
				break;
			}
		}
	}

}

Compiler output:
a.cc: In function 'int main()':
a.cc:28:26: error: expected unqualified-id before '=' token
   28 |                 for (int = ; i < sizA; i++){
      |                          ^
a.cc:28:25: error: expected ';' before '=' token
   28 |                 for (int = ; i < sizA; i++){
      |                         ^~
      |                         ;
a.cc:28:26: error: expected primary-expression before '=' token
   28 |                 for (int = ; i < sizA; i++){
      |                          ^
a.cc:28:28: error: expected primary-expression before ';' token
   28 |                 for (int = ; i < sizA; i++){
      |                            ^
a.cc:28:30: error: 'i' was not declared in this scope
   28 |                 for (int = ; i < sizA; i++){
      |                              ^
a.cc:28:38: error: expected ')' before ';' token
   28 |                 for (int = ; i < sizA; i++){
      |                     ~                ^
      |                                      )
a.cc:28:40: error: 'i' was not declared in this scope
   28 |                 for (int = ; i < sizA; i++){
      |                                        ^
Language: C++

#include <iostream>
#include <sstream>
#include <vector>
#include <string>
#include <cmath>
#include <algorithm>
#include <map>
#include <stdio.h>

using namespace std;

//typedefリスト
typedef vector<long long int> vint;
typedef vector<string> vstr;
typedef long long int llint;



int main(void) {
	string A, B;
	llint sizA = A.length();
	llint sizB = B.length();

	if (sizA > sizB)cout << "GREATER" << endl;
	else if (sizB > sizA)cout << "LESS" << endl;
	else{
		for (int = ; i < sizA; i++){
			if (A[i]>B[i]){
				cout << "GREATER" << endl;
				break;
			}
			else{
				cout << "LESS" << endl;
				break;
			}
		}
	}

}

Compiler output:
a.cc: In function 'int main()':
a.cc:27:26: error: expected unqualified-id before '=' token
   27 |                 for (int = ; i < sizA; i++){
      |                          ^
a.cc:27:25: error: expected ';' before '=' token
   27 |                 for (int = ; i < sizA; i++){
      |                         ^~
      |                         ;
a.cc:27:26: error: expected primary-expression before '=' token
   27 |                 for (int = ; i < sizA; i++){
      |                          ^
a.cc:27:28: error: expected primary-expression before ';' token
   27 |                 for (int = ; i < sizA; i++){
      |                            ^
a.cc:27:30: error: 'i' was not declared in this scope
   27 |                 for (int = ; i < sizA; i++){
      |                              ^
a.cc:27:38: error: expected ')' before ';' token
   27 |                 for (int = ; i < sizA; i++){
      |                     ~                ^
      |                                      )
a.cc:27:40: error: 'i' was not declared in this scope
   27 |                 for (int = ; i < sizA; i++){
      |                                        ^
Language: Java

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

Compiler output:
Main.java:13: error: package system does not exist
            system.out.println("LESS");
                  ^
1 error
Language: C++

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

	int main(){
      string a,b;
      cin >> a >> b;
      list<string>  S;
      S={a,b};
      S.sort(lst.begin(), lst.end());
      if (lst.begin()==a){
        if (lst.end()==a){
          cout << "EQUAL" << endl;
        }
        else{
          cout << "GREATER" << endl;
        }
      }
      else{
        cout << "LESS" << endl;
      }
    }


Compiler output:
a.cc: In function 'int main()':
a.cc:9:14: error: 'lst' was not declared in this scope
    9 |       S.sort(lst.begin(), lst.end());
      |              ^~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: 'cont' was not declared in this scope; did you mean 'const'?
    8 |         cont << "GREATER" << endl;
      |         ^~~~
      |         const
a.cc:11:9: error: 'cont' was not declared in this scope; did you mean 'const'?
   11 |         cont << "EQUAL" << endl;
      |         ^~~~
      |         const
a.cc:14:9: error: 'cont' was not declared in this scope; did you mean 'const'?
   14 |         cont << "LESS" << endl;
      |         ^~~~
      |         const
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:28: error: 'ans' was not declared in this scope; did you mean 'abs'?
    6 |   if (A.size() > B.size()) ans = "GREATER";
      |                            ^~~
      |                            abs
a.cc:7:33: error: 'ans' was not declared in this scope; did you mean 'abs'?
    7 |   else if (A.size() < B.size()) ans = "LESS";
      |                                 ^~~
      |                                 abs
Language: C++

using namespace std;
#include<bits/stdc++.h>
#define BEGIN ios_base::sync_with_stdio(0);cin.tie(0);
#define END return EXIT_SUCCESS;
#define FOR(I,A,B) for((I)=(A);(I)<(B);(I)++)
#define REP(I,N) FOR((I),0,(N))
#define UP(I,A,B) for((I)=(A);(I)<=(B);(I)++)
#define DW(I,A,B) for((I)=(A);(I)>=(B);(I)--)
#define IN(P) cin>>(P)
#define IN2(P1,P2) cin>>(P1)>>(P2)
#define IN3(P1,P2,P3) cin>>(P1)>>(P2)>>(P3)
#define INS(I,N,V) REP((I),(N)) cin>>(V[I])
#define INS2(I,N,V1,V2) REP((I),(N)) cin>>(V1[I])>>(V2[I]);
#define INS3(I,N,V1,V2,V3) REP((I),(N)) cin>>(V1[I])>>(V2[I])>>(V3[I]);
#define OUT(P) cout<<(P)<<endl
#define OUT2(P1,P2) cout<<(P1)<<" "<<(P2)<<endl
#define OUT3(P1,P2,P3) cout<<(P1)<<" "<<(P2)<<" "<<(P3)<<endl
#define OUTS(I,N,V) REP((I),(N)) cout<<(V[i])<<endl
#define ALL(C) (C).begin(),(C).end()
#define RALL(C) (C).rbegin(),(C).rend()
#define mp make_pair
#define pb push_back
#define lb lower_bound
#define ub upper_bound
template<class T>inline bool chmax(T& a,T b){if(a<b){a=b;return true;}return false;}
template<class T>inline bool chmin(T& a,T b){if(a>b){a=b;return true;}return false;}

string A,B;
long C,D;
inline void solve(){
  IN2(A,B);
  C=A.size();
  D=B.size();
  if(C>D)OUT("GREATER");
  else if(C<D)OUT("LESS");
  else if(A>B)OUT("GREATER");
  else if(A<B)OUT("LESS");
  else OUT("EQUAL")
}

int main(int argc,char**argv){
  BEGIN
  solve();
  END
}


Compiler output:
a.cc: In function 'void solve()':
a.cc:39:1: error: expected ';' before '}' token
   39 | }
      | ^