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

using System;
//using System.Collections.Generic;
//using System.Linq;
//using System.Text;
//using System.Threading.Tasks;

namespace aoj4
{
    class Program
    {
        public void Solve()
        {
            String[] input = Console.ReadLine().Split(' ');
            int a = int.Parse(input[0]);
            int b = int.Parse(input[1]);
            if (a < b)
            {
                Console.WriteLine("a < b");
            }
            else if (a == b)
            {
                Console.WriteLine("a == b");
            }
            else
            {
                Console.WriteLine("a > b");
            }
        }

        static void Main(string[] args)
        {
            Program s = new Program();
            s.Solve();
        }
    }
}

Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:11:15: error: expected ':' before 'void'
   11 |         public void Solve()
      |               ^~~~~
      |               :
a.cc:30:26: error: 'string' has not been declared
   30 |         static void Main(string[] args)
      |                          ^~~~~~
a.cc:30:35: error: expected ',' or '...' before 'args'
   30 |         static void Main(string[] args)
      |                                   ^~~~
a.cc:35:6: error: expected ';' after class definition
   35 |     }
      |      ^
      |      ;
a.cc: In member function 'void aoj4::Program::Solve()':
a.cc:13:13: error: 'String' was not declared in this scope
   13 |             String[] input = Console.ReadLine().Split(' ');
      |             ^~~~~~
a.cc:13:20: error: expected primary-expression before ']' token
   13 |             String[] input = Console.ReadLine().Split(' ');
      |                    ^
a.cc:14:21: error: expected primary-expression before 'int'
   14 |             int a = int.Parse(input[0]);
      |                     ^~~
a.cc:15:21: error: expected primary-expression before 'int'
   15 |             int b = int.Parse(input[1]);
      |                     ^~~
a.cc:18:17: error: 'Console' was not declared in this scope
   18 |                 Console.WriteLine("a < b");
      |                 ^~~~~~~
a.cc:22:17: error: 'Console' was not declared in this scope
   22 |                 Console.WriteLine("a == b");
      |                 ^~~~~~~
a.cc:26:17: error: 'Console' was not declared in this scope
   26 |                 Console.WriteLine("a > b");
      |                 ^~~~~~~
a.cc: In static member function 'static void aoj4::Program::Main(int*)':
a.cc:32:25: error: conversion from 'aoj4::Program*' to non-scalar type 'aoj4::Program' requested
   32 |             Program s = new Program();
      |                         ^~~~~~~~~~~~~
Language: C++

using System;


namespace aoj4
{
    class Program
    {
        public void Solve()
        {
            String[] input = Console.ReadLine().Split(' ');
            int a = int.Parse(input[0]);
            int b = int.Parse(input[1]);
            if (a < b)
            {
                Console.WriteLine("a < b");
            }
            else if (a == b)
            {
                Console.WriteLine("a == b");
            }
            else
            {
                Console.WriteLine("a > b");
            }
        }

        static void Main(string[] args)
        {
            Program s = new Program();
            s.Solve();
        }
    }
}

Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:8:15: error: expected ':' before 'void'
    8 |         public void Solve()
      |               ^~~~~
      |               :
a.cc:27:26: error: 'string' has not been declared
   27 |         static void Main(string[] args)
      |                          ^~~~~~
a.cc:27:35: error: expected ',' or '...' before 'args'
   27 |         static void Main(string[] args)
      |                                   ^~~~
a.cc:32:6: error: expected ';' after class definition
   32 |     }
      |      ^
      |      ;
a.cc: In member function 'void aoj4::Program::Solve()':
a.cc:10:13: error: 'String' was not declared in this scope
   10 |             String[] input = Console.ReadLine().Split(' ');
      |             ^~~~~~
a.cc:10:20: error: expected primary-expression before ']' token
   10 |             String[] input = Console.ReadLine().Split(' ');
      |                    ^
a.cc:11:21: error: expected primary-expression before 'int'
   11 |             int a = int.Parse(input[0]);
      |                     ^~~
a.cc:12:21: error: expected primary-expression before 'int'
   12 |             int b = int.Parse(input[1]);
      |                     ^~~
a.cc:15:17: error: 'Console' was not declared in this scope
   15 |                 Console.WriteLine("a < b");
      |                 ^~~~~~~
a.cc:19:17: error: 'Console' was not declared in this scope
   19 |                 Console.WriteLine("a == b");
      |                 ^~~~~~~
a.cc:23:17: error: 'Console' was not declared in this scope
   23 |                 Console.WriteLine("a > b");
      |                 ^~~~~~~
a.cc: In static member function 'static void aoj4::Program::Main(int*)':
a.cc:29:25: error: conversion from 'aoj4::Program*' to non-scalar type 'aoj4::Program' requested
   29 |             Program s = new Program();
      |                         ^~~~~~~~~~~~~
Language: C++

using System;


namespace aoj4
{
    class Program
    {
        public void Solve()
        {
            String[] input = Console.ReadLine().Split(' ');
            int a = int.Parse(input[0]);
            int b = int.Parse(input[1]);
            if (a < b)
            {
                Console.WriteLine("a < b");
            }
            else if (a == b)
            {
                Console.WriteLine("a == b");
            }
            else
            {
                Console.WriteLine("a > b");
            }
        }

        static void Main()
        {
            Program s = new Program();
            s.Solve();
        }
    }
}

Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:8:15: error: expected ':' before 'void'
    8 |         public void Solve()
      |               ^~~~~
      |               :
a.cc:32:6: error: expected ';' after class definition
   32 |     }
      |      ^
      |      ;
a.cc: In member function 'void aoj4::Program::Solve()':
a.cc:10:13: error: 'String' was not declared in this scope
   10 |             String[] input = Console.ReadLine().Split(' ');
      |             ^~~~~~
a.cc:10:20: error: expected primary-expression before ']' token
   10 |             String[] input = Console.ReadLine().Split(' ');
      |                    ^
a.cc:11:21: error: expected primary-expression before 'int'
   11 |             int a = int.Parse(input[0]);
      |                     ^~~
a.cc:12:21: error: expected primary-expression before 'int'
   12 |             int b = int.Parse(input[1]);
      |                     ^~~
a.cc:15:17: error: 'Console' was not declared in this scope
   15 |                 Console.WriteLine("a < b");
      |                 ^~~~~~~
a.cc:19:17: error: 'Console' was not declared in this scope
   19 |                 Console.WriteLine("a == b");
      |                 ^~~~~~~
a.cc:23:17: error: 'Console' was not declared in this scope
   23 |                 Console.WriteLine("a > b");
      |                 ^~~~~~~
a.cc: In static member function 'static void aoj4::Program::Main()':
a.cc:29:25: error: conversion from 'aoj4::Program*' to non-scalar type 'aoj4::Program' requested
   29 |             Program s = new Program();
      |                         ^~~~~~~~~~~~~
Language: C++

using System;

namespace aoj4
{
    class Program
    {
        public void Solve()
        {
            string[] input = Console.ReadLine().Split(' ');
            int a = int.Parse(input[0]);
            int b = int.Parse(input[1]);
            if (a < b)
            {
                Console.WriteLine("a < b");
            }
            else if (a == b)
            {
                Console.WriteLine("a == b");
            }
            else
            {
                Console.WriteLine("a > b");
            }
        }

        static void Main()
        {
            Program s = new Program();
            s.Solve();
        }
    }
}

Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:7:15: error: expected ':' before 'void'
    7 |         public void Solve()
      |               ^~~~~
      |               :
a.cc:31:6: error: expected ';' after class definition
   31 |     }
      |      ^
      |      ;
a.cc: In member function 'void aoj4::Program::Solve()':
a.cc:9:13: error: 'string' was not declared in this scope
    9 |             string[] input = Console.ReadLine().Split(' ');
      |             ^~~~~~
a.cc:9:20: error: expected primary-expression before ']' token
    9 |             string[] input = Console.ReadLine().Split(' ');
      |                    ^
a.cc:10:21: error: expected primary-expression before 'int'
   10 |             int a = int.Parse(input[0]);
      |                     ^~~
a.cc:11:21: error: expected primary-expression before 'int'
   11 |             int b = int.Parse(input[1]);
      |                     ^~~
a.cc:14:17: error: 'Console' was not declared in this scope
   14 |                 Console.WriteLine("a < b");
      |                 ^~~~~~~
a.cc:18:17: error: 'Console' was not declared in this scope
   18 |                 Console.WriteLine("a == b");
      |                 ^~~~~~~
a.cc:22:17: error: 'Console' was not declared in this scope
   22 |                 Console.WriteLine("a > b");
      |                 ^~~~~~~
a.cc: In static member function 'static void aoj4::Program::Main()':
a.cc:28:25: error: conversion from 'aoj4::Program*' to non-scalar type 'aoj4::Program' requested
   28 |             Program s = new Program();
      |                         ^~~~~~~~~~~~~
Language: C++

using System;

namespace aoj4
{
    class Program
    {
        public static void Main()
        {
            string[] input = Console.ReadLine().Split(' ');
            int a = int.Parse(input[0]);
            int b = int.Parse(input[1]);
            if (a < b)
            {
                Console.WriteLine("a < b");
            }
            else if (a == b)
            {
                Console.WriteLine("a == b");
            }
            else
            {
                Console.WriteLine("a > b");
            }
        }
        
    }
}

Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:7:15: error: expected ':' before 'static'
    7 |         public static void Main()
      |               ^~~~~~~
      |               :
a.cc:26:6: error: expected ';' after class definition
   26 |     }
      |      ^
      |      ;
a.cc: In static member function 'static void aoj4::Program::Main()':
a.cc:9:13: error: 'string' was not declared in this scope
    9 |             string[] input = Console.ReadLine().Split(' ');
      |             ^~~~~~
a.cc:9:20: error: expected primary-expression before ']' token
    9 |             string[] input = Console.ReadLine().Split(' ');
      |                    ^
a.cc:10:21: error: expected primary-expression before 'int'
   10 |             int a = int.Parse(input[0]);
      |                     ^~~
a.cc:11:21: error: expected primary-expression before 'int'
   11 |             int b = int.Parse(input[1]);
      |                     ^~~
a.cc:14:17: error: 'Console' was not declared in this scope
   14 |                 Console.WriteLine("a < b");
      |                 ^~~~~~~
a.cc:18:17: error: 'Console' was not declared in this scope
   18 |                 Console.WriteLine("a == b");
      |                 ^~~~~~~
a.cc:22:17: error: 'Console' was not declared in this scope
   22 |                 Console.WriteLine("a > b");
      |                 ^~~~~~~
Language: C++

#include<iostream>
using namespace std;
 
int main(){
int a, b;
cin >> a >> b;
if (a > b) {
cout << "a > b" << endl;
} else if (a == b) {
cout << "a == b" << endl;
} else {
cout << "a < b" << endl;
}
ret

Compiler output:
a.cc: In function 'int main()':
a.cc:14:1: error: 'ret' was not declared in this scope
   14 | ret
      | ^~~
a.cc:14:4: error: expected '}' at end of input
   14 | ret
      |    ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

#include<iostream>
using namespace std;
????
int main(){
int a, b;
cin >> a >> b;
if (a > b) {
cout << "a > b" << endl;
} else if (a == b) {
cout << "a == b" << endl;
} else {
cout << "a < b" << endl;
}
return 0;
}

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

#include <stdio.h>

int main(void)
{
	int a, b;
	
	scanf("%d %d",&a, &b);
	if (a < b):
			printf("a<b\n");
	else if (a> b):
			printf("a>b\n");
	else:
			printf("a==b\n");
	
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:19: error: expected primary-expression before ':' token
    8 |         if (a < b):
      |                   ^
a.cc:10:23: error: expected primary-expression before ':' token
   10 |         else if (a> b):
      |                       ^
a.cc:12:13: error: expected primary-expression before ':' token
   12 |         else:
      |             ^
Language: C++

#include <stdio.h>

int main(void)
{
	int a, b;
	
	scanf("%d %d",&a, &b);
	if (a < b):
			printf("%d<%d\n",a,b);
	else if (a > b):
			printf("%d>%d\n",a,b);
	else:
			printf("%d==%d\n",a,b);
	
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:19: error: expected primary-expression before ':' token
    8 |         if (a < b):
      |                   ^
a.cc:10:24: error: expected primary-expression before ':' token
   10 |         else if (a > b):
      |                        ^
a.cc:12:13: error: expected primary-expression before ':' token
   12 |         else:
      |             ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:5: error: 'else' without a previous 'if'
   12 |     else if (a > b)
      |     ^~~~
a.cc:16:5: error: 'else' without a previous 'if'
   16 |     else
      |     ^~~~
a.cc:21:5: error: expected primary-expression before 'return'
   21 |     return 0;
      |     ^~~~~~
Language: C++

intl=map(int, raw_input())

a=intl[0]
b=intl[1]

if a==b:
  print "a==b"
elif a>b:
  print "a>b"
else:
  print "a<b"

Compiler output:
a.cc:1:1: error: 'intl' does not name a type; did you mean 'int'?
    1 | intl=map(int, raw_input())
      | ^~~~
      | int
Language: C++

a,b=map(int, input().split())

if a < b:
    print("a<b")
else:
    if a ==b:
         print("a=b")
    else:
        if a>b:
            print( "a>b" )

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

#include <iostream>
using namespace std;
void comp(int a, int b)
{
    if(a < b){
        cout << "a < b" << endl;
    }else
    if(a > b){
        cout << "a > b" << endl;
    }else{
        cout << "a == b" << endl;
    }

}
int main(void){
    int x, y;
    cin >> x >> y;
    comp(x, y);
    return 0;
}#include <iostream>
using namespace std;

template<typename T>
void comp(const T& a, const T& b)
{
    if(a < b){
        cout << "a < b" << endl;
    }else
    if(a > b){
        cout << "a > b" << endl;
    }else{
        cout << "a == b" << endl;
    }

}
int main(void){
    int x, y;
    cin >> x >> y;
    comp(x, y);
    return 0;
}

Compiler output:
a.cc:20:2: error: stray '#' in program
   20 | }#include <iostream>
      |  ^
a.cc:20:3: error: 'include' does not name a type
   20 | }#include <iostream>
      |   ^~~~~~~
a.cc:36:5: error: redefinition of 'int main()'
   36 | int main(void){
      |     ^~~~
a.cc:15:5: note: 'int main()' previously defined here
   15 | int main(void){
      |     ^~~~
Language: C++

#include<iostream>

void Compare(int a, int b)
{
	if(a>b){
		cout << a << ">" << b << endl;
	}else if(a<b){
		cout << a << "<" << b << endl;
	}
	else{
		cout << a << "==" << b << endl;
	} 
}

int main(void)
{
	int a,b;
	
	Compare(a,b);
	

Compiler output:
a.cc: In function 'void Compare(int, int)':
a.cc:6:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |                 cout << a << ">" << b << endl;
      |                 ^~~~
      |                 std::cout
In file included from a.cc:1:
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:6:42: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |                 cout << a << ">" << b << endl;
      |                                          ^~~~
      |                                          std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:8:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |                 cout << a << "<" << b << endl;
      |                 ^~~~
      |                 std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:8:42: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |                 cout << a << "<" << b << endl;
      |                                          ^~~~
      |                                          std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:11:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |                 cout << a << "==" << b << endl;
      |                 ^~~~
      |                 std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:11:43: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   11 |                 cout << a << "==" << b << endl;
      |                                           ^~~~
      |                                           std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc: In function 'int main()':
a.cc:19:22: error: expected '}' at end of input
   19 |         Compare(a,b);
      |                      ^
a.cc:16:1: note: to match this '{'
   16 | {
      | ^
Language: C++

import java.util.Scanner; 
public class Main {
	public static void main(String[] args){
		Scanner in = new Scanner(System.in);
		String line = in.nextLine();
		String[] Array = line.split(" ");
		int a = Integer.parseInt(Array[0]);
		int b = Integer.parseInt(Array[1]);
		if(a<b){
			System.out.println("a < b");
		} else if(a>b){
			System.out.println("a > b");
		}else {
			System.out.println("a == b");
		}
	}
}

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.Scanner;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:2:1: error: expected unqualified-id before 'public'
    2 | public class Main {
      | ^~~~~~
Language: C++

using System;

namespace Project
{
	class MainClass
	{
		public static void Main(string[] args)
		{
			string s = Console.ReadLine();
			string[] sar = s.Split(' ');
			int a, b;
			a = s[0];
			b = s[1];
			if (a < b)
			{
				Console.WriteLine("a < b");
			}
			else 
			{
				if (a == b)
				{
					Console.WriteLine("a == b");
				}
				else
				{
					Console.WriteLine(("a > b"));
				}
			}
		}
	}
}

Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:7:23: error: expected ':' before 'static'
    7 |                 public static void Main(string[] args)
      |                       ^~~~~~~
      |                       :
a.cc:7:41: error: 'string' has not been declared
    7 |                 public static void Main(string[] args)
      |                                         ^~~~~~
a.cc:7:50: error: expected ',' or '...' before 'args'
    7 |                 public static void Main(string[] args)
      |                                                  ^~~~
a.cc:30:10: error: expected ';' after class definition
   30 |         }
      |          ^
      |          ;
a.cc: In static member function 'static void Project::MainClass::Main(int*)':
a.cc:9:25: error: 'string' was not declared in this scope
    9 |                         string s = Console.ReadLine();
      |                         ^~~~~~
a.cc:10:32: error: expected primary-expression before ']' token
   10 |                         string[] sar = s.Split(' ');
      |                                ^
a.cc:12:29: error: 's' was not declared in this scope
   12 |                         a = s[0];
      |                             ^
a.cc:16:33: error: 'Console' was not declared in this scope
   16 |                                 Console.WriteLine("a < b");
      |                                 ^~~~~~~
a.cc:22:41: error: 'Console' was not declared in this scope
   22 |                                         Console.WriteLine("a == b");
      |                                         ^~~~~~~
a.cc:26:41: error: 'Console' was not declared in this scope
   26 |                                         Console.WriteLine(("a > b"));
      |                                         ^~~~~~~
Language: C++

#include <iostream>
 
using namespace std;
 
int main()
{
int h=0, m=0, s=0;
 
cin >>h >>m;

if(h < m)
{
cout <<a <<"<" <<b <<endl;
}
else if(h > m)
{
cout <<a <<">" <<b <<endl;
}
else
{
cout <<a <<"==" <<b <<endl;
}
 
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:8: error: 'a' was not declared in this scope
   13 | cout <<a <<"<" <<b <<endl;
      |        ^
a.cc:13:18: error: 'b' was not declared in this scope
   13 | cout <<a <<"<" <<b <<endl;
      |                  ^
a.cc:17:8: error: 'a' was not declared in this scope
   17 | cout <<a <<">" <<b <<endl;
      |        ^
a.cc:17:18: error: 'b' was not declared in this scope
   17 | cout <<a <<">" <<b <<endl;
      |                  ^
a.cc:21:8: error: 'a' was not declared in this scope
   21 | cout <<a <<"==" <<b <<endl;
      |        ^
a.cc:21:19: error: 'b' was not declared in this scope
   21 | cout <<a <<"==" <<b <<endl;
      |                   ^
Language: C++

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

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

  cout<< (a<b) ? "a<b" : (a>b) ? "a>b" : "a=b" <<endl; 

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:48: error: invalid operands of types 'const char [4]' and '<unresolved overloaded function type>' to binary 'operator<<'
    9 |   cout<< (a<b) ? "a<b" : (a>b) ? "a>b" : "a=b" <<endl;
      |                                          ~~~~~~^~~~~~
Language: C++

#include <stdio.h>

int main()
{
    int a,b;
    scanf("%d %d",&a,&b);
    switch(true){
        case a<b:
            printf("%d < %d",a,b);
            break;
        case a==b:
            printf("%d = %d",a,b);
            break;
        case a>b:
            printf("%d > %d",a,b);
            break;
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:14: error: the value of 'a' is not usable in a constant expression
    8 |         case a<b:
      |              ^
a.cc:5:9: note: 'int a' is not const
    5 |     int a,b;
      |         ^
a.cc:8:14: error: the value of 'a' is not usable in a constant expression
    8 |         case a<b:
      |              ^
a.cc:5:9: note: 'int a' is not const
    5 |     int a,b;
      |         ^
a.cc:11:14: error: the value of 'a' is not usable in a constant expression
   11 |         case a==b:
      |              ^
a.cc:5:9: note: 'int a' is not const
    5 |     int a,b;
      |         ^
a.cc:11:14: error: the value of 'a' is not usable in a constant expression
   11 |         case a==b:
      |              ^
a.cc:5:9: note: 'int a' is not const
    5 |     int a,b;
      |         ^
a.cc:14:14: error: the value of 'a' is not usable in a constant expression
   14 |         case a>b:
      |              ^
a.cc:5:9: note: 'int a' is not const
    5 |     int a,b;
      |         ^
a.cc:14:14: error: the value of 'a' is not usable in a constant expression
   14 |         case a>b:
      |              ^
a.cc:5:9: note: 'int a' is not const
    5 |     int a,b;
      |         ^
Language: C++

#include <iostream>

int main()
{
    int a, b;
    std::cin >> a >> b;
    if(a < b) {
        std::cout << "a < b" << std::endl;
    } else if(a < b) {
        std::cout << "a > b" << std::endl;
    } else {
        std::cout << "a = b" << std::endl;
    return 0;
}

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

#include <iostream>
using namespace std;
int main() {
  int a,b;
  cin >> a >> b;
  if (a < b) cout << "a < b" << endl;
  else if (a > b) cout << "a > b" << endl;
  else (a == b) cout << "a == b" << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:16: error: expected ';' before 'cout'
    8 |   else (a == b) cout << "a == b" << endl;
      |                ^~~~~
      |                ;
Language: C++


#include <stdio.h>
int main()
{
int a, b;
scanf( "%d %d",&a, %b );
if(a > b){
             printf("a > b");
          }
elseif(a < b){
             printf("a < b");
else{
     printf("a == b");
}        

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:20: error: expected primary-expression before '%' token
    6 | scanf( "%d %d",&a, %b );
      |                    ^
a.cc:10:1: error: 'elseif' was not declared in this scope
   10 | elseif(a < b){
      | ^~~~~~
a.cc:17:2: error: expected '}' at end of input
   17 | }
      |  ^
a.cc:4:1: note: to match this '{'
    4 | {
      | ^
Language: C++


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

return 0;
}

Compiler output:
a.cc:11:28: error: stray '\' in program
   11 |              printf("a < b"\n);
      |                            ^
a.cc:13:21: error: stray '\' in program
   13 |      printf("a == b"\n);
      |                     ^
a.cc: In function 'int main()':
a.cc:6:20: error: expected primary-expression before '%' token
    6 | scanf( "%d %d",&a, %b );
      |                    ^
a.cc:10:1: error: 'elseif' was not declared in this scope
   10 | elseif(a < b){
      | ^~~~~~
a.cc:17:2: error: expected '}' at end of input
   17 | }
      |  ^
a.cc:4:1: note: to match this '{'
    4 | {
      | ^
Language: C++


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

return 0;
}

Compiler output:
a.cc:11:28: error: stray '\' in program
   11 |              printf("a < b"\n);
      |                            ^
a.cc:13:21: error: stray '\' in program
   13 |      printf("a == b"\n);
      |                     ^
a.cc: In function 'int main()':
a.cc:10:1: error: 'elseif' was not declared in this scope
   10 | elseif(a < b){
      | ^~~~~~
a.cc:17:2: error: expected '}' at end of input
   17 | }
      |  ^
a.cc:4:1: note: to match this '{'
    4 | {
      | ^
Language: C++


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

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:1: error: 'elseif' was not declared in this scope
   10 | elseif(a < b){
      | ^~~~~~
a.cc:17:2: error: expected '}' at end of input
   17 | }
      |  ^
a.cc:4:1: note: to match this '{'
    4 | {
      | ^
Language: C++

#include <stdio.h>
int main()
{
int a, b;
scanf("a:%d", &a);
scanf("b:%d", &b);
if(a>b)
printf("a>b");
if(a<b)
print("a<b");
if(a==b)
printf("a==b");
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:1: error: 'print' was not declared in this scope; did you mean 'printf'?
   10 | print("a<b");
      | ^~~~~
      | printf
Language: C++


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

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:1: error: 'elseif' was not declared in this scope
   10 | elseif(a < b){
      | ^~~~~~
a.cc:13:1: error: 'else' without a previous 'if'
   13 | else{
      | ^~~~
Language: C++


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

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:1: error: 'elseif' was not declared in this scope
   10 | elseif(a < b){
      | ^~~~~~
Language: C++

#include<stdio.h>

int main(){

	int a,b;

	scanf("%d",&a);
	scanf("%d",&b);

	if(a<b){
		printf("a < b");
	else if(a>b){
		printf("a > b");
	}else if(a==b){
		printf("a == b");
	}

	return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:9: error: expected '}' before 'else'
   12 |         else if(a>b){
      |         ^~~~
a.cc:10:16: note: to match this '{'
   10 |         if(a<b){
      |                ^
Language: C++


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

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:1: error: 'elseif' was not declared in this scope
   10 | elseif(a < b){
      | ^~~~~~
Language: C++


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

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:15: error: invalid operands of types 'const char [6]' and 'int' to binary 'operator&'
    6 | scanf( "%d %d"&a ,&b );
      |        ~~~~~~~^~
      |        |       |
      |        |       int
      |        const char [6]
a.cc:10:1: error: 'elseif' was not declared in this scope
   10 | elseif(a < b){
      | ^~~~~~
Language: C++


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

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:14: error: invalid operands of types 'const char [6]' and 'int' to binary 'operator&'
    6 | scanf("%d %d"&a ,&b );
      |       ~~~~~~~^~
      |       |       |
      |       |       int
      |       const char [6]
a.cc:10:1: error: 'elseif' was not declared in this scope
   10 | elseif(a < b){
      | ^~~~~~
Language: C++

#include<stdio.h>

int main(){

	int a,b;

	scanf("%d %d",&a,%b);

	if(a<b){
		printf("a < b");
	else if(a>b){
		printf("a > b");
	}else if(a==b){
		printf("a == b");
	}

	return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:26: error: expected primary-expression before '%' token
    7 |         scanf("%d %d",&a,%b);
      |                          ^
a.cc:11:9: error: expected '}' before 'else'
   11 |         else if(a>b){
      |         ^~~~
a.cc:9:16: note: to match this '{'
    9 |         if(a<b){
      |                ^
Language: C++

#include<stdio.h>

int main(){

	int a,b;

	scanf("%d %d",&a,%b);

	if(a<b){
		printf("a < b\n");
	else if(a>b){
		printf("a > b\n");
	}else if(a==b){
		printf("a == b\n");
	}

	return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:26: error: expected primary-expression before '%' token
    7 |         scanf("%d %d",&a,%b);
      |                          ^
a.cc:11:9: error: expected '}' before 'else'
   11 |         else if(a>b){
      |         ^~~~
a.cc:9:16: note: to match this '{'
    9 |         if(a<b){
      |                ^
Language: C++

#include<stdio.h>

int main(){

	int a,b;

	scanf("%d %d",&a,&b);

	if(a<b){
		printf("a < b\n");
	else if(a>b){
		printf("a > b\n");
	}else if(a==b){
		printf("a == b\n");
	}

	return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:9: error: expected '}' before 'else'
   11 |         else if(a>b){
      |         ^~~~
a.cc:9:16: note: to match this '{'
    9 |         if(a<b){
      |                ^
Language: C++


#include <stdio.h>
int main(void)
{
int a, b;
scanf("%d %d"&a ,&b );
if(a > b){
             printf("a > b\n");
          }
elseif(a < b){
             printf("a < b\n");
}
elseif(a == b){
     printf("a == b\n");
}        

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:14: error: invalid operands of types 'const char [6]' and 'int' to binary 'operator&'
    6 | scanf("%d %d"&a ,&b );
      |       ~~~~~~~^~
      |       |       |
      |       |       int
      |       const char [6]
a.cc:10:1: error: 'elseif' was not declared in this scope
   10 | elseif(a < b){
      | ^~~~~~
Language: C++

#include <iostream>
 
using namespace std;
 
int main(void){
     
    int a, b;
 
    cin >> a >> b;
 
    if (a > b)
        cout << "a > b" << endl;
    else if (a < b)
        cout << "a < b" << endl;
    else
        cout << "a == b" << endl;
 
    return 0;

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

#include <iostream>
#include <cstdio>
#include <algorithm>
#include <cmath>
#include <string>
#include <cctype>
#include <stack>
#include <queue>
#include <vector>
#include <cstdlib>
 
using namespace std;
 
int main(void){
     
    int a, b;
 
    cin >> a >> b;
 
    if (a > b)
        cout << "a > b" << endl;
    else if (a < b)
        cout << "a < b" << endl;
    else
        cout << "a == b" << endl;
 
    return 0;

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

#include<cstdio>

int main(){
 int a b
 std::cin >> a >> b;
 
 if (a < b) cout<< "a < b " << "\n";
 else if (a > b) cout << "a > b << "\n";
 else cout<< "a == b" << "\n";

 return 0;
}

Compiler output:
a.cc:8:37: error: stray '\' in program
    8 |  else if (a > b) cout << "a > b << "\n";
      |                                     ^
a.cc:8:39: warning: missing terminating " character
    8 |  else if (a > b) cout << "a > b << "\n";
      |                                       ^
a.cc:8:39: error: missing terminating " character
    8 |  else if (a > b) cout << "a > b << "\n";
      |                                       ^~
a.cc: In function 'int main()':
a.cc:4:8: error: expected initializer before 'b'
    4 |  int a b
      |        ^
a.cc:7:6: error: 'a' was not declared in this scope
    7 |  if (a < b) cout<< "a < b " << "\n";
      |      ^
a.cc:7:10: error: 'b' was not declared in this scope
    7 |  if (a < b) cout<< "a < b " << "\n";
      |          ^
a.cc:7:13: error: 'cout' was not declared in this scope
    7 |  if (a < b) cout<< "a < b " << "\n";
      |             ^~~~
a.cc:8:18: error: 'cout' was not declared in this scope
    8 |  else if (a > b) cout << "a > b << "\n";
      |                  ^~~~
Language: C++

#include<cstdio>

int main(){
 int a, b;
 std::cin >> a >> b;
 
 if (a < b) std::cout<< "a < b " << "\n";
 else if (a > b) std::cout << "a > b << "\n";
 else std::cout<< "a == b" << "\n";

 return 0;
}

Compiler output:
a.cc:8:42: error: stray '\' in program
    8 |  else if (a > b) std::cout << "a > b << "\n";
      |                                          ^
a.cc:8:44: warning: missing terminating " character
    8 |  else if (a > b) std::cout << "a > b << "\n";
      |                                            ^
a.cc:8:44: error: missing terminating " character
    8 |  else if (a > b) std::cout << "a > b << "\n";
      |                                            ^~
a.cc: In function 'int main()':
a.cc:5:7: error: 'cin' is not a member of 'std'
    5 |  std::cin >> a >> b;
      |       ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include<cstdio>
  +++ |+#include <iostream>
    2 | 
a.cc:7:18: error: 'cout' is not a member of 'std'
    7 |  if (a < b) std::cout<< "a < b " << "\n";
      |                  ^~~~
a.cc:7:18: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:8:23: error: 'cout' is not a member of 'std'
    8 |  else if (a > b) std::cout << "a > b << "\n";
      |                       ^~~~
a.cc:8:23: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

#include<cstdio>

int main(){
 int a, b;
 std::cin >> a >> b;
 
 if (a < b) { std::cout << "a < b " << "\n";}
 else if (a > b){ std::cout << "a > b << "\n";}
 else { std::cout<< "a == b" << "\n";}

 return 0;
}

Compiler output:
a.cc:8:43: error: stray '\' in program
    8 |  else if (a > b){ std::cout << "a > b << "\n";}
      |                                           ^
a.cc:8:45: warning: missing terminating " character
    8 |  else if (a > b){ std::cout << "a > b << "\n";}
      |                                             ^
a.cc:8:45: error: missing terminating " character
    8 |  else if (a > b){ std::cout << "a > b << "\n";}
      |                                             ^~~
a.cc: In function 'int main()':
a.cc:5:7: error: 'cin' is not a member of 'std'
    5 |  std::cin >> a >> b;
      |       ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include<cstdio>
  +++ |+#include <iostream>
    2 | 
a.cc:7:20: error: 'cout' is not a member of 'std'
    7 |  if (a < b) { std::cout << "a < b " << "\n";}
      |                    ^~~~
a.cc:7:20: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:8:24: error: 'cout' is not a member of 'std'
    8 |  else if (a > b){ std::cout << "a > b << "\n";}
      |                        ^~~~
a.cc:8:24: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:12:2: error: expected '}' at end of input
   12 | }
      |  ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

#include<cstdio>

int main(){
 int a, b;
 std::cin >> a >> b;
 
 if (a < b) std::cout<< "a < b" << "\n";
 else if (a > b) std::cout << "a > b" << "\n";
 else std::cout<< "a == b" << "\n";

 return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:7: error: 'cin' is not a member of 'std'
    5 |  std::cin >> a >> b;
      |       ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include<cstdio>
  +++ |+#include <iostream>
    2 | 
a.cc:7:18: error: 'cout' is not a member of 'std'
    7 |  if (a < b) std::cout<< "a < b" << "\n";
      |                  ^~~~
a.cc:7:18: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:8:23: error: 'cout' is not a member of 'std'
    8 |  else if (a > b) std::cout << "a > b" << "\n";
      |                       ^~~~
a.cc:8:23: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:9:12: error: 'cout' is not a member of 'std'
    9 |  else std::cout<< "a == b" << "\n";
      |            ^~~~
a.cc:9:12: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

#include <iostream>
using namespace std;
int main()
{
  int a,b;
  cin >> a;
  cin >> b;
  if (a>b) {
    cout << "a>b" << '\n';
  }
  if (a<b) {
    cout << "a<b"; << '\n';
    /* code */
  }
  else {
    cout << "a==b" << '\n';
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:20: error: expected primary-expression before '<<' token
   12 |     cout << "a<b"; << '\n';
      |                    ^~
Language: C++

#include <iostream>
using namespace std;
int main()
{
  int a,b;
  cin >> a;
  cin >> b;
  if (a>b) {
    cout << "a>b" << endl;
  }
  if (a<b) {
    cout << "a<b"; << endl;
    /* code */
  }
  else {
    cout << "a==b" << endl;
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:20: error: expected primary-expression before '<<' token
   12 |     cout << "a<b"; << endl;
      |                    ^~
Language: C++

#include <iostream>
using namespace std;
int main()
{
  int a,b;
  cin >> a;
  cin >> b;
  if (a>b) {
    cout << "a>b" << endl;
  }
  if (a<b) {
    cout << "a<b"; << endl;
  }
  else {
    cout << "a==b" << endl;
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:20: error: expected primary-expression before '<<' token
   12 |     cout << "a<b"; << endl;
      |                    ^~
Language: C++

#include <iostream>
using namespace std;
int main()
{
  int a,b;
  cin >> a;
  cin >> b;
  if (a>b) {
    cout << "a>b" << '\n';
  }
  else if (a<b) {
    cout << "a<b"; << '\n';
    /* code */
  }
  else {
    cout << "a==b" << '\n';
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:20: error: expected primary-expression before '<<' token
   12 |     cout << "a<b"; << '\n';
      |                    ^~
Language: C++

#include <iostream>
using namespace std;
int main()
{
  int a,b;
  cin >> a;
  cin >> b;
  if (a>b) {
    cout << "a>b" << '\n';
  }
  else if (a<b) {
    cout << "a<b"; << '\n';
  }
  else {
    cout << "a==b" << '\n';
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:20: error: expected primary-expression before '<<' token
   12 |     cout << "a<b"; << '\n';
      |                    ^~
Language: C++

#inlclude<iostream>
using namespace  std;
int main(){
int a,b;

cin>>a>>b;

if(a>b){
cout<<a>b<<endl;
}else if(a<b){
cout<<a<b<<endl;
}else{
cout<<a==b<<endl;
}
return 0;

}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inlclude; did you mean #include?
    1 | #inlclude<iostream>
      |  ^~~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:6:1: error: 'cin' was not declared in this scope
    6 | cin>>a>>b;
      | ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #inlclude<iostream>
a.cc:9:1: error: 'cout' was not declared in this scope
    9 | cout<<a>b<<endl;
      | ^~~~
a.cc:9:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:9:12: error: 'endl' was not declared in this scope
    9 | cout<<a>b<<endl;
      |            ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #inlclude<iostream>
a.cc:11:1: error: 'cout' was not declared in this scope
   11 | cout<<a<b<<endl;
      | ^~~~
a.cc:11:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:11:12: error: 'endl' was not declared in this scope
   11 | cout<<a<b<<endl;
      |            ^~~~
a.cc:11:12: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
a.cc:13:1: error: 'cout' was not declared in this scope
   13 | cout<<a==b<<endl;
      | ^~~~
a.cc:13:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:13:13: error: 'endl' was not declared in this scope
   13 | cout<<a==b<<endl;
      |             ^~~~
a.cc:13:13: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

#inlclude<iostream>
using namespace  std;
int main(){
int a,b;

cin>>a>>b;

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

}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inlclude; did you mean #include?
    1 | #inlclude<iostream>
      |  ^~~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:6:1: error: 'cin' was not declared in this scope
    6 | cin>>a>>b;
      | ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #inlclude<iostream>
a.cc:9:1: error: 'cout' was not declared in this scope
    9 | cout<<"a>b"<<endl;
      | ^~~~
a.cc:9:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:9:14: error: 'endl' was not declared in this scope
    9 | cout<<"a>b"<<endl;
      |              ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #inlclude<iostream>
a.cc:11:1: error: 'cout' was not declared in this scope
   11 | cout<<"a<b"<<endl;
      | ^~~~
a.cc:11:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:11:14: error: 'endl' was not declared in this scope
   11 | cout<<"a<b"<<endl;
      |              ^~~~
a.cc:11:14: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
a.cc:13:1: error: 'cout' was not declared in this scope
   13 | cout<<"a==b"<<endl;
      | ^~~~
a.cc:13:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:13:15: error: 'endl' was not declared in this scope
   13 | cout<<"a==b"<<endl;
      |               ^~~~
a.cc:13:15: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

<?php

//?¨??????\???????????\??????????????????
$inputLine = trim(fgets(STDIN));

//????§???????????????§?????????
list($comparison1, $comparison2) = explode(" ", $inputLine);

//??????????????´???
if ($comparison1 == $comparison2) {

	echo "a == b";

//1??????1??????????????§????????´???
} elseif ($comparison1 > $comparison2){

	echo "a > b";

//??\???
} else {

	echo "a < b";
}

?>

Compiler output:
a.cc:1:1: error: expected unqualified-id before '<' token
    1 | <?php
      | ^
a.cc:7:5: error: expected constructor, destructor, or type conversion before '(' token
    7 | list($comparison1, $comparison2) = explode(" ", $inputLine);
      |     ^
a.cc:10:1: error: expected unqualified-id before 'if'
   10 | if ($comparison1 == $comparison2) {
      | ^~
a.cc:15:10: error: expected constructor, destructor, or type conversion before '(' token
   15 | } elseif ($comparison1 > $comparison2){
      |          ^
a.cc:20:3: error: expected unqualified-id before 'else'
   20 | } else {
      |   ^~~~
a.cc:25:1: error: expected unqualified-id before '?' token
   25 | ?>
      | ^