criyle/codenet-compile-errors huggingface dataset:
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:18: error: expected ';' before 'printf'
   10 |       else (a==b)
      |                  ^
      |                  ;
   11 |         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  {printf("a==b\n");

            }
    return 0;
}



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

#include<stdio.h>

int main(void)
{

int a,b;

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

if(a<b){
   printf("a<b");
}

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

else  {
   print("a==b");
}

return 0;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:1: error: 'else' without a previous 'if'
   18 | else  {
      | ^~~~
a.cc:19:4: error: 'print' was not declared in this scope; did you mean 'printf'?
   19 |    print("a==b");
      |    ^~~~~
      |    printf
Language: C++

#include<stdio.h>
 
int main(void)
{
 
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: In function 'int main()':
a.cc:18:1: error: 'else' without a previous 'if'
   18 | else  {
      | ^~~~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:18:1: error: 'else' without a previous 'if'
   18 | else  {
      | ^~~~
a.cc:19:4: error: 'print' was not declared in this scope; did you mean 'printf'?
   19 |    print("a==b\n");
      |    ^~~~~
      |    printf
Language: C++

#include<stdio.h>

int main()
{

int a,b;

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

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

return 0;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:15: error: expected ';' before '}' token
   17 | printf("a==b")
      |               ^
      |               ;
   18 | }
      | ~
Language: C++


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


Compiler output:
a.cc: In function 'int main()':
a.cc:18:15: error: expected ';' before '}' token
   18 | printf("a==b")
      |               ^
      |               ;
   19 | }
      | ~
Language: C++


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


Compiler output:
a.cc: In function 'int main()':
a.cc:21:1: error: 'exit' was not declared in this scope
   21 | exit(0);
      | ^~~~
a.cc:3:1: note: 'exit' is defined in header '<cstdlib>'; this is probably fixable by adding '#include <cstdlib>'
    2 | #include<stdio.h>
  +++ |+#include <cstdlib>
    3 |
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 
         printf("a==b\n");
        return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: 'else' without a previous 'if'
    8 |         else if (a>b);
      |         ^~~~
a.cc:10:9: error: 'else' without a previous 'if'
   10 |         else
      |         ^~~~
Language: C++

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


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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:31: error: expected primary-expression before ';' token
    9 |     if(a < b ) cout<<"a < b"<<;
      |                               ^
a.cc:10:31: error: expected primary-expression before ';' token
   10 |     if(a > b ) cout<<"a > b"<<;
      |                               ^
a.cc:11:33: error: expected primary-expression before ';' token
   11 |     if(a == b ) cout<<"a == b"<<;
      |                                 ^
Language: C++

#include<iostream>
using namespace std;

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



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

#include<iostream>

using namespace std;

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

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


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

#include <iostream>
using namespace std;

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


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

#include<bits/stdc++.h>
using namespace std;
int main(){
	int a;cin>>a;
	
	if(a>2){
		cout<<1<<endl;
		}
	else if(a==2){
		cout<<2<<endl;
		}	
	else{
		cout<<3<<endl;
		}	
	return 0;


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

#include<bits/stdc++.h>
using namespace std;
int a;a" "b<<
int main(){
	cin>>a;
	
	if(a<b){
		cout<<a<b<<endl;
		}
	else if(a==b)
	{
		cout<<a==b<<endl;
		}	
	else{
		cout<<a>b<<endl;
		}	
	return 0;
}



Compiler output:
a.cc:3:7: error: 'a' does not name a type
    3 | int a;a" "b<<
      |       ^
Language: C++

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



return 0;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:1: warning: capture of variable 'std::cout' with non-automatic storage duration
    7 | cout<<"a"<<" "<<"=="<<" "<<"b"<<endl;
      | ^~~~
In file included from a.cc:1:
/usr/include/c++/14/iostream:63:18: note: 'std::ostream std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:7:5: error: expected ',' before '<<' token
    7 | cout<<"a"<<" "<<"=="<<" "<<"b"<<endl;
      |     ^~
      |     ,
a.cc:7:5: error: expected identifier before '<<' token
    7 | cout<<"a"<<" "<<"=="<<" "<<"b"<<endl;
      |     ^~
a.cc:7:37: error: expected ']' before ';' token
    7 | cout<<"a"<<" "<<"=="<<" "<<"b"<<endl;
      |                                     ^
      |                                     ]
a.cc: In lambda function:
a.cc:7:37: error: expected '{' before ';' token
a.cc: In function 'int main()':
a.cc:8:1: error: expected primary-expression before ']' token
    8 | ]eles if(a<b){
      | ^
a.cc:18:2: error: expected '}' at end of input
   18 | }
      |  ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int a;a" "b<<
int main(){
	cin>>a;
	
	if(a<b){
		cout<<"a<b"<<endl;
		}
	else if(a==b)
	{
		cout<<"a==b"<<endl;
		}	
	else{
		cout<<"a>b"<<endl;
		}	
	return 0;
}


Compiler output:
a.cc:3:7: error: 'a' does not name a type
    3 | int a;a" "b<<
      |       ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int a,b;a" "b
int main(){
	cin>>a;
	
	if(a<b){
		cout<<"a<b"<<endl;
		}
	else if(a==b)
	{
		cout<<"a==b"<<endl;
		}	
	else{
		cout<<"a>b"<<endl;
		}	
	return 0;
}


Compiler output:
a.cc:3:9: error: 'a' does not name a type
    3 | int a,b;a" "b
      |         ^
Language: C++

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: In function 'int main()':
a.cc:3:5: error: 'cin' was not declared in this scope
    3 |     cin>>a>>b;
      |     ^~~
a.cc:4:18: error: 'cout' was not declared in this scope
    4 |         if (a<b) cout<<"a<b"<<endl;
      |                  ^~~~
a.cc:4:31: error: 'endl' was not declared in this scope
    4 |         if (a<b) cout<<"a<b"<<endl;
      |                               ^~~~
a.cc:6:23: error: 'cout' was not declared in this scope
    6 |         else if (a>b) cout<<"a>b"<<endl;
      |                       ^~~~
a.cc:6:36: error: 'endl' was not declared in this scope
    6 |         else if (a>b) cout<<"a>b"<<endl;
      |                                    ^~~~
a.cc:8:24: error: 'cout' was not declared in this scope
    8 |         else if (a==b) cout<<"a==b"<<endl;
      |                        ^~~~
a.cc:8:38: 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; }
	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:2: error: expected '}' at end of input
   10 | }
      |  ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

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

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

return 0
}


Compiler output:
a.cc:1:2: error: invalid preprocessing directive #iclude; did you mean #include?
    1 | #iclude <iostream>
      |  ^~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:5:1: error: 'cout' was not declared in this scope
    5 | cout>>a>>b;
      | ^~~~
a.cc:1:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #iclude <iostream>
a.cc:7:20: error: 'endl' was not declared in this scope
    7 | 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 | #iclude <iostream>
a.cc:9:25: error: 'endl' was not declared in this scope
    9 | else if(a<b){cout<<a<b<<endl;
      |                         ^~~~
a.cc:9:25: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
a.cc:12:9: error: expected ';' before '}' token
   12 | return 0
      |         ^
      |         ;
   13 | }
      | ~
Language: C++

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

return 0
}


Compiler output:
a.cc:1:2: error: invalid preprocessing directive #iclude; did you mean #include?
    1 | #iclude <iostream>
      |  ^~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:5:1: 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 | #iclude <iostream>
a.cc:7:9: error: 'cout' was not declared in this scope
    7 | if(a>b){cout<<a>b<<endl;
      |         ^~~~
a.cc:7:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:7:20: error: 'endl' was not declared in this scope
    7 | 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 | #iclude <iostream>
a.cc:9:14: error: 'cout' was not declared in this scope
    9 | else if(a<b){cout<<a<b<<endl;
      |              ^~~~
a.cc:9:14: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:9:25: error: 'endl' was not declared in this scope
    9 | else if(a<b){cout<<a<b<<endl;
      |                         ^~~~
a.cc:9:25: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
a.cc:12:9: error: expected ';' before '}' token
   12 | return 0
      |         ^
      |         ;
   13 | }
      | ~
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;
}

return 0
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:18: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
    7 | if(a>b){cout<<a>b<<endl;
      |                 ~^~~~~~
a.cc:9:23: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
    9 | else if(a<b){cout<<a<b<<endl;
      |                      ~^~~~~~
a.cc:12:9: error: expected ';' before '}' token
   12 | return 0
      |         ^
      |         ;
   13 | }
      | ~
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;
}

return 0
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:9: error: expected ';' before '}' token
   12 | return 0
      |         ^
      |         ;
   13 | }
      | ~
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;
}

return 0
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:9: error: expected ';' before '}' token
   12 | return 0
      |         ^
      |         ;
   13 | }
      | ~
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: In function 'int main()':
a.cc:11:19: error: expected ';' before string constant
   11 | 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;}
    eise if(a<b){cout<<"a<b"<<endl;}
    else if(a==b){cout<<"a<b"<<endl;}
    return 0;
}


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


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


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


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

import java.util.Scanner;

public class Main {


	 public static void main(String[] args)
	 {
		 int a,b;
         Scanner sc = new Scanner(System.in);
    
        
          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:3:1: error: expected unqualified-id before 'public'
    3 | public class Main {
      | ^~~~~~
Language: C++

import java.util.Scanner;

public class Main {


	 public static void main(String[] args)
	 {
		 int a,b;
         Scanner sc = new Scanner(System.in);
    
        
          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:3:1: error: expected unqualified-id before 'public'
    3 | public class Main {
      | ^~~~~~
Language: C++

import java.util.Scanner;

public class Main {


	 public static void main(String[] args)
	 {
		 int a,b;
         Scanner sc = new Scanner(System.in);
    
        
          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:3:1: error: expected unqualified-id before 'public'
    3 | public class Main {
      | ^~~~~~
Language: C++

import java.util.Scanner;

public class Main{
	public static void main(String[] args){
		Scanner stdIn = new Scanner(System.in);
		int a = stdIn.nextInt();
		int b = stdIn.nextInt();
		
		if(a<b){
			System.out.print("a<b");
		}else if(a>b){
			System.out.print("a>b");
		}else{ 
			System.out.print("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:3:1: error: expected unqualified-id before 'public'
    3 | 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: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 <cstdio>

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


Compiler output:
a.cc: In function 'int main()':
a.cc:17:20: error: expected ';' before 'return'
   17 |   std::printf("\n")
      |                    ^
      |                    ;
   18 |   return 0;
      |   ~~~~~~
Language: C++

#include <cstdio>

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


Compiler output:
a.cc: In function 'int main()':
a.cc:17:20: error: expected ';' before 'return'
   17 |   std::printf("\n")
      |                    ^
      |                    ;
   18 |   return 0;
      |   ~~~~~~
Language: C++

include <stdio.h>

int main(){
    int d1,d2;
    scanf(%d%d , &d1,&d2);
    
    if(d1 < d2){
    printf("%d < %d" , d1,d2);
    }else if(d1 > d2){
    printf("%d > %d" , d1,d2);
    }else{
    printf("%d == %d" , d1,d2);
    }

    return 0;
}


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

include <stdio.h>

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

    return 0;
}


Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <stdio.h>
      | ^~~~~~~
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:6:15: error: expected primary-expression before '>>' token
    6 |     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(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:13:14: error: expected ';' before '{' token
   13 |     else(a>b)
      |              ^
      |              ;
   14 |     {
      |     ~         
a.cc:17:5: error: 'else' without a previous 'if'
   17 |     else(a==b)
      |     ^~~~
a.cc:17:15: error: expected ';' before '{' token
   17 |     else(a==b)
      |               ^
      |               ;
   18 |     {
      |     ~
Language: C++

#include<iostream>
using namespace std;
  

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

    return 0;




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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:4:22: error: invalid operands of types 'const char [6]' and 'int' to binary 'operator&'
    4 |         scanf("%d %d"&a,&b);
      |               ~~~~~~~^~
      |               |       |
      |               |       int
      |               const char [6]
a.cc:6:24: error: unable to find string literal operator 'operator""a' with 'const char [7]', 'long unsigned int' arguments
    6 |                 printf("%d>%d\n"a,b);
      |                        ^~~~~~~~~~
a.cc:8:24: error: unable to find string literal operator 'operator""a' with 'const char [7]', 'long unsigned int' arguments
    8 |                 printf("%d<%d\n"a,b);
      |                        ^~~~~~~~~~
a.cc:10:24: error: unable to find string literal operator 'operator""a' with 'const char [8]', 'long unsigned int' arguments
   10 |                 printf("%d==%d\n"a,b);
      |                        ^~~~~~~~~~~
a.cc: At global scope:
a.cc:13:9: error: expected unqualified-id before 'return'
   13 |         return 0;
      |         ^~~~~~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:4:22: error: invalid operands of types 'const char [6]' and 'int' to binary 'operator&'
    4 |         scanf("%d %d"&a,&b);
      |               ~~~~~~~^~
      |               |       |
      |               |       int
      |               const char [6]
a.cc: At global scope:
a.cc:13:9: error: expected unqualified-id before 'return'
   13 |         return 0;
      |         ^~~~~~
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{
		printf("a==b\n");
	}
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:4:22: error: invalid operands of types 'const char [6]' and 'int' to binary 'operator&'
    4 |         scanf("%d %d"&a,&b);
      |               ~~~~~~~^~
      |               |       |
      |               |       int
      |               const char [6]
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:4:23: error: 'q' was not declared in this scope
    4 |         scanf("%d %d"&q,&w);
      |                       ^
a.cc:4:26: error: 'w' was not declared in this scope
    4 |         scanf("%d %d"&q,&w);
      |                          ^
Language: C++

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



Compiler output:
a.cc: In function 'int main()':
a.cc:10:40: error: invalid operands of types 'const char [4]' and 'const char [2]' to binary 'operator<<'
   10 |         else if (a>b){cout<<"a<"< " > "<<"b";}
      |                                   ~~~~~^~~~~
      |                                   |      |
      |                                   |      const char [2]
      |                                   const char [4]
Language: C++

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



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

main = do
  l <- getLine
  let (a:b:[]) = map read $ words l :: [Int]
  putStrLn $ comp a b

comp :: Int->Int->String
comp a b
  | result == LT = "a < b"
  | result == EQ = "a == b"
  | result == GT = "a > b"
  where result = compare a b



Compiler output:
a.cc:1:1: error: 'main' does not name a type
    1 | main = do
      | ^~~~
Language: C++

#include <stdio.h>

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


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

#include <stdio.h>

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


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

#include <stdio.h>

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



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

#include <stdio.h>

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


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

#include <stdio.h>

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


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

#include <stdio.h>

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



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

#include <stdio.h>

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



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

using System.IO;
using System;

class Program
{
    static void Main()
    {
        string value = Console.ReadLine();
        string[] v = value.Split();
        var va = int.Parse(v[0]);
        var vb = int.Parse(v[1]);
        
        if(va > vb)
        {
            Console.WriteLine("a > b");
        }
        else if(va < vb)
        {
            Console.WriteLine("a < b");
        }
        else
        {
            Console.WriteLine("a == b");
        }
    }
}


Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System.IO;
      |       ^~~~~~
a.cc:2:7: error: expected nested-name-specifier before 'System'
    2 | using System;
      |       ^~~~~~
a.cc:26:2: error: expected ';' after class definition
   26 | }
      |  ^
      |  ;
a.cc: In static member function 'static void Program::Main()':
a.cc:8:9: error: 'string' was not declared in this scope
    8 |         string value = Console.ReadLine();
      |         ^~~~~~
a.cc:9:16: error: expected primary-expression before ']' token
    9 |         string[] v = value.Split();
      |                ^
a.cc:10:9: error: 'var' was not declared in this scope
   10 |         var va = int.Parse(v[0]);
      |         ^~~
a.cc:11:13: error: expected ';' before 'vb'
   11 |         var vb = int.Parse(v[1]);
      |             ^~
a.cc:13:12: error: 'va' was not declared in this scope
   13 |         if(va > vb)
      |            ^~
a.cc:13:17: error: 'vb' was not declared in this scope
   13 |         if(va > vb)
      |                 ^~
a.cc:15:13: error: 'Console' was not declared in this scope
   15 |             Console.WriteLine("a > b");
      |             ^~~~~~~
a.cc:19:13: error: 'Console' was not declared in this scope
   19 |             Console.WriteLine("a < b");
      |             ^~~~~~~
a.cc:23:13: error: 'Console' was not declared in this scope
   23 |             Console.WriteLine("a == b");
      |             ^~~~~~~
Language: C++

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


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

#include <iostream>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:12:12: error: unable to find numeric literal operator 'operator""\U0000ff1b'
   12 |     return 0；
      |            ^~~
a.cc:12:15: error: expected ';' before '\U0000ff5d'
   12 |     return 0；
      |               ^
      |               ;
   13 | ｝
      | ~~             
a.cc:13:1: error: '\U0000ff5d' was not declared in this scope
   13 | ｝
      | ^~
a.cc:13:3: error: expected '}' at end of input
   13 | ｝
      |   ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

#include <iostream>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:12:12: error: unable to find numeric literal operator 'operator""\U0000ff1b'
   12 |     return 0；
      |            ^~~
a.cc:12:15: error: expected ';' before '\U0000ff5d'
   12 |     return 0；
      |               ^
      |               ;
   13 | ｝
      | ~~             
a.cc:13:1: error: '\U0000ff5d' was not declared in this scope
   13 | ｝
      | ^~
a.cc:13:3: error: expected '}' at end of input
   13 | ｝
      |   ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

#include <iostream>
using namespace std;
int main(void){
    // Your code here!
    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:13:6: error: expected '}' at end of input
   13 |     }
      |      ^
a.cc:3:15: note: to match this '{'
    3 | int main(void){
      |               ^
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;

retuen 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:36: error: expected ';' before 'endl'
    8 | else if ( a > b ) cout << " a > b " endl;
      |                                    ^~~~~
      |                                    ;
a.cc:11:1: error: 'retuen' was not declared in this scope
   11 | retuen 0;
      | ^~~~~~
Language: C++

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


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

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



Compiler output:
a.cc:6:14: error: stray '\' in program
    6 |     printf(%d\n, "a<b");
      |              ^
a.cc:8:14: error: stray '\' in program
    8 |     printf(%d\n, "a>b");
      |              ^
a.cc:10:14: error: stray '\' in program
   10 |     printf(%d\n,"a==b");
      |              ^
a.cc: In function 'int main()':
a.cc:6:12: error: expected primary-expression before '%' token
    6 |     printf(%d\n, "a<b");
      |            ^
a.cc:6:13: error: 'd' was not declared in this scope
    6 |     printf(%d\n, "a<b");
      |             ^
a.cc:8:12: error: expected primary-expression before '%' token
    8 |     printf(%d\n, "a>b");
      |            ^
a.cc:8:13: error: 'd' was not declared in this scope
    8 |     printf(%d\n, "a>b");
      |             ^
a.cc:10:12: error: expected primary-expression before '%' token
   10 |     printf(%d\n,"a==b");
      |            ^
a.cc:10:13: error: 'd' was not declared in this scope
   10 |     printf(%d\n,"a==b");
      |             ^
Language: C++


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



Compiler output:
a.cc:7:14: error: stray '\' in program
    7 |     printf(%d\n, a<b);
      |              ^
a.cc:9:14: error: stray '\' in program
    9 |     printf(%d\n, a>b);
      |              ^
a.cc:11:14: error: stray '\' in program
   11 |     printf(%d\n,a==b);
      |              ^
a.cc: In function 'int main()':
a.cc:7:12: error: expected primary-expression before '%' token
    7 |     printf(%d\n, a<b);
      |            ^
a.cc:7:13: error: 'd' was not declared in this scope
    7 |     printf(%d\n, a<b);
      |             ^
a.cc:9:12: error: expected primary-expression before '%' token
    9 |     printf(%d\n, a>b);
      |            ^
a.cc:9:13: error: 'd' was not declared in this scope
    9 |     printf(%d\n, a>b);
      |             ^
a.cc:11:12: error: expected primary-expression before '%' token
   11 |     printf(%d\n,a==b);
      |            ^
a.cc:11:13: error: 'd' was not declared in this scope
   11 |     printf(%d\n,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:7:9: error: expected initializer before 'cin'
    7 |         cin >> a >> b ;
      |         ^~~
a.cc:10:16: error: 'b' was not declared in this scope
   10 |         if(a < b){
      |                ^
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;
	else ( a == b )
		cout << " a == b " << endl;}
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:24: error: expected ';' before 'cout'
   11 |         else ( a == b )
      |                        ^
      |                        ;
   12 |                 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;
	else  cout << " a == b " << endl;}
	return 0;
}


Compiler output:
a.cc:10:9: error: expected unqualified-id before 'return'
   10 |         return 0;
      |         ^~~~~~
a.cc:11:1: error: expected declaration before '}' token
   11 | }
      | ^
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:10:9: error: expected unqualified-id before 'return'
   10 |         return 0;
      |         ^~~~~~
a.cc:11:1: error: expected declaration before '}' token
   11 | }
      | ^
Language: C++

#include<iostream>

int main(){
    int a, b;

    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:6:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |     cin >> a >> b;
      |     ^~~
      |     std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
Language: C++

#include <stdio.h>

int main()
{
	int a=0, b=0;

	scanf("%d %d", &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:12:20: error: expected ';' before '{' token
   12 |         else(a < b) {
      |                    ^~
      |                    ;
a.cc:15:9: error: 'else' without a previous 'if'
   15 |         else {
      |         ^~~~
Language: C++

#include<iosteam>
using namespace std;

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

#include <iostream>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:1: error: expected '}' before 'else'
    9 | else if ( a > b )
      | ^~~~
a.cc:7:13: note: to match this '{'
    7 | if ( a < b ){
      |             ^
a.cc:11:16: error: expected ';' before 'cout'
   11 | else ( a == b )
      |                ^
      |                ;
   12 |     cout << " a == b " << endl;}
      |     ~~~~        
a.cc: At global scope:
a.cc:13:1: error: expected unqualified-id before 'return'
   13 | return 0;
      | ^~~~~~
a.cc:14:1: error: expected declaration before '}' token
   14 | }
      | ^
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:16: error: expected ';' before '{' token
   11 | else ( a == b ){
      |                ^
      |                ;
Language: C++

#include <iostream>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:11:16: error: expected ';' before '{' token
   11 | else ( a == b ){
      |                ^
      |                ;
Language: C++

#include <ream>
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:10: fatal error: ream: No such file or directory
    1 | #include <ream>
      |          ^~~~~~
compilation terminated.