Language: C++

int main (){
 char a , b;
 cin >> a >> b;
 if ( a == ’H ’ && b == ’H ’) cout << ’H ’;
 if ( a == ’H ’ && b == ’D ’) cout << ’D ’;
 if ( a == ’D ’ && b == ’H ’) cout << ’D ’;
 if ( a == ’D ’ && b == ’D ’) cout << ’H ’;
 return 0;
}


Compiler output:
a.cc:4:12: error: extended character ’ is not valid in an identifier
    4 |  if ( a == ’H ’ && b == ’H ’) cout << ’H ’;
      |            ^
a.cc:4:15: error: extended character ’ is not valid in an identifier
    4 |  if ( a == ’H ’ && b == ’H ’) cout << ’H ’;
      |               ^
a.cc:4:25: error: extended character ’ is not valid in an identifier
    4 |  if ( a == ’H ’ && b == ’H ’) cout << ’H ’;
      |                         ^
a.cc:4:28: error: extended character ’ is not valid in an identifier
    4 |  if ( a == ’H ’ && b == ’H ’) cout << ’H ’;
      |                            ^
a.cc:4:39: error: extended character ’ is not valid in an identifier
    4 |  if ( a == ’H ’ && b == ’H ’) cout << ’H ’;
      |                                       ^
a.cc:4:42: error: extended character ’ is not valid in an identifier
    4 |  if ( a == ’H ’ && b == ’H ’) cout << ’H ’;
      |                                          ^
a.cc:5:12: error: extended character ’ is not valid in an identifier
    5 |  if ( a == ’H ’ && b == ’D ’) cout << ’D ’;
      |            ^
a.cc:5:15: error: extended character ’ is not valid in an identifier
    5 |  if ( a == ’H ’ && b == ’D ’) cout << ’D ’;
      |               ^
a.cc:5:25: error: extended character ’ is not valid in an identifier
    5 |  if ( a == ’H ’ && b == ’D ’) cout << ’D ’;
      |                         ^
a.cc:5:28: error: extended character ’ is not valid in an identifier
    5 |  if ( a == ’H ’ && b == ’D ’) cout << ’D ’;
      |                            ^
a.cc:5:39: error: extended character ’ is not valid in an identifier
    5 |  if ( a == ’H ’ && b == ’D ’) cout << ’D ’;
      |                                       ^
a.cc:5:42: error: extended character ’ is not valid in an identifier
    5 |  if ( a == ’H ’ && b == ’D ’) cout << ’D ’;
      |                                          ^
a.cc:6:12: error: extended character ’ is not valid in an identifier
    6 |  if ( a == ’D ’ && b == ’H ’) cout << ’D ’;
      |            ^
a.cc:6:15: error: extended character ’ is not valid in an identifier
    6 |  if ( a == ’D ’ && b == ’H ’) cout << ’D ’;
      |               ^
a.cc:6:25: error: extended character ’ is not valid in an identifier
    6 |  if ( a == ’D ’ && b == ’H ’) cout << ’D ’;
      |                         ^
a.cc:6:28: error: extended character ’ is not valid in an identifier
    6 |  if ( a == ’D ’ && b == ’H ’) cout << ’D ’;
      |                            ^
a.cc:6:39: error: extended character ’ is not valid in an identifier
    6 |  if ( a == ’D ’ && b == ’H ’) cout << ’D ’;
      |                                       ^
a.cc:6:42: error: extended character ’ is not valid in an identifier
    6 |  if ( a == ’D ’ && b == ’H ’) cout << ’D ’;
      |                                          ^
a.cc:7:12: error: extended character ’ is not valid in an identifier
    7 |  if ( a == ’D ’ && b == ’D ’) cout << ’H ’;
      |            ^
a.cc:7:15: error: extended character ’ is not valid in an identifier
    7 |  if ( a == ’D ’ && b == ’D ’) cout << ’H ’;
      |               ^
a.cc:7:25: error: extended character ’ is not valid in an identifier
    7 |  if ( a == ’D ’ && b == ’D ’) cout << ’H ’;
      |                         ^
a.cc:7:28: error: extended character ’ is not valid in an identifier
    7 |  if ( a == ’D ’ && b == ’D ’) cout << ’H ’;
      |                            ^
a.cc:7:39: error: extended character ’ is not valid in an identifier
    7 |  if ( a == ’D ’ && b == ’D ’) cout << ’H ’;
      |                                       ^
a.cc:7:42: error: extended character ’ is not valid in an identifier
    7 |  if ( a == ’D ’ && b == ’D ’) cout << ’H ’;
      |                                          ^
a.cc: In function 'int main()':
a.cc:3:2: error: 'cin' was not declared in this scope
    3 |  cin >> a >> b;
      |  ^~~
a.cc:4:12: error: '\U00002019H' was not declared in this scope
    4 |  if ( a == ’H ’ && b == ’H ’) cout << ’H ’;
      |            ^~
a.cc:4:14: error: expected ')' before '\U00002019'
    4 |  if ( a == ’H ’ && b == ’H ’) cout << ’H ’;
      |     ~        ^~
      |              )
a.cc:4:31: error: 'cout' was not declared in this scope
    4 |  if ( a == ’H ’ && b == ’H ’) cout << ’H ’;
      |                               ^~~~
a.cc:5:12: error: '\U00002019H' was not declared in this scope
    5 |  if ( a == ’H ’ && b == ’D ’) cout << ’D ’;
      |            ^~
a.cc:5:14: error: expected ')' before '\U00002019'
    5 |  if ( a == ’H ’ && b == ’D ’) cout << ’D ’;
      |     ~        ^~
      |              )
a.cc:5:31: error: 'cout' was not declared in this scope
    5 |  if ( a == ’H ’ && b == ’D ’) cout << ’D ’;
      |                               ^~~~
a.cc:5:39: error: '\U00002019D' was not declared in this scope
    5 |  if ( a == ’H ’ && b == ’D ’) cout << ’D ’;
      |                                       ^~
a.cc:6:12: error: '\U00002019D' was not declared in this scope
    6 |  if ( a == ’D ’ && b == ’H ’) cout << ’D ’;
      |            ^~
a.cc:6:14: error: expected ')' before '\U00002019'
    6 |  if ( a == ’D ’ && b == ’H ’) cout << ’D ’;
      |     ~        ^~
      |              )
a.cc:6:31: error: 'cout' was not declared in this scope
    6 |  if ( a == ’D ’ && b == ’H ’) cout << ’D ’;
      |                               ^~~~
a.cc:7:12: error: '\U00002019D' was not declared in this scope
    7 |  if ( a == ’D ’ && b == ’D ’) cout << ’H ’;
      |            ^~
a.cc:7:14: error: expected ')' before '\U00002019'
    7 |  if ( a == ’D ’ && b == ’D ’) cout << ’H ’;
      |     ~        ^~
      |              )
a.cc:7:31: error: 'cout' was not declared in this scope
    7 |  if ( a == ’D ’ && b == ’D ’) cout << ’H ’;
      |                               ^~~~
a.cc:7:39: error: '\U00002019H' was not declared in this scope
    7 |  if ( a == ’D ’ && b == ’D ’) cout << ’H ’;
      |                                       ^~