Language: C++

#define ll long long
#define ull unsigned long long
#define pr printf
#define P push
#define PB push_back
#define F front
#define T top
#define MP make_pair
#define Fi first
#define Se second
using namespace std;
inline long long gcd(long long a,long long b){return b==0?a:gcd(b,a%b);}
inline long long lcm(long long a,long long b){return a/gcd(a,b)*b;}
inline void read(long long &x){
	char ch;
	do ch=getchar();while(ch<48||ch>57);
	x=0;while(ch<=57&&ch>=48){x=x*10+ch-48;ch=getchar();}
}
inline void read(int &x){
	char ch;
	do ch=getchar();while(ch<48||ch>57);
	x=0;while(ch<=57&&ch>=48){x=x*10+ch-48;ch=getchar();}
}
int i,j,k,n,m;
int a,b,c;
int main(){
	scanf("%d/%d/%d",&a,&b,&c);
	if(a<2019){cout<<"Heisei";return 0;}
	if(a>2019){cout<<"TBD";return 0;}
	if(b<4){cout<<"Heisei";return 0;}
	if(b>4){cout<<"TBD";return 0;}
	if(c<=30){cout<<"Heisei";return 0;}
	if(c>30){cout<<"TBD";return 0;}
	return 0;
}

Compiler output:
a.cc: In function 'void read(long long int&)':
a.cc:16:15: error: 'getchar' was not declared in this scope
   16 |         do ch=getchar();while(ch<48||ch>57);
      |               ^~~~~~~
a.cc:1:1: note: 'getchar' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | #define ll long long
a.cc:17:51: error: 'getchar' was not declared in this scope
   17 |         x=0;while(ch<=57&&ch>=48){x=x*10+ch-48;ch=getchar();}
      |                                                   ^~~~~~~
a.cc:17:51: note: 'getchar' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
a.cc: In function 'void read(int&)':
a.cc:21:15: error: 'getchar' was not declared in this scope
   21 |         do ch=getchar();while(ch<48||ch>57);
      |               ^~~~~~~
a.cc:21:15: note: 'getchar' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
a.cc:22:51: error: 'getchar' was not declared in this scope
   22 |         x=0;while(ch<=57&&ch>=48){x=x*10+ch-48;ch=getchar();}
      |                                                   ^~~~~~~
a.cc:22:51: note: 'getchar' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
a.cc: In function 'int main()':
a.cc:27:9: error: 'scanf' was not declared in this scope
   27 |         scanf("%d/%d/%d",&a,&b,&c);
      |         ^~~~~
a.cc:28:20: error: 'cout' was not declared in this scope
   28 |         if(a<2019){cout<<"Heisei";return 0;}
      |                    ^~~~
a.cc:1:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #define ll long long
a.cc:29:20: error: 'cout' was not declared in this scope
   29 |         if(a>2019){cout<<"TBD";return 0;}
      |                    ^~~~
a.cc:29:20: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:30:17: error: 'cout' was not declared in this scope
   30 |         if(b<4){cout<<"Heisei";return 0;}
      |                 ^~~~
a.cc:30:17: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:31:17: error: 'cout' was not declared in this scope
   31 |         if(b>4){cout<<"TBD";return 0;}
      |                 ^~~~
a.cc:31:17: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:32:19: error: 'cout' was not declared in this scope
   32 |         if(c<=30){cout<<"Heisei";return 0;}
      |                   ^~~~
a.cc:32:19: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:33:18: error: 'cout' was not declared in this scope
   33 |         if(c>30){cout<<"TBD";return 0;}
      |                  ^~~~
a.cc:33:18: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'