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

 AIZU ONLINE JUDGE   コース   チャレンジ   アリーナ
 
harukanakajima 
 |  
 
Courses   Lesson - ITP1   ITP1_2_A
Time Limit : 1 sec , Memory Limit : 131072 KB , isSolved : --
 Pre note
C++
大小関係

２つの整数 a, b を読み込んで、a と b の大小関係を出力するプログラムを作成して下さい。

Input
入力は空白で区切られた２つの整数 a, b から構成されています。

Output
a より b の方が大きければ

a < b
a より b の方が小さければ、

a > b
a と b が等しければ、

a == b
と出力して下さい。

Constraints
-1,000 ≤ a, b ≤ 1,000
Sample Input 1
1 2
Sample Output 1
a < b
Sample Input 2
4 3
Sample Output 2
a > b
Sample Input 3
5 5
Sample Output 3
a == b
 Post note
Challenge
 
正答率：39.36%
 
問題を解く
C++

WRONG ANSWER JUDGE ID : 3611344 By ROBINS
Submitted
 
Sent to Judge
 
Build
 
Run
 
Resource Limit Check
 
Result Check
 
7
Presentation Check
Lang	Status	Judge	Time	Memory	Code	
C++
WA
0/4
00.00 s
2568 KB
340 B
TEST CASE
Case #	Status	Time	Memory	In	Out	caseName	
# 1
WA
00.00 s
2568 KB
6 B
6 B
testcase_00
# 2
s
KB
6 B
6 B
testcase_01
# 3
s
KB
8 B
7 B
testcase_02
# 4
s
KB
8 B
6 B
testcase_03
   
source : -- 
created at : 2018/1/27 20:42:57
 Aizu Online Judge 2.0 © 2004-2017 University of Aizu


Compiler output:
a.cc:12:17: error: extended character 、 is not valid in an identifier
   12 | ２つの整数 a, b を読み込んで、a と b の大小関係を出力するプログラムを作成して下さい。
      |                 ^
a.cc:12:38: error: extended character 。 is not valid in an identifier
   12 | ２つの整数 a, b を読み込んで、a と b の大小関係を出力するプログラムを作成して下さい。
      |                                      ^
a.cc:15:39: error: extended character 。 is not valid in an identifier
   15 | 入力は空白で区切られた２つの整数 a, b から構成されています。
      |                                       ^
a.cc:21:10: error: extended character 、 is not valid in an identifier
   21 | a より b の方が小さければ、
      |          ^
a.cc:24:8: error: extended character 、 is not valid in an identifier
   24 | a と b が等しければ、
      |        ^
a.cc:27:1: error: extended character 。 is not valid in an identifier
   27 | と出力して下さい。
      | ^
a.cc:30:8: error: extended character ≤ is not valid in an identifier
   30 | -1,000 ≤ a, b ≤ 1,000
      |        ^
a.cc:30:15: error: extended character ≤ is not valid in an identifier
   30 | -1,000 ≤ a, b ≤ 1,000
      |               ^
a.cc:50:1: error: stray '\1' in program
   50 | <U+0001><U+0001>
      | ^~~~~~~~
a.cc:50:2: error: stray '\1' in program
   50 | <U+0001><U+0001>
      |         ^~~~~~~~
a.cc:74:6: error: stray '#' in program
   74 | Case #  Status  Time    Memory  In      Out     caseName
      |      ^
a.cc:12:18: error: extended character © is not valid in an identifier
   12 | ２つの整数 a, b を読み込んで、a と b の大小関係を出力するプログラムを作成して下さい。
      |                    
a.cc:1:2: error: 'AIZU' does not name a type
    1 |  AIZU ONLINE JUDGE   コース   チャレンジ   アリーナ
      |  ^~~~
Language: C++

jkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkj
jkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkj
jkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkj
jkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkj
jkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjjkkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkj
jkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkj
jkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkj



Compiler output:
a.cc:1:1: error: 'jkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkj' does not name a type
    1 | jkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkjkj
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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:11:6: error: expected primary-expression before ')' token
   11 | else()
      |      ^
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:11:6: error: expected primary-expression before ')' token
   11 | else()
      |      ^
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()
cout<<"a=b"<<endl;
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:9: error: expected primary-expression before ')' token
   11 | else if()
      |         ^
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:11: error: expected ';' before 'cout'
   11 | else (a=b)
      |           ^
      |           ;
   12 | cout<<"a=b"<<endl;
      | ~~~~
Language: C++

#include<stdio.h>
int main()
{
	int a, b;
		scanf_s("%d,%d", &a, &b);
	if (a>b)
		printf_s("a>b\n");
	else 
		printf_s("a<b\n");

	return 0;
}




Compiler output:
a.cc: In function 'int main()':
a.cc:5:17: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
    5 |                 scanf_s("%d,%d", &a, &b);
      |                 ^~~~~~~
      |                 scanf
a.cc:7:17: error: 'printf_s' was not declared in this scope; did you mean 'printf'?
    7 |                 printf_s("a>b\n");
      |                 ^~~~~~~~
      |                 printf
a.cc:9:17: error: 'printf_s' was not declared in this scope; did you mean 'printf'?
    9 |                 printf_s("a<b\n");
      |                 ^~~~~~~~
      |                 printf
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; : cout << "a > b" << endl;
     return 0;
 }


Compiler output:
a.cc: In function 'int main()':
a.cc:8:40: error: expected ':' before ';' token
    8 |      else a<b ? cout << "a < b" << endl; : cout << "a > b" << endl;
      |                                        ^
      |                                        :
a.cc:8:40: error: expected primary-expression before ';' token
a.cc:8:42: error: expected primary-expression before ':' token
    8 |      else a<b ? cout << "a < b" << endl; : cout << "a > b" << endl;
      |                                          ^
Language: C++

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



Compiler output:
a.cc: In function 'int main()':
a.cc:11:22: error: expected primary-expression before ')' token
   11 |         else if (A<B>) {
      |                      ^
Language: C++

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



Compiler output:
a.cc: In function 'int main()':
a.cc:11:17: error: expected primary-expression before ')' token
   11 |         if (A<B>) {
      |                 ^
Language: C++

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



Compiler output:
a.cc: In function 'int main()':
a.cc:9:17: error: expected primary-expression before ')' token
    9 |         if (A<B>) {
      |                 ^
Language: C++

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



Compiler output:
a.cc: In function 'int main()':
a.cc:9:17: error: expected primary-expression before ')' token
    9 |         if (A<B>) {
      |                 ^
Language: C++

#include <iostream>
using namespace std;

int main() {
    int a, b;
    cin >> a >> b;
    string moji = a == b ? "=" : a > b ? ">" : "<";
    cout a << moji << b;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: expected ';' before 'a'
    8 |     cout a << moji << b;
      |         ^~
      |         ;
Language: C++

#include <iostream>
using namespace std;
 
int main() {
    int a, b;
    cin >> a >> b;
    string moji = a == b ? "=" : (a > b ? ">" : "<");
    cout a << moji << b;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: expected ';' before 'a'
    8 |     cout a << moji << b;
      |         ^~
      |         ;
Language: C++

#include <iostream>
#include <cstdio>
using namespace std;
int main(int argc, char *argv[]){
  int a,b;
  cin >> a;
  cin >> b;
  if(a < b){
    cout << "a < b" << endl;
  }else if(a > b){
    cout << "a > b" << endl;
  }else{
    cout << "a == b" << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main(int, char**)':
a.cc:15:2: error: expected '}' at end of input
   15 | }
      |  ^
a.cc:4:33: note: to match this '{'
    4 | int main(int argc, char *argv[]){
      |                                 ^
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:12:28: error: expected ')' before 'a'
   12 |         printf("%d == %d\n" a, b);
      |               ~            ^~
      |                            )
Language: C++

#include <stdio.h>
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:2:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    2 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:4:17: error: expected unqualified-id before '&' token
    4 | scanf("%d%d",&a.&b);
      |                 ^
Language: C++

#include <iostream>
using namespace std;

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

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

#include <iostream>
using namespace std;

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: expected ';' before string constant
   10 |     cout "\n";
      |         ^~~~~
      |         ;
Language: C++

#include <iostream>

int main() {
	using namespace std;
	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:9: error: '\U0000ff5d' was not declared in this scope
   13 |         ｝
      |         ^~
a.cc:14:2: error: expected '}' at end of input
   14 | }
      |  ^
a.cc:3:12: note: to match this '{'
    3 | int main() {
      |            ^
Language: C++

/*figure.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:17:1: error: stray '\' in program
   17 | \\}
      | ^
a.cc:17:2: error: stray '\' in program
   17 | \\}
      |  ^
Language: C++

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

}

Compiler output:
a.cc:3:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    3 | main (){
      | ^~~~
a.cc: In function 'int main()':
a.cc:5:15: error: expected ';' before 'b'
    5 |         cin>>a b;
      |               ^~
      |               ;
a.cc:8:17: error: expected '(' before 'cout'
    8 |         else if cout<<"a > b\n";
      |                 ^~~~
      |                 (
Language: C++

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

}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:15: error: expected ';' before 'b'
    5 |         cin>>a b;
      |               ^~
      |               ;
a.cc:8:17: error: expected '(' before 'cout'
    8 |         else if cout<<"a > b\n";
      |                 ^~~~
      |                 (
Language: C++

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

}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:16: error: expected ';' before 'b'
    5 |         cin >>a b;
      |                ^~
      |                ;
a.cc:8:17: error: expected '(' before 'cout'
    8 |         else if cout<<"a > b\n";
      |                 ^~~~
      |                 (
Language: C++

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

}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:17: error: expected '(' before 'cout'
    8 |         else if cout<<"a > b\n";
      |                 ^~~~
      |                 (
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 " << ((a > b) ? "<" : ">") << " b" <, endl;
    }

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:56: error: expected primary-expression before ',' token
   10 |         cout << "a " << ((a > b) ? "<" : ">") << " b" <, endl;
      |                                                        ^
Language: C++

#include <cstdio>
#include <iostream>

using namespace std;

int main() {
    int a, b;
    char sign[4];
    
    cin >> a >> b ;
    if(a < b){
        strcpy(sign, "<");
    }else if(a == b) {
        strcpy(sign, "==");
    }else {
        strcpy(sign, ">");
    }
    printf("a %s b\n", sign);
    
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:9: error: 'strcpy' was not declared in this scope
   12 |         strcpy(sign, "<");
      |         ^~~~~~
a.cc:3:1: note: 'strcpy' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    2 | #include <iostream>
  +++ |+#include <cstring>
    3 | 
a.cc:14:9: error: 'strcpy' was not declared in this scope
   14 |         strcpy(sign, "==");
      |         ^~~~~~
a.cc:14:9: note: 'strcpy' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
a.cc:16:9: error: 'strcpy' was not declared in this scope
   16 |         strcpy(sign, ">");
      |         ^~~~~~
a.cc:16:9: note: 'strcpy' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
Language: C++

#include <iostream>
using namespace std;

int main() {
	int num,num2;
	std::cin >> num;
	std::cin >> num2;
	if(num > num2) {
		std::cout << a << ">" << b << std::endl;
	}else if(num == num2) {
		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:9:30: error: 'a' was not declared in this scope
    9 |                 std::cout << a << ">" << b << std::endl;
      |                              ^
a.cc:9:42: error: 'b' was not declared in this scope
    9 |                 std::cout << a << ">" << b << std::endl;
      |                                          ^
a.cc:11:30: error: 'a' was not declared in this scope
   11 |                 std::cout << a << "==" << b << std::endl;
      |                              ^
a.cc:11:43: error: 'b' was not declared in this scope
   11 |                 std::cout << a << "==" << b << std::endl;
      |                                           ^
a.cc:13:30: error: 'a' was not declared in this scope
   13 |                 std::cout << a << "<" << b << std::endl;
      |                              ^
a.cc:13:42: error: 'b' was not declared in this scope
   13 |                 std::cout << a << "<" << b << std::endl;
      |                                          ^
Language: C++

#include<iostream>

usng 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: 'usng' does not name a type
    3 | usng namespace std;
      | ^~~~
a.cc: In function 'int main()':
a.cc:9:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    9 |   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:13:5: 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:24: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   13 |     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:17:5: 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:24: 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)
      |     ^~~~
a.cc:21:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   21 |     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:21:25: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   21 |     cout << "a == b" << endl;
      |                         ^~~~
      |                         std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

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

    if(a=+b)
    {
        printf("a==b");
        return 0;
    }
    else if(a < b)
    {
        rintf("a<b");
        return 0;
    }
    else
    {
        rintf("a>b");
        return 0;
    }

    return 0;
}

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:14: error: expected ';' before '{' token
    7 |   else(aa=bb){ printf("a == b\n"); }
      |              ^
      |              ;
Language: C++

#include <iostream>

using namespace std;

int a , b;

int main()
{
	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:21:1: error: extended character 　 is not valid in an identifier
   21 | 　　　　
      | ^
a.cc:21:1: error: extended character 　 is not valid in an identifier
a.cc:21:1: error: extended character 　 is not valid in an identifier
a.cc:21:1: error: extended character 　 is not valid in an identifier
a.cc: In function 'int main()':
a.cc:21:1: error: '\U00003000\U00003000\U00003000\U00003000' was not declared in this scope
   21 | 　　　　
      | ^~~~~~~~
Language: C++

#include <iostream>

using namespace std;

int a , b;

int main()
{
	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:21:1: error: extended character 　 is not valid in an identifier
   21 | 　　　　
      | ^
a.cc:21:1: error: extended character 　 is not valid in an identifier
a.cc:21:1: error: extended character 　 is not valid in an identifier
a.cc:21:1: error: extended character 　 is not valid in an identifier
a.cc: In function 'int main()':
a.cc:21:1: error: '\U00003000\U00003000\U00003000\U00003000' was not declared in this scope
   21 | 　　　　
      | ^~~~~~~~
Language: C++

#include <iostream>
 
using namespace std;
 
int a , b;
 
int main()
{
    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:21:1: error: extended character 　 is not valid in an identifier
   21 | 　　　　
      | ^
a.cc:21:1: error: extended character 　 is not valid in an identifier
a.cc:21:1: error: extended character 　 is not valid in an identifier
a.cc:21:1: error: extended character 　 is not valid in an identifier
a.cc: In function 'int main()':
a.cc:21:1: error: '\U00003000\U00003000\U00003000\U00003000' was not declared in this scope
   21 | 　　　　
      | ^~~~~~~~
Language: C++

#incluse <iostream>
using namespace std;

int main () {

  int a,b;

  cin >> a >> b;

  if (a > b) {

   cout << "a > b" << endl;

  } else if (a < b) {

   cout << "a < b" << endl;

  } else {

   cout << "a == b" << endl;

  }

 return 0;

}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #incluse; did you mean #include?
    1 | #incluse <iostream>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:8:3: error: 'cin' was not declared in this scope
    8 |   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 | #incluse <iostream>
a.cc:12:4: error: 'cout' was not declared in this scope
   12 |    cout << "a > b" << endl;
      |    ^~~~
a.cc:12:4: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:12:23: error: 'endl' was not declared in this scope
   12 |    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 | #incluse <iostream>
a.cc:16:4: error: 'cout' was not declared in this scope
   16 |    cout << "a < b" << endl;
      |    ^~~~
a.cc:16:4: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:16:23: error: 'endl' was not declared in this scope
   16 |    cout << "a < b" << endl;
      |                       ^~~~
a.cc:16:23: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
a.cc:20:4: error: 'cout' was not declared in this scope
   20 |    cout << "a == b" << endl;
      |    ^~~~
a.cc:20:4: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:20:24: error: 'endl' was not declared in this scope
   20 |    cout << "a == b" << endl;
      |                        ^~~~
a.cc:20:24: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

#include <iostream>

using namespace std;

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:32: error: invalid operands of types 'const char [7]' and '<unresolved overloaded function type>' to binary 'operator<<'
   11 |                       "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);
    elseif(a>b)
    printf("%d > %d\n",a,b);
    elseif(a==b)
    printf("%d == %d\n",a,b);
    return 0;
}

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

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

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

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

#include <iostream>
 
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:15: error: 'count' was not declared in this scope
    8 |     if (a==b) count << "a=b" << endl;
      |               ^~~~~
a.cc:9:19: error: 'count' was not declared in this scope
    9 |     else if (a>b) count << "a>b" << endl;
      |                   ^~~~~
a.cc:11:5: error: 'count' was not declared in this scope
   11 |     count << "a<b" << endl;
      |     ^~~~~
a.cc:12:5: error: 'return0' was not declared in this scope
   12 |     return0;
      |     ^~~~~~~
Language: C++

#include <iostream>
 
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:16: error: 'count' was not declared in this scope
    8 |     if (a==b) {count << "a=b" << endl;}
      |                ^~~~~
a.cc:9:20: error: 'count' was not declared in this scope
    9 |     else if (a>b) {count << "a>b" << endl;}
      |                    ^~~~~
a.cc:10:20: error: 'count' was not declared in this scope
   10 |     else if (a<b) {count << "a<b" << endl;}
      |                    ^~~~~
Language: C++

#include <iostream>
 
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:6: error: 'count' was not declared in this scope
    9 |      count << "a=b" << endl;
      |      ^~~~~
a.cc:11:6: error: 'count' was not declared in this scope
   11 |      count << "a>b" << endl;
      |      ^~~~~
a.cc:13:6: error: 'count' was not declared in this scope
   13 |      count << "a<b" << endl;
      |      ^~~~~
a.cc:15:5: error: 'return0' was not declared in this scope
   15 |     return0;
      |     ^~~~~~~
Language: C++

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

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

#include <iostream>
using namespace std;
int main(void){
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:5:1: error: expected initializer before 'cin'
    5 | cin >> a >> b;
      | ^~~
a.cc:6:8: error: 'b' was not declared in this scope
    6 | if(a < b){
      |        ^
a.cc:12:2: error: expected '}' at end of input
   12 | }
      |  ^
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;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:31: error: expected ';' before 'else'
    6 | if(a < b)cout << "a < b"<<endl
      |                               ^
      |                               ;
    7 | else if(a > b) cout << "a > b"<<endl;
      | ~~~~
Language: C++

#include <iostream>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:66: error: invalid operands of types 'const char*' and 'const char [2]' to binary 'operator<<'
    6 |     std::cout << "a" << (a > b) ? ">" : ( (a > b) ? "<" : "==" ) << "b" << std::endl;
      |                                         ~~~~~~~~~~~~~~~~~~~~~~~~ ^~ ~~~
      |                                                   |                 |
      |                                                   const char*       const char [2]
Language: C++

#include<stdio.h>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:4: error: expected '(' before 'else'
    8 | if else(a==b) printf("a==b\n");
      |    ^~~~
      |    (
a.cc:9:1: error: 'else' without a previous 'if'
    9 | else printf("a>b\n");
      | ^~~~
Language: C++

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

	scanf_s("%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");
	}

	return(0);
}

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

//small,large or equal

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:3:1: error: 'include' does not name a type
    3 | include<iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:8:1: error: 'cin' was not declared in this scope
    8 | cin>>a>>b;
      | ^~~
a.cc:10:3: error: 'cout' was not declared in this scope
   10 |   cout<<"a < b"<<endl
      |   ^~~~
a.cc:10:18: error: 'endl' was not declared in this scope
   10 |   cout<<"a < b"<<endl
      |                  ^~~~
Language: C++

//small,large or equal

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:3:1: error: 'include' does not name a type
    3 | include<iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:8:1: error: 'cin' was not declared in this scope
    8 | cin>>a>>b;
      | ^~~
a.cc:10:3: error: 'cout' was not declared in this scope
   10 |   cout<<"a < b"<<endl;
      |   ^~~~
a.cc:10:18: error: 'endl' was not declared in this scope
   10 |   cout<<"a < b"<<endl;
      |                  ^~~~
a.cc:12:3: error: 'cout' was not declared in this scope
   12 |   cout<<"a > b"<<endl;
      |   ^~~~
a.cc:12:18: error: 'endl' was not declared in this scope
   12 |   cout<<"a > b"<<endl;
      |                  ^~~~
a.cc:14:3: error: 'cout' was not declared in this scope
   14 |   cout<<"a == b"<<endl;
      |   ^~~~
a.cc:14:19: error: 'endl' was not declared in this scope
   14 |   cout<<"a == b"<<endl;
      |                   ^~~~
Language: C++

#include<stdio.h>

int main(void)
{
int a,b;

printf("2????????´??°?????\????????????????????????\n");

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

if(a>b)
printf("%s\n",a>b);
if else(a<b)
printf("%s\n",a<b);
else
printf("%s\n",a=b);

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:4: error: expected '(' before 'else'
   14 | if else(a<b)
      |    ^~~~
      |    (
a.cc:16:1: error: 'else' without a previous 'if'
   16 | else
      | ^~~~
Language: C++

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

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

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

if a<b:
     print('a < b')
elif a>b:
     print('a > b')
else:
     print('a = b')

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


#include<iostream>
using namespace std;
 
int main(){
 for(int i=0,i<1000,i++){
 cout << "Hello World" << "\n";
}
return 0;
}
 

Compiler output:
a.cc: In function 'int main()':
a.cc:6:15: error: expected ';' before '<' token
    6 |  for(int i=0,i<1000,i++){
      |               ^
      |               ;
a.cc:6:15: error: expected primary-expression before '<' token
a.cc:6:24: error: expected ';' before ')' token
    6 |  for(int i=0,i<1000,i++){
      |                        ^
      |                        ;
Language: C++

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

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

#include<iostream>
using namespace std;
int main(){
int a,b;
cin>>a>>b;
if(a<<" "<<b)
cout<<"Yes"<<"\n";
else<<"No"<<"\n";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: invalid operands of types 'int' and 'const char [2]' to binary 'operator<<'
    6 | if(a<<" "<<b)
      |    ~^~~~~
      |    |  |
      |    |  const char [2]
      |    int
a.cc:8:5: error: expected primary-expression before '<<' token
    8 | else<<"No"<<"\n";
      |     ^~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: expected ';' before '}' token
    9 | return 0
      |         ^
      |         ;
   10 | }
      | ~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: expected ';' before '}' token
    9 | return 0
      |         ^
      |         ;
   10 | }
      | ~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: expected ';' before '}' token
    9 | return 0
      |         ^
      |         ;
   10 | }
      | ~
Language: C++

#include<iostream>
using namespace std;
int main(){
// your code goes here
int a,b;
cin>>a>>b;
if(a<b) cout<<"a < b"<<"\n";
else if(a>b) cout<<"a > b"<<"\n";
else if(a==b) cout<<"a == b"<<"\n";
return 0
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: expected ';' before '}' token
   10 | return 0
      |         ^
      |         ;
   11 | }
      | ~
Language: C++

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

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

#include<iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:7: error: expected ')' at end of input
    7 |   if(a
      |     ~ ^
      |       )
a.cc:7:7: error: expected statement at end of input
a.cc:7:7: error: expected '}' at end of input
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
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:5:27: error: invalid operands of types 'int*' and 'int' to binary 'operator&'
    5 |         scanf("%d %d", &a &b);
      |                        ~~ ^~
      |                        |   |
      |                        |   int
      |                        int*
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:7:24: warning: missing terminating " character
    7 |                 printf("a < b\n);
      |                        ^
a.cc:7:24: error: missing terminating " character
    7 |                 printf("a < b\n);
      |                        ^~~~~~~~~~
a.cc:9:24: warning: missing terminating " character
    9 |                 printf("a > b\n);
      |                        ^
a.cc:9:24: error: missing terminating " character
    9 |                 printf("a > b\n);
      |                        ^~~~~~~~~~
a.cc:11:24: warning: missing terminating " character
   11 |                 printf("a == b\n);
      |                        ^
a.cc:11:24: error: missing terminating " character
   11 |                 printf("a == b\n);
      |                        ^~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:8:9: error: expected primary-expression before '}' token
    8 |         }else if(a > b){
      |         ^
a.cc:10:9: error: expected primary-expression before '}' token
   10 |         }else{
      |         ^
a.cc:12:9: error: expected primary-expression before '}' token
   12 |         }
      |         ^
Language: C++

#include<iostream>
using manespace std;

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

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

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

    return 0;
}

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