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

#include<iostream>
using manespace std;

int main(){
    int a,b;
    cin>>a>>b;
    
    if(a>b)
        cout<<"a > b"<<endl;

    if(a<b)
        cout<<"a < b"<<endl;

    if(a==b)
        cout<<"a = b"<<endl;

    return 0;
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'manespace'
    2 | using manespace std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:6:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |     cin>>a>>b;
      |     ^~~
      |     std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:9:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |         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:9:24: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |         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:12:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   12 |         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:12:24: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   12 |         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:15:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   15 |         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:15:24: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   15 |         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)
      |     ^~~~
Language: C++

#include<iostream>
using manespace std;

int main(){
    int a,b;
    cin>>a>>b;
    
    if(a>b)
        cout<<"a > b"<<endl;

    if(a<b)
        cout<<"a < b"<<endl;

    if(a==b)
        cout<<"a == b"<<endl;

    return 0;
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'manespace'
    2 | using manespace std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:6:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |     cin>>a>>b;
      |     ^~~
      |     std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:9:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |         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:9:24: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |         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:12:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   12 |         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:12:24: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   12 |         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:15:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   15 |         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:15:25: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   15 |         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)
      |     ^~~~
Language: C++

#include <cstdio>

int main(){
 int a,b;
 scanf("%d%d",&a,&b);
 printf((a==b?"a == b":(a<b?"a < b":"a > b"))"\n");
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:46: error: expected ')' before string constant
    6 |  printf((a==b?"a == b":(a<b?"a < b":"a > b"))"\n");
      |        ~                                     ^~~~
      |                                              )
Language: C++

#include <cstdio>
     
int main(){
int a,b;
scanf("%d%d",&a,&b);
if(a>b)
{printf("%s","a>b");}
else(a==b)
{printf("%s","a==b");}
else(a<b)
{printf("%s","a<b");}
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:11: error: expected ';' before '{' token
    8 | else(a==b)
      |           ^
      |           ;
    9 | {printf("%s","a==b");}
      | ~          
a.cc:10:1: error: 'else' without a previous 'if'
   10 | else(a<b)
      | ^~~~
a.cc:10:10: error: expected ';' before '{' token
   10 | else(a<b)
      |          ^
      |          ;
   11 | {printf("%s","a<b");}
      | ~
Language: C++

#include <cstdio>
     
int main(){
int a,b;
scanf("%d%d",&a,&b);
if(a>b)
{printf("%s","a>b");}
elseif(a==b)
{printf("%s","a==b");}
else(a<b)
{printf("%s","a<b");}
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:1: error: 'elseif' was not declared in this scope
    8 | elseif(a==b)
      | ^~~~~~
a.cc:10:1: error: 'else' without a previous 'if'
   10 | else(a<b)
      | ^~~~
a.cc:10:10: error: expected ';' before '{' token
   10 | else(a<b)
      |          ^
      |          ;
   11 | {printf("%s","a<b");}
      | ~
Language: C++

#include <iostream>
using namespace std;

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:18: error: expected ';' before 'if'
    6 |     cin >> a >> b
      |                  ^
      |                  ;
    7 | 
    8 |     if(a < b){
      |     ~~
Language: C++

nums = input().split()
a = int(nums[0])
b = int(nums[1])
if a < b:
    print('a < b')
elif a > b:
    print('a > b')
else:
    print('a == b')

Compiler output:
a.cc:5:11: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
    5 |     print('a < b')
      |           ^~~~~~~
a.cc:7:11: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
    7 |     print('a > b')
      |           ^~~~~~~
a.cc:9:11: warning: multi-character literal with 6 characters exceeds 'int' size of 4 bytes
    9 |     print('a == b')
      |           ^~~~~~~~
a.cc:1:1: error: 'nums' does not name a type
    1 | nums = input().split()
      | ^~~~
Language: C++

nums =intpi)
s = int(nume[0))
b = int(nums[1])

if a < b:
 print(a)

elif a > b:
 "a < b")

eles:
 print('a == b')

Compiler output:
a.cc:12:8: warning: multi-character literal with 6 characters exceeds 'int' size of 4 bytes
   12 |  print('a == b')
      |        ^~~~~~~~
a.cc:1:1: error: 'nums' does not name a type
    1 | nums =intpi)
      | ^~~~
Language: C++

nums =intpi)
s = int(nume[0))
b = int(nums[1])

if a < b:
 print(a)

elif a > b:
 print("a < b")

eles:
 print('a == b')

Compiler output:
a.cc:12:8: warning: multi-character literal with 6 characters exceeds 'int' size of 4 bytes
   12 |  print('a == b')
      |        ^~~~~~~~
a.cc:1:1: error: 'nums' does not name a type
    1 | nums =intpi)
      | ^~~~
Language: C++

nums =intpi().split()
s = int(nume[0))
b = int(nums[1])
if a < b:
 print(a)
elif a > b:
 print("a < b")
eles:
 print('a == b')

Compiler output:
a.cc:9:8: warning: multi-character literal with 6 characters exceeds 'int' size of 4 bytes
    9 |  print('a == b')
      |        ^~~~~~~~
a.cc:1:1: error: 'nums' does not name a type
    1 | nums =intpi().split()
      | ^~~~
Language: C++

nums =intpi().split()
s = int(nume[0)
b = int(nums[1])
if a < b:
 print(a)
elif a > b:
 print("a < b")
eles:
 print('a == b')

Compiler output:
a.cc:9:8: warning: multi-character literal with 6 characters exceeds 'int' size of 4 bytes
    9 |  print('a == b')
      |        ^~~~~~~~
a.cc:1:1: error: 'nums' does not name a type
    1 | nums =intpi().split()
      | ^~~~
Language: C++

nums =input().split()
a = int(nums[0])
b = int(nums[1])
if a < b:
     print('a < b')
elif a > b:
     print('a > b')
else:
     print('a == b')

Compiler output:
a.cc:5:12: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
    5 |      print('a < b')
      |            ^~~~~~~
a.cc:7:12: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
    7 |      print('a > b')
      |            ^~~~~~~
a.cc:9:12: warning: multi-character literal with 6 characters exceeds 'int' size of 4 bytes
    9 |      print('a == b')
      |            ^~~~~~~~
a.cc:1:1: error: 'nums' does not name a type
    1 | nums =input().split()
      | ^~~~
Language: C++

nums = input().split()
a = int(nums[0])
b = int(nums[1])
if a < b:
     print('a < b')
elif a > b:
     print('a > b')
else:
     print('a == b')

Compiler output:
a.cc:5:12: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
    5 |      print('a < b')
      |            ^~~~~~~
a.cc:7:12: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
    7 |      print('a > b')
      |            ^~~~~~~
a.cc:9:12: warning: multi-character literal with 6 characters exceeds 'int' size of 4 bytes
    9 |      print('a == b')
      |            ^~~~~~~~
a.cc:1:1: error: 'nums' does not name a type
    1 | nums = input().split()
      | ^~~~
Language: C++

#include <iostream>

int main()
{
    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";
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:17: error: 'a' was not declared in this scope
    5 |     std::cin >> a >> b;
      |                 ^
a.cc:5:22: error: 'b' was not declared in this scope
    5 |     std::cin >> 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(a==b) cout a==b<<endl;

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:20: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
    7 | if(a<b) cout<<a < b<<endl;
      |                   ~^~~~~~
a.cc:8:24: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
    8 | else if(a>b) cout<<a >b<<endl;
      |                       ~^~~~~~
a.cc:9:11: error: expected ';' before 'cout'
    9 | else(a==b) cout a==b<<endl;
      |           ^~~~~
      |           ;
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:9:11: error: expected ';' before 'cout'
    9 | else(a==b) cout<<" a==b"<<endl;
      |           ^~~~~
      |           ;
Language: C++

#include<iostream>

using namespace std;

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

int main()
{
Solution();
return 0;
}

Compiler output:
a.cc: In function 'void Solution()':
a.cc:17:1: error: expected '}' before 'else'
   17 | else if (a == b)
      | ^~~~
a.cc:15:1: note: to match this '{'
   15 | {
      | ^
a.cc: At global scope:
a.cc:23:1: error: expected declaration before '}' token
   23 | }
      | ^
Language: C++

#include <iostream>
using namespace std;
int main(){

  int 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:14:14: error: expected ';' before '{' token
   14 |   else(a = b){
      |              ^
      |              ;
Language: C++

object Main {
  def main(args:Array[String]) {
    val sc = new java.util.Scanner(System.in)
    val a = sc.nextInt  
    val b = sc.nextInt
    val d = a-b
    println(if(d == 0) "a == b" else if(d>0) "a > b" else "a < b")
  }
}

Compiler output:
a.cc:1:1: error: 'object' does not name a type
    1 | object Main {
      | ^~~~~~
Language: C++

#include <iostream>
using nameplace 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;
}
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'nameplace'
    2 | using nameplace std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:5:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 | cin>>a>>b;
      | ^~~
      | std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:7:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 | 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:7:14: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 | 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:10:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 | 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:10:14: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   10 | 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:13:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   13 | 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:13:15: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   13 | 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)
      |     ^~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:24: error: expected ';' before '}' token
    6 | if(a<b){printf("a<b\n")}
      |                        ^
      |                        ;
a.cc:7:24: error: expected ';' before '}' token
    7 | if(a>b){printf("a>b\n")}
      |                        ^
      |                        ;
a.cc:8:26: error: expected ';' before '}' token
    8 | if(a==b){printf("a==b\n")}
      |                          ^
      |                          ;
Language: C++

using System;
using System.Collections.Generic;
using System.Text;

namespace ConsoleApplication9
{
    class Program
    {
        static void Main(string[] args)
        {
            String[] str = Console.ReadLine().Split(' ');
            int a = int.Parse(str[0]);
            int b = int.Parse(str[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:2:7: error: expected nested-name-specifier before 'System'
    2 | using System.Collections.Generic;
      |       ^~~~~~
a.cc:3:7: error: expected nested-name-specifier before 'System'
    3 | using System.Text;
      |       ^~~~~~
a.cc:9:26: error: 'string' has not been declared
    9 |         static void Main(string[] args)
      |                          ^~~~~~
a.cc:9:35: error: expected ',' or '...' before 'args'
    9 |         static void Main(string[] args)
      |                                   ^~~~
a.cc:30:6: error: expected ';' after class definition
   30 |     }
      |      ^
      |      ;
a.cc: In static member function 'static void ConsoleApplication9::Program::Main(int*)':
a.cc:11:13: error: 'String' was not declared in this scope
   11 |             String[] str = Console.ReadLine().Split(' ');
      |             ^~~~~~
a.cc:11:20: error: expected primary-expression before ']' token
   11 |             String[] str = Console.ReadLine().Split(' ');
      |                    ^
a.cc:12:21: error: expected primary-expression before 'int'
   12 |             int a = int.Parse(str[0]);
      |                     ^~~
a.cc:13:21: error: expected primary-expression before 'int'
   13 |             int b = int.Parse(str[1]);
      |                     ^~~
a.cc:16:17: error: 'Console' was not declared in this scope
   16 |                 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++

using System;
using System.Collections.Generic;
using System.Text;

namespace ConsoleApplication9
{
    class Program
    {
        static void Main(string[] args)
        {
            String[] str = Console.ReadLine().Split(' ');
            int a = int.Parse(str[0]);
            int b = int.Parse(str[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:2:7: error: expected nested-name-specifier before 'System'
    2 | using System.Collections.Generic;
      |       ^~~~~~
a.cc:3:7: error: expected nested-name-specifier before 'System'
    3 | using System.Text;
      |       ^~~~~~
a.cc:9:26: error: 'string' has not been declared
    9 |         static void Main(string[] args)
      |                          ^~~~~~
a.cc:9:35: error: expected ',' or '...' before 'args'
    9 |         static void Main(string[] args)
      |                                   ^~~~
a.cc:28:6: error: expected ';' after class definition
   28 |     }
      |      ^
      |      ;
a.cc: In static member function 'static void ConsoleApplication9::Program::Main(int*)':
a.cc:11:13: error: 'String' was not declared in this scope
   11 |             String[] str = Console.ReadLine().Split(' ');
      |             ^~~~~~
a.cc:11:20: error: expected primary-expression before ']' token
   11 |             String[] str = Console.ReadLine().Split(' ');
      |                    ^
a.cc:12:21: error: expected primary-expression before 'int'
   12 |             int a = int.Parse(str[0]);
      |                     ^~~
a.cc:13:21: error: expected primary-expression before 'int'
   13 |             int b = int.Parse(str[1]);
      |                     ^~~
a.cc:16:17: error: 'Console' was not declared in this scope
   16 |                 Console.WriteLine("a < b");
      |                 ^~~~~~~
a.cc:18:17: error: 'Console' was not declared in this scope
   18 |                 Console.WriteLine("a > b");
      |                 ^~~~~~~
a.cc:20:17: error: 'Console' was not declared in this scope
   20 |                 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 (a < b)
		cout << "a < b" << endl;
	else
		cout << "a == b" << endl;

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:21: error: expected ';' before 'cout'
   10 |         else (a < b)
      |                     ^
      |                     ;
   11 |                 cout << "a < b" << endl;
      |                 ~~~~ 
a.cc:12:9: error: 'else' without a previous 'if'
   12 |         else
      |         ^~~~
Language: C++

#include <iostream>

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:2: error: expected '}' at end of input
   10 | }
      |  ^
a.cc:8:11: note: to match this '{'
    8 | if(a == b){ std::cout << "a == b" << std::endl;
      |           ^
a.cc:10:2: error: expected '}' at end of input
   10 | }
      |  ^
a.cc:7:10: note: to match this '{'
    7 | if(a > b){ std::cout << "a > b" << std::endl;
      |          ^
a.cc:10:2: error: expected '}' at end of input
   10 | }
      |  ^
a.cc:3:11: note: to match this '{'
    3 | 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: In function 'int main()':
a.cc:19:14: error: expected '}' at end of input
   19 |     return 0;
      |              ^
a.cc:5:12: note: to match this '{'
    5 | int main() {
      |            ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:12: error: unable to find string literal operator 'operator""std' with 'const char [4]', 'long unsigned int' arguments
    6 | std::cout<<"a>b"std::endl;
      |            ^~~~~~~~
a.cc:9:12: error: unable to find string literal operator 'operator""std' with 'const char [4]', 'long unsigned int' arguments
    9 | std::cout<<"a<b"std::endl;
      |            ^~~~~~~~
a.cc:12:12: error: unable to find string literal operator 'operator""std' with 'const char [5]', 'long unsigned int' arguments
   12 | std::cout<<"a==b"std::endl;
      |            ^~~~~~~~~
Language: C++

#include<iostream>>
using namespace std;
int main()
{
cin>>a>>b;

if(a>b)
{
cout<<"a>b"<<endl;
}

if(a<b){
cout<<"a<b"<<endl;
}

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

Compiler output:
a.cc:1:19: warning: extra tokens at end of #include directive
    1 | #include<iostream>>
      |                   ^
a.cc: In function 'int main()':
a.cc:5:6: error: 'a' was not declared in this scope
    5 | cin>>a>>b;
      |      ^
a.cc:5:9: error: 'b' was not declared in this scope
    5 | cin>>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;
  }

  return 0;
}

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

#include<iostream>
#include<string>
using namespsce std;
int 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:7: error: expected nested-name-specifier before 'namespsce'
    3 | using namespsce std;
      |       ^~~~~~~~~
a.cc:5:1: error: expected unqualified-id before 'if'
    5 | if (a<b){
      | ^~
a.cc:7:2: error: expected unqualified-id before 'else'
    7 | }else if (a>b){
      |  ^~~~
a.cc:9:2: error: expected unqualified-id before 'else'
    9 | }else {cout <<a==b<<endl;
      |  ^~~~
Language: C++

#include<iostream>
#include<string>
using namespace std;
int main(){
int 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:7:11: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
    7 | cout <<a<b<<endl;
      |          ~^~~~~~
a.cc:9:11: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
    9 | cout <<a>b<<endl;
      |          ~^~~~~~
a.cc:10:17: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
   10 | }else cout<<a==b<<endl;
      |                ~^~~~~~
Language: C++

#include<iostream>
#include<string>
using namespace std;
int main(){
int 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:7:11: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
    7 | cout <<a<b<<endl;
      |          ~^~~~~~
a.cc:9:10: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
    9 | cout<<a>b<<endl;
      |         ~^~~~~~
a.cc:10:17: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
   10 | }else cout<<a==b<<endl;
      |                ~^~~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:4: error: 'a' was not declared in this scope
    5 | if(a<b){
      |    ^
a.cc:5:6: error: 'b' was not declared in this scope
    5 | if(a<b){
      |      ^
a.cc:8:12: error: 'emdl' was not declared in this scope
    8 | cout<<a>b<<emdl;
      |            ^~~~
a.cc:9:19: error: 'emdl' was not declared in this scope
    9 | }else cout<<a==b<<emdl;
      |                   ^~~~
Language: C++

#iclude<iostream>
#include<string>
using namespace std;
int main(){
int 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 #iclude; did you mean #include?
    1 | #iclude<iostream>
      |  ^~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:7:1: error: 'cout' was not declared in this scope
    7 | cout<<a<b<<endl;
      | ^~~~
a.cc:3:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    2 | #include<string>
  +++ |+#include <iostream>
    3 | using namespace std;
a.cc:7:12: error: 'endl' was not declared in this scope
    7 | cout<<a<b<<endl;
      |            ^~~~
a.cc:3:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    2 | #include<string>
  +++ |+#include <ostream>
    3 | using namespace std;
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:9:12: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
a.cc:10:7: error: 'cout' was not declared in this scope
   10 | }else cout<<a==b<<endl;
      |       ^~~~
a.cc:10:7: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:10:19: error: 'endl' was not declared in this scope
   10 | }else cout<<a==b<<endl;
      |                   ^~~~
a.cc:10:19: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

#include<iostream>
#include<string>
using namespace std;
iny main(){
int 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:4:1: error: 'iny' does not name a type; did you mean 'int'?
    4 | iny main(){
      | ^~~
      | int
Language: C++

#include<iostream>
#include<string>
using namespace std;
int main(){
int 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:7:9: error: 'B' was not declared in this scope
    7 | cout<<a<B<<endl;
      |         ^
a.cc:9:10: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
    9 | cout<<a>b<<endl;
      |         ~^~~~~~
a.cc:10:18: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
   10 | } else cout<<a==b<<endl;
      |                 ~^~~~~~
Language: C++

#include<iostream>
#include<string>
using namesapce std;
int main(){
int 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:7: error: expected nested-name-specifier before 'namesapce'
    3 | using namesapce std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:7:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 | 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:7:12: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 | 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:9:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 | 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:9:12: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 | 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:10:8: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 | } else 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:10:20: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   10 | } else 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)
      |     ^~~~
Language: C++

#include<iostream>
using namespace std;
int main(){
int 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:6:13: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
    6 | cout << a<b <<endl;
      |           ~~^~~~~~
a.cc:9:13: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
    9 | cout << a>b <<endl;
      |           ~~^~~~~~
a.cc:12:13: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
   12 | cout << a=b <<endl;
      |           ~~^~~~~~
Language: C++

#include<iostream>
using namespace std;
int main(){
int 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:6:11: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
    6 | cout <<a<b<<endl;
      |          ~^~~~~~
a.cc:9:11: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
    9 | cout <<a>b<<endl;
      |          ~^~~~~~
a.cc:12:11: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
   12 | cout <<a=b<<endl;
      |          ~^~~~~~
Language: C++

#include <iostream>

int main(){

int a,b;

cin >> a >> b;

if(a == b)
cout << a << " == " << b << endl;

if(a > b)
cout << a << " > " << b << endl;

if(a < b)
cout << a << " < " << b << endl;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 | cin >> a >> b;
      | ^~~
      | std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:10:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 | 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:10:29: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   10 | 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:13:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   13 | 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:13:28: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   13 | 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:16:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   16 | 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:16:28: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   16 | 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)
      |     ^~~~
Language: C++

#include <iostream>

int main(){

int a,b;

cin >> a >> b;

if(a == b)
cout << "a == b" << endl;

if(a > b)
cout << "a > b" << endl;

if(a < b)
cout << "a < b" << endl;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 | cin >> a >> b;
      | ^~~
      | std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:10:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 | 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:10:21: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   10 | 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:13:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   13 | 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:13:20: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   13 | 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:16:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   16 | 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:16:20: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   16 | 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)
      |     ^~~~
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;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:20: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
   10 |     cout << a == b << endl;
      |                  ~~^~~~~~~
Language: C++

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

Compiler output:
a.cc:12:14: warning: missing terminating " character
   12 |         puts("a == b);
      |              ^
a.cc:12:14: error: missing terminating " character
   12 |         puts("a == b);
      |              ^~~~~~~~~
a.cc:1:1: error: 'include' does not name a type
    1 | include <stdio.h>
      | ^~~~~~~
Language: C++

include <stdio.h>
int main()
{
????????int a,b;
????????scanf("%d %d",&a,&b);
????????if(a>b){
????????????????puts("a > b");
????????}
????????else if(a<b){
????????????????puts("a < b");
????????}else {
????????????????puts("a == b");
????????}
????????return 0;
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <stdio.h>
      | ^~~~~~~
Language: C++

#include<stdio.h>

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

   return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:8: error: expected '(' before 'else'
   11 |    }if else(a > b){
      |        ^~~~
      |        (
a.cc:13:5: error: 'else' without a previous 'if'
   13 |    }else{
      |     ^~~~
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(void)
{
   int a,b;
   
   scanf("%d %d",&a,&b);
  
   if(a<b){
      printf("a<b\n");
   }if else(a > b){
      printf("a > b\n");
   }else{
      printf("a == b\n");

   return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:8: error: expected '(' before 'else'
   11 |    }if else(a > b){
      |        ^~~~
      |        (
a.cc:13:5: error: 'else' without a previous 'if'
   13 |    }else{
      |     ^~~~
a.cc:17:2: error: expected '}' at end of input
   17 | }
      |  ^
a.cc:4:1: note: to match this '{'
    4 | {
      | ^
Language: C++

#include <iostrem>
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;
}

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:5: error: 'a' was not declared in this scope
    4 |  if(a<b){
      |     ^
a.cc:4:7: error: 'b' was not declared in this scope
    4 |  if(a<b){
      |       ^
a.cc:7:5: error: 'a' was not declared in this scope
    7 |  if(a>b){
      |     ^
a.cc:7:7: error: 'b' was not declared in this scope
    7 |  if(a>b){
      |       ^
a.cc:10:5: error: 'a' was not declared in this scope
   10 |  if(a==b){
      |     ^
a.cc:10:8: error: 'b' was not declared in this scope
   10 |  if(a==b){
      |        ^
Language: C++

#include <iostream>

int main ()
{
    std::array<int, 2> y;
    for(int x, y) {
        std::cin >> x;
    }
    if (y.at(0) == y.at(1)) {
        std::cout << y.at(0) << "=" << y.at(1) << std::endl;
    } else if (y.at(0) < y.at(1) {
        std::cout << y.at(0) << "<" << y.at(1) << std::endl;
    } else if (y.at(0) > y.at(1) {
        std::cout << y.at(0) << ">" << y.at(1) << std::endl;    
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:24: error: aggregate 'std::array<int, 2> y' has incomplete type and cannot be defined
    5 |     std::array<int, 2> y;
      |                        ^
a.cc:2:1: note: 'std::array' is defined in header '<array>'; this is probably fixable by adding '#include <array>'
    1 | #include <iostream>
  +++ |+#include <array>
    2 | 
a.cc:6:17: error: expected ';' before ')' token
    6 |     for(int x, y) {
      |                 ^
      |                 ;
a.cc:6:17: error: expected primary-expression before ')' token
a.cc:6:17: error: expected ';' before ')' token
    6 |     for(int x, y) {
      |                 ^
      |                 ;
a.cc:11:33: error: expected ')' before '{' token
   11 |     } else if (y.at(0) < y.at(1) {
      |               ~                 ^~
      |                                 )
Language: C++

#include <iostream>

int main ()
{
    std::array<int, 2> y;
    for(int x : y) {
        std::cin >> x;
    }
    if (y.at(0) == y.at(1)) {
        std::cout << y.at(0) << "=" << y.at(1) << std::endl;
    } else if (y.at(0) < y.at(1) {
        std::cout << y.at(0) << "<" << y.at(1) << std::endl;
    } else if (y.at(0) > y.at(1) {
        std::cout << y.at(0) << ">" << y.at(1) << std::endl;    
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:24: error: aggregate 'std::array<int, 2> y' has incomplete type and cannot be defined
    5 |     std::array<int, 2> y;
      |                        ^
a.cc:2:1: note: 'std::array' is defined in header '<array>'; this is probably fixable by adding '#include <array>'
    1 | #include <iostream>
  +++ |+#include <array>
    2 | 
a.cc:11:33: error: expected ')' before '{' token
   11 |     } else if (y.at(0) < y.at(1) {
      |               ~                 ^~
      |                                 )
Language: C++

#include <iostream>
#include <array>

int main(void)
{
    std::array<int, 2> y;
    for(int x : y) {
        std::cin >> x;
    }
    if (y.at(0) == y.at(1)) {
        std::cout << y.at(0) << "=" << y.at(1) << std::endl;
    } else if (y.at(0) < y.at(1) {
        std::cout << y.at(0) << "<" << y.at(1) << std::endl;
    } else if (y.at(0) > y.at(1) {
        std::cout << y.at(0) << ">" << y.at(1) << std::endl;    
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:33: error: expected ')' before '{' token
   12 |     } else if (y.at(0) < y.at(1) {
      |               ~                 ^~
      |                                 )
Language: C++

#include <iostream>
#include <array>

int main(void)
{
    std::array<int, 2> y;
    for(int i = 0; i < 2; ++i) {
        std::cin >> y.at(i);
    }
    if (y.at(0) == y.at(1)) {
        std::cout << y.at(0) << "=" << y.at(1) << std::endl;
    } else if (y.at(0) < y.at(1) {
        std::cout << y.at(0) << "<" << y.at(1) << std::endl;
    } else if (y.at(0) > y.at(1) {
        std::cout << y.at(0) << ">" << y.at(1) << std::endl;    
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:33: error: expected ')' before '{' token
   12 |     } else if (y.at(0) < y.at(1) {
      |               ~                 ^~
      |                                 )
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:15:7: warning: missing terminating " character
   15 | cout<<"a==b<<endl;
      |       ^
a.cc:15:7: error: missing terminating " character
   15 | cout<<"a==b<<endl;
      |       ^~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:16:1: error: expected primary-expression before '}' token
   16 | }
      | ^