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

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

int void(){
  string a,b;
  cin>>a>>b;
  if(a==b) cout<<"H"<<endl;
  else cout<<"D"<<endl;
}

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

# coding: utf-8
a, b = map(str, input().split())
print('H' if a == b else 'D')


Compiler output:
a.cc:1:3: error: invalid preprocessing directive #coding
    1 | # coding: utf-8
      |   ^~~~~~
a.cc:2:1: error: 'a' does not name a type
    2 | a, b = map(str, input().split())
      | ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
	char a, b;
	bool at = ( a == 'H');
	bool top = (b == 'H');
	if (at && top)
	{
		cout << 'H' << endl;
	}else if (at || top);
	{
		cout << 'D' << endl;
	}else{
		cout << 'H' << endl;
	}

}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:10: error: 'else' without a previous 'if'
   13 |         }else{
      |          ^~~~
Language: C

＃include　<stdio.h>
int main(){
 char a[2];
 char b[2];
 
 if(a == b){
  printf("H¥n");
 }else{
  printf("D¥n");
 
 }

}


Compiler output:
main.c:1:10: error: stray '\343' in program
    1 | <U+FF03>include<U+3000><stdio.h>
      |                ^~~~~~~~
main.c:1:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | ＃include　<stdio.h>
      |            ^
Language: C

＃include <stdio.h>

int main(){
 char a[2];
 char b[2];
 
 if(a == b){
  printf("H¥n");
 }else{
  printf("D¥n");
 
 }




}

Compiler output:
main.c:1:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | ＃include <stdio.h>
      |           ^
Language: C++

#include<cstdio>
#include<iostream>
#include<string>

using namespace std;

int main(void) {

	string a, b;

	cin >> a >> b;

	if (a == "H") {
		if (b == "H")cout << "H\n";
		else cout << "D\n";
	}elss{
		if (b == "H")cout << "D\n";
		else cout << "H\n";
	}

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:10: error: 'elss' was not declared in this scope
   16 |         }elss{
      |          ^~~~
Language: C++

#include < bits/stdc++.h>
using namespace std;
 
int main () {
  char a,b;
  cin >> a >> b;
  
  if(a=='H'&&b=='H'){
    cout << "H" << endl;
  }
  if(a=='H'&&b=='D'){
    cout << "D" << endl;
  }
  if(a=='D'&&b=='H'){
    cout << "D" << endl;
  }
  if(a=='D'&&b=='D'){
    cout << "H" << endl;
  }
}

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

#include < bits/stdc++.h>
using namespace std;
 
int main () {
  char a,b;
  cin >> a,b;
  
  if(a=='H'&&b=='H'){
    cout << "H" << endl;
  }
  if(a=='H'&&b=='D'){
    cout << "D" << endl;
  }
  if(a=='D'&&b=='H'){
    cout << "D" << endl;
  }
  if(a=='D'&&b=='D'){
    cout << "H" << endl;
  }
}

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

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

int main () {
  string a,b;
  cin >> a,b;
  
  if(a=='H'&&b=='H'){
    cout << "H" << endl;
  }
  if(a=='H'&&b=='D'){
    cout << "D" << endl;
  }
  if(a=='D'&&b=='H'){
    cout << "D" << endl;
  }
  if(a=='D'&&b=='D'){
    cout << "H" << endl;
  }
}

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

#include<iostream>
using namespace std;
int main(){
	int i,j,n,N;
	char a,b;
	cin>>a>>b;
	if(a=='H'){
	    if(b=='H'){
	    	cout<<"H";
		}else{
			cout<<"D";
		}
	}else{
		if(b=='H'){
			cout<<"D";
		}else{
			cout<<"H";
		}
	}
	return 0;
}

Compiler output:
main.c:1:9: fatal error: iostream: No such file or directory
    1 | #include<iostream>
      |         ^~~~~~~~~~
compilation terminated.
Language: C++

#include<iostream>
using namespace std;

int main(){
  char a, b;
  cin >> a >> b;
  
  if(a == 'D'){
	if(b == 'H'){
      cout << "D" << endl;
    } else {
      cout << "H" << enld;
    }
  } else {
    if(b == 'H'){
      cout << "H" << endl;
    } else {
      cout << "D" << endl;
    }
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:22: error: 'enld' was not declared in this scope
   12 |       cout << "H" << enld;
      |                      ^~~~
Language: C++

#include <iostream>
using namespace std;

int main(){
  int N;
  int k;
  cin >> N;
  
  for (int i=1;;i++)
  {
    int l1=((i*(i+1))/2) - N;
    if(l1 >= 0){
      k = i; break;}
  }
  
  cout <<k;

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

#include <iostream>
using namespace std;

int main(){
  int N;
  int k;
  cin >> N;
  
  for (int i=1;;i++)
  {
    int l1=i*(i+1) - N;
    if(l1 >= 0){
      k = i; break;}
  
  
  cout <<k;
  }

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

#include<iostream>
using namespace std;

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

    if(a=='H')cout << b << endl;
    else{
        if(b=='H')cout << 'D' << endl;
        else cout << 'H' << endl;
    }

    }
}


Compiler output:
a.cc:15:1: error: expected declaration before '}' token
   15 | }
      | ^
Language: C

#include <stdio.h>
int main (){
char a,b;
  int p,q;
scanf ("%c%c",&a,&b);
  if(a=='H'){
  p=0;
  }
  else (a=='D'){
  p=1;
  }
    if(b=='H'){
  q=0;
  }
  else (b=='D'){
  q=1;
  }
  if(p+q%2==0){
  printf ("H");
  }
  else  {
  printf ("D");
  }
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:16: error: expected ';' before '{' token
    9 |   else (a=='D'){
      |                ^
      |                ;
Language: C++

#include<iostream>
#include<string>
#include<vector>
#include<iomanip>
#include<algorithm>
#include<queue>
#include<stack>
#include<map>
using namespace std;
#define ll long long
int main(){
    str a,b;
    cin >> a >> b;
    if(a==b)cout<<"H";else cout <<"D";
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:5: error: 'str' was not declared in this scope; did you mean 'std'?
   12 |     str a,b;
      |     ^~~
      |     std
a.cc:13:12: error: 'a' was not declared in this scope
   13 |     cin >> a >> b;
      |            ^
a.cc:13:17: error: 'b' was not declared in this scope
   13 |     cin >> a >> b;
      |                 ^
Language: Java

import java.util.*;
 
class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String a = sc.nextLine();
        String b = sc.nextLine();
       
		if(a.equals("H")){
          if(b.equals("D")){System.out.print("D");}
          if(b.equals("H")){System.out.print("H");}
        }
        }if(a.equals("D")){
          if(b.equals("H")){System.out.print("D");}
          if(b.equals("D")){System.out.print("H");}
        }
      
    }
}

Compiler output:
Main.java:13: error: illegal start of type
        }if(a.equals("D")){
         ^
Main.java:13: error: <identifier> expected
        }if(a.equals("D")){
                    ^
Main.java:13: error: illegal start of type
        }if(a.equals("D")){
                     ^
Main.java:19: error: class, interface, enum, or record expected
}
^
4 errors
Language: Java

import java.util.*;
 
class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String a = sc.nextLine();
        String b = sc.nextLine();
       
		if(a.equals("H")){
          if(b.equals("D")){system.out.print("D");}
          if(b.equals("H")){system.out.print("H");}
        }
        }if(a.equals("D")){
          if(b.equals("H")){system.out.print("D");}
          if(b.equals("D")){system.out.print("H");}
        }
      
    }
}

Compiler output:
Main.java:13: error: illegal start of type
        }if(a.equals("D")){
         ^
Main.java:13: error: <identifier> expected
        }if(a.equals("D")){
                    ^
Main.java:13: error: illegal start of type
        }if(a.equals("D")){
                     ^
Main.java:19: error: class, interface, enum, or record expected
}
^
4 errors
Language: Java

import java.util.*;
 
class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String a = sc.nextLine();
        String b = sc.nextLine();
       
        if(a.equals("H")){
          system.out.print(b);
        }if(a.equals("D")){
          if(b.equals("H")){system.out.print("D");}
          if(b.equals("D")){system.out.print("H");}
        }
      
    }
}

Compiler output:
Main.java:10: error: package system does not exist
          system.out.print(b);
                ^
Main.java:12: error: package system does not exist
          if(b.equals("H")){system.out.print("D");}
                                  ^
Main.java:13: error: package system does not exist
          if(b.equals("D")){system.out.print("H");}
                                  ^
3 errors
Language: Java

import java.util.*;
 
class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String a = sc.nextLine();
        String b = sc.nextLine();
      
      if(a.charAt(0)=='H'){
        system.out.print(b.charAt(0));
      }if(a.charAt(0)=='D'){
        if(b.charAt(0)=='D'){
           system.out.print('H');
        }if(b.charAt(0)=='H'){
           system.out.print('D');
        }
        
      }
    }
}

Compiler output:
Main.java:10: error: package system does not exist
        system.out.print(b.charAt(0));
              ^
Main.java:13: error: package system does not exist
           system.out.print('H');
                 ^
Main.java:15: error: package system does not exist
           system.out.print('D');
                 ^
3 errors
Language: Java

import java.util.*;
 
class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String a = sc.nextLine();
        String b = sc.nextLine();
      
      if(a=='H'){
        system.out.print(b);
      }if(a=='D'){
        if(b=='D'){
           system.out.print('H');
        }if(b=='H'){
           system.out.print('D');
        }
        
      }
    }
}

Compiler output:
Main.java:9: error: bad operand types for binary operator '=='
      if(a=='H'){
          ^
  first type:  String
  second type: char
Main.java:10: error: package system does not exist
        system.out.print(b);
              ^
Main.java:11: error: bad operand types for binary operator '=='
      }if(a=='D'){
           ^
  first type:  String
  second type: char
Main.java:12: error: bad operand types for binary operator '=='
        if(b=='D'){
            ^
  first type:  String
  second type: char
Main.java:13: error: package system does not exist
           system.out.print('H');
                 ^
Main.java:14: error: bad operand types for binary operator '=='
        }if(b=='H'){
             ^
  first type:  String
  second type: char
Main.java:15: error: package system does not exist
           system.out.print('D');
                 ^
7 errors
Language: Java

import java.util.*;
 
class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        char a = sc.nextCara();
        char b = sc.nextCara();
      
      if(a=='H'){
        system.out.print(b);
      }if(a=='D'){
        if(b=='D'){
           system.out.print('H');
        }if(b=='H'){
           system.out.print('D');
        }
        
      }
    }
}

Compiler output:
Main.java:6: error: cannot find symbol
        char a = sc.nextCara();
                   ^
  symbol:   method nextCara()
  location: variable sc of type Scanner
Main.java:7: error: cannot find symbol
        char b = sc.nextCara();
                   ^
  symbol:   method nextCara()
  location: variable sc of type Scanner
Main.java:10: error: package system does not exist
        system.out.print(b);
              ^
Main.java:13: error: package system does not exist
           system.out.print('H');
                 ^
Main.java:15: error: package system does not exist
           system.out.print('D');
                 ^
5 errors
Language: C++

import java.util.*;
 
class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        char a = sc.nextCara();
        char b = sc.nextCara();
      
      if(a=='H'){
        system.out.print(b);
      }if(a=='D'){
        if(b=='D'){
           system.out.print('H');
        }if(b=='H'){
           system.out.print('D');
        }
        
      }
    }
}

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:4:11: error: expected ':' before 'static'
    4 |     public static void main(String[] args) {
      |           ^~~~~~~
      |           :
a.cc:4:29: error: 'String' has not been declared
    4 |     public static void main(String[] args) {
      |                             ^~~~~~
a.cc:4:38: error: expected ',' or '...' before 'args'
    4 |     public static void main(String[] args) {
      |                                      ^~~~
a.cc:20:2: error: expected ';' after class definition
   20 | }
      |  ^
      |  ;
a.cc: In static member function 'static void Main::main(int*)':
a.cc:5:9: error: 'Scanner' was not declared in this scope
    5 |         Scanner sc = new Scanner(System.in);
      |         ^~~~~~~
a.cc:6:18: error: 'sc' was not declared in this scope
    6 |         char a = sc.nextCara();
      |                  ^~
a.cc:10:9: error: 'system' was not declared in this scope
   10 |         system.out.print(b);
      |         ^~~~~~
a.cc:13:12: error: 'system' was not declared in this scope
   13 |            system.out.print('H');
      |            ^~~~~~
a.cc:15:12: error: 'system' was not declared in this scope
   15 |            system.out.print('D');
      |            ^~~~~~
Language: C++

#include <iostream>
char a,b;
int main(){
  cin >> a >> b;
  cout << (a==b? "H":"D") << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |   cin >> a >> b;
      |   ^~~
      |   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:5:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    5 |   cout << (a==b? "H":"D") << 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:5:30: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    5 |   cout << (a==b? "H":"D") << 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)
      |     ^~~~
Language: C

#include<stdio.h>
char A, B;
int main(){
  a=getchar();
  getchar();
  b=getchar();
  if(a==b){
    putchar('H');
  }else{
    putchar('D');
  }
}


Compiler output:
main.c: In function 'main':
main.c:4:3: error: 'a' undeclared (first use in this function)
    4 |   a=getchar();
      |   ^
main.c:4:3: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:3: error: 'b' undeclared (first use in this function)
    6 |   b=getchar();
      |   ^
Language: C++

#include<iostream>
using namespace std;
char a,b
int main()
{
    cin>>a>>b;
    if(a==b)
    	cout<<'H'<<endl;
    else
    	cout<<'D'<<endl;
    return 0;
}

Compiler output:
a.cc:4:1: error: expected initializer before 'int'
    4 | int main()
      | ^~~
Language: C++

#include<iostream>
using namespace std;

int main(){
    string str1;

    cin >> str1;
    if(str[0] == 'H'){
        string str2;
        cin >> str2;
        if(str2[0] == 'H'){
            cout << "H" << endl;
        }
        else{
            cout << "D" << endl;
        }
    }
    else{
        string str2;
        cin >> str2;
        if(str2[0] == 'H'){
            cout << "D" << endl;
        }
        else{
            cout << "H" << endl;
        }
    }

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:8: error: 'str' was not declared in this scope; did you mean 'str1'?
    8 |     if(str[0] == 'H'){
      |        ^~~
      |        str1
Language: C

#include<stdio.h>

int main(){
  char a[2], b[2];
  int judge;
  
  scanf("%s %s", a, b);
  
  if(a[0] == 'H'){
    if(b[0] == 'H'){
      judge = 1;
    } else {
      judge = 0;
    }
  } else {
    if(b[0] == 'H'){
      judge = 0;
    } else {
      judge = 1;
    }
  }
  
  if(judge == 1){
    printf("H\n");
  } else {
    printf("D"\n);
  }
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:26:15: error: stray '\' in program
   26 |     printf("D"\n);
      |               ^
main.c:26:15: error: expected ')' before 'n'
   26 |     printf("D"\n);
      |           ~   ^~
      |               )
Language: C++

#include <iostream>
using namespace std;
int main(){
char a,b;
cin>>a>>b;
if(a=='H'){
 if(b=='H'){
  cout<<'H';
  return 0;
}
else {
 cout<<'D';
 return 0;
}
}
else{
if(b='H'){
cout<<'D';
return0;
}
else cout<<'H';
}


return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:19:1: error: 'return0' was not declared in this scope
   19 | return0;
      | ^~~~~~~
Language: C++

#include <iostram>
using namespace std;
int main(){
char a,b;
cin>>a>>b;
if(a=='H'){
 if(b=='H'){
  cout<<'H';
  return 0;
}
else {
 cout<<'D';
 return 0;
}
}
else{
if(b='H'){
cout<<'D';
return0;
}
else cout<<'H';
}


return 0;
}

Compiler output:
a.cc:1:10: fatal error: iostram: No such file or directory
    1 | #include <iostram>
      |          ^~~~~~~~~
compilation terminated.
Language: C++

#include<iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: lvalue required as left operand of assignment
    8 |   if(a='H' && b='H'){cout<<'H'<<endl;}
      |        ~~~~^~~~
a.cc:9:10: error: lvalue required as left operand of assignment
    9 | if(a='D' && b='H'){cout<<'D'<<endl;}
      |      ~~~~^~~~
a.cc:10:12: error: lvalue required as left operand of assignment
   10 |   if(a='H' && b='D'){cout<<'D'<<endl;}
      |        ~~~~^~~~
a.cc:11:12: error: lvalue required as left operand of assignment
   11 |   if(a='D' && b='D'){cout<<'H'<<endl;}
      |        ~~~~^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main()
{
    char a, b;
    cin >> a >> b;
    cout << (a == b) ? 'H' : 'D' << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:34: error: invalid operands of types 'char' and '<unresolved overloaded function type>' to binary 'operator<<'
    7 |     cout << (a == b) ? 'H' : 'D' << endl;
      |                              ~~~~^~~~~~~
Language: C++

#include<iostream>
#include<string>
#include<algorithm>
#include<vector>
#include<iomanip>
#include<math.h>
#include<complex>
#include<queue>
#include<deque>
#include<stack>
#include<map>
#include<set>
#include<bitset>
using namespace std;
#define REP(i,m,n) for(int i=(int)m ; i < (int) n ; ++i )
#define rep(i,n) REP(i,0,n)
typedef long long ll;
typedef pair<int,int> pint;
typedef pair<ll,int> pli;
const int inf=1e9+7;
const ll longinf=1LL<<60 ;
const ll mod=1e9+7 ;


    using namespace std;
 
    int main(){
      char a,b;
      cin >> a >> b;
      if(a==b) cout << 'H' << endl;
      else << 'D' << endl;
      return 0;}


Compiler output:
a.cc: In function 'int main()':
a.cc:31:12: error: expected primary-expression before '<<' token
   31 |       else << 'D' << endl;
      |            ^~
Language: C++

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

using ll    = long long;
using ull   = unsigned long long;
using veci  = vector<int>;
using vecll = vector<ll>;
#define EPS (1e-7)
#define INF (1e9)
#define PI  (acos(-1))
#define FOR(i,a,b) for(int i = (a);i < (b); ++i)
#define REP(i,n) for(int i= 0;i<(int)(n);++i)
#define pb push_back

veci enum_div(int n){
	veci ret;
	ret.pb(1);
	for(int i=1;i*i<n;i++){
		if(n%i==0){
			ret.pb(i);
			if(i != n/i){ret.pb(n/i);}
		}
	}
	ret.pb(n);
	return ret;
}
int gcb(int a,int b){return ((b == 0)? a : gcb(b,a%b));}
int gcd(int a,int b){return (a*b) / gcb(a,b);}

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



Compiler output:
a.cc: In function 'int main()':
a.cc:33:16: error: lvalue required as left operand of assignment
   33 |     if( (a=='H'&& b='H') || (a=='D'&& b=='D') ){
      |          ~~~~~~^~~~
Language: C

#include <stdio.h>

int main()
{   char a,b;
    char H,D;
    scanf("%c %c",&a,&b);
    
    if ( a=='H' ) {
	   if (b=='H'){
	       printf("H\n",);
	   } else {
	   	   printf("D\n");
	   } }else if (a=='D') {
	       if (b=='H') {
	   	       printf("D\n");
	   } else {
	   	   printf("H\n");
	   } }
	   return 0;
	} 

Compiler output:
main.c: In function 'main':
main.c:10:29: error: expected expression before ')' token
   10 |                printf("H\n",);
      |                             ^
Language: C

#include <stdio.h>

int main()
{   int a,b;
    int H,D;
    scanf("%d %d",&a,&b);
    
    if ( a==‘H ’ ) {
	   if (b==‘H ’){
	       printf("H\n");
	   } else {
	   	   printf("D\n");
	   } }else if (a==‘D ’) {
	       if (b==‘H ’) {
	   	       printf("D\n");
	   } else {
	   	   printf("H\n");
	   } }
	   return 0;
	} 

Compiler output:
main.c: In function 'main':
main.c:8:13: error: stray '\342' in program
    8 |     if ( a==<U+2018>H <U+2019> ) {
      |             ^~~~~~~~
main.c:8:16: error: stray '\342' in program
    8 |     if ( a==<U+2018>H <U+2019> ) {
      |                       ^~~~~~~~
main.c:9:19: error: stray '\342' in program
    9 |            if (b==<U+2018>H <U+2019>){
      |                   ^~~~~~~~
main.c:9:22: error: stray '\342' in program
    9 |            if (b==<U+2018>H <U+2019>){
      |                             ^~~~~~~~
main.c:13:27: error: stray '\342' in program
   13 |            } }else if (a==<U+2018>D <U+2019>) {
      |                           ^~~~~~~~
main.c:13:30: error: stray '\342' in program
   13 |            } }else if (a==<U+2018>D <U+2019>) {
      |                                     ^~~~~~~~
main.c:14:23: error: stray '\342' in program
   14 |                if (b==<U+2018>H <U+2019>) {
      |                       ^~~~~~~~
main.c:14:26: error: stray '\342' in program
   14 |                if (b==<U+2018>H <U+2019>) {
      |                                 ^~~~~~~~
Language: C++

#include <iostream>
#include <algorithm>
#include <cmath>
#include <limits>
#include <vector>
#include <cstdio>
#include <bits/stdc++.h>
#include <set>
#include <map>
#include <stdio.h>
#include <string.h>
#include <stack>
#include <queue>
#include <deque>
#include <numeric>
#include<bits/stdc++.h>
#include <utility>

#define ALL(obj) (obj).begin(), (obj).end()
#define FOR(i,a,b) for(int i = (a); i < (b); i++)
#define RFOR(i,a,b) for(int i = (a); (b) <= i; i--)
#define REP(i,n) for(int i = 0; i < (n); i++)
#define RREP(i,n) for(int i = n; n <= i; i--)
#define ABS(a) ((a < 0) ? ((-1)*(a)) : (a))
#define elif else if
#define MOD 1000000007
#define INF (1<<29)

using namespace std;
using ll = long long;
map <int ,int> mpa,mpb;
typedef pair<ll, ll> P;
priority_queue<P, vector<P>, greater<P>> pque;

int main(){
  ios::sync_with_stdio(false);
  cin.tie(NULL);
  char a,b;
  cin >> a >> b;
  if((a=="H" && b=="H") || (a=="D" && b=="D")){
    cout << 'H' << endl;
  }else{
    cout << 'D' << endl;
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:40:8: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   40 |   if((a=="H" && b=="H") || (a=="D" && b=="D")){
      |       ~^~~~~
a.cc:40:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   40 |   if((a=="H" && b=="H") || (a=="D" && b=="D")){
      |                 ~^~~~~
a.cc:40:30: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   40 |   if((a=="H" && b=="H") || (a=="D" && b=="D")){
      |                             ~^~~~~
a.cc:40:40: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   40 |   if((a=="H" && b=="H") || (a=="D" && b=="D")){
      |                                       ~^~~~~
Language: C++

#include <iostream>
using namespace std;
int main()
{
    char a,b,ans;
    int x,y;
    cin>>a>>b;
    x=a-65;
    y=b-65;
    if (x==y) ans="H";
    else ans="D";
    cout<<ans;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:19: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
   10 |     if (x==y) ans="H";
      |                   ^~~
      |                   |
      |                   const char*
a.cc:11:14: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
   11 |     else ans="D";
      |              ^~~
      |              |
      |              const char*
Language: C

main(a,b){char a,b;scanf("%c %c",&a,&b);puts(a==b?"H":"D");}

Compiler output:
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int]
    1 | main(a,b){char a,b;scanf("%c %c",&a,&b);puts(a==b?"H":"D");}
      | ^~~~
main.c: In function 'main':
main.c:1:1: error: type of 'a' defaults to 'int' [-Wimplicit-int]
main.c:1:1: error: type of 'b' defaults to 'int' [-Wimplicit-int]
main.c:1:16: error: 'a' redeclared as different kind of symbol
    1 | main(a,b){char a,b;scanf("%c %c",&a,&b);puts(a==b?"H":"D");}
      |                ^
main.c:1:1: note: previous definition of 'a' with type 'int'
    1 | main(a,b){char a,b;scanf("%c %c",&a,&b);puts(a==b?"H":"D");}
      | ^~~~
main.c:1:18: error: 'b' redeclared as different kind of symbol
    1 | main(a,b){char a,b;scanf("%c %c",&a,&b);puts(a==b?"H":"D");}
      |                  ^
main.c:1:1: note: previous definition of 'b' with type 'int'
    1 | main(a,b){char a,b;scanf("%c %c",&a,&b);puts(a==b?"H":"D");}
      | ^~~~
main.c:1:20: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    1 | main(a,b){char a,b;scanf("%c %c",&a,&b);puts(a==b?"H":"D");}
      |                    ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | main(a,b){char a,b;scanf("%c %c",&a,&b);puts(a==b?"H":"D");}
main.c:1:20: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    1 | main(a,b){char a,b;scanf("%c %c",&a,&b);puts(a==b?"H":"D");}
      |                    ^~~~~
main.c:1:20: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:1:41: error: implicit declaration of function 'puts' [-Wimplicit-function-declaration]
    1 | main(a,b){char a,b;scanf("%c %c",&a,&b);puts(a==b?"H":"D");}
      |                                         ^~~~
main.c:1:41: note: include '<stdio.h>' or provide a declaration of 'puts'
Language: C++

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

int main()
{
  char a,b;
  cin >> a >> b;
  if(a == 'H') cout << b << endl;
  else (a == 'D'){
    if(b == 'H') cout << 'D' << endl;
    else cout << 'H' << endl;
  }
}


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

#include<iostream>
#include<cmath>
#include<stdio.h>
using namespace std;
int main()
{
	char a,b;
	cin>>a>>b;
	if(a==b)
	cout<<"H";
	else
	cout<<"D";-
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:1: error: expected primary-expression before '}' token
   13 | }
      | ^
Language: C++

#include<iostream>

using namespace std;

int main(void) {
	char a, b;

	cin >> a >> b;

	if (a == 'H') {
		cout << b << endl;
	}
	else {
		if (b == 'H') {
			cout << D << endl;
		}
		else {
			cout << H << endl;
		}
	}

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:33: error: 'D' was not declared in this scope
   15 |                         cout << D << endl;
      |                                 ^
a.cc:18:33: error: 'H' was not declared in this scope
   18 |                         cout << H << endl;
      |                                 ^
Language: Java

import java.util.*;

class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        String a = sc.next();
        String b = sc.next();
        if(a.charAt(0)=='H'){
            System.out.print(b);
        }
        else{
            String ans;
            if(b.charAt('H')) ans = "D";
            else ans = "H";
            System.out.println(ans);
        }
    }
}


Compiler output:
Main.java:13: error: incompatible types: char cannot be converted to boolean
            if(b.charAt('H')) ans = "D";
                       ^
1 error
Language: C++

#include <bits/stdc++.h>
#define REP(i,n) for(int i=0;i<(n);i++)
const int MOD=(int)1e9+7;
using namespace std;
int main(){
    int 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: In function 'int main()':
a.cc:8:9: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |     if(a=="H" && b=="H") cout << "H";
      |        ~^~~~~
a.cc:8:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |     if(a=="H" && b=="H") cout << "H";
      |                  ~^~~~~
a.cc:9:9: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |     if(a=="H" && b=="D") cout << "D";
      |        ~^~~~~
a.cc:9:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |     if(a=="H" && b=="D") cout << "D";
      |                  ~^~~~~
a.cc:10:9: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |     if(a=="D" && b=="H") cout << "D";
      |        ~^~~~~
a.cc:10:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |     if(a=="D" && b=="H") cout << "D";
      |                  ~^~~~~
a.cc:11:9: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |     if(a=="D" && b=="D") cout << "H";
      |        ~^~~~~
a.cc:11:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |     if(a=="D" && b=="D") cout << "H";
      |                  ~^~~~~
Language: C++

#include <bits/stdc++.h>
#define REP(i,n) for(int i=0;i<(n);i++)
const int MOD=(int)1e9+7;
using namespace std;
int main(){
    int a,b;
    cin >> a >> b;
    if(a=="H" && b=="H") cout << "H" endl;
    if(a=="H" && b=="D") cout << "D" endl;
    if(a=="D" && b=="H") cout << "D" endl;
    if(a=="D" && b=="D") cout << "H" endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |     if(a=="H" && b=="H") cout << "H" endl;
      |        ~^~~~~
a.cc:8:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |     if(a=="H" && b=="H") cout << "H" endl;
      |                  ~^~~~~
a.cc:8:37: error: expected ';' before 'endl'
    8 |     if(a=="H" && b=="H") cout << "H" endl;
      |                                     ^~~~~
      |                                     ;
a.cc:9:9: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |     if(a=="H" && b=="D") cout << "D" endl;
      |        ~^~~~~
a.cc:9:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |     if(a=="H" && b=="D") cout << "D" endl;
      |                  ~^~~~~
a.cc:9:37: error: expected ';' before 'endl'
    9 |     if(a=="H" && b=="D") cout << "D" endl;
      |                                     ^~~~~
      |                                     ;
a.cc:10:9: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |     if(a=="D" && b=="H") cout << "D" endl;
      |        ~^~~~~
a.cc:10:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |     if(a=="D" && b=="H") cout << "D" endl;
      |                  ~^~~~~
a.cc:10:37: error: expected ';' before 'endl'
   10 |     if(a=="D" && b=="H") cout << "D" endl;
      |                                     ^~~~~
      |                                     ;
a.cc:11:9: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |     if(a=="D" && b=="D") cout << "H" endl;
      |        ~^~~~~
a.cc:11:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |     if(a=="D" && b=="D") cout << "H" endl;
      |                  ~^~~~~
a.cc:11:37: error: expected ';' before 'endl'
   11 |     if(a=="D" && b=="D") cout << "H" endl;
      |                                     ^~~~~
      |                                     ;
Language: C++

#include <bits/stdc++.h>
#define REP(i,n) for(int i=0;i<(n);i++)
const int MOD=(int)1e9+7;
using namespace std;
int main(){
    int a,b;
    cin >> a,b;
    if(a=="H" && b=="H") cout << "H" << endl;
    else if(a=="H" && b=="D") cout << "D" << endl;
    else if(a=="D" && b=="H") cout << "D" << endl;
    else if(a=="D" && b=="D") cout << "H" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |     if(a=="H" && b=="H") cout << "H" << endl;
      |        ~^~~~~
a.cc:8:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |     if(a=="H" && b=="H") cout << "H" << endl;
      |                  ~^~~~~
a.cc:9:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |     else if(a=="H" && b=="D") cout << "D" << endl;
      |             ~^~~~~
a.cc:9:24: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |     else if(a=="H" && b=="D") cout << "D" << endl;
      |                       ~^~~~~
a.cc:10:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |     else if(a=="D" && b=="H") cout << "D" << endl;
      |             ~^~~~~
a.cc:10:24: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |     else if(a=="D" && b=="H") cout << "D" << endl;
      |                       ~^~~~~
a.cc:11:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |     else if(a=="D" && b=="D") cout << "H" << endl;
      |             ~^~~~~
a.cc:11:24: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |     else if(a=="D" && b=="D") cout << "H" << endl;
      |                       ~^~~~~
Language: C++

#include <bits/stdc++.h>
#define REP(i,n) for(int i=0;i<(n);i++)
const int MOD=(int)1e9+7;
using namespace std;
int main(){
    int a,b;
    cin >> a,b;
    if(a=="H" && b=="H") cout << "H" << endl;
    if(a=="H" && b=="D") cout << "D" << endl;
    if(a=="D" && b=="H") cout << "D" << endl;
    if(a=="D" && b=="D") cout << "H" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |     if(a=="H" && b=="H") cout << "H" << endl;
      |        ~^~~~~
a.cc:8:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |     if(a=="H" && b=="H") cout << "H" << endl;
      |                  ~^~~~~
a.cc:9:9: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |     if(a=="H" && b=="D") cout << "D" << endl;
      |        ~^~~~~
a.cc:9:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |     if(a=="H" && b=="D") cout << "D" << endl;
      |                  ~^~~~~
a.cc:10:9: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |     if(a=="D" && b=="H") cout << "D" << endl;
      |        ~^~~~~
a.cc:10:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |     if(a=="D" && b=="H") cout << "D" << endl;
      |                  ~^~~~~
a.cc:11:9: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |     if(a=="D" && b=="D") cout << "H" << endl;
      |        ~^~~~~
a.cc:11:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |     if(a=="D" && b=="D") cout << "H" << endl;
      |                  ~^~~~~
Language: C++

#include <bits/stdc++.h>
#define REP(i,n) for(int i=0;i<(n);i++)
const int MOD=(int)1e9+7;
using namespace std;
int main(){
    int a,b;
    cin >> a,b;
    if(a=="H" && b=="H") cout << "H" <<endl;
    if(a=="H" && b=="D") cout << "D" <<endl;
    if(a=="D" && b=="H") cout << "D" <<endl;
    if(a=="D" && b=="D") cout << "H" <<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |     if(a=="H" && b=="H") cout << "H" <<endl;
      |        ~^~~~~
a.cc:8:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |     if(a=="H" && b=="H") cout << "H" <<endl;
      |                  ~^~~~~
a.cc:9:9: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |     if(a=="H" && b=="D") cout << "D" <<endl;
      |        ~^~~~~
a.cc:9:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |     if(a=="H" && b=="D") cout << "D" <<endl;
      |                  ~^~~~~
a.cc:10:9: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |     if(a=="D" && b=="H") cout << "D" <<endl;
      |        ~^~~~~
a.cc:10:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |     if(a=="D" && b=="H") cout << "D" <<endl;
      |                  ~^~~~~
a.cc:11:9: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |     if(a=="D" && b=="D") cout << "H" <<endl;
      |        ~^~~~~
a.cc:11:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |     if(a=="D" && b=="D") cout << "H" <<endl;
      |                  ~^~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
    cin>>n>>m;
    if (n==m) cout<<"H"<<endl;
    else cout<<"D"<<endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:10: error: 'n' was not declared in this scope; did you mean 'yn'?
    5 |     cin>>n>>m;
      |          ^
      |          yn
a.cc:5:13: error: 'm' was not declared in this scope; did you mean 'tm'?
    5 |     cin>>n>>m;
      |             ^
      |             tm
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:23: error: expected ';' before 'return'
    7 |     else printf("H\n")
      |                       ^
      |                       ;
    8 |     return 0;
      |     ~~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
string a, b;

int main(){
  con>>a>>b;
  if(a == b){
    cout<<"H"<<endl;
  }else{
    cout<<"D"<<endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'con' was not declared in this scope; did you mean 'cos'?
    6 |   con>>a>>b;
      |   ^~~
      |   cos
Language: C++

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

Compiler output:
a.cc:4:1: error: expected initializer before 'int'
    4 | int main()
      | ^~~
Language: C++

#pr\
#include <cstdio>
#include <cstdlib>
using namespace std;
char a,b;
int main()
{
    scanf("%c %c",&a,&b);
    if(a==b)
        puts("H");
    else 
        puts("D");
    return 0;
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #pr
    1 | #pr\
    2 | #include <cstdio>
a.cc: In function 'int main()':
a.cc:8:5: error: 'scanf' was not declared in this scope
    8 |     scanf("%c %c",&a,&b);
      |     ^~~~~
a.cc:10:9: error: 'puts' was not declared in this scope
   10 |         puts("H");
      |         ^~~~
a.cc:12:9: error: 'puts' was not declared in this scope
   12 |         puts("D");
      |         ^~~~
Language: C++

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

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


Compiler output:
a.cc:22:5: error: redefinition of 'int main()'
   22 | int main(){
      |     ^~~~
a.cc:4:5: note: 'int main()' previously defined here
    4 | int main(){
      |     ^~~~
Language: C++

#include <iostream>

int main(void){
  char a,b;
  cin >> a >> b;
  cout << (a-b?'D':'H') << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   cin >> a >> b;
      |   ^~~
      |   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:6:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |   cout << (a-b?'D':'H') << 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:6:28: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |   cout << (a-b?'D':'H') << 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)
      |     ^~~~
Language: C++

#include<bits/stdc++.h>
char a,b;
int main()
{
    std::cin>>a>>b;
    if(a!=b)std::cout<<"D"<<endl;
    else
    std::cout<<"H"<<endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:29: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |     if(a!=b)std::cout<<"D"<<endl;
      |                             ^~~~
      |                             std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127,
                 from a.cc:1:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:8:21: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |     std::cout<<"H"<<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<bits/stdc++.h>
string a,b;
int main()
{
    std::cin>>a>>b;
    if(a!=b)std::cout<<"D"<<endl;
    else
    std::cout<<"H"<<endl;
    return 0;
}

Compiler output:
a.cc:2:1: error: 'string' does not name a type; did you mean 'stdin'?
    2 | string a,b;
      | ^~~~~~
      | stdin
a.cc: In function 'int main()':
a.cc:5:15: error: 'a' was not declared in this scope
    5 |     std::cin>>a>>b;
      |               ^
a.cc:5:18: error: 'b' was not declared in this scope
    5 |     std::cin>>a>>b;
      |                  ^
a.cc:6:29: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |     if(a!=b)std::cout<<"D"<<endl;
      |                             ^~~~
      |                             std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127,
                 from a.cc:1:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:8:21: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |     std::cout<<"H"<<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<bits/stdc++.h>
using namespace std;
char ch,ch1;
int main()
{
	cin>>ch>>ch1;
	if(ch==ch1)cuot<<'H';else cout<<'D';
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:20: error: 'cuot' was not declared in this scope
    7 |         if(ch==ch1)cuot<<'H';else cout<<'D';
      |                    ^~~~
Language: C++

#include <bits/stdc++.h>

#define o(output) cout << output << endl

using namespace std;

string s,t,u;
int a,b,c,d;
int l[13]={0,1,3,1,2,1,2,1,1,2,1,2,1};
char A,B,C;
priority_queue<int,vector<int>,greater<int> >small;

int main(){
  cin >>A>>B;
  if(A-B=0)o("H");
  else o("D");
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:7: error: lvalue required as left operand of assignment
   15 |   if(A-B=0)o("H");
      |      ~^~
Language: C++

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:14:5: error: expected '}' before 'else'
   14 |     else{
      |     ^~~~
a.cc:9:18: note: to match this '{'
    9 |     if (a == 'D'){
      |                  ^
a.cc:20:2: error: expected '}' at end of input
   20 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  int a,b,c;
  cin>>a>>b;
  
  if(a=='H'&&b=='H'){
    c='H';
  }
  else if(a=='H'&&b=='D'){
    c='D'
  }
  else if(a=='D'&&b=='H'){
    c='D'
  }
  else{
    c='H'
  }
  
  cout<<c<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:10: error: expected ';' before '}' token
   11 |     c='D'
      |          ^
      |          ;
   12 |   }
      |   ~       
a.cc:14:10: error: expected ';' before '}' token
   14 |     c='D'
      |          ^
      |          ;
   15 |   }
      |   ~       
a.cc:17:10: error: expected ';' before '}' token
   17 |     c='H'
      |          ^
      |          ;
   18 |   }
      |   ~