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



Compiler output:
a.cc: In function 'int main()':
a.cc:6:4: error: expected '(' before 'a'
    6 | if a > b {
      |    ^
      |    (
a.cc:8:2: error: 'else' without a previous 'if'
    8 | }else if (a < b){
      |  ^~~~
Language: C++

#include <bits/stdC++.h>
using namespace 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:1:10: fatal error: bits/stdC++.h: No such file or directory
    1 | #include <bits/stdC++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include <bits/stdc++.h>
using namespace 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: In function 'int main()':
a.cc:6:10: error: 'B' was not declared in this scope
    6 |     if(a<B) cout<<"a < b"<<endl;
      |          ^
a.cc:8:10: error: 'B' was not declared in this scope
    8 |     if(a=B) cout<<"a = b"<<endl;
      |          ^
Language: C++

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

int main (){ 
 int a,b;
 cina>>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: In function 'int main()':
a.cc:6:2: error: 'cina' was not declared in this scope
    6 |  cina>>a>>b;
      |  ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace 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:8:5: error: extended character 　 is not valid in an identifier
    8 | if (　a 　<　 b　) cout<<"a　<　b"<<endl;
      |     ^
a.cc:8:9: error: extended character 　 is not valid in an identifier
    8 | if (　a 　<　 b　) cout<<"a　<　b"<<endl;
      |         ^
a.cc:8:12: error: extended character 　 is not valid in an identifier
    8 | if (　a 　<　 b　) cout<<"a　<　b"<<endl;
      |            ^
a.cc:8:15: error: extended character 　 is not valid in an identifier
    8 | if (　a 　<　 b　) cout<<"a　<　b"<<endl;
      |               ^
a.cc:9:5: error: extended character 　 is not valid in an identifier
    9 | if (　a　 > 　b　) cout<<"a　>　b"<<endl;
      |     ^
a.cc:9:5: error: extended character 　 is not valid in an identifier
a.cc:9:13: error: extended character 　 is not valid in an identifier
    9 | if (　a　 > 　b　) cout<<"a　>　b"<<endl;
      |             ^
a.cc:9:13: error: extended character 　 is not valid in an identifier
a.cc:10:5: error: extended character 　 is not valid in an identifier
   10 | if (　a　 ==　 b　) cout<<"a　==　b"<<endl;
      |     ^
a.cc:10:5: error: extended character 　 is not valid in an identifier
a.cc:10:13: error: extended character 　 is not valid in an identifier
   10 | if (　a　 ==　 b　) cout<<"a　==　b"<<endl;
      |             ^
a.cc:10:16: error: extended character 　 is not valid in an identifier
   10 | if (　a　 ==　 b　) cout<<"a　==　b"<<endl;
      |                ^
a.cc: In function 'int main()':
a.cc:8:5: error: '\U00003000a' was not declared in this scope
    8 | if (　a 　<　 b　) cout<<"a　<　b"<<endl;
      |     ^~~
a.cc:8:8: error: expected ')' before '\U00003000'
    8 | if (　a 　<　 b　) cout<<"a　<　b"<<endl;
      |    ~   ^~~
      |        )
a.cc:9:5: error: '\U00003000a\U00003000' was not declared in this scope
    9 | if (　a　 > 　b　) cout<<"a　>　b"<<endl;
      |     ^~~~~
a.cc:9:13: error: '\U00003000b\U00003000' was not declared in this scope
    9 | if (　a　 > 　b　) cout<<"a　>　b"<<endl;
      |             ^~~~~
a.cc:10:5: error: '\U00003000a\U00003000' was not declared in this scope
   10 | if (　a　 ==　 b　) cout<<"a　==　b"<<endl;
      |     ^~~~~
a.cc:10:13: error: '\U00003000' was not declared in this scope
   10 | if (　a　 ==　 b　) cout<<"a　==　b"<<endl;
      |             ^~
a.cc:10:15: error: expected ')' before 'b\U00003000'
   10 | if (　a　 ==　 b　) cout<<"a　==　b"<<endl;
      |    ~          ^~~~
      |               )
Language: C++

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


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

#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:26: error: expected ';' before '}' token
   11 | if(a<b){cout<<"a<b"<<endl}else if(a>b){cout<<"a>b"<<endl;}else(a=b){cout<<"a=b"<<endl};
      |                          ^
      |                          ;
a.cc:11:68: error: expected ';' before '{' token
   11 | if(a<b){cout<<"a<b"<<endl}else if(a>b){cout<<"a>b"<<endl;}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:11:26: error: expected ';' before '}' token
   11 | if(a<b){cout<<"a<b"<<endl}else if(a>b){cout<<"a>b"<<endl}else(a=b){cout<<"a=b"<<endl};
      |                          ^
      |                          ;
a.cc:11:57: error: expected ';' before '}' token
   11 | if(a<b){cout<<"a<b"<<endl}else if(a>b){cout<<"a>b"<<endl}else(a=b){cout<<"a=b"<<endl};
      |                                                         ^
      |                                                         ;
a.cc:11:67: error: expected ';' before '{' token
   11 | if(a<b){cout<<"a<b"<<endl}else if(a>b){cout<<"a>b"<<endl}else(a=b){cout<<"a=b"<<endl};
      |                                                                   ^
      |                                                                   ;
Language: C++

#include <iostream>

using namespace std;

int main()
{
int a,b;

cin>>a;
cin>>b;

if(a<b){cout<<"a<b"<<endl;}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:12:69: error: expected ';' before '{' token
   12 | if(a<b){cout<<"a<b"<<endl;}else if(a>b){cout<<"a>b"<<endl;}else(a=b){cout<<"a=b"<<endl;};
      |                                                                     ^
      |                                                                     ;
Language: C++

#include <iostream>

using namespace std;

int main()
{
int a,b;

cin>>a;
cin>>b;

if(a<b){cout<<"a<b"<<endl;}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:12:69: error: expected ';' before '{' token
   12 | if(a<b){cout<<"a<b"<<endl;}else if(a>b){cout<<"a>b"<<endl;}else(a=b){cout<<"a==b"<<endl;};
      |                                                                     ^
      |                                                                     ;
Language: C++

#include <iostream>

using namespace std;

int main()
{
int a,b;

cin>>a;
cin>>b;

if(a<b){cout<<"a<b"<<endl;}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:2: error: expected '}' at end of input
   15 | }
      |  ^
a.cc:6:1: note: to match this '{'
    6 | {
      | ^
Language: C++

#include <iostream>

using namespace std;

int main()
{
int a,b;

cin>>a;
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:12:83: error: expected ';' before '}' token
   12 | if(a<b){cout<<"a<b"<<endl;}else if(a>b){cout<<"a>b"<<endl;}else{cout<<"a==b"<<endl};
      |                                                                                   ^
      |                                                                                   ;
a.cc:14:10: error: expected '}' at end of input
   14 | return 0;
      |          ^
a.cc:6:1: note: to match this '{'
    6 | {
      | ^
Language: C++

#include <iostream>

using namespace std;

int main()
{
int a,b;

cin>>a;
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:12:83: error: expected ';' before '}' token
   12 | if(a<b){cout<<"a<b"<<endl;}else if(a>b){cout<<"a>b"<<endl;}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;
    }if(a < b){
        cout << "a < b"<<endl;
    }if(a == b){
        cout << "a == b"<<endl;
    }
    
    reurn 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:5: error: 'reurn' was not declared in this scope
   17 |     reurn 0;
      |     ^~~~~
Language: C++

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

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

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

return 0;
}
  


Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: expected ';' before '}' token
    9 |    a < b
      |         ^
      |         ;
   10 | } else if( a == b ) {
      | ~        
a.cc:11:10: error: expected ';' before '}' token
   11 |    a == b
      |          ^
      |          ;
   12 | } else if(a > b) {
      | ~         
a.cc:13:9: error: expected ';' before '}' token
   13 |    a > b
      |         ^
      |         ;
   14 | }endl;
      | ~        
a.cc:14:6: error: statement cannot resolve address of overloaded function
   14 | }endl;
      |      ^
Language: C++

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

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

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

return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: expected ';' before '}' token
    9 |    a < b
      |         ^
      |         ;
   10 | } else if( a == b ) {
      | ~        
a.cc:11:10: error: expected ';' before '}' token
   11 |    a == b
      |          ^
      |          ;
   12 | } else if(a > b) {
      | ~         
a.cc:13:9: error: expected ';' before '}' token
   13 |    a > b
      |         ^
      |         ;
   14 | }endl;
      | ~        
a.cc:14:6: error: statement cannot resolve address of overloaded function
   14 | }endl;
      |      ^
Language: C++

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

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

if(a < b ) {
   a < b；
} else if( a == b ) {
   a == b；
} else if(a > b) {
   a > b；
}endl;

return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:8: error: 'b\U0000ff1b' was not declared in this scope
    9 |    a < b；
      |        ^~~
a.cc:11:9: error: 'b\U0000ff1b' was not declared in this scope
   11 |    a == b；
      |         ^~~
a.cc:13:8: error: 'b\U0000ff1b' was not declared in this scope
   13 |    a > b；
      |        ^~~
a.cc:14:6: error: statement cannot resolve address of overloaded function
   14 | }endl;
      |      ^
Language: C++

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

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

if(a < b ) {
   a < b；
} else if( a == b ) {
   a == b；
} else if(a > b) {
   a > b；

return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:8: error: 'b\U0000ff1b' was not declared in this scope
    9 |    a < b；
      |        ^~~
a.cc:11:9: error: 'b\U0000ff1b' was not declared in this scope
   11 |    a == b；
      |         ^~~
a.cc:13:8: error: 'b\U0000ff1b' was not declared in this scope
   13 |    a > b；
      |        ^~~
a.cc:16:2: error: expected '}' at end of input
   16 | }
      |  ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

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

int main(){
  int a,b;#include <bits/stdc++.h>
using namespace 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;
}
  cin>>a>>b;



Compiler output:
a.cc:5:11: error: stray '#' in program
    5 |   int a,b;#include <bits/stdc++.h>
      |           ^
a.cc: In function 'int main()':
a.cc:5:12: error: 'include' was not declared in this scope
    5 |   int a,b;#include <bits/stdc++.h>
      |            ^~~~~~~
a.cc:5:21: error: 'bits' was not declared in this scope
    5 |   int a,b;#include <bits/stdc++.h>
      |                     ^~~~
a.cc:5:26: error: 'stdc' was not declared in this scope; did you mean 'std'?
    5 |   int a,b;#include <bits/stdc++.h>
      |                          ^~~~
      |                          std
a.cc:6:1: error: expected primary-expression before 'using'
    6 | using namespace std;
      | ^~~~~
a.cc:8:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
    8 | int main(){
      |         ^~
a.cc:8:9: note: remove parentheses to default-initialize a variable
    8 | int main(){
      |         ^~
      |         --
a.cc:8:9: note: or replace parentheses with braces to value-initialize a variable
a.cc:8:11: error: a function-definition is not allowed here before '{' token
    8 | int main(){
      |           ^
a.cc:18:13: error: expected '}' at end of input
   18 |   cin>>a>>b;
      |             ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

#include <bits/stdc++.h>
using namespace 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: In function 'int main()':
a.cc:10:8: error: expected ')' before '\U0000ff1d\U0000ff1d'
   10 |   if( a ＝＝ b ) cout<<"a == b"<<endl;
      |     ~  ^~~~~
      |        )
Language: C++

#include <iostream>

int main(void){
    std::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:4:17: error: 'a' was not declared in this scope
    4 |     std::cin >> a >> b;
      |                 ^
a.cc:4:22: error: 'b' was not declared in this scope
    4 |     std::cin >> a >> b;
      |                      ^
a.cc:6:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |         cout << "a > b" << endl;
      |         ^~~~
      |         std::cout
In file included from a.cc:1:
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:6:28: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |         cout << "a > b" << endl;
      |                            ^~~~
      |                            std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc: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:28: 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: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:29: 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)
      |     ^~~~
Language: C++

#include <iostream>
using namespace std;
int main(void){
    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:4:12: error: 'a' was not declared in this scope
    4 |     cin >> a >> b;
      |            ^
a.cc:4:17: error: 'b' was not declared in this scope
    4 |     cin >> a >> b;
      |                 ^
Language: C++

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

 int main(){

 int a, b;
 cin>>a>>b;
 if(a<b) cout<<a<b<<endl;
 else(a>b) cout<<a>b<<endl;
else(a==b) cout<<a==b<<endl;
 return 0;
}


Compiler output:
a.cc:4:2: error: expected identifier before 'int'
    4 |  int main(){
      |  ^~~
a.cc:2:16: error: expected ';' before 'int'
    2 | using namespace
      |                ^
      |                ;
    3 | 
    4 |  int main(){
      |  ~~~            
a.cc: In function 'int main()':
a.cc:7:2: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |  cin>>a>>b;
      |  ^~~
      |  std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:8:10: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |  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:21: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |  if(a<b) cout<<a<b<<endl;
      |                     ^~~~
      |                     std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:9:11: error: expected ';' before 'cout'
    9 |  else(a>b) cout<<a>b<<endl;
      |           ^~~~~
      |           ;
a.cc:10:1: error: 'else' without a previous 'if'
   10 | else(a==b) cout<<a==b<<endl;
      | ^~~~
a.cc:10:11: error: expected ';' before 'cout'
   10 | else(a==b) cout<<a==b<<endl;
      |           ^~~~~
      |           ;
Language: C++

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

 int main(){

 int a, b;
 cin>>a>>b;
 if(a<b) cout<<a < b<<endl;
 else(a>b) cout<<a > b<<endl;
else(a==b) cout<<a == b<<endl;
 return 0;
}


Compiler output:
a.cc:4:2: error: expected identifier before 'int'
    4 |  int main(){
      |  ^~~
a.cc:2:16: error: expected ';' before 'int'
    2 | using namespace
      |                ^
      |                ;
    3 | 
    4 |  int main(){
      |  ~~~            
a.cc: In function 'int main()':
a.cc:7:2: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |  cin>>a>>b;
      |  ^~~
      |  std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:8:10: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |  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:23: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |  if(a<b) cout<<a < b<<endl;
      |                       ^~~~
      |                       std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:9:11: error: expected ';' before 'cout'
    9 |  else(a>b) cout<<a > b<<endl;
      |           ^~~~~
      |           ;
a.cc:10:1: error: 'else' without a previous 'if'
   10 | else(a==b) cout<<a == b<<endl;
      | ^~~~
a.cc:10:11: error: expected ';' before 'cout'
   10 | else(a==b) 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<<endl;
 else(a>b) cout<<a > b<<endl;
else(a==b) cout<<a == b<<endl;
 return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:21: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
    8 |  if(a<b) cout<<a < b<<endl;
      |                    ~^~~~~~
a.cc:9:11: error: expected ';' before 'cout'
    9 |  else(a>b) cout<<a > b<<endl;
      |           ^~~~~
      |           ;
a.cc:10:1: error: 'else' without a previous 'if'
   10 | else(a==b) cout<<a == b<<endl;
      | ^~~~
a.cc:10:11: error: expected ';' before 'cout'
   10 | else(a==b) 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"<<endl;
 else(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;
      |           ^~~~~
      |           ;
a.cc:10:1: error: 'else' without a previous 'if'
   10 | else(a==b) cout<<"a == b"<<endl;
      | ^~~~
a.cc:10:11: error: expected ';' before 'cout'
   10 | else(a==b) 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"<<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:10:11: error: expected ';' before 'cout'
   10 | else(a==b) 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"<<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:10:14: error: expected ';' before 'cout'
   10 | 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 cout << "a==b" << endl;
    return0;
}   
    


Compiler output:
a.cc: In function 'int main()':
a.cc:12:5: error: 'return0' was not declared in this scope
   12 |     return0;
      |     ^~~~~~~
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;
    return0;
}   
    


Compiler output:
a.cc: In function 'int main()':
a.cc:12:5: error: 'return0' was not declared in this scope
   12 |     return0;
      |     ^~~~~~~
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:8:8: error: expected ';' before 'a'
    8 |     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:8:8: error: expected ';' before 'a'
    8 |     cin a >> b;
      |        ^~
      |        ;
Language: C++

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

  return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:4:8: error: 'cin' is not a member of 'std'
    4 |   std::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 | int main()
a.cc:6:10: error: 'cout' is not a member of 'std'
    6 |     std::cout << "a > b" << std::endl;
      |          ^~~~
a.cc:6:10: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:6:34: error: 'endl' is not a member of 'std'
    6 |     std::cout << "a > b" << std::endl;
      |                                  ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | int main()
a.cc:8:10: error: 'cout' is not a member of 'std'
    8 |     std::cout << "a < b" << std::endl;
      |          ^~~~
a.cc:8:10: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:8:34: error: 'endl' is not a member of 'std'
    8 |     std::cout << "a < b" << std::endl;
      |                                  ^~~~
a.cc:8:34: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
a.cc:10:11: error: 'cout' is not a member of 'std'
   10 |      std::cout << "a == b" << std::endl;
      |           ^~~~
a.cc:10:11: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:10:36: error: 'endl' is not a member of 'std'
   10 |      std::cout << "a == b" << std::endl;
      |                                    ^~~~
a.cc:10:36: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
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:14:33: error: expected ';' before '}' token
   14 |                 printf("a==b\n")
      |                                 ^
      |                                 ;
   15 |         }
      |         ~
Language: C++

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

    } 
}


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

include<bits/stdc++.h>
using namespace 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:1:1: error: 'include' does not name a type
    1 | include<bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin>>a>>b;
      |   ^~~
a.cc:8:15: error: 'cout' was not declared in this scope
    8 |   if( a < b ) cout<<"a < b"<<endl;
      |               ^~~~
a.cc:8:30: error: 'endl' was not declared in this scope
    8 |   if( a < b ) cout<<"a < b"<<endl;
      |                              ^~~~
a.cc:9:15: error: 'cout' was not declared in this scope
    9 |   if( a > b ) cout<<"a > b "<<endl;
      |               ^~~~
a.cc:9:31: error: 'endl' was not declared in this scope
    9 |   if( a > b ) cout<<"a > b "<<endl;
      |                               ^~~~
a.cc:10:16: error: 'cout' was not declared in this scope
   10 |   if( a == b ) cout<<"a == b"<<endl;
      |                ^~~~
a.cc:10:32: error: 'endl' was not declared in this scope
   10 |   if( a == b ) cout<<"a == b"<<endl;
      |                                ^~~~
Language: C++

//itp1_topic2_a
#include <bits/stdc++.h>
using namespace 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"<<enfl;

		return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:45: error: 'enfl' was not declared in this scope; did you mean 'erfl'?
   11 |                 if( a == b ) cout<<"a = b"<<enfl;
      |                                             ^~~~
      |                                             erfl
Language: C++

//itp1_topic2_a
#include <bits/stdc++.h>
using namespace 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"<<enfl;

		return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:46: error: 'enfl' was not declared in this scope; did you mean 'erfl'?
   11 |                 if( a == b ) cout<<"a == b"<<enfl;
      |                                              ^~~~
      |                                              erfl
Language: C++

#include<bits/stdc++.h>
using namespace 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;

return0;
}





Compiler output:
a.cc: In function 'int main()':
a.cc:14:1: error: 'return0' was not declared in this scope
   14 | return0;
      | ^~~~~~~
Language: C++

#include<bits/stdc++.h>
using namespace 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;

return0;
}






Compiler output:
a.cc: In function 'int main()':
a.cc:14:1: error: 'return0' was not declared in this scope
   14 | return0;
      | ^~~~~~~
Language: C++

#include <iostream>
using namespace std;
int main(){
    if (a<b && b<c) cout << "Yes" << endl;
    else cout << "No" << endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:4:9: error: 'a' was not declared in this scope
    4 |     if (a<b && b<c) cout << "Yes" << endl;
      |         ^
a.cc:4:11: error: 'b' was not declared in this scope
    4 |     if (a<b && b<c) cout << "Yes" << endl;
      |           ^
a.cc:4:18: error: 'c' was not declared in this scope
    4 |     if (a<b && b<c) cout << "Yes" << endl;
      |                  ^
Language: C++

   #include <stdio.h>

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


Compiler output:
a.cc:1:1: error: extended character   is not valid in an identifier
    1 |    #include <stdio.h>
      | ^
a.cc:1:1: error: extended character   is not valid in an identifier
a.cc:1:1: error: extended character   is not valid in an identifier
a.cc:1:4: error: stray '#' in program
    1 |    #include <stdio.h>
      |    ^
a.cc:1:1: error: '\U00002028\U00002028\U00002028' does not name a type
    1 |    #include <stdio.h>
      | ^~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
	int a,b;
	cin>>a>>b>>c;
	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:5:20: error: 'c' was not declared in this scope
    5 |         cin>>a>>b>>c;
      |                    ^
Language: C++

#include <stdio.h>
int main() {
	int a;
	int b;

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

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

	return 0;
}


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

include<bits/stdc++.h>
using namespace 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:1:1: error: 'include' does not name a type
    1 | include<bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin>>a>>b;
      |   ^~~
a.cc:8:15: error: 'cout' was not declared in this scope
    8 |   if( a < b ) cout<<"a < b"<<endl;
      |               ^~~~
a.cc:8:30: error: 'endl' was not declared in this scope
    8 |   if( a < b ) cout<<"a < b"<<endl;
      |                              ^~~~
a.cc:9:15: error: 'cout' was not declared in this scope
    9 |   if( a > b ) cout<<"a > b"<<endl;
      |               ^~~~
a.cc:9:30: error: 'endl' was not declared in this scope
    9 |   if( a > b ) cout<<"a > b"<<endl;
      |                              ^~~~
a.cc:10:16: error: 'cout' was not declared in this scope
   10 |   if( a == b ) cout<<"a == b"<<endl;
      |                ^~~~
a.cc:10:32: error: 'endl' was not declared in this scope
   10 |   if( a == b ) cout<<"a == b"<<endl;
      |                                ^~~~
Language: C++

include<iostream>
using namespace std;

int main()
{
  int x,y;

  cin >> x >> y;

  if (x > y)
    {
      cout << x << " > " << y << endl;
    }
  else if (x < y)
    {
      cout << x << " < " << y << endl;
    }
  else if (x = y)
    {
      cout << x << " == " << y << endl;
    }
}




Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:8:3: error: 'cin' was not declared in this scope
    8 |   cin >> x >> y;
      |   ^~~
a.cc:12:7: error: 'cout' was not declared in this scope
   12 |       cout << x << " > " << y << endl;
      |       ^~~~
a.cc:12:34: error: 'endl' was not declared in this scope
   12 |       cout << x << " > " << y << endl;
      |                                  ^~~~
a.cc:16:7: error: 'cout' was not declared in this scope
   16 |       cout << x << " < " << y << endl;
      |       ^~~~
a.cc:16:34: error: 'endl' was not declared in this scope
   16 |       cout << x << " < " << y << endl;
      |                                  ^~~~
a.cc:20:7: error: 'cout' was not declared in this scope
   20 |       cout << x << " == " << y << endl;
      |       ^~~~
a.cc:20:35: error: 'endl' was not declared in this scope
   20 |       cout << x << " == " << y << endl;
      |                                   ^~~~
Language: C++

include<iostream>
using namespace std;

int main()
{
  int x,y;

  cin >> x >> y;

  if (x > y)
    {
      cout << x << ">" << y << endl;
    }
  else if (x < y)
    {
      cout << x << "<" << y << endl;
    }
  else if (x = y)
    {
      cout << x << "==" << y << endl;
    }
}




Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:8:3: error: 'cin' was not declared in this scope
    8 |   cin >> x >> y;
      |   ^~~
a.cc:12:7: error: 'cout' was not declared in this scope
   12 |       cout << x << ">" << y << endl;
      |       ^~~~
a.cc:12:32: error: 'endl' was not declared in this scope
   12 |       cout << x << ">" << y << endl;
      |                                ^~~~
a.cc:16:7: error: 'cout' was not declared in this scope
   16 |       cout << x << "<" << y << endl;
      |       ^~~~
a.cc:16:32: error: 'endl' was not declared in this scope
   16 |       cout << x << "<" << y << endl;
      |                                ^~~~
a.cc:20:7: error: 'cout' was not declared in this scope
   20 |       cout << x << "==" << y << endl;
      |       ^~~~
a.cc:20:33: error: 'endl' was not declared in this scope
   20 |       cout << x << "==" << y << endl;
      |                                 ^~~~
Language: C++

include<iostream>
using namespace std;

int main()
{
  int x,y;

  cin >> x >> y;

  if (x > y)
    {
      cout << x << ">" << y << endl;
    }
  else if (x < y)
    {
      cout << x << "<" << y << endl;
    }
  else if (x = y)
    {
      cout << x << "=" << y << endl;
    }
}




Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:8:3: error: 'cin' was not declared in this scope
    8 |   cin >> x >> y;
      |   ^~~
a.cc:12:7: error: 'cout' was not declared in this scope
   12 |       cout << x << ">" << y << endl;
      |       ^~~~
a.cc:12:32: error: 'endl' was not declared in this scope
   12 |       cout << x << ">" << y << endl;
      |                                ^~~~
a.cc:16:7: error: 'cout' was not declared in this scope
   16 |       cout << x << "<" << y << endl;
      |       ^~~~
a.cc:16:32: error: 'endl' was not declared in this scope
   16 |       cout << x << "<" << y << endl;
      |                                ^~~~
a.cc:20:7: error: 'cout' was not declared in this scope
   20 |       cout << x << "=" << y << endl;
      |       ^~~~
a.cc:20:32: error: 'endl' was not declared in this scope
   20 |       cout << x << "=" << y << endl;
      |                                ^~~~
Language: C++

include<iostream>
using namespace std;

int main()
{
  int x,y;

  cin >> x >> y;

  if (x > y){
      cout << x << ">" << y << endl;
    }else if (x < y){
      cout << x << "<" << y << endl;
    }else if (x = y){
      cout << x << "=" << y << endl;
    }
}




Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:8:3: error: 'cin' was not declared in this scope
    8 |   cin >> x >> y;
      |   ^~~
a.cc:11:7: error: 'cout' was not declared in this scope
   11 |       cout << x << ">" << y << endl;
      |       ^~~~
a.cc:11:32: error: 'endl' was not declared in this scope
   11 |       cout << x << ">" << y << endl;
      |                                ^~~~
a.cc:13:7: error: 'cout' was not declared in this scope
   13 |       cout << x << "<" << y << endl;
      |       ^~~~
a.cc:13:32: error: 'endl' was not declared in this scope
   13 |       cout << x << "<" << y << endl;
      |                                ^~~~
a.cc:15:7: error: 'cout' was not declared in this scope
   15 |       cout << x << "=" << y << endl;
      |       ^~~~
a.cc:15:32: error: 'endl' was not declared in this scope
   15 |       cout << x << "=" << y << 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 if(a==b){cout<<"a==b"<<endl}
return 0;}


Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<iostream>
      | ^~~~~~~
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"<<endl};
return 0;}


Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<iostream>
      | ^~~~~~~
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"<<endl;
return 0;}


Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<iostream>
      | ^~~~~~~
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"<<endl;
return 0;}


Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:5:1: error: 'cin' was not declared in this scope
    5 | cin>>a>>b;
      | ^~~
a.cc:6:8: error: 'cout' was not declared in this scope
    6 | if(a<b)cout<<"a<b"<<endl;
      |        ^~~~
a.cc:6:21: error: 'endl' was not declared in this scope
    6 | if(a<b)cout<<"a<b"<<endl;
      |                     ^~~~
a.cc:7:13: error: 'cout' was not declared in this scope
    7 | else if(a>b)cout<<"a>b"<<endl;
      |             ^~~~
a.cc:7:26: error: 'endl' was not declared in this scope
    7 | else if(a>b)cout<<"a>b"<<endl;
      |                          ^~~~
a.cc:8:14: error: 'cout' was not declared in this scope
    8 | else if(a==b)cout<<"a==b"<<endl;
      |              ^~~~
a.cc:8:28: error: 'endl' was not declared in this scope
    8 | 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 if(a==b)cout<<"a == b"<<endl;
return 0;}


Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:5:1: error: 'cin' was not declared in this scope
    5 | cin>>a>>b;
      | ^~~
a.cc:6:8: error: 'cout' was not declared in this scope
    6 | if(a<b)cout<<"a < b"<<endl;
      |        ^~~~
a.cc:6:23: error: 'endl' was not declared in this scope
    6 | if(a<b)cout<<"a < b"<<endl;
      |                       ^~~~
a.cc:7:13: error: 'cout' was not declared in this scope
    7 | else if(a>b)cout<<"a > b"<<endl;
      |             ^~~~
a.cc:7:28: error: 'endl' was not declared in this scope
    7 | else if(a>b)cout<<"a > b"<<endl;
      |                            ^~~~
a.cc:8:14: error: 'cout' was not declared in this scope
    8 | else if(a==b)cout<<"a == b"<<endl;
      |              ^~~~
a.cc:8:30: error: 'endl' was not declared in this scope
    8 | 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 (a==b)cout<<"a == b"<<endl;
return 0;}


Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:5:1: error: 'cin' was not declared in this scope
    5 | cin>>a>>b;
      | ^~~
a.cc:6:8: error: 'cout' was not declared in this scope
    6 | if(a<b)cout<<"a < b"<<endl;
      |        ^~~~
a.cc:6:23: error: 'endl' was not declared in this scope
    6 | if(a<b)cout<<"a < b"<<endl;
      |                       ^~~~
a.cc:7:13: error: 'cout' was not declared in this scope
    7 | else if(a>b)cout<<"a > b"<<endl;
      |             ^~~~
a.cc:7:28: error: 'endl' was not declared in this scope
    7 | else if(a>b)cout<<"a > b"<<endl;
      |                            ^~~~
a.cc:8:12: error: expected ';' before 'cout'
    8 | 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 cout<<"a == b"<<endl;
return 0;}


Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:5:1: error: 'cin' was not declared in this scope
    5 | cin>>a>>b;
      | ^~~
a.cc:6:8: error: 'cout' was not declared in this scope
    6 | if(a<b)cout<<"a < b"<<endl;
      |        ^~~~
a.cc:6:23: error: 'endl' was not declared in this scope
    6 | if(a<b)cout<<"a < b"<<endl;
      |                       ^~~~
a.cc:7:13: error: 'cout' was not declared in this scope
    7 | else if(a>b)cout<<"a > b"<<endl;
      |             ^~~~
a.cc:7:28: error: 'endl' was not declared in this scope
    7 | else if(a>b)cout<<"a > b"<<endl;
      |                            ^~~~
a.cc:8:6: error: 'cout' was not declared in this scope
    8 | else cout<<"a == b"<<endl;
      |      ^~~~
a.cc:8:22: error: 'endl' was not declared in this scope
    8 | else cout<<"a == b"<<endl;
      |                      ^~~~
Language: C++

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

return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:4: error: expected '(' before 'a'
    8 | if a>b cout<<"a>b";
      |    ^
      |    (
a.cc:9:4: error: expected '(' before 'a'
    9 | if a<b cout<<"a<b";
      |    ^
      |    (
a.cc:10:4: error: expected '(' before 'a'
   10 | if a==b cout<<"a==b";
      |    ^
      |    (
Language: C++

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



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

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



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


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




Compiler output:
a.cc: In function 'int main()':
a.cc:10:16: error: expected ';' before 'printf'
   10 |     else (a==b)
      |                ^
      |                ;
   11 |         printf("a==b");
      |         ~~~~~~