Language: C++

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

//type
#define ll long long
typedef pair<int, int> P;
//定数
#define INF 1000000000000 //10^12:∞
#define MOD 1000000007    //10^9+7:合同式の法
#define MAXR 100000       //10^5:配列の最大のrange
//略記
#define PB push_back //挿入
#define MP make_pair //pairのコンストラクタ
#define F first      //pairの一つ目の要素
#define S second     //pairの二つ目の要素
#define Z class
// OTHER
// xの二乗を返す (関数テンプレート版)
template <typename T>
T square(T x) { return x * x; }
template <class T>
T GCD(T a, T b)
{
  T r;
  while (a)
    r = b, b = a, a = r % a;
  return b;
}
template <class T>
T LCM(T a, T b) { return a / GCD(a, b) * b; }

#define chmax(x, y) (x = max(x, y))
#define chmin(x, y) (x = min(x, y))
// loop
#define rep(i, n) for (int i = 0; i < (n); i++)
#define repd(i, n) for (ll i = n - 1; i >= 0; i--)
#define FOR(i, a, b) for (ll i = a; i <= (b); i++)
#define FORD(i, a, b) for (ll i = a; i >= (b); i--)
#define FORA(i, I) for (const auto &i : I)

// vector
#define ALL(x) x.begin(), x.end()

// output
#define YES() printf("YES\n")
#define NO() printf("NO\n")
#define isYES(x) printf("%s\n", (x) ? "YES" : "NO")
#define Yes() printf("Yes\n")
#define No() printf("No\n")
#define ln cout << '\n'
template <Z A>
void pr(A a)
{
  cout << a;
  ln;
}
template <Z A, Z B>
void pr(A a, B b)
{
  cout << a << ' ';
}

int ans = 0;
bool check = 0;
string s, t;
int N = 3;
vector<int> v(N);
int a, b, c, d, n;
int x, y;
char ch;

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

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:79:11: error: extended character ’ is not valid in an identifier
   79 | if ( a == ’H ’ && b == ’H ’) cout << ’H ’;
      |           ^
a.cc:79:14: error: extended character ’ is not valid in an identifier
   79 | if ( a == ’H ’ && b == ’H ’) cout << ’H ’;
      |              ^
a.cc:79:24: error: extended character ’ is not valid in an identifier
   79 | if ( a == ’H ’ && b == ’H ’) cout << ’H ’;
      |                        ^
a.cc:79:27: error: extended character ’ is not valid in an identifier
   79 | if ( a == ’H ’ && b == ’H ’) cout << ’H ’;
      |                           ^
a.cc:79:38: error: extended character ’ is not valid in an identifier
   79 | if ( a == ’H ’ && b == ’H ’) cout << ’H ’;
      |                                      ^
a.cc:79:41: error: extended character ’ is not valid in an identifier
   79 | if ( a == ’H ’ && b == ’H ’) cout << ’H ’;
      |                                         ^
a.cc:80:11: error: extended character ’ is not valid in an identifier
   80 | if ( a == ’H ’ && b == ’D ’) cout << ’D ’;
      |           ^
a.cc:80:14: error: extended character ’ is not valid in an identifier
   80 | if ( a == ’H ’ && b == ’D ’) cout << ’D ’;
      |              ^
a.cc:80:24: error: extended character ’ is not valid in an identifier
   80 | if ( a == ’H ’ && b == ’D ’) cout << ’D ’;
      |                        ^
a.cc:80:27: error: extended character ’ is not valid in an identifier
   80 | if ( a == ’H ’ && b == ’D ’) cout << ’D ’;
      |                           ^
a.cc:80:38: error: extended character ’ is not valid in an identifier
   80 | if ( a == ’H ’ && b == ’D ’) cout << ’D ’;
      |                                      ^
a.cc:80:41: error: extended character ’ is not valid in an identifier
   80 | if ( a == ’H ’ && b == ’D ’) cout << ’D ’;
      |                                         ^
a.cc:81:11: error: extended character ’ is not valid in an identifier
   81 | if ( a == ’D ’ && b == ’H ’) cout << ’D ’;
      |           ^
a.cc:81:14: error: extended character ’ is not valid in an identifier
   81 | if ( a == ’D ’ && b == ’H ’) cout << ’D ’;
      |              ^
a.cc:81:24: error: extended character ’ is not valid in an identifier
   81 | if ( a == ’D ’ && b == ’H ’) cout << ’D ’;
      |                        ^
a.cc:81:27: error: extended character ’ is not valid in an identifier
   81 | if ( a == ’D ’ && b == ’H ’) cout << ’D ’;
      |                           ^
a.cc:81:38: error: extended character ’ is not valid in an identifier
   81 | if ( a == ’D ’ && b == ’H ’) cout << ’D ’;
      |                                      ^
a.cc:81:41: error: extended character ’ is not valid in an identifier
   81 | if ( a == ’D ’ && b == ’H ’) cout << ’D ’;
      |                                         ^
a.cc:82:11: error: extended character ’ is not valid in an identifier
   82 | if ( a == ’D ’ && b == ’D ’) cout << ’H ’;
      |           ^
a.cc:82:14: error: extended character ’ is not valid in an identifier
   82 | if ( a == ’D ’ && b == ’D ’) cout << ’H ’;
      |              ^
a.cc:82:24: error: extended character ’ is not valid in an identifier
   82 | if ( a == ’D ’ && b == ’D ’) cout << ’H ’;
      |                        ^
a.cc:82:27: error: extended character ’ is not valid in an identifier
   82 | if ( a == ’D ’ && b == ’D ’) cout << ’H ’;
      |                           ^
a.cc:82:38: error: extended character ’ is not valid in an identifier
   82 | if ( a == ’D ’ && b == ’D ’) cout << ’H ’;
      |                                      ^
a.cc:82:41: error: extended character ’ is not valid in an identifier
   82 | if ( a == ’D ’ && b == ’D ’) cout << ’H ’;
      |                                         ^
a.cc: In function 'int main()':
a.cc:79:11: error: '\U00002019H' was not declared in this scope
   79 | if ( a == ’H ’ && b == ’H ’) cout << ’H ’;
      |           ^~
a.cc:79:13: error: expected ')' before '\U00002019'
   79 | if ( a == ’H ’ && b == ’H ’) cout << ’H ’;
      |    ~        ^~
      |             )
a.cc:80:11: error: '\U00002019H' was not declared in this scope
   80 | if ( a == ’H ’ && b == ’D ’) cout << ’D ’;
      |           ^~
a.cc:80:13: error: expected ')' before '\U00002019'
   80 | if ( a == ’H ’ && b == ’D ’) cout << ’D ’;
      |    ~        ^~
      |             )
a.cc:80:38: error: '\U00002019D' was not declared in this scope
   80 | if ( a == ’H ’ && b == ’D ’) cout << ’D ’;
      |                                      ^~
a.cc:81:11: error: '\U00002019D' was not declared in this scope
   81 | if ( a == ’D ’ && b == ’H ’) cout << ’D ’;
      |           ^~
a.cc:81:13: error: expected ')' before '\U00002019'
   81 | if ( a == ’D ’ && b == ’H ’) cout << ’D ’;
      |    ~        ^~
      |             )
a.cc:82:11: error: '\U00002019D' was not declared in this scope
   82 | if ( a == ’D ’ && b == ’D ’) cout << ’H ’;
      |           ^~
a.cc:82:13: error: expected ')' before '\U00002019'
   82 | if ( a == ’D ’ && b == ’D ’) cout << ’H ’;
      |    ~        ^~
      |             )
a.cc:82:38: error: '\U00002019H' was not declared in this scope
   82 | if ( a == ’D ’ && b == ’D ’) cout << ’H ’;
      |                                      ^~