criyle/codenet-compile-errors huggingface dataset:
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);
eise
printf(a == b\n);
return 0;
}

Compiler output:
a.cc:6:13: error: stray '\' in program
    6 | printf(a < b\n);
      |             ^
a.cc:8:13: error: stray '\' in program
    8 | printf(a > b\n);
      |             ^
a.cc:10:14: error: stray '\' in program
   10 | printf(a == b\n);
      |              ^
a.cc: In function 'int main()':
a.cc:6:13: error: expected ')' before 'n'
    6 | printf(a < b\n);
      |       ~     ^~
      |             )
a.cc:6:10: error: cannot convert 'bool' to 'const char*'
    6 | printf(a < b\n);
      |        ~~^~~
      |          |
      |          bool
In file included from a.cc:1:
/usr/include/stdio.h:363:43: note:   initializing argument 1 of 'int printf(const char*, ...)'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
a.cc:8:13: error: expected ')' before 'n'
    8 | printf(a > b\n);
      |       ~     ^~
      |             )
a.cc:8:10: error: cannot convert 'bool' to 'const char*'
    8 | printf(a > b\n);
      |        ~~^~~
      |          |
      |          bool
/usr/include/stdio.h:363:43: note:   initializing argument 1 of 'int printf(const char*, ...)'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
a.cc:9:1: error: 'eise' was not declared in this scope
    9 | eise
      | ^~~~
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");
eise
printf("a == b\n");
return 0;
}

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

#include<iostream>
using namespace std;

int main(){
	int a, b;

	cin >> a >> b;

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

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:32: error: expected ';' before 'endl'
   10 |                 cout << "a > b" endl;
      |                                ^~~~~
      |                                ;
a.cc:12:32: error: expected ';' before 'endl'
   12 |                 cout << "a < b" endl;
      |                                ^~~~~
      |                                ;
a.cc:14:33: error: expected ';' before 'endl'
   14 |                 cout << "a == b" endl;
      |                                 ^~~~~
      |                                 ;
Language: C++

#include <stdio.h>
int main()
{
 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:6:31: error: expected primary-expression before ']' token
    6 | if(a>b){printf("%d %d\n",a>b);]
      |                               ^
a.cc:8:1: error: expected '}' before 'else'
    8 | else{printf("%d %d\n",a==b);}
      | ^~~~
a.cc:6:8: note: to match this '{'
    6 | if(a>b){printf("%d %d\n",a>b);]
      |        ^
Language: C++

#include <stdio.h>
int main()
{
 int a,b;
scanf("%d %d",&a,&b);

if(a>b)
{printf("%d %d\n",a>b);]

else if(a<b)
{printf("%d %d\n",a<b);}

else
{printf("%d %d\n",a==b);}

		return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:24: error: expected primary-expression before ']' token
    8 | {printf("%d %d\n",a>b);]
      |                        ^
a.cc:13:1: error: expected '}' before 'else'
   13 | else
      | ^~~~
a.cc:8:1: note: to match this '{'
    8 | {printf("%d %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;
		return 0;
	}else if(a<b){
		cout<<"a < b"<<endl;
		return 0;
	}else{
		cout << "a == b"<<endl;
		return 0;
	}

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:12: error: expected ';' before 'a'
    6 |         cin a>>b;
      |            ^~
      |            ;
Language: C++

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

Compiler output:
a.cc:17:9: error: expected unqualified-id before 'return'
   17 |         return 0;
      |         ^~~~~~
a.cc:18:1: error: expected declaration before '}' token
   18 | }
      | ^
Language: C++

#include<iostream>
using namespace std;

int main(){
	int x, y, a, b;
	cin >> x >> y;
	
	if(x < y){
		cout << a << " " << "<" << " " << b;
	}
	else if(x == y){
		cout << a << " " << "==" << " " << b;
	}
	
	cout << h << ":" << m << ":" << s << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:17: error: 'h' was not declared in this scope
   15 |         cout << h << ":" << m << ":" << s << endl;
      |                 ^
a.cc:15:29: error: 'm' was not declared in this scope
   15 |         cout << h << ":" << m << ":" << s << endl;
      |                             ^
a.cc:15:41: error: 's' was not declared in this scope
   15 |         cout << h << ":" << m << ":" << s << endl;
      |                                         ^
Language: C++


#include<iostream>
using namespace std;

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

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


#include<iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:43: error: 'emdl' was not declared in this scope
   10 |         else if(x > y) cout << "a > b" << emdl;
      |                                           ^~~~
a.cc:11:22: error: expected ';' before 'cout'
   11 |         else (x == y) cout << "a == b" << endl;
      |                      ^~~~~
      |                      ;
Language: C++


#include<iostream>
using namespace std;

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:5: error: 'cin' was not declared in this scope
    4 |     cin >> a >> b;
      |     ^~~
a.cc:6:9: error: 'cout' was not declared in this scope
    6 |         cout << "a > b" << endl;
      |         ^~~~
a.cc:6:28: error: 'endl' was not declared in this scope
    6 |         cout << "a > b" << endl;
      |                            ^~~~
a.cc:8:9: error: 'cout' was not declared in this scope
    8 |         cout << "a < b" << endl;
      |         ^~~~
a.cc:8:28: error: 'endl' was not declared in this scope
    8 |         cout << "a < b" << endl;
      |                            ^~~~
a.cc:10:9: error: 'cout' was not declared in this scope
   10 |         cout << "a == b" << endl;
      |         ^~~~
a.cc:10:29: error: 'endl' was not declared in this scope
   10 |         cout << "a == b" << endl;
      |                             ^~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:15: error: 'a' was not declared in this scope
    5 |   std::cin >> a >> b;
      |               ^
a.cc:5:20: error: 'b' was not declared in this scope
    5 |   std::cin >> a >> b;
      |                    ^
a.cc:7:10: error: 'std::std' has not been declared
    7 |     std::std::cout << "a < b" << '\n';
      |          ^~~
a.cc:9:10: error: 'std::std' has not been declared
    9 |     std::std::cout << "a == b" << '\n';
      |          ^~~
a.cc:11:10: error: 'std::std' has not been declared
   11 |     std::std::cout << "a > b" << '\n';
      |          ^~~
Language: C++

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |     cin>>a>>" ">>b;
      |     ^~~
      |     std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:5:13: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    5 |     if(a>b){cout<<"a>b"<<endl;}
      |             ^~~~
      |             std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:5:26: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    5 |     if(a>b){cout<<"a>b"<<endl;}
      |                          ^~~~
      |                          std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:6:13: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |     if(a<b){cout<<"a<b"<<endl;}
      |             ^~~~
      |             std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:6:26: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |     if(a<b){cout<<"a<b"<<endl;}
      |                          ^~~~
      |                          std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:7:14: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |     if(a==b){cout<<"a==b"<<endl;}
      |              ^~~~
      |              std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:7:28: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |     if(a==b){cout<<"a==b"<<endl;}
      |                            ^~~~
      |                            std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:8:13: error: expected ';' before '}' token
    8 |     return 0
      |             ^
      |             ;
    9 | }
      | ~
Language: C++

#include <iostream>
using namespace std;
int main(){
    int a,b;
    cin>>a;
    cout<<" ";
    cin>>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:20:13: error: expected ';' before '}' token
   20 |     return 0
      |             ^
      |             ;
   21 | }
      | ~
Language: C++

#include <stdio.h>

int main (void){

int a=0
int b=0

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:6:1: error: expected ',' or ';' before 'int'
    6 | int b=0
      | ^~~
a.cc:10:6: error: 'b' was not declared in this scope
   10 | if(a<b){
      |      ^
a.cc:13:6: error: 'b' was not declared in this scope
   13 | if(a>b){
      |      ^
a.cc:16:6: error: 'b' was not declared in this scope
   16 | if(a=b){
      |      ^
Language: C++

#include <stdio.h>

int main (void){

int a=0
int b=0

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:6:1: error: expected ',' or ';' before 'int'
    6 | int b=0
      | ^~~
a.cc:10:6: error: 'b' was not declared in this scope
   10 | if(a<b){
      |      ^
a.cc:13:6: error: 'b' was not declared in this scope
   13 | if(a>b){
      |      ^
a.cc:16:6: error: 'b' was not declared in this scope
   16 | if(a=b){
      |      ^
Language: C++

#include <stdio.h>

int main (void){

int a=0;
int b=0;

scanf("%d %d",&a,&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:17:17: error: expected ';' before '}' token
   17 | printf("a==b\n")
      |                 ^
      |                 ;
   18 | };    return 0 ;
      | ~
Language: C++

#include <stdio.h>

int main (void){

int a=0;
int b=0;

scanf("%d %d",&a,&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:17:17: error: expected ';' before '}' token
   17 | printf("a==b\n")
      |                 ^
      |                 ;
   18 | }    return 0 ;
      | ~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:4: error: expected '(' before 'a'
    5 | if a<b
      |    ^
      |    (
a.cc: At global scope:
a.cc:8:2: error: expected unqualified-id before 'else'
    8 | }else if a>b
      |  ^~~~
a.cc:11:1: error: expected unqualified-id before 'else'
   11 | else
      | ^~~~
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>
int main(){
int a,b;
std::cin >> a >> b ;
if (a<b)
then
std::cout << a <<"<"<< b <<"\n";
}else if (a>b)
then
std::cout << a <<">"<< b <<"\n";
else 
std::cout << a <<"=="<< b <<"\n";
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:1: error: 'then' was not declared in this scope
    6 | then
      | ^~~~
a.cc: At global scope:
a.cc:8:2: error: expected unqualified-id before 'else'
    8 | }else if (a>b)
      |  ^~~~
a.cc:11:1: error: expected unqualified-id before 'else'
   11 | else
      | ^~~~
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>
int main(){
int a,b;
std::cin >> a >> b ;
if (a<b)
then
{std::cout << a <<"<"<< b <<"\n";}
}else if (a>b)
then
{std::cout << a <<">"<< b <<"\n";}
else 
{std::cout << a <<"=="<< b <<"\n";}
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:1: error: 'then' was not declared in this scope
    6 | then
      | ^~~~
a.cc: At global scope:
a.cc:8:2: error: expected unqualified-id before 'else'
    8 | }else if (a>b)
      |  ^~~~
a.cc:11:1: error: expected unqualified-id before 'else'
   11 | else
      | ^~~~
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>
int main(){
int a,b;
std::cin >> a >> b ;
if (a<b)

{std::cout << a <<"<"<< b <<"\n";}
}else if (a>b)

{std::cout << a <<">"<< b <<"\n";}
else if (a == b)
{std::cout << a <<"=="<< b <<"\n";}
return 0;
}

Compiler output:
a.cc:8:2: error: expected unqualified-id before 'else'
    8 | }else if (a>b)
      |  ^~~~
a.cc:11:1: error: expected unqualified-id before 'else'
   11 | else if (a == b)
      | ^~~~
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++

a = int(input())
b = int(input())

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

Compiler output:
a.cc:1:1: error: 'a' does not name a type
    1 | a = int(input())
      | ^
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 cout << "a=b" << ;

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:17: error: expected primary-expression before ';' token
   12 | cout << "a>b" <<;
      |                 ^
a.cc:16:16: error: expected primary-expression before ';' token
   16 | cout <<"a<b"<< ;
      |                ^
a.cc:18:23: error: expected primary-expression before ';' token
   18 | else cout << "a=b" << ;
      |                       ^
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 cout << "a==b" << ;
??
return 0;
}

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

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

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

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

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

#include <iostream>
using namespace std;

int main()
{

int a,b;

cin>> a >> b;

-1000<=a;
b<=1000;

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

return 0;
} 

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

#include <iostrream>
using namespace std;

int main()
{

int a,b;

-1000<=a;
b<=1000;

cin >> a >> b;

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

}

Compiler output:
a.cc:1:10: fatal error: iostrream: No such file or directory
    1 | #include <iostrream>
      |          ^~~~~~~~~~~
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 { cout << a << " == " << b << endl; }
??
}

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

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

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

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

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

return 0;
}

Compiler output:
a.cc:2:17: error: 'sdt' is not a namespace-name
    2 | using namespace sdt;
      |                 ^~~
a.cc: In function 'int main()':
a.cc:6:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 | cin >> a >> b;
      | ^~~
      | std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:9:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 | cout << "a<b" << endl;
      | ^~~~
      | std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:9:18: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 | cout << "a<b" << endl;
      |                  ^~~~
      |                  std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:13:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   13 | cout << "a>b" << endl;
      | ^~~~
      | std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:13:18: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   13 | cout << "a>b" << endl;
      |                  ^~~~
      |                  std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:17:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   17 | 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:17:19: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   17 | cout << "a==b" << endl;
      |                   ^~~~
      |                   std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include <iostream>

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

Compiler output:
a.cc:7:18: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
    7 |     std::cout << 'a > b' ;
      |                  ^~~~~~~
a.cc:9:18: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
    9 |     std::cout << 'a < b' ;
      |                  ^~~~~~~
a.cc:11:18: warning: multi-character literal with 6 characters exceeds 'int' size of 4 bytes
   11 |     std::cout << 'a == b' ;
      |                  ^~~~~~~~
a.cc: In function 'int main()':
a.cc:6:6: error: expected '(' before 'a'
    6 |   if a > b
      |      ^
      |      (
a.cc:8:3: error: 'else' without a previous 'if'
    8 |   else if a < b
      |   ^~~~
a.cc:8:11: error: expected '(' before 'a'
    8 |   else if a < b
      |           ^
      |           (
a.cc:10:3: error: 'else' without a previous 'if'
   10 |   else
      |   ^~~~
Language: C++

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

if a==b
  print "a==b"
elseif a<b
  print "a<b"
else a>b
  print "a>b"

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

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:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    1 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:3:1: error: 'scanf' was not declared in this scope
    3 | scanf("%d%d",&a,&b);
      | ^~~~~
a.cc:4:11: error: 'printf' was not declared in this scope
    4 | if (a==b) printf("a == b\n");
      |           ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | main(){
a.cc:5:15: error: 'printf' was not declared in this scope
    5 | else if (a>b) printf("a > b\n");
      |               ^~~~~~
a.cc:5:15: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
a.cc:6:6: error: 'printf' was not declared in this scope
    6 | else printf("a < b\n");
      |      ^~~~~~
a.cc:6:6: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
Language: C++

int main(){
int a, b;
scanf("%d%d",&a, &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:3:1: error: 'scanf' was not declared in this scope
    3 | scanf("%d%d",&a, &b);
      | ^~~~~
a.cc:5:1: error: 'printf' was not declared in this scope
    5 | printf("a>b\n");
      | ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main(){
a.cc:8:1: error: 'printf' was not declared in this scope
    8 | printf("a<b\n");
      | ^~~~~~
a.cc:8:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
a.cc:11:1: error: 'printf' was not declared in this scope
   11 | printf("a==b\n");
      | ^~~~~~
a.cc:11:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
Language: C++

int main(){
int a,b;
scanf("%d%d",&a,&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:3:1: error: 'scanf' was not declared in this scope
    3 | scanf("%d%d",&a,&b);
      | ^~~~~
a.cc:5:1: error: 'printf' was not declared in this scope
    5 | printf("a > b\n");}
      | ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main(){
a.cc:7:1: error: 'printf' was not declared in this scope
    7 | printf("a < b\n");}
      | ^~~~~~
a.cc:7:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
a.cc:9:1: error: 'printf' was not declared in this scope
    9 | printf("a == b\n");}
      | ^~~~~~
a.cc:9:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
Language: C++

#include <stdio.h>

int a, b;
int main() {

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:9:23: error: expected primary-expression before '?' token
    9 | else printf("a == b")???
      |                       ^
a.cc:9:24: error: expected primary-expression before '?' token
    9 | else printf("a == b")???
      |                        ^
a.cc:11:1: error: expected primary-expression before 'return'
   11 | return 0;
      | ^~~~~~
a.cc:9:25: error: expected ':' before 'return'
    9 | else printf("a == b")???
      |                         ^
      |                         :
   10 | 
   11 | return 0;
      | ~~~~~~                   
a.cc:11:1: error: expected primary-expression before 'return'
   11 | return 0;
      | ^~~~~~
a.cc:9:25: error: expected ':' before 'return'
    9 | else printf("a == b")???
      |                         ^
      |                         :
   10 | 
   11 | return 0;
      | ~~~~~~                   
a.cc:11:1: error: expected primary-expression before 'return'
   11 | return 0;
      | ^~~~~~
a.cc:9:25: error: expected ':' before 'return'
    9 | else printf("a == b")???
      |                         ^
      |                         :
   10 | 
   11 | return 0;
      | ~~~~~~                   
a.cc:11:1: error: expected primary-expression before 'return'
   11 | return 0;
      | ^~~~~~
Language: C++

#include <iostream>
use 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:2:1: error: 'use' does not name a type
    2 | use namespace std;
      | ^~~
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 a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:10:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |   cout << "a>b" << endl;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:10:20: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   10 |   cout << "a>b" << endl;
      |                    ^~~~
      |                    std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:13:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   13 |   cout << "a<b" << endl;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:13:20: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   13 |   cout << "a<b" << endl;
      |                    ^~~~
      |                    std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:16:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   16 |   cout << "a=b" << endl;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:16:20: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   16 |   cout << "a=b" << endl;
      |                    ^~~~
      |                    std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include <iostream>
use 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:2:1: error: 'use' does not name a type
    2 | use namespace std;
      | ^~~
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 a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:10:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |   cout << "a>b" << endl;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:10:20: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   10 |   cout << "a>b" << endl;
      |                    ^~~~
      |                    std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:13:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   13 |   cout << "a<b" << endl;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:13:20: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   13 |   cout << "a<b" << endl;
      |                    ^~~~
      |                    std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:16:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   16 |   cout << "a==b" << endl;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:16:21: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   16 |   cout << "a==b" << endl;
      |                     ^~~~
      |                     std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include <iostream>
use 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:2:1: error: 'use' does not name a type
    2 | use namespace std;
      | ^~~
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 a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:10:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |   cout << "a>b" << endl;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:10:20: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   10 |   cout << "a>b" << endl;
      |                    ^~~~
      |                    std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:12:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   12 |   cout << "a<b" << endl;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:12:20: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   12 |   cout << "a<b" << endl;
      |                    ^~~~
      |                    std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:14:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   14 |   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:14:21: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   14 |   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>
uisng 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:2:1: error: 'uisng' does not name a type
    2 | uisng namespace std;
      | ^~~~~
a.cc: In function 'int main()':
a.cc:8:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    8 | cin >> a >> b;
      | ^~~
      | std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:11:2: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |  cout << "a > b" << endl;
      |  ^~~~
      |  std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:11:21: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   11 |  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:14:2: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   14 |  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:14:21: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   14 |  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:17:2: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   17 |  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:17:22: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   17 |  cout << "a == b" << endl;
      |                      ^~~~
      |                      std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include <stdio.h>
??
int main(int argc, const char * argv[]) {
????????int a,b;
????????scanf("%d %d",&a,&b);
????????if((a>=-1000)&&(a<=1000)&&(b>=-1000)&&(b<=1000)){
????????????????if(a>b){
????????????????????????printf("a > b\n");
????????????????}
????????????????else if(a<b){
????????????????????????printf("a < b\n");
????????????????}
????????????????else if(a==b){
????????????????????????printf("a == b\n");
????????????????}
????????}
????????return 0;
}

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

#include <iostream>


int main(void)
{
	using namespace std;
	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;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:9: error: return-statement with no value, in function returning 'int' [-fpermissive]
   14 |         return;
      |         ^~~~~~
Language: C++

#include <iostream>


int main(void)
{
	using namespace std;
	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;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:9: error: return-statement with no value, in function returning 'int' [-fpermissive]
   14 |         return;
      |         ^~~~~~
Language: C++

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

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

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


}

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

#include <stdio.h>

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:19: error: expected primary-expression before '%' token
    6 | scanf("%d %d", &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;
    reutnr 0;
}

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

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

}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:15: error: expected initializer before '>=' token
    3 |         int a >=-1000, b <= 1000;
      |               ^~
a.cc:4:25: error: 'a' was not declared in this scope
    4 |         scanf("%d %d", &a, &b);
      |                         ^
a.cc:4:29: error: 'b' was not declared in this scope
    4 |         scanf("%d %d", &a, &b);
      |                             ^
Language: C++

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

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

#include "cstdio"

int main(){
int a,b;
scanf("%d %d",&a,&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:7:26: error: expected ';' before ':' token
    7 | if(a>b) printf("a > b\n"):
      |                          ^
      |                          ;
Language: C++

#include<stdio,h>
int main(){
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:1:9: fatal error: stdio,h: No such file or directory
    1 | #include<stdio,h>
      |         ^~~~~~~~~
compilation terminated.
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:16:18: error: expected '}' at end of input
   16 |         return 0;
      |                  ^
a.cc:4:1: note: to match this '{'
    4 | {
      | ^
Language: C++

#include<stdio.h>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: 'elseif' was not declared in this scope
    9 |  }elseif(a==b){
      |   ^~~~~~
a.cc:11:4: error: 'else' without a previous 'if'
   11 |   }else{
      |    ^~~~
Language: C++

#include<stdio.h>
int main(void)
{

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

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

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

printf("a==b");

return 0;
}

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

#include<iostream>
using namespace std;
int main(){
	int a;
	int 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;
	}
}

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

#include "stdafx.h"

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:1:10: fatal error: stdafx.h: No such file or directory
    1 | #include "stdafx.h"
      |          ^~~~~~~~~~
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{
        cout<<"a==b"<<endl;
    }
    }
    return 0;
}

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

#include<stdio.h>

int main(void)
{

 int a, b;

 scanf("%d", &a);

 scanf("%d", &b);

 if(a > b){

 printf("a > b\n");

 }

 if else(a < b){

 printf("a < b\n")

 }

 else{

 printf("a = b\n")

 }

 return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:5: error: expected '(' before 'else'
   18 |  if else(a < b){
      |     ^~~~
      |     (
a.cc:24:2: error: 'else' without a previous 'if'
   24 |  else{
      |  ^~~~
a.cc:26:19: error: expected ';' before '}' token
   26 |  printf("a = b\n")
      |                   ^
      |                   ;
   27 | 
   28 |  }
      |  ~