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

num=[int(i) for i in input().split()]
if num[0]>num[1]:
    print("a>b")
elif num[0]==num[1]:
    print("a==b")
else:
    print("a,b")

Compiler output:
a.cc:1:1: error: 'num' does not name a type; did you mean 'enum'?
    1 | num=[int(i) for i in input().split()]
      | ^~~
      | enum
Language: C++

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

int a,b;

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

if(a==b)printf("a == b\n");
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:10:18: error: expected ';' before 'printf'
   10 |         else(a<b) printf("a < b\n");
      |                  ^~~~~~~
      |                  ;
Language: C++

a, b=map(int, input().split())
if a>b:
    print('a>b')
else if a<b:
    print('a<b')
else:
    print('a==b')

Compiler output:
a.cc:3:11: warning: multi-character character constant [-Wmultichar]
    3 |     print('a>b')
      |           ^~~~~
a.cc:5:11: warning: multi-character character constant [-Wmultichar]
    5 |     print('a<b')
      |           ^~~~~
a.cc:7:11: warning: multi-character character constant [-Wmultichar]
    7 |     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()
{
	int a,b;
	while(cin>>a>>b)
	{
		if(a>b)
			cout<<"a> b"<<endl;
			if(a<b)
				cout<<"a <b"<<endl;
				if(a==b)
					cout<<"a == b"<<endl;
				
	
	
	}

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

#include <iostream>
using namspace std;


int main()
{
    int a, b;

    cin >> a;
    cin >> ' ';
    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:2:7: error: expected nested-name-specifier before 'namspace'
    2 | using namspace std;
      |       ^~~~~~~~
a.cc: In function 'int main()':
a.cc:9:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    9 |     cin >> a;
      |     ^~~
      |     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:14:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   14 |         cout << a << " > " << b << endl;
      |         ^~~~
      |         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:14:36: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   14 |         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:9: 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:36: 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:20:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   20 |         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:20:37: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   20 |         cout << a << " == " << b << endl;
      |                                     ^~~~
      |                                     std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include <iostream>
using namespace std;

int main(int argc, char *argv[argc])
{
    int a, b;
    cin >> 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:4:26: error: expected ',' or '...' before 'argv'
    4 | int main(int argc, char *argv[argc])
      |                          ^~~~
a.cc:4:5: warning: second argument of 'int main(int, char*)' should be 'char **' [-Wmain]
    4 | int main(int argc, char *argv[argc])
      |     ^~~~
Language: C++

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

int main(int argc, char *argv[argc])
{
    int a, b;
    cin >> 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:5:26: error: expected ',' or '...' before 'argv'
    5 | int main(int argc, char *argv[argc])
      |                          ^~~~
a.cc:5:5: warning: second argument of 'int main(int, char*)' should be 'char **' [-Wmain]
    5 | int main(int argc, char *argv[argc])
      |     ^~~~
Language: C++

#include <iostream>
using namespace std;

int main(int argc, char *argv[argc])
{
    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:4:26: error: expected ',' or '...' before 'argv'
    4 | int main(int argc, char *argv[argc])
      |                          ^~~~
a.cc:4:5: warning: second argument of 'int main(int, char*)' should be 'char **' [-Wmain]
    4 | int main(int argc, char *argv[argc])
      |     ^~~~
Language: C++

int main(int argc, char *argv[argc])
{
    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:26: error: expected ',' or '...' before 'argv'
    1 | int main(int argc, char *argv[argc])
      |                          ^~~~
a.cc:1:5: warning: second argument of 'int main(int, char*)' should be 'char **' [-Wmain]
    1 | int main(int argc, char *argv[argc])
      |     ^~~~
a.cc: In function 'int main(int, char*)':
a.cc:4:5: error: 'cin' was not declared in this scope
    4 |     cin >> a >> b;
      |     ^~~
a.cc:6:9: error: 'cout' was not declared in this scope
    6 |         cout << "a > b" <<endl;
      |         ^~~~
a.cc:6:27: error: 'endl' was not declared in this scope
    6 |         cout << "a > b" <<endl;
      |                           ^~~~
a.cc:8:9: error: 'cout' was not declared in this scope
    8 |         cout << "a < b" << endl;
      |         ^~~~
a.cc:8:28: error: 'endl' was not declared in this scope
    8 |         cout << "a < b" << endl;
      |                            ^~~~
a.cc:10:9: error: 'cout' was not declared in this scope
   10 |         cout << "a == b" << endl;
      |         ^~~~
a.cc:10:29: error: 'endl' was not declared in this scope
   10 |         cout << "a == b" << endl;
      |                             ^~~~
Language: C++

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc: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++

#include <cstdio>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:26: error: expected ';' before 'return'
   12 |         printf("a > b\n")
      |                          ^
      |                          ;
   13 |     return 0;
      |     ~~~~~~
Language: C++

#include <iostream>

int main(int argc, char const *argv[])
{
    int a = 0;
    int b = 0;

    std::cin >> a >> b;

    char c[2] = {};

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

    std::cout << a << c << b << std::endl;

    return 0;
}

Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:13:11: error: invalid array assignment
   13 |         c = ">";
      |         ~~^~~~~
a.cc:15:11: error: invalid array assignment
   15 |         c = ">";
      |         ~~^~~~~
a.cc:17:11: error: incompatible types in assignment of 'const char [3]' to 'char [2]'
   17 |         c = "==";
      |         ~~^~~~~~
Language: C++

#include<iostream>
using namespace std;

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

}

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

import java.util.Scanner;

public class Main {

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

}

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

#include <iostream>
#include <string>

using namespace std;

int main() {
 int a, b;

 cin >> a >> b;

 string op;

 if(a == b) {
  op = " == ";
 else if(a > b) 
  op = " > ";
 else 
  op = " < ";

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

 return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:2: error: expected '}' before 'else'
   15 |  else if(a > b)
      |  ^~~~
a.cc:13:13: note: to match this '{'
   13 |  if(a == b) {
      |             ^
Language: C++

#include<iostream>

using namespace std;

int main()
{
  int a,b;

  cin >> a >> b;

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

  return;
}

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

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

Compiler output:
a.cc:5:11: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
    5 |     print('a > b')
      |           ^~~~~~~
a.cc:7:11: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
    7 |     print('a < b')
      |           ^~~~~~~
a.cc:9:11: warning: multi-character literal with 6 characters exceeds 'int' size of 4 bytes
    9 |     print('a == b')
      |           ^~~~~~~~
a.cc:1:1: error: 'x' does not name a type
    1 | x = input().split()
      | ^
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){
      out << "a < b" << endl;
    }else{
      out << "a == b" << endl;
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:7: error: 'out' was not declared in this scope
   10 |       out << "a < b" << endl;
      |       ^~~
a.cc:12:7: error: 'out' was not declared in this scope
   12 |       out << "a == b" << endl;
      |       ^~~
Language: C++

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


Compiler output:
a.cc:3:1: error: '::main' must return 'int'
    3 | void main(void){
      | ^~~~
Language: C++

#include <iostream>
using namespace std

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


Compiler output:
a.cc:2:20: error: expected ';' before 'int'
    2 | using namespace std
      |                    ^
      |                    ;
    3 | 
    4 | int main() {
      | ~~~                 
a.cc: In function 'int main()':
a.cc:13:24: error: expected ')' before ';' token
   13 | cout << "a == b"<< endl;
      |                        ^
      |                        )
a.cc:12:8: note: to match this '('
   12 | } else (
      |        ^
a.cc:14:1: error: expected primary-expression before ')' token
   14 | )
      | ^
Language: C++

#include <iostream>
using namespace std

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


Compiler output:
a.cc:2:20: error: expected ';' before 'int'
    2 | using namespace std
      |                    ^
      |                    ;
    3 | 
    4 | int main() {
      | ~~~
Language: C++

#include <iostream>

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:23: error: operands to '?:' have different types 'char' and 'const char*'
    8 |                   a>b ? '>' : "==")
      |                   ~~~~^~~~~~~~~~~~
Language: C++

#include <iostream>

using namespace std;

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


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

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



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

#include <cstdio>
int main() {
  int a, b;
  scanf("%d%d",&a,&b);
  if (a < b) puts("a < b");
  else if (a > b) puts("a > b);
  else puts("a == b");
}


Compiler output:
a.cc:6:24: warning: missing terminating " character
    6 |   else if (a > b) puts("a > b);
      |                        ^
a.cc:6:24: error: missing terminating " character
    6 |   else if (a > b) puts("a > b);
      |                        ^~~~~~~~
a.cc: In function 'int main()':
a.cc:7:3: error: expected primary-expression before 'else'
    7 |   else puts("a == b");
      |   ^~~~
Language: C++

#include<cstdio>

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:16:2: error: expected class-name at end of input
   16 | ~
      |  ^
Language: C++

var input=require("fs").readFileSync("/dev/stdin","utf8");

input=input.split(" ");
var a=parseInt(input[0]);
var b=parseInt(input[1]);

if(a<b){
    console.log("a < b");
}
else if(a>b){
    console.log("a > b");
}
else{
    console.log("a == b");
}



Compiler output:
a.cc:1:1: error: 'var' does not name a type
    1 | var input=require("fs").readFileSync("/dev/stdin","utf8");
      | ^~~
a.cc:3:1: error: 'input' does not name a type; did you mean 'int'?
    3 | input=input.split(" ");
      | ^~~~~
      | int
a.cc:4:1: error: 'var' does not name a type
    4 | var a=parseInt(input[0]);
      | ^~~
a.cc:5:1: error: 'var' does not name a type
    5 | var b=parseInt(input[1]);
      | ^~~
a.cc:7:1: error: expected unqualified-id before 'if'
    7 | if(a<b){
      | ^~
a.cc:10:1: error: expected unqualified-id before 'else'
   10 | else if(a>b){
      | ^~~~
a.cc:13:1: error: expected unqualified-id before 'else'
   13 | else{
      | ^~~~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:4:2: error: 'cin' was not declared in this scope
    4 |  cin >> a >> b;
      |  ^~~
a.cc:6:2: error: 'string' was not declared in this scope
    6 |  string op;
      |  ^~~~~~
a.cc:9:3: error: 'op' was not declared in this scope
    9 |   op = " == ";
      |   ^~
a.cc:11:3: error: 'op' was not declared in this scope
   11 |   op = " > ";
      |   ^~
a.cc:13:3: error: 'op' was not declared in this scope
   13 |   op = " < ";
      |   ^~
a.cc:15:2: error: 'cout' was not declared in this scope
   15 |  cout << "a" << op << "b" << endl;
      |  ^~~~
a.cc:15:17: error: 'op' was not declared in this scope
   15 |  cout << "a" << op << "b" << endl;
      |                 ^~
a.cc:15:30: error: 'endl' was not declared in this scope
   15 |  cout << "a" << op << "b" << endl;
      |                              ^~~~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:14:34: error: expected ';' before ':' token
   14 |     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 > b"<<endl;}
    if (a == b ){
    cout<< "a == b"<<endl;
    }
    if (a < b){
    cout << "a < b"<<endl;
    }


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

#include <iostream>
using namespace std;

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

}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:10: error: 'a' was not declared in this scope
    6 |   cin >> a >> b;
      |          ^
a.cc:6:15: error: 'b' was not declared in this scope
    6 |   cin >> a >> b;
      |               ^
Language: C++

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

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


Compiler output:
a.cc:8:13: warning: multi-character character constant [-Wmultichar]
    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>


int main() {

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



Compiler output:
a.cc: In function 'int main()':
a.cc:13:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   13 | cin >>a;cin >>b;
      | ^~~
      | std::cin
In file included from a.cc:7:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:14:27: error: expected ';' before '}' token
   14 | if (a>b) {std::cout<<"a>b"}
      |                           ^
      |                           ;
a.cc:15:35: error: expected ';' before '}' token
   15 | else if (a==b) {std::cout << "a=b"}
      |                                   ^
      |                                   ;
a.cc:16:25: error: expected ';' before '}' token
   16 | else {std::cout << "a<b"};
      |                         ^
      |                         ;
a.cc:17:9: error: expected ';' before '}' token
   17 | return 0 }
      |         ^~
      |         ;
Language: C++







#include <iostream>


int main() {

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



Compiler output:
a.cc: In function 'int main()':
a.cc:13:14: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   13 | std::cin >>a;cin >>b;
      |              ^~~
      |              std::cin
In file included from a.cc:7:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:14:27: error: expected ';' before '}' token
   14 | if (a>b) {std::cout<<"a>b"}
      |                           ^
      |                           ;
a.cc:15:35: error: expected ';' before '}' token
   15 | else if (a==b) {std::cout << "a=b"}
      |                                   ^
      |                                   ;
a.cc:16:25: error: expected ';' before '}' token
   16 | else {std::cout << "a<b"};
      |                         ^
      |                         ;
a.cc:17:9: error: expected ';' before '}' token
   17 | return 0 }
      |         ^~
      |         ;
Language: C++







#include <iostream>


int main() {

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



Compiler output:
a.cc: In function 'int main()':
a.cc:14:27: error: expected ';' before '}' token
   14 | if (a>b) {std::cout<<"a>b"}
      |                           ^
      |                           ;
a.cc:15:35: error: expected ';' before '}' token
   15 | else if (a==b) {std::cout << "a=b"}
      |                                   ^
      |                                   ;
a.cc:16:25: error: expected ';' before '}' token
   16 | else {std::cout << "a<b"};
      |                         ^
      |                         ;
a.cc:17:9: error: expected ';' before '}' token
   17 | return 0 }
      |         ^~
      |         ;
Language: C++







#include <iostream>


int main() {

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



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







#include <iostream>


int main() {

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



Compiler output:
a.cc: In function 'int main()':
a.cc:13:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   13 | cin >>a;cin >>b;
      | ^~~
      | std::cin
In file included from a.cc:7:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
Language: C++

#include <iostream>
using namespace std;

int main() {
  int a,b;
  cin >> a >> b;
  if ( a > b ){
  cout << "a is larger than b";
}
else if ( a < b ){
  cout << "b is larger than a"
}
else if ( a == b ){
  cout << "a equal to b"
}


}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:31: error: expected ';' before '}' token
   11 |   cout << "b is larger than a"
      |                               ^
      |                               ;
   12 | }
      | ~                              
a.cc:14:25: error: expected ';' before '}' token
   14 |   cout << "a equal to b"
      |                         ^
      |                         ;
   15 | }
      | ~
Language: C++

#include <iostream>
using namespace std;

int main() {
  int a , b ;
  cin >> a >> b;
  if( a > b ){
    cout << "a is larger than b";
  }
  else if ( a < b ){
    cout << "b is larger than a";
  }
  else if ( a == b ){
    cout << "a equal to b";
  }
  if ( a != b ){
    cout << "a is not equal to b"
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:34: error: expected ';' before '}' token
   17 |     cout << "a is not equal to b"
      |                                  ^
      |                                  ;
   18 |   }
      |   ~
Language: C++

#include <iostream>
#include <cstdio>

using namespace std;

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



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

#include <iostream>
#include <cstdio>

using namespace std;

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



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

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

if a > b:
print(">".join(map(str,[a,b])))
elsif a < b:
print("<".join(map(str,[a,b])))
else:
print("=".join(map(str,[a,b]))) 


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

import sys

symbols = {-1: "<",
           0: "==",
           1: ">"}


def cmp(x, y):
    return (x > y) - (x < y)


for line in sys.stdin:
    nums = list(map(int, line.split()))
    print("a " + symbols[cmp(*nums)] + " b")



Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import sys
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:8:1: error: 'def' does not name a type
    8 | def cmp(x, y):
      | ^~~
Language: C++

import java.util.Scanner;

class Main{

Scanner sc=new Scanner(System.in);

int a=sc.nextInt();
int b=sc.nextInt();

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

sc.close();

}


Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.Scanner;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:5:1: error: 'Scanner' does not name a type
    5 | Scanner sc=new Scanner(System.in);
      | ^~~~~~~
a.cc:10:1: error: expected unqualified-id before 'if'
   10 | if(a > b){
      | ^~
a.cc:12:2: error: expected unqualified-id before 'else'
   12 | }else if(a < b){
      |  ^~~~
a.cc:14:2: error: expected unqualified-id before 'else'
   14 | }else{
      |  ^~~~
a.cc:18:1: error: 'sc' does not name a type
   18 | sc.close();
      | ^~
a.cc:20:2: error: expected ';' after class definition
   20 | }
      |  ^
      |  ;
a.cc:7:7: error: 'sc' was not declared in this scope
    7 | int a=sc.nextInt();
      |       ^~
a.cc:8:7: error: 'sc' was not declared in this scope
    8 | int b=sc.nextInt();
      |       ^~
Language: C++

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


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++

n=input().split(" ")
a=int(n[0])
b=int(n[1])
if a > b:
  print("a > b")
elif a < b:
    print("a < b")
else:
    print("a == b")  


Compiler output:
a.cc:1:1: error: 'n' does not name a type
    1 | n=input().split(" ")
      | ^
Language: C++

n=input().split()
a=int(n[0])
b=int(n[1])
if a > b:
    print("a > b")
elif a < b:
    print("a < b")
else:
    print("a == b")  


Compiler output:
a.cc:1:1: error: 'n' does not name a type
    1 | n=input().split()
      | ^
Language: C++

n=input().split()
a=int(n[0]);
b=int(n[1]);
if a > b:
    print("a > b");
elif a < b:
    print("a < b");
else:
    print("a == b");  


Compiler output:
a.cc:1:1: error: 'n' does not name a type
    1 | n=input().split()
      | ^
a.cc:3:1: error: 'b' does not name a type
    3 | b=int(n[1]);
      | ^
a.cc:4:1: error: expected unqualified-id before 'if'
    4 | if a > b:
      | ^~
a.cc:6:1: error: 'elif' does not name a type
    6 | elif a < b:
      | ^~~~
a.cc:8:1: error: expected unqualified-id before 'else'
    8 | else:
      | ^~~~
Language: C++

n=input().split();
a=int(n[0]);
b=int(n[1]);
if a > b:
    print("a > b");
elif a < b:
    print("a < b");
else:
    print("a == b");  


Compiler output:
a.cc:1:1: error: 'n' does not name a type
    1 | n=input().split();
      | ^
a.cc:2:1: error: 'a' does not name a type
    2 | a=int(n[0]);
      | ^
a.cc:3:1: error: 'b' does not name a type
    3 | b=int(n[1]);
      | ^
a.cc:4:1: error: expected unqualified-id before 'if'
    4 | if a > b:
      | ^~
a.cc:6:1: error: 'elif' does not name a type
    6 | elif a < b:
      | ^~~~
a.cc:8:1: error: expected unqualified-id before 'else'
    8 | else:
      | ^~~~
Language: C++

#include<iostream>
using namespace std;

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



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

#include <stdio.h>

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


Compiler output:
a.cc:7:33: error: stray '\' in program
    7 |         if(a > b){printf("a > b"\n);
      |                                 ^
a.cc:9:24: error: stray '\' in program
    9 |         printf("a == b"\n);
      |                        ^
a.cc:11:23: error: stray '\' in program
   11 |         printf("a < b"\n);
      |                       ^
a.cc: In function 'int main()':
a.cc:7:33: error: expected ')' before 'n'
    7 |         if(a > b){printf("a > b"\n);
      |                         ~       ^~
      |                                 )
a.cc:9:24: error: expected ')' before 'n'
    9 |         printf("a == b"\n);
      |               ~        ^~
      |                        )
a.cc:11:23: error: expected ')' before 'n'
   11 |         printf("a < b"\n);
      |               ~       ^~
      |                       )
Language: C++

// ConsoleApplication3.cpp : コンソール アプリケーションのエントリ ポイントを定義します。
//

#include "stdafx.h"
//#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:4:10: fatal error: stdafx.h: No such file or directory
    4 | #include "stdafx.h"
      |          ^~~~~~~~~~
compilation terminated.
Language: C++

#include <iostream>
using namespace std;

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

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


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

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

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


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

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

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

	return 0;
}


Compiler output:
a.cc:2:9: fatal error: bits/stdtc++.h: No such file or directory
    2 | #include<bits/stdtc++.h>
      |         ^~~~~~~~~~~~~~~~
compilation terminated.
Language: C++

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

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

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

	return 0;
}


Compiler output:
a.cc:2:9: fatal error: bits/stdtc++.h: No such file or directory
    2 | #include<bits/stdtc++.h>
      |         ^~~~~~~~~~~~~~~~
compilation terminated.
Language: C++

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

int main(){
   int a,b;
   cin>>a>>b>>c;
   if(a<b && b<c) cout<<"Yes"<<endl;
   else cout<<"No"<<endl;

   return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:15: error: 'c' was not declared in this scope
    6 |    cin>>a>>b>>c;
      |               ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:4:1: error: 'cin' was not declared in this scope
    4 | 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 | using namespace std;
a.cc:6:1: error: 'cout' was not declared in this scope
    6 | cout<<"a>b"<<endl;}
      | ^~~~
a.cc:6:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:6:14: error: 'endl' was not declared in this scope
    6 | 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 | using namespace std;
a.cc:8:1: error: 'cout' was not declared in this scope
    8 | cout<<"a==b"<<endl;}
      | ^~~~
a.cc:8:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:8:15: error: 'endl' was not declared in this scope
    8 | cout<<"a==b"<<endl;}
      |               ^~~~
a.cc:8:15: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
a.cc:10:1: error: 'cout' was not declared in this scope
   10 | cout<<"a<b"<<endl;}}
      | ^~~~
a.cc:10:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:10:14: error: 'endl' was not declared in this scope
   10 | cout<<"a<b"<<endl;}}
      |              ^~~~
a.cc:10:14: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

//itp1_topic2_a
#include <bits/stdc++.h>
using namespase stg;

int main(){
    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:3:7: error: expected nested-name-specifier before 'namespase'
    3 | using namespase stg;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:6:13: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
    6 |     int main(){
      |             ^~
a.cc:6:13: note: remove parentheses to default-initialize a variable
    6 |     int main(){
      |             ^~
      |             --
a.cc:6:13: note: or replace parentheses with braces to value-initialize a variable
a.cc:6:15: error: a function-definition is not allowed here before '{' token
    6 |     int main(){
      |               ^
a.cc:15:6: error: expected '}' at end of input
   15 |     }
      |      ^
a.cc:5:11: note: to match this '{'
    5 | int main(){
      |           ^
Language: C++

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

int main(){
    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:3:17: error: 'stg' is not a namespace-name
    3 | using namespace stg;
      |                 ^~~
a.cc: In function 'int main()':
a.cc:6:13: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
    6 |     int main(){
      |             ^~
a.cc:6:13: note: remove parentheses to default-initialize a variable
    6 |     int main(){
      |             ^~
      |             --
a.cc:6:13: note: or replace parentheses with braces to value-initialize a variable
a.cc:6:15: error: a function-definition is not allowed here before '{' token
    6 |     int main(){
      |               ^
a.cc:15:6: error: expected '}' at end of input
   15 |     }
      |      ^
a.cc:5:11: note: to match this '{'
    5 | int main(){
      |           ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:13: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
    6 |     int main(){
      |             ^~
a.cc:6:13: note: remove parentheses to default-initialize a variable
    6 |     int main(){
      |             ^~
      |             --
a.cc:6:13: note: or replace parentheses with braces to value-initialize a variable
a.cc:6:15: error: a function-definition is not allowed here before '{' token
    6 |     int main(){
      |               ^
a.cc:15:6: error: expected '}' at end of input
   15 |     }
      |      ^
a.cc:5:11: note: to match this '{'
    5 | int main(){
      |           ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:13: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
    6 |     int main(){
      |             ^~
a.cc:6:13: note: remove parentheses to default-initialize a variable
    6 |     int main(){
      |             ^~
      |             --
a.cc:6:13: note: or replace parentheses with braces to value-initialize a variable
a.cc:6:15: error: a function-definition is not allowed here before '{' token
    6 |     int main(){
      |               ^
a.cc:15:6: error: expected '}' at end of input
   15 |     }
      |      ^
a.cc:5:11: note: to match this '{'
    5 | int main(){
      |           ^
Language: C++

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

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

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

return 0;
}


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

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

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

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

return 0;
}


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

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

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

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

return 0;
}


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

#incloude<iostream>
using namespace std;

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


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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:3:10: error: 'string' is not a member of 'std'
    3 |     std::string result;
      |          ^~~~~~
a.cc:1:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
  +++ |+#include <string>
    1 | int main() {
a.cc:4:10: error: 'cin' is not a member of 'std'
    4 |     std::cin >> a;
      |          ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | int main() {
a.cc:5:10: error: 'cin' is not a member of 'std'
    5 |     std::cin >> b;
      |          ^~~
a.cc:5:10: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:7:7: error: 'result' was not declared in this scope
    7 |       result = "a > b";
      |       ^~~~~~
a.cc:10:7: error: 'result' was not declared in this scope
   10 |       result = "a < b";
      |       ^~~~~~
a.cc:13:7: error: 'result' was not declared in this scope
   13 |       result = "a == b";
      |       ^~~~~~
a.cc:15:10: error: 'cout' is not a member of 'std'
   15 |     std::cout << result << std::endl;
      |          ^~~~
a.cc:15:10: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:15:18: error: 'result' was not declared in this scope
   15 |     std::cout << result << std::endl;
      |                  ^~~~~~
a.cc:15:33: error: 'endl' is not a member of 'std'
   15 |     std::cout << result << std::endl;
      |                                 ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | int main() {