Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  string a,b;
  cin>>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 ’;
}

Compiler output:
a.cc:7:11: error: extended character ’ is not valid in an identifier
    7 | if ( a == ’H ’ && b == ’H ’) cout << ’H ’;
      |           ^
a.cc:7:14: error: extended character ’ is not valid in an identifier
    7 | if ( a == ’H ’ && b == ’H ’) cout << ’H ’;
      |              ^
a.cc:7:24: error: extended character ’ is not valid in an identifier
    7 | if ( a == ’H ’ && b == ’H ’) cout << ’H ’;
      |                        ^
a.cc:7:27: error: extended character ’ is not valid in an identifier
    7 | if ( a == ’H ’ && b == ’H ’) cout << ’H ’;
      |                           ^
a.cc:7:38: error: extended character ’ is not valid in an identifier
    7 | if ( a == ’H ’ && b == ’H ’) cout << ’H ’;
      |                                      ^
a.cc:7:41: error: extended character ’ is not valid in an identifier
    7 | if ( a == ’H ’ && b == ’H ’) cout << ’H ’;
      |                                         ^
a.cc:8:11: error: extended character ’ is not valid in an identifier
    8 | if ( a == ’H ’ && b == ’D ’) cout << ’D ’;
      |           ^
a.cc:8:14: error: extended character ’ is not valid in an identifier
    8 | if ( a == ’H ’ && b == ’D ’) cout << ’D ’;
      |              ^
a.cc:8:24: error: extended character ’ is not valid in an identifier
    8 | if ( a == ’H ’ && b == ’D ’) cout << ’D ’;
      |                        ^
a.cc:8:27: error: extended character ’ is not valid in an identifier
    8 | if ( a == ’H ’ && b == ’D ’) cout << ’D ’;
      |                           ^
a.cc:8:38: error: extended character ’ is not valid in an identifier
    8 | if ( a == ’H ’ && b == ’D ’) cout << ’D ’;
      |                                      ^
a.cc:8:41: error: extended character ’ is not valid in an identifier
    8 | if ( a == ’H ’ && b == ’D ’) cout << ’D ’;
      |                                         ^
a.cc:9:11: error: extended character ’ is not valid in an identifier
    9 | if ( a == ’D ’ && b == ’H ’) cout << ’D ’;
      |           ^
a.cc:9:14: error: extended character ’ is not valid in an identifier
    9 | if ( a == ’D ’ && b == ’H ’) cout << ’D ’;
      |              ^
a.cc:9:24: error: extended character ’ is not valid in an identifier
    9 | if ( a == ’D ’ && b == ’H ’) cout << ’D ’;
      |                        ^
a.cc:9:27: error: extended character ’ is not valid in an identifier
    9 | if ( a == ’D ’ && b == ’H ’) cout << ’D ’;
      |                           ^
a.cc:9:38: error: extended character ’ is not valid in an identifier
    9 | if ( a == ’D ’ && b == ’H ’) cout << ’D ’;
      |                                      ^
a.cc:9:41: error: extended character ’ is not valid in an identifier
    9 | if ( a == ’D ’ && b == ’H ’) cout << ’D ’;
      |                                         ^
a.cc:10:11: error: extended character ’ is not valid in an identifier
   10 | if ( a == ’D ’ && b == ’D ’) cout << ’H ’;
      |           ^
a.cc:10:14: error: extended character ’ is not valid in an identifier
   10 | if ( a == ’D ’ && b == ’D ’) cout << ’H ’;
      |              ^
a.cc:10:24: error: extended character ’ is not valid in an identifier
   10 | if ( a == ’D ’ && b == ’D ’) cout << ’H ’;
      |                        ^
a.cc:10:27: error: extended character ’ is not valid in an identifier
   10 | if ( a == ’D ’ && b == ’D ’) cout << ’H ’;
      |                           ^
a.cc:10:38: error: extended character ’ is not valid in an identifier
   10 | if ( a == ’D ’ && b == ’D ’) cout << ’H ’;
      |                                      ^
a.cc:10:41: error: extended character ’ is not valid in an identifier
   10 | if ( a == ’D ’ && b == ’D ’) cout << ’H ’;
      |                                         ^
a.cc: In function 'int main()':
a.cc:7:11: error: '\U00002019H' was not declared in this scope
    7 | if ( a == ’H ’ && b == ’H ’) cout << ’H ’;
      |           ^~
a.cc:7:13: error: expected ')' before '\U00002019'
    7 | if ( a == ’H ’ && b == ’H ’) cout << ’H ’;
      |    ~        ^~
      |             )
a.cc:8:11: error: '\U00002019H' was not declared in this scope
    8 | if ( a == ’H ’ && b == ’D ’) cout << ’D ’;
      |           ^~
a.cc:8:13: error: expected ')' before '\U00002019'
    8 | if ( a == ’H ’ && b == ’D ’) cout << ’D ’;
      |    ~        ^~
      |             )
a.cc:8:38: error: '\U00002019D' was not declared in this scope
    8 | if ( a == ’H ’ && b == ’D ’) cout << ’D ’;
      |                                      ^~
a.cc:9:11: error: '\U00002019D' was not declared in this scope
    9 | if ( a == ’D ’ && b == ’H ’) cout << ’D ’;
      |           ^~
a.cc:9:13: error: expected ')' before '\U00002019'
    9 | if ( a == ’D ’ && b == ’H ’) cout << ’D ’;
      |    ~        ^~
      |             )
a.cc:10:11: error: '\U00002019D' was not declared in this scope
   10 | if ( a == ’D ’ && b == ’D ’) cout << ’H ’;
      |           ^~
a.cc:10:13: error: expected ')' before '\U00002019'
   10 | if ( a == ’D ’ && b == ’D ’) cout << ’H ’;
      |    ~        ^~
      |             )
a.cc:10:38: error: '\U00002019H' was not declared in this scope
   10 | if ( a == ’D ’ && b == ’D ’) cout << ’H ’;
      |                                      ^~