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

#include<iostream>
#include<algorithm>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:31: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
    9 |                 cout << a < b << endl;
      |                             ~~^~~~~~~
a.cc:11:31: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
   11 |                 cout << a > b << endl;
      |                             ~~^~~~~~~
a.cc:12:17: error: 'elst' was not declared in this scope
   12 |                 elst if(a == b)
      |                 ^~~~
Language: C++

#include<iostream>
#include<algorithm>
using namespace std;

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:5: error: expected ';' before numeric constant
   12 |   }5 5
      |     ^~
      |     ;
Language: C++

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

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

#include <stdio.h>

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

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

#include <stdio.h>

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

./a.out

Compiler output:
a.cc: In function 'int main()':
a.cc:9:20: error: 'printd' was not declared in this scope; did you mean 'printf'?
    9 |         if (a < b) printd("%d < %d", a, b);
      |                    ^~~~~~
      |                    printf
a.cc: At global scope:
a.cc:13:1: error: expected unqualified-id before '.' token
   13 | ./a.out
      | ^
Language: C++

a, b = STDIN.gets.split.map(&:to_i)

if a < b then
  puts'a < b'
elsif a > b then
  puts'b < a'
else 
  puts'a==b'
end

Compiler output:
a.cc:4:7: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
    4 |   puts'a < b'
      |       ^~~~~~~
a.cc:6:7: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
    6 |   puts'b < a'
      |       ^~~~~~~
a.cc:8:7: warning: multi-character character constant [-Wmultichar]
    8 |   puts'a==b'
      |       ^~~~~~
a.cc:1:1: error: 'a' does not name a type
    1 | a, b = STDIN.gets.split.map(&:to_i)
      | ^
Language: C++

#include <iostream>
#include <math.h>

using namespace std;


//ITP1_2_A:   Small, Large, or Equal
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:9:13: error: found ':' in nested-name-specifier, expected '::'
    9 |     int a, b:
      |             ^
      |             ::
a.cc:9:12: error: 'b' has not been declared
    9 |     int a, b:
      |            ^
a.cc:10:9: error: qualified-id in declaration before '>>' token
   10 |     cin >> a >> b;
      |         ^~
a.cc:11:13: error: 'b' was not declared in this scope
   11 |     if (a < b)
      |             ^
Language: C++

#include <iostream>
#include <string>
#include <vector>
#include <sstream>

using namespace std;

int main(void){

	string ts, a, b, outstr;
	getline(cin, ts);

	a = ts.substr(0, ts.find(' '));
	b = ts.substr(ts.find(' ') + 1, ts.size());

	int ia, ib;
	ia = stoi(a);
	ib = stoi(b);

	if (ia < ib)
	{
		outstr = "a < b";
	}
	else
	if (ia > ib)
	{
		outstr = "a > b";
	}
	else
	{
		outstr = "a == b";
	}

	cout << outstr << endl;

	return 0;

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

'use strict';
process.stdin.on('data', function(chunk) {
            var inputs = chunk.toString().trim().split(' ');
            var a = Number inputs[0];
            var b = Number inputs[1];
            if (a<b ) {
                console.log('a<b');
               } else if (a>b) {
                    console.log('a>b');
                } else {
                    console.log('a==b');

                }


            }); process.stdin.resume(); process.stdin.setEncoding('utf8');

Compiler output:
a.cc:1:1: warning: multi-character literal with 10 characters exceeds 'int' size of 4 bytes
    1 | 'use strict';
      | ^~~~~~~~~~~~
a.cc:2:18: warning: multi-character character constant [-Wmultichar]
    2 | process.stdin.on('data', function(chunk) {
      |                  ^~~~~~
a.cc:7:29: warning: multi-character character constant [-Wmultichar]
    7 |                 console.log('a<b');
      |                             ^~~~~
a.cc:9:33: warning: multi-character character constant [-Wmultichar]
    9 |                     console.log('a>b');
      |                                 ^~~~~
a.cc:11:33: warning: multi-character character constant [-Wmultichar]
   11 |                     console.log('a==b');
      |                                 ^~~~~~
a.cc:16:67: warning: multi-character character constant [-Wmultichar]
   16 |             }); process.stdin.resume(); process.stdin.setEncoding('utf8');
      |                                                                   ^~~~~~
a.cc:1:1: error: expected unqualified-id before '\x72696374'
    1 | 'use strict';
      | ^~~~~~~~~~~~
a.cc:2:1: error: 'process' does not name a type
    2 | process.stdin.on('data', function(chunk) {
      | ^~~~~~~
a.cc:16:14: error: expected unqualified-id before ')' token
   16 |             }); process.stdin.resume(); process.stdin.setEncoding('utf8');
      |              ^
a.cc:16:17: error: 'process' does not name a type
   16 |             }); process.stdin.resume(); process.stdin.setEncoding('utf8');
      |                 ^~~~~~~
a.cc:16:41: error: 'process' does not name a type
   16 |             }); process.stdin.resume(); process.stdin.setEncoding('utf8');
      |                                         ^~~~~~~
Language: C++

'use strict';
process.stdin.on('data', function(chunk) {
            var inputs = chunk.toString().trim().split(' ');
            var a = Number (inputs[0]);
            var b = Number (inputs[1]);
            if (a<b ) {
                console.log('a<b');
               } else if (a>b) {
                    console.log('a>b');
                } else {
                    console.log('a==b');

                }


            }); process.stdin.resume(); process.stdin.setEncoding('utf8');

Compiler output:
a.cc:1:1: warning: multi-character literal with 10 characters exceeds 'int' size of 4 bytes
    1 | 'use strict';
      | ^~~~~~~~~~~~
a.cc:2:18: warning: multi-character character constant [-Wmultichar]
    2 | process.stdin.on('data', function(chunk) {
      |                  ^~~~~~
a.cc:7:29: warning: multi-character character constant [-Wmultichar]
    7 |                 console.log('a<b');
      |                             ^~~~~
a.cc:9:33: warning: multi-character character constant [-Wmultichar]
    9 |                     console.log('a>b');
      |                                 ^~~~~
a.cc:11:33: warning: multi-character character constant [-Wmultichar]
   11 |                     console.log('a==b');
      |                                 ^~~~~~
a.cc:16:67: warning: multi-character character constant [-Wmultichar]
   16 |             }); process.stdin.resume(); process.stdin.setEncoding('utf8');
      |                                                                   ^~~~~~
a.cc:1:1: error: expected unqualified-id before '\x72696374'
    1 | 'use strict';
      | ^~~~~~~~~~~~
a.cc:2:1: error: 'process' does not name a type
    2 | process.stdin.on('data', function(chunk) {
      | ^~~~~~~
a.cc:16:14: error: expected unqualified-id before ')' token
   16 |             }); process.stdin.resume(); process.stdin.setEncoding('utf8');
      |              ^
a.cc:16:17: error: 'process' does not name a type
   16 |             }); process.stdin.resume(); process.stdin.setEncoding('utf8');
      |                 ^~~~~~~
a.cc:16:41: error: 'process' does not name a type
   16 |             }); process.stdin.resume(); process.stdin.setEncoding('utf8');
      |                                         ^~~~~~~
Language: C++

'use strict';
process.stdin.on('data', function(chunk) {
            var inputs = chunk.toString().trim().split(' ');
            var a = Number (inputs[0]);
            var b = Number (inputs[1]);
            if (a<b ) {
                console.log('a<b');
               } else if (a>b) {
                    console.log('a>b');
                } else if(a==b) {
                    console.log('a==b');

                }


            }); process.stdin.resume(); process.stdin.setEncoding('utf8');

Compiler output:
a.cc:1:1: warning: multi-character literal with 10 characters exceeds 'int' size of 4 bytes
    1 | 'use strict';
      | ^~~~~~~~~~~~
a.cc:2:18: warning: multi-character character constant [-Wmultichar]
    2 | process.stdin.on('data', function(chunk) {
      |                  ^~~~~~
a.cc:7:29: warning: multi-character character constant [-Wmultichar]
    7 |                 console.log('a<b');
      |                             ^~~~~
a.cc:9:33: warning: multi-character character constant [-Wmultichar]
    9 |                     console.log('a>b');
      |                                 ^~~~~
a.cc:11:33: warning: multi-character character constant [-Wmultichar]
   11 |                     console.log('a==b');
      |                                 ^~~~~~
a.cc:16:67: warning: multi-character character constant [-Wmultichar]
   16 |             }); process.stdin.resume(); process.stdin.setEncoding('utf8');
      |                                                                   ^~~~~~
a.cc:1:1: error: expected unqualified-id before '\x72696374'
    1 | 'use strict';
      | ^~~~~~~~~~~~
a.cc:2:1: error: 'process' does not name a type
    2 | process.stdin.on('data', function(chunk) {
      | ^~~~~~~
a.cc:16:14: error: expected unqualified-id before ')' token
   16 |             }); process.stdin.resume(); process.stdin.setEncoding('utf8');
      |              ^
a.cc:16:17: error: 'process' does not name a type
   16 |             }); process.stdin.resume(); process.stdin.setEncoding('utf8');
      |                 ^~~~~~~
a.cc:16:41: error: 'process' does not name a type
   16 |             }); process.stdin.resume(); process.stdin.setEncoding('utf8');
      |                                         ^~~~~~~
Language: C++

'use strict';
process.stdin.on('data', function(chunk) {
  var inputs = chunk.toString().trim().split('');
  var a = Number(inputs[0]);
  var b = Number(inputs[1]);
   if (a < b) {
      console.log('a < b');
   } else if (a > b) {
      console.log('a > b');
         } else {
      console.log('a == b');
   }
  // ????????????????????????
});
process.stdin.resume();
process.stdin.setEncoding('utf8');

Compiler output:
a.cc:1:1: warning: multi-character literal with 10 characters exceeds 'int' size of 4 bytes
    1 | 'use strict';
      | ^~~~~~~~~~~~
a.cc:2:18: warning: multi-character character constant [-Wmultichar]
    2 | process.stdin.on('data', function(chunk) {
      |                  ^~~~~~
a.cc:3:46: error: empty character constant
    3 |   var inputs = chunk.toString().trim().split('');
      |                                              ^~
a.cc:7:19: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
    7 |       console.log('a < b');
      |                   ^~~~~~~
a.cc:9:19: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
    9 |       console.log('a > b');
      |                   ^~~~~~~
a.cc:11:19: warning: multi-character literal with 6 characters exceeds 'int' size of 4 bytes
   11 |       console.log('a == b');
      |                   ^~~~~~~~
a.cc:16:27: warning: multi-character character constant [-Wmultichar]
   16 | process.stdin.setEncoding('utf8');
      |                           ^~~~~~
a.cc:1:1: error: expected unqualified-id before '\x72696374'
    1 | 'use strict';
      | ^~~~~~~~~~~~
a.cc:2:1: error: 'process' does not name a type
    2 | process.stdin.on('data', function(chunk) {
      | ^~~~~~~
a.cc:14:2: error: expected unqualified-id before ')' token
   14 | });
      |  ^
a.cc:15:1: error: 'process' does not name a type
   15 | process.stdin.resume();
      | ^~~~~~~
a.cc:16:1: error: 'process' does not name a type
   16 | process.stdin.setEncoding('utf8');
      | ^~~~~~~
Language: C++

process.stdin.on('data', function(chunk) {
  var inputs = chunk.toString().trim().split('');
  var a = Number(inputs[0]);
  var b = Number(inputs[1]);
   if (a < b) {
      console.log('a < b');
   } else if (a > b) {
      console.log('a > b');
         } else {
      console.log('a == b');
   }

});
process.stdin.resume();
process.stdin.setEncoding('utf8');

Compiler output:
a.cc:1:18: warning: multi-character character constant [-Wmultichar]
    1 | process.stdin.on('data', function(chunk) {
      |                  ^~~~~~
a.cc:2:46: error: empty character constant
    2 |   var inputs = chunk.toString().trim().split('');
      |                                              ^~
a.cc:6:19: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
    6 |       console.log('a < b');
      |                   ^~~~~~~
a.cc:8:19: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
    8 |       console.log('a > b');
      |                   ^~~~~~~
a.cc:10:19: warning: multi-character literal with 6 characters exceeds 'int' size of 4 bytes
   10 |       console.log('a == b');
      |                   ^~~~~~~~
a.cc:15:27: warning: multi-character character constant [-Wmultichar]
   15 | process.stdin.setEncoding('utf8');
      |                           ^~~~~~
a.cc:1:1: error: 'process' does not name a type
    1 | process.stdin.on('data', function(chunk) {
      | ^~~~~~~
a.cc:13:2: error: expected unqualified-id before ')' token
   13 | });
      |  ^
a.cc:14:1: error: 'process' does not name a type
   14 | process.stdin.resume();
      | ^~~~~~~
a.cc:15:1: error: 'process' does not name a type
   15 | process.stdin.setEncoding('utf8');
      | ^~~~~~~
Language: C++

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

int a,b;

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

retuen 0;}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:4: error: expected '(' before 'else'
    7 | if else(a==b){printf("a==b\n");}
      |    ^~~~
      |    (
a.cc:8:1: error: 'else' without a previous 'if'
    8 | else{printf("a>b\n");}
      | ^~~~
a.cc:10:1: error: 'retuen' was not declared in this scope
   10 | retuen 0;}
      | ^~~~~~
Language: C++

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

int a,b;

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

retuen 0;}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:4: error: expected '(' before 'else'
    7 | if else(a==b){printf("a == b\n");}
      |    ^~~~
      |    (
a.cc:8:1: error: 'else' without a previous 'if'
    8 | else{printf("a > b\n");}
      | ^~~~
a.cc:10:1: error: 'retuen' was not declared in this scope
   10 | retuen 0;}
      | ^~~~~~
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");}

retuen 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");}
      | ^~~~
a.cc:11:1: error: 'retuen' was not declared in this scope
   11 | retuen 0;}
      | ^~~~~~
Language: C++

#include<stdio.h>

int a;
int b;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:2: error: 'elseif' was not declared in this scope
   10 | }elseif(a > b){
      |  ^~~~~~
a.cc:12:2: error: 'else' without a previous 'if'
   12 | }else{
      |  ^~~~
Language: C++

#include<stdio.h>

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

#include<stdio.h>

int main(void)
{
	int t, a, b;
	scanf_s("%d", &a);
	scanf_s("%d", &b);
	if (a < b)
	{
		printf("a < b");
	}
	else if (a > b)
	{
		printf("a > b");
	}
	else
	{
		printf("a==b");
	}
	putchar('\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", &a);
      |         ^~~~~~~
      |         scanf
Language: C++

#include<stdio.h>

int main(void)
{
	int t, a, b;
	scanf_s("%d %d", &a, &b);
	if (a < b)
	{
		printf("a < b");
	}
	else if (a > b)
	{
		printf("a > b");
	}
	else
	{
		printf("a==b");
	}
	putchar('\n');

	return 0;

}

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

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

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

#include<iostream>
using namespace std;

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: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:9: error: expected primary-expression before '?' token
    7 |         ???cout << a< b << endl;
      |         ^
a.cc:7:10: error: expected primary-expression before '?' token
    7 |         ???cout << a< b << endl;
      |          ^
a.cc:7:11: error: expected primary-expression before '?' token
    7 |         ???cout << a< b << endl;
      |           ^
a.cc:7:32: error: expected ':' before ';' token
    7 |         ???cout << a< b << endl;
      |                                ^
      |                                :
a.cc:7:32: error: expected primary-expression before ';' token
a.cc:7:32: error: expected ':' before ';' token
    7 |         ???cout << a< b << endl;
      |                                ^
      |                                :
a.cc:7:32: error: expected primary-expression before ';' token
a.cc:7:32: error: expected ':' before ';' token
    7 |         ???cout << a< b << endl;
      |                                ^
      |                                :
a.cc:7:32: error: expected primary-expression before ';' token
Language: C++

#include<iostream>
using namespace std;

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: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;
      |                 ^
Language: C++

m = map(int,raw_input().split())
if m[0] > m[1]:
 print str(m[0]) + ">" + str(m[1])
elif m[0] == m[1]:
 print str(m[0]) + "==" + str(m[1])
elif m[0] < m[1]:
 print str(m[0]) + "<" + str(m[1])

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:23: error: invalid operands of types 'const char [6]' and 'int' to binary 'operator&'
    4 |         scanf("%d %d" &a &b);
      |               ~~~~~~~ ^~
      |               |        |
      |               |        int
      |               const char [6]
a.cc:7:9: error: expected primary-expression before '}' token
    7 |         }
      |         ^
a.cc:11:20: error: expected ';' before '{' token
   11 |         else (a==b){
      |                    ^
      |                    ;
Language: C++

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

if a>b:
  print a > b
elif a<b:
  print a < b
elif 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++

#include <iostream>

int main(int argc, char const* argv[])
{
	int a,b;
	std::cin >> a >> b;
	if (a==b) {
		std::cout << "a == b";
	}
	if (a > b) {
		std::cout << "a > b";
	}
	if (a < b) {
		std::cout << "a < b";
	}
	std::cout << std::endl
	return 0;
}

Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:16:31: error: expected ';' before 'return'
   16 |         std::cout << std::endl
      |                               ^
      |                               ;
   17 |         return 0;
      |         ~~~~~~
Language: C++

#include <iostream>

using namespace std;

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

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:13: error: no match for call to '(std::basic_ostream<char>) (bool)'
    9 |             (a>b)(cout<<"a<b")
      |                  ~~~~~~~~~~~~~
   10 |             (a==b)(cout<<"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 if
            (a<b)cout<<"a<b"endl;

    return 0;
}

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

#include<iostream>
using namespace std;

main(){
int a,b;

cin >> a;
cin >> b;

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

Compiler output:
a.cc:4:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    4 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:13:6: error: expected primary-expression before 'if'
   13 | else-if(a>b){
      |      ^~
a.cc:16:1: error: 'else' without a previous 'if'
   16 | else(a==b){
      | ^~~~
a.cc:16:11: error: expected ';' before '{' token
   16 | else(a==b){
      |           ^
      |           ;
Language: C++

#include<iostream>
using namespace std;

main(){
int a,b;

cin >> a;
cin >> b;

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

Compiler output:
a.cc:4:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    4 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:16:11: error: expected ';' before '{' token
   16 | else(a==b){
      |           ^
      |           ;
Language: C++

#include<iostream>
using namespace std;

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

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

#include<iostream>
using namespace std;

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
    5 |         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){
   cout << a>b << endl;
  }else if (a==b){
   cout << a==b << endl;
  }else it (a<b){
   cout << a<b << endl;
  }

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:16: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
   10 |    cout << a>b << endl;
      |              ~~^~~~~~~
a.cc:12:17: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
   12 |    cout << a==b << endl;
      |               ~~^~~~~~~
a.cc:13:9: error: 'it' was not declared in this scope; did you mean 'int'?
   13 |   }else it (a<b){
      |         ^~
      |         int
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:10:16: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
   10 |    cout << a>b << endl;
      |              ~~^~~~~~~
a.cc:12:17: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
   12 |    cout << a==b << endl;
      |               ~~^~~~~~~
a.cc:13:14: error: expected ';' before '{' token
   13 |   }else (a<b){
      |              ^
      |              ;
Language: C++

#include<iostream>
using namespace std;

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

  return 0;
}

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

#include<iostream>
using namespace std;

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

  return 0;
}

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

#include<iostream>
using namespace std;

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

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:13: error: expected ';' before 'cout'
   11 |   else (a<b)
      |             ^
      |             ;
   12 |    cout << " a < b " << endl;
      |    ~~~~      
a.cc:13:3: error: 'else' without a previous 'if'
   13 |   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:16:3: error: expected unqualified-id before 'return'
   16 |   return 0;
      |   ^~~~~~
a.cc:17:1: error: expected declaration before '}' token
   17 | }
      | ^
Language: C++

import java.util.Scanner; // ?????¨?????????????????????

public class Main {
    public static void main(String[] args) {
        // ?????????????????\?????????????????¨?????? sc ??????????????? (???????????????????????????????????????????????°???????????????).
        Scanner sc = new Scanner(System.in);

        // ????????? sc ??? int ?????¨?????? 1 ?????\???????????????.
        int a = sc.nextInt();
        int b = sc.nextInt();

        // ??????????????¨???
        if (a < b) { System.out.println("a < b"); }
        if (a > b) { System.out.println("a > b"); }
        if (a == b) { System.out.println("a == b"); }
    }
}

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.Scanner; // ?????¨?????????????????????
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: expected unqualified-id before 'public'
    3 | public class Main {
      | ^~~~~~
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{
 
cout << a << " > " << b << "\n";
 
}
 
 
 
 
 

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:16: error: invalid operands of types 'int' and 'const char [2]' to binary 'operator<<'
   12 | cout << a == b << "\n";
      |              ~ ^~ ~~~~
      |              |    |
      |              int  const char [2]
a.cc:17:15: error: invalid operands of types 'int' and 'const char [2]' to binary 'operator<<'
   17 | cout << a < b << "\n";
      |             ~ ^~ ~~~~
      |             |    |
      |             int  const char [2]
a.cc:22:15: error: invalid operands of types 'int' and 'const char [2]' to binary 'operator<<'
   22 | cout << a > b << "\n";
      |             ~ ^~ ~~~~
      |             |    |
      |             int  const char [2]
a.cc:24:2: error: expected '}' at end of input
   24 | }
      |  ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

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

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

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

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

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

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

#include<iostream>
using namespace std

;

int main(){

int a, b;

cin>>a>>b;

if (a==b){

cout<<"a"<<"=="<<"b"<<\n;

};

if (a>b){

cout<<"a"<<">"<<"b"<<\n;

};

if (a<b){

cout<<"a"<<"<"<<"b"<<\n;


};

return 0;

}

Compiler output:
a.cc:14:23: error: stray '\' in program
   14 | cout<<"a"<<"=="<<"b"<<\n;
      |                       ^
a.cc:20:22: error: stray '\' in program
   20 | cout<<"a"<<">"<<"b"<<\n;
      |                      ^
a.cc:26:22: error: stray '\' in program
   26 | cout<<"a"<<"<"<<"b"<<\n;
      |                      ^
a.cc: In function 'int main()':
a.cc:14:24: error: 'n' was not declared in this scope
   14 | cout<<"a"<<"=="<<"b"<<\n;
      |                        ^
a.cc:20:23: error: 'n' was not declared in this scope
   20 | cout<<"a"<<">"<<"b"<<\n;
      |                       ^
a.cc:26:23: error: 'n' was not declared in this scope
   26 | cout<<"a"<<"<"<<"b"<<\n;
      |                       ^
Language: C++

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

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.*;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:15: error: expected ':' before 'static'
    3 |         public static void main (String[] args) throws java.lang.Exception {
      |               ^~~~~~~
      |               :
a.cc:3:34: error: 'String' has not been declared
    3 |         public static void main (String[] args) throws java.lang.Exception {
      |                                  ^~~~~~
a.cc:3:43: error: expected ',' or '...' before 'args'
    3 |         public static void main (String[] args) throws java.lang.Exception {
      |                                           ^~~~
a.cc:3:47: error: expected ';' at end of member declaration
    3 |         public static void main (String[] args) throws java.lang.Exception {
      |                                               ^
      |                                                ;
a.cc:3:49: error: 'throws' does not name a type
    3 |         public static void main (String[] args) throws java.lang.Exception {
      |                                                 ^~~~~~
a.cc:10:2: error: expected ';' after class definition
   10 | }
      |  ^
      |  ;
Language: C++

#include<iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:6: error: expected primary-expression before 'int'
    5 | cin>>int a;
      |      ^~~
a.cc:6:6: error: expected primary-expression before 'int'
    6 | cin>>int b;
      |      ^~~
a.cc:7:4: error: 'a' was not declared in this scope
    7 | if(a<b){
      |    ^
a.cc:7:6: error: 'b' was not declared in this scope
    7 | if(a<b){
      |      ^
Language: C++

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

Compiler output:
a.cc:6:12: error: stray '\' in program
    6 | printff(a<b\n);
      |            ^
a.cc:8:12: error: stray '\' in program
    8 | printf(a==b\n);
      |            ^
a.cc:10:11: error: stray '\' in program
   10 | printf(a>b\n);
      |           ^
a.cc: In function 'int main()':
a.cc:6:12: error: expected ')' before 'n'
    6 | printff(a<b\n);
      |        ~   ^~
      |            )
a.cc:6:1: error: 'printff' was not declared in this scope; did you mean 'printf'?
    6 | printff(a<b\n);
      | ^~~~~~~
      | printf
a.cc:8:12: error: expected ')' before 'n'
    8 | printf(a==b\n);
      |       ~    ^~
      |            )
a.cc:8:9: error: cannot convert 'bool' to 'const char*'
    8 | 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:10:11: error: expected ')' before 'n'
   10 | printf(a>b\n);
      |       ~   ^~
      |           )
a.cc:10:9: error: cannot convert 'bool' to 'const char*'
   10 | 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, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
Language: C++

#include<stdio.h>
int main()
{
int 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:6:11: error: stray '\' in program
    6 | printf(a>b\n);
      |           ^
a.cc:8:12: error: stray '\' in program
    8 | printf(a==b\n);
      |            ^
a.cc:10:11: error: stray '\' in program
   10 | printf(a<b\n);
      |           ^
a.cc: In function 'int main()':
a.cc:6:11: error: expected ')' before 'n'
    6 | printf(a>b\n);
      |       ~   ^~
      |           )
a.cc:6:9: 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:12: error: expected ')' before 'n'
    8 | printf(a==b\n);
      |       ~    ^~
      |            )
a.cc:8:9: 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:10:11: error: expected ')' before 'n'
   10 | printf(a<b\n);
      |       ~   ^~
      |           )
a.cc:10:9: error: cannot convert 'bool' to 'const char*'
   10 | 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, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
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:11: error: stray '\' in program
    7 | printf(a>b\n);
      |           ^
a.cc:9:11: error: stray '\' in program
    9 | printf(a<b\n);
      |           ^
a.cc:11:12: error: stray '\' in program
   11 | printf(a==b\n);
      |            ^
a.cc: In function 'int main()':
a.cc:7:11: error: expected ')' before 'n'
    7 | printf(a>b\n);
      |       ~   ^~
      |           )
a.cc:7:9: error: cannot convert 'bool' to 'const char*'
    7 | 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:9:11: error: expected ')' before 'n'
    9 | printf(a<b\n);
      |       ~   ^~
      |           )
a.cc:9:9: error: cannot convert 'bool' to 'const char*'
    9 | 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:11:12: error: expected ')' before 'n'
   11 | printf(a==b\n);
      |       ~    ^~
      |            )
a.cc:11:9: error: cannot convert 'bool' to 'const char*'
   11 | 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, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
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:11: error: stray '\' in program
    7 | printf(a>b\n);
      |           ^
a.cc:10:11: error: stray '\' in program
   10 | printf(a<b\n);
      |           ^
a.cc:13:12: error: stray '\' in program
   13 | printf(a==b\n);
      |            ^
a.cc: In function 'int main()':
a.cc:7:11: error: expected ')' before 'n'
    7 | printf(a>b\n);
      |       ~   ^~
      |           )
a.cc:7:9: error: cannot convert 'bool' to 'const char*'
    7 | 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:10:11: error: expected ')' before 'n'
   10 | printf(a<b\n);
      |       ~   ^~
      |           )
a.cc:10:9: error: cannot convert 'bool' to 'const char*'
   10 | 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:13:12: error: expected ')' before 'n'
   13 | printf(a==b\n);
      |       ~    ^~
      |            )
a.cc:13:9: error: cannot convert 'bool' to 'const char*'
   13 | 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, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
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:11: error: stray '\' in program
    7 | printf(a>b\n);
      |           ^
a.cc:10:11: error: stray '\' in program
   10 | printf(a<b\n);
      |           ^
a.cc:13:12: error: stray '\' in program
   13 | printf(a==b\n);
      |            ^
a.cc: In function 'int main()':
a.cc:7:11: error: expected ')' before 'n'
    7 | printf(a>b\n);
      |       ~   ^~
      |           )
a.cc:7:9: error: cannot convert 'bool' to 'const char*'
    7 | 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:10:11: error: expected ')' before 'n'
   10 | printf(a<b\n);
      |       ~   ^~
      |           )
a.cc:10:9: error: cannot convert 'bool' to 'const char*'
   10 | 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:13:12: error: expected ')' before 'n'
   13 | printf(a==b\n);
      |       ~    ^~
      |            )
a.cc:13:9: error: cannot convert 'bool' to 'const char*'
   13 | 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, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
Language: C++

#include<iostream>

using namespace std;

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

cout<<a<<op<<b<<endl;

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:9: error: expected ';' before '}' token
   13 | op = "<"
      |         ^
      |         ;
   14 | }
      | ~
Language: C++

import java.io.*;

class Main
{
	public static void main ( String[] args ) throws IOException{
		BufferedReader br = 
		new BufferedReader(new InputStreamReader(System.in));
		String str =   br.readLine();  
		String[] bob = str.split(" ");

		int x = Integer.parseInt(bob[0]);
		int y = Integer.parseInt(bob[1]);
		
		if( x < y ){
			System.out.println( " a < b ");
		}else if( x > y ){
			System.out.println( " a > b ");
		}else{
			System.out.println(" a == b " );
		}
	}
}

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.io.*;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:5:15: error: expected ':' before 'static'
    5 |         public static void main ( String[] args ) throws IOException{
      |               ^~~~~~~
      |               :
a.cc:5:35: error: 'String' has not been declared
    5 |         public static void main ( String[] args ) throws IOException{
      |                                   ^~~~~~
a.cc:5:44: error: expected ',' or '...' before 'args'
    5 |         public static void main ( String[] args ) throws IOException{
      |                                            ^~~~
a.cc:5:49: error: expected ';' at end of member declaration
    5 |         public static void main ( String[] args ) throws IOException{
      |                                                 ^
      |                                                  ;
a.cc:5:51: error: 'throws' does not name a type
    5 |         public static void main ( String[] args ) throws IOException{
      |                                                   ^~~~~~
a.cc:22:2: error: expected ';' after class definition
   22 | }
      |  ^
      |  ;