criyle/codenet-compile-errors huggingface dataset:
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:6:8: error: extended character 　 is not valid in an identifier
    6 | if(a<b)　cout<<"a<b"<<endl;
      |        ^
a.cc:7:13: error: extended character 　 is not valid in an identifier
    7 | else if(a>b)　cout<<"a>b"<<endl;
      |             ^
a.cc: In function 'int main()':
a.cc:6:8: error: '\U00003000cout' was not declared in this scope
    6 | if(a<b)　cout<<"a<b"<<endl;
      |        ^~~~~~
a.cc:7:13: error: '\U00003000cout' was not declared in this scope
    7 | else if(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 cout << a = b <<endl;

    return 0;
}


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

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

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


Compiler output:
a.cc:13:4: error: expected unqualified-id before 'else'
   13 |   }else{
      |    ^~~~
Language: C++

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

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


Compiler output:
a.cc:13:4: error: expected unqualified-id before 'else'
   13 |   }else{
      |    ^~~~
a.cc:16:1: error: expected declaration before '}' token
   16 | }
      | ^
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:15:10: error: expected '}' at end of input
   15 | return 0;
      |          ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

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


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

#include<iostream>
using namespace std;

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


Compiler output:
a.cc:12:13: warning: missing terminating " character
   12 |     else if("a < b){
      |             ^
a.cc:12:13: error: missing terminating " character
   12 |     else if("a < b){
      |             ^~~~~~~~
a.cc: In function 'int main()':
a.cc:10:9: error: 'print' was not declared in this scope; did you mean 'printf'?
   10 |         print("a > b\n");
      |         ^~~~~
      |         printf
a.cc:14:5: error: expected primary-expression before '}' token
   14 |     }
      |     ^
a.cc:13:27: error: expected ')' before '}' token
   13 |         printf("a < b\n");
      |                           ^
      |                           )
   14 |     }
      |     ~                      
a.cc:12:12: note: to match this '('
   12 |     else if("a < b){
      |            ^
a.cc:14:5: error: expected primary-expression before '}' token
   14 |     }
      |     ^
a.cc: At global scope:
a.cc:15:5: error: expected unqualified-id before 'else'
   15 |     else{
      |     ^~~~
a.cc:18:1: error: expected declaration before '}' token
   18 | }
      | ^
Language: C++

#include<iostream>
using namespace std;

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


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

#include<iostream>
using namespace std;

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


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

#include<iostream>
using namepspace 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 if(a==b) cout << "a == b" <<endl;
return 0;
}


Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namepspace'
    2 | using namepspace 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:6:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 | if(a<b) 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:6:27: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 | if(a<b) 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:7:14: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 | else if(a>b) 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:32: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 | else if(a>b) 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:8:15: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 | else if(a==b) 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:34: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 | else if(a==b) 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 if(a==b)
    {cout<<"a=b"<<enfl;}

   return 0;
}





Compiler output:
a.cc: In function 'int main()':
a.cc:13:19: error: 'enfl' was not declared in this scope
   13 |     {cout<<"a=b"<<enfl;}
      |                   ^~~~
Language: C++

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:2:6: error: expected constructor, destructor, or type conversion before '(' token
    2 | scanf("%d %d",&a,&b);
      |      ^
a.cc:3:1: error: expected unqualified-id before 'if'
    3 | if(a<b)
      | ^~
a.cc:7:1: error: expected unqualified-id before 'else'
    7 | else if(a>b)
      | ^~~~
a.cc:11:1: error: expected unqualified-id before 'else'
   11 | else if(a==b)
      | ^~~~
a.cc:16:1: error: expected unqualified-id before 'return'
   16 | return  0;
      | ^~~~~~
Language: C++

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


Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'name'
    2 | using name space std;
      |       ^~~~
a.cc: In function 'int main()':
a.cc:6:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 | cin >> a >>b;
      | ^~~
      | std::cin
In file included from 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:8:1: 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:19: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 | 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:1: 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:20: 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: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:19: 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 name space 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;
}
}


Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'name'
    2 | using name space std;
      |       ^~~~
a.cc: In function 'int main()':
a.cc:6:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 | cin >> a >>b;
      | ^~~
      | std::cin
In file included from 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:8:1: 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:19: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 | 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:1: 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:20: 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: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 name space 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;
}
}


Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'name'
    2 | using name space std;
      |       ^~~~
a.cc: In function 'int main()':
a.cc:6:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 | cin >> a >>b;
      | ^~~
      | std::cin
In file included from 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:8:1: 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:19: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 | 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:1: 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:20: 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: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 name space 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 if(a==b){
cout << "a == b" <<endl;
}
}


Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'name'
    2 | using name space std;
      |       ^~~~
a.cc: In function 'int main()':
a.cc:6:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 | cin >> a >>b;
      | ^~~
      | std::cin
In file included from 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:8:1: 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:19: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 | 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:1: 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:20: 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: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(a == b) cout << "a == b" << endl;

	return 0;
}


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


#include <cstdio>

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);
    }
    printf("\n");

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:18: error: cannot convert 'bool' to 'const char*'
   12 |         printf(a == b);
      |                ~~^~~~
      |                  |
      |                  bool
In file included from /usr/include/c++/14/cstdio:42,
                 from a.cc:2:
/usr/include/stdio.h:363:43: note:   initializing argument 1 of 'int printf(const char*, ...)'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: 'elseif' was not declared in this scope
    7 |     elseif(a>b)cout<<"a > b"<<endl;
      |     ^~~~~~
a.cc:8:5: error: 'else' without a previous 'if'
    8 |     else 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;
    elseif(a>b) cout<<"a > b"<<endl;
    else cout<<"a == b"<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: 'elseif' was not declared in this scope
    7 |     elseif(a>b) cout<<"a > b"<<endl;
      |     ^~~~~~
a.cc:8:5: error: 'else' without a previous 'if'
    8 |     else 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;
    elseif(a>b) cout<<"a > b"<<endl;
    else       cout<<"a == b"<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: 'elseif' was not declared in this scope
    7 |     elseif(a>b) cout<<"a > b"<<endl;
      |     ^~~~~~
a.cc:8:5: error: 'else' without a previous 'if'
    8 |     else       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;
    elseif(a<b) cout<<"a < b"<<endl;
    else       cout<<"a == b"<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: 'elseif' was not declared in this scope
    7 |     elseif(a<b) cout<<"a < b"<<endl;
      |     ^~~~~~
a.cc:8:5: error: 'else' without a previous 'if'
    8 |     else       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(a<b) cout<<"a < b"<<endl;
    else       cout<<"a == b"<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:14: error: expected ';' before 'cout'
    7 |     else(a<b) cout<<"a < b"<<endl;
      |              ^~~~~
      |              ;
a.cc:8:5: error: 'else' without a previous 'if'
    8 |     else       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(a<b)   cout<<"a < b"<<endl;
    else       cout<<"a == b"<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:14: error: expected ';' before 'cout'
    7 |     else(a<b)   cout<<"a < b"<<endl;
      |              ^  ~~~~
      |              ;
a.cc:8:5: error: 'else' without a previous 'if'
    8 |     else       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(a<b)   cout<<"a < b"<<endl;
    else       cout<<"a == b"<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:14: error: expected ';' before 'cout'
    7 |     else(a<b)   cout<<"a < b"<<endl;
      |              ^  ~~~~
      |              ;
a.cc:8:5: error: 'else' without a previous 'if'
    8 |     else       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(a<b)   cout<<"a < b"<<endl;
    else       cout<<"a == b"<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:14: error: expected ';' before 'cout'
    7 |     else(a<b)   cout<<"a < b"<<endl;
      |              ^  ~~~~
      |              ;
a.cc:8:5: error: 'else' without a previous 'if'
    8 |     else       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;
elseif(a<b) cout<<"a < b"<<endl;
else cout<<"a == b"<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:1: error: expected initializer before 'cin'
    5 | cin>>a>>b
      | ^~~
a.cc:7:10: error: 'b' was not declared in this scope
    7 | elseif(a<b) cout<<"a < b"<<endl;
      |          ^
a.cc:7:1: error: 'elseif' was not declared in this scope
    7 | elseif(a<b) cout<<"a < b"<<endl;
      | ^~~~~~
a.cc:8:1: error: 'else' without a previous 'if'
    8 | else 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;
elseif(a<b) cout<<"a < b"<<endl;
else cout<<"a == b"<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:1: error: expected initializer before 'cin'
    5 | cin>>a>>b;
      | ^~~
a.cc:6:6: error: 'b' was not declared in this scope
    6 | if(a>b) cout<<"a > b"<<endl;
      |      ^
a.cc:7:10: error: 'b' was not declared in this scope
    7 | elseif(a<b) cout<<"a < b"<<endl;
      |          ^
a.cc:7:1: error: 'elseif' was not declared in this scope
    7 | elseif(a<b) cout<<"a < b"<<endl;
      | ^~~~~~
a.cc:8:1: error: 'else' without a previous 'if'
    8 | else 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
elseif(a<b) cout<<"a < b"<<endl
else cout<<"a == b"<<endl
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:1: error: expected initializer before 'cin'
    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
elseif(a<b) cout<<"a < b"<<endl
else cout<<"a == b"<<endl
 return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:1: error: expected initializer before 'cin'
    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
elseif(a<b) cout<<"a < b"<<endl
else cout<<"a == b"<<endl

}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:1: error: expected initializer before 'cin'
    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;
elseif(a<b)  cout<<"a < b"<<endl;
else(a==b)   cout<<"a == b"<<endl


Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<iostream>
      | ^~~~~~~
a.cc:3:12: error: expected unqualified-id before '{' token
    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;
elseif(a<b)  cout<<"a < b"<<endl;
else(a==b)   cout<<"a == b"<<endl;
}


Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<iostream>
      | ^~~~~~~
a.cc:3:12: error: expected unqualified-id before '{' token
    3 | int main();{
      |            ^
Language: C++

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



Compiler output:
a.cc: In function 'int main()':
a.cc:4:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |         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:5:16: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    5 |         if(a<b)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:5:31: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    5 |         if(a<b)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:6:9: error: 'elseif' was not declared in this scope
    6 |         elseif(a>b)cout<<"a > b"<<endl;
      |         ^~~~~~
a.cc:7:9: error: 'else' without a previous 'if'
    7 |         else cout<<"a == b"<<endl;
      |         ^~~~
a.cc:7:14: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |         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:7:30: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |         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;
	cin>>a>>b；
	if(a<b)cout<<"a < b"<<endl;
	elseif(a>b)cout<<"a > b"<<endl;
	else cout<<"a == b"<<endl;
}	



Compiler output:
a.cc: In function 'int main()':
a.cc:5:17: error: 'b\U0000ff1b' was not declared in this scope
    5 |         cin>>a>>b；
      |                 ^~~
a.cc:7:9: error: 'elseif' was not declared in this scope
    7 |         elseif(a>b)cout<<"a > b"<<endl;
      |         ^~~~~~
a.cc:8:9: error: 'else' without a previous 'if'
    8 |         else 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;
	elseif(a>b)cout<<"a > b"<<endl;
	else cout<<"a == b"<<endl;
        return 0;
}	



Compiler output:
a.cc: In function 'int main()':
a.cc:5:17: error: 'b\U0000ff1b' was not declared in this scope
    5 |         cin>>a>>b；
      |                 ^~~
a.cc:7:9: error: 'elseif' was not declared in this scope
    7 |         elseif(a>b)cout<<"a > b"<<endl;
      |         ^~~~~~
a.cc:8:9: error: 'else' without a previous 'if'
    8 |         else cout<<"a == b"<<endl;
      |         ^~~~
Language: C++

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



Compiler output:
a.cc:1:2: error: invalid preprocessing directive #incllude; did you mean #include?
    1 | #incllude<iostream>
      |  ^~~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:5:9: error: 'cin' was not declared in this scope
    5 |         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 | #incllude<iostream>
a.cc:6:16: error: 'cout' was not declared in this scope
    6 |         if(a<b)cout<<"a < b"<<endl;
      |                ^~~~
a.cc:6:16: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:6:31: error: 'endl' was not declared in this scope
    6 |         if(a<b)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 | #incllude<iostream>
a.cc:7:9: error: 'elseif' was not declared in this scope
    7 |         elseif(a>b)cout<<"a > b"<<endl;
      |         ^~~~~~
a.cc:8:9: error: 'else' without a previous 'if'
    8 |         else cout<<"a == b"<<endl;
      |         ^~~~
a.cc:8:14: error: 'cout' was not declared in this scope
    8 |         else cout<<"a == b"<<endl;
      |              ^~~~
a.cc:8:14: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:8:30: error: 'endl' was not declared in this scope
    8 |         else cout<<"a == b"<<endl;
      |                              ^~~~
a.cc:8:30: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

#incllude<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;
}



Compiler output:
a.cc:1:2: error: invalid preprocessing directive #incllude; did you mean #include?
    1 | #incllude<iostream>
      |  ^~~~~~~~
      |  include
a.cc:7:9: error: extended character 　 is not valid in an identifier
    7 |         else　(a>b)cout<<"a > b"<<endl;
      |         ^
a.cc: In function 'int main()':
a.cc:5:9: error: 'cin' was not declared in this scope
    5 |         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 | #incllude<iostream>
a.cc:6:16: error: 'cout' was not declared in this scope
    6 |         if(a<b)cout<<"a < b"<<endl;
      |                ^~~~
a.cc:6:16: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:6:31: error: 'endl' was not declared in this scope
    6 |         if(a<b)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 | #incllude<iostream>
a.cc:7:9: error: 'else\U00003000' was not declared in this scope
    7 |         else　(a>b)cout<<"a > b"<<endl;
      |         ^~~~~~
a.cc:8:9: error: 'else' without a previous 'if'
    8 |         else cout<<"a == b"<<endl;
      |         ^~~~
a.cc:8:14: error: 'cout' was not declared in this scope
    8 |         else cout<<"a == b"<<endl;
      |              ^~~~
a.cc:8:14: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:8:30: error: 'endl' was not declared in this scope
    8 |         else cout<<"a == b"<<endl;
      |                              ^~~~
a.cc:8:30: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++


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

	return 0;
}



Compiler output:
a.cc:2:5: error: expected unqualified-id before 'else'
    2 |     else if (a == b)
      |     ^~~~
a.cc:4:5: error: expected unqualified-id before 'else'
    4 |     else if (a < b)
      |     ^~~~
a.cc:7:9: error: expected unqualified-id before 'return'
    7 |         return 0;
      |         ^~~~~~
a.cc:8:1: error: expected declaration before '}' token
    8 | }
      | ^
Language: C++

#include <iostream>
using namespace std;
int a,b;
int main() {
	{if(a<b)
	cout<<"less" 
	 } 
	 {else if(a>b)
	cout<<"larger" 
	 } 
	 {else if ( a == b )
	cout << " equal " 
	 } 
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:21: error: expected ';' before '}' token
    6 |         cout<<"less"
      |                     ^
      |                     ;
    7 |          }
      |          ~           
a.cc:8:11: error: 'else' without a previous 'if'
    8 |          {else if(a>b)
      |           ^~~~
a.cc:9:23: error: expected ';' before '}' token
    9 |         cout<<"larger"
      |                       ^
      |                       ;
   10 |          }
      |          ~             
a.cc:11:11: error: 'else' without a previous 'if'
   11 |          {else if ( a == b )
      |           ^~~~
a.cc:12:26: error: expected ';' before '}' token
   12 |         cout << " equal "
      |                          ^
      |                          ;
   13 |          }
      |          ~
Language: C++

#include <iostream>
#include <string>
#include <conio.h>
#include <stdlib.h>

using namespace std;

void Output(int a, int b);

int main()
{
	int a, b;
	scanf_s("%d %d", &a, &b);

	Output(a, b);

	_getch();
	return 0;
}

void Output(int a, int 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:3:10: fatal error: conio.h: No such file or directory
    3 | #include <conio.h>
      |          ^~~~~~~~~
compilation terminated.
Language: C++

#include <iostream>
#include <string>
#include <stdlib.h>

using namespace std;

void Output(int a, int b);

int main()
{
	int a, b;
	scanf_s("%d %d", &a, &b);

	Output(a, b);
	return 0;
}

void Output(int a, int 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:12:9: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
   12 |         scanf_s("%d %d", &a, &b);
      |         ^~~~~~~
      |         scanf
Language: C++

#include <stdio.h>

using namespace std;

void Output(int a, int b);

int main()
{
	int a, b;
	scanf("%d %d", &a, &b);

	Output(a, b);
	return 0;
}

void Output(int a, int 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 'void Output(int, int)':
a.cc:20:17: error: 'cout' was not declared in this scope
   20 |                 cout << "a > b" << endl;
      |                 ^~~~
a.cc:2:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include <stdio.h>
  +++ |+#include <iostream>
    2 | 
a.cc:20:36: error: 'endl' was not declared in this scope
   20 |                 cout << "a > b" << endl;
      |                                    ^~~~
a.cc:2:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    1 | #include <stdio.h>
  +++ |+#include <ostream>
    2 | 
a.cc:24:17: error: 'cout' was not declared in this scope
   24 |                 cout << "a < b" << endl;
      |                 ^~~~
a.cc:24:17: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:24:36: error: 'endl' was not declared in this scope
   24 |                 cout << "a < b" << endl;
      |                                    ^~~~
a.cc:24:36: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
a.cc:28:17: error: 'cout' was not declared in this scope
   28 |                 cout << "a == b" << endl;
      |                 ^~~~
a.cc:28:17: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:28:37: error: 'endl' was not declared in this scope
   28 |                 cout << "a == b" << endl;
      |                                     ^~~~
a.cc:28:37: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

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



Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: 'elseif' was not declared in this scope
    7 |         elseif(a<b)cout<<"a < b"<<endl;
      |         ^~~~~~
a.cc:8:9: error: 'else' without a previous 'if'
    8 |         else cout<<"a == b"<<endl;
      |         ^~~~
Language: C++

#include <iostream>
using namespace std;

int itp02_a() {

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

#include <iostome>
using namespace std;

int main(){
    int a;
    int 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:10: fatal error: iostome: No such file or directory
    1 | #include <iostome>
      |          ^~~~~~~~~
compilation terminated.
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:16: error: expected primary-expression before '?' token
    5 |         cin >> ? >> b;
      |                ^
a.cc:5:18: error: expected primary-expression before '>>' token
    5 |         cin >> ? >> b;
      |                  ^~
a.cc:5:22: error: expected ':' before ';' token
    5 |         cin >> ? >> b;
      |                      ^
      |                      :
a.cc:5:22: error: expected primary-expression before ';' token
a.cc:7:30: error: '\U00005373' was not declared in this scope
    7 |                 cout << a << 即>即 << b;
      |                              ^~
a.cc:9:30: error: '\U00005373' was not declared in this scope
    9 |                 cout << a << 即<即 << b;
      |                              ^~
a.cc:11:30: error: '\U00005373' was not declared in this scope
   11 |                 cout << a << 即==即 << b;
      |                              ^~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:16: error: expected primary-expression before '?' token
    5 |         cin >> ? >> b;
      |                ^
a.cc:5:18: error: expected primary-expression before '>>' token
    5 |         cin >> ? >> b;
      |                  ^~
a.cc:5:22: error: expected ':' before ';' token
    5 |         cin >> ? >> b;
      |                      ^
      |                      :
a.cc:5:22: error: expected primary-expression before ';' token
Language: C++

#include<iostream>
using namespace std;
int main(){
	int a,b;
	cin >> ? >> 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:5:16: error: expected primary-expression before '?' token
    5 |         cin >> ? >> b;
      |                ^
a.cc:5:18: error: expected primary-expression before '>>' token
    5 |         cin >> ? >> b;
      |                  ^~
a.cc:5:22: error: expected ':' before ';' token
    5 |         cin >> ? >> b;
      |                      ^
      |                      :
a.cc:5:22: error: expected primary-expression before ';' token
Language: C++

#include<iostream>
using namespace std;
int main(){
	int a,b;
	cin >> ? >> 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:5:16: error: expected primary-expression before '?' token
    5 |         cin >> ? >> b;
      |                ^
a.cc:5:18: error: expected primary-expression before '>>' token
    5 |         cin >> ? >> b;
      |                  ^~
a.cc:5:22: error: expected ':' before ';' token
    5 |         cin >> ? >> b;
      |                      ^
      |                      :
a.cc:5:22: error: expected primary-expression before ';' token
Language: C++

#include <iostream>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:68: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |   std::cout << (a < b ? "a < b" : (a > b ? "a > b" : "a == b")) << endl;
      |                                                                    ^~~~
      |                                                                    std::endl
In file included from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

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:6:9: 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 | using namespace std;
a.cc:9:17: error: 'cout' was not declared in this scope
    9 |                 cout << "a < b" << endl;
      |                 ^~~~
a.cc:9:17: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:9:36: 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 | using namespace std;
a.cc:12:17: error: 'cout' was not declared in this scope
   12 |                 cout << "a > b" << endl;
      |                 ^~~~
a.cc:12:17: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:12:36: error: 'endl' was not declared in this scope
   12 |                 cout << "a > b" << endl;
      |                                    ^~~~
a.cc:12:36: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
a.cc:15:17: error: 'cout' was not declared in this scope
   15 |                 cout << "a == b" << endl;
      |                 ^~~~
a.cc:15:17: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:15:37: error: 'endl' was not declared in this scope
   15 |                 cout << "a == b" << endl;
      |                                     ^~~~
a.cc:15:37: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'