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

#include<iostream>
using std::cout;
using std::cin;
using std::endl;

#include<string>
using std::string;

#include<cstdlib>
using std::stoi;

int main()
{
  string s;
  cin >> s;
  
  if (stoi(s.substring(0, 4)) < 2019) cout << "Heisei" << endl;
  else if(stoi(s.substring(5, 2)) < 5) cout << "Heisei" << endl;
  else cout << "TBD" << endl;
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:14: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'substring'; did you mean 'substr'?
   17 |   if (stoi(s.substring(0, 4)) < 2019) cout << "Heisei" << endl;
      |              ^~~~~~~~~
      |              substr
a.cc:18:18: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'substring'; did you mean 'substr'?
   18 |   else if(stoi(s.substring(5, 2)) < 5) cout << "Heisei" << endl;
      |                  ^~~~~~~~~
      |                  substr
Language: C++

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

int main() {
  string date;
  cin >> date;
  if (data.at(5) == '0') {
    if (data.at(6) <= '4') {
      cout << "Heisei" << endl;
    }
    else {
      cout << "TBD" << endl;
    }
  }
  else {
    cout << "TBD" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:12: error: overloaded function with no contextual type information
    7 |   if (data.at(5) == '0') {
      |            ^~
a.cc:8:14: error: overloaded function with no contextual type information
    8 |     if (data.at(6) <= '4') {
      |              ^~
Language: C++

#include <iostream>
using namespace std;
int main() {
	int M, D;
	scanf_s("2019/%d/%d", &M, &D);
	cout << (M < 4 || (M == 4 && D <= 30) ? "Heisei" : "TBD") << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
    5 |         scanf_s("2019/%d/%d", &M, &D);
      |         ^~~~~~~
      |         scanf
Language: C++

#include <cmath>
#include <cstdio>
#include <vector>
#include <iostream>
#include <algorithm>
#include<set>
#include<map>
using namespace std;


int main() {
    string s;
    cin >> s;
    if(int(s[6])-48 > 4){
        cout << "Heisei"
    }
    else{
        cout << "TBD";
    }
    cout << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:25: error: expected ';' before '}' token
   15 |         cout << "Heisei"
      |                         ^
      |                         ;
   16 |     }
      |     ~
Language: C++

#include <cmath>
#include <cstdio>
#include <vector>
#include <iostream>
#include <algorithm>
#include<set>
#include<map>
using namespace std;


int main() {
    string s;
    cin >> s;
    if(int(s[6])-48){
        cout << "Heisei"
    }
    else{
        cout << "TBD";
    }
    cout << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:25: error: expected ';' before '}' token
   15 |         cout << "Heisei"
      |                         ^
      |                         ;
   16 |     }
      |     ~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  string s;
  cin >> s;
  string t="TBD";
  string u;
  int i;
  for(i=0;i<10;i++){
    if(s.at(i)!='/'){
      u.at(i)=s.at(i);
    }
  }
  int a=stoi(u);
  if(a/10000<2019){
    t="Heisei";
  }
  if(a/10000==2019 && a-20190000<=430){
    t="Heisei;
  }
  cout << t;
}
  
  

Compiler output:
a.cc:19:7: warning: missing terminating " character
   19 |     t="Heisei;
      |       ^
a.cc:19:7: error: missing terminating " character
   19 |     t="Heisei;
      |       ^~~~~~~~
a.cc: In function 'int main()':
a.cc:20:3: error: expected primary-expression before '}' token
   20 |   }
      |   ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
string S;
  cin>>S;
  int x=(int)(S.at(6));
  if((int)(S.at(5)==0){if(x<=4)
    cout<<"Heisei"<<endl;
  else
    cout<<"TBD"<<endl;}else
     cout<<"TBD"<<endl;
   return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:23: error: expected ';' before '{' token
    7 |   if((int)(S.at(5)==0){if(x<=4)
      |                       ^
      |                       ;
a.cc:10:24: error: expected primary-expression before 'else'
   10 |     cout<<"TBD"<<endl;}else
      |                        ^~~~
a.cc:10:24: error: expected ')' before 'else'
   10 |     cout<<"TBD"<<endl;}else
      |                        ^~~~
      |                        )
a.cc:7:5: note: to match this '('
    7 |   if((int)(S.at(5)==0){if(x<=4)
      |     ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
string S;
  cin>>S;
  int x=ctoi(S.at(6));
  if(x<=4)
    cout<<"Heisei"<<endl;
  else
    cout<<"TBD"<<endl;
   return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'ctoi' was not declared in this scope; did you mean 'atoi'?
    6 |   int x=ctoi(S.at(6));
      |         ^~~~
      |         atoi
Language: C++

#include "bits/stdc++.h"

#define rep(i, n) for(int i = 0; i < (int)(n); i++)
#define all(x) (x).begin(),(x).end()
#define bit(n) (1LL << (n))
#define sz(x) ((int)(x).size())
#define UNIQUE(v) v.erase( unique(v.begin(), v.end()), v.end() );
#define en '\n'
#define pb push_back
#define P pair<int, int>

typedef long long ll;
using namespace std;

ll gcd(ll a, ll b) { return b ? gcd(b, a % b) : a; }
ll lcm(ll a, ll b) { ll g = gcd(a, b); return a / g * b; }
const int dx[4] = { 1, 0, -1,  0 };
const int dy[4] = { 0, 1,  0, -1 };
const int INF = (int)1e9;
const ll  inf = (ll)1e18;
const int mod = 1000000007;

void main() {
	ll yy, mm, dd;
	
	string s;
	cin >> s;
	
	yy = stoi(s.substr(0, 4));
	mm = stoi(s.substr(5, 2));

	bool preTime = true;

	if (yy > 2019) preTime = false;
	else if (mm > 4) preTime = false;

	if (preTime) {
		cout << "Heisei" << endl;
	}
	else {
		cout << "TBD" << endl;
	}
}

Compiler output:
a.cc:23:1: error: '::main' must return 'int'
   23 | void main() {
      | ^~~~
Language: C++

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

int main(){
  int i,j,k;
  char c,t;
  cin >> i >> c >> j >> t >> k;
  if(j<=4)
    cout << "Heisei" << endl;
  else
    cout << "TBD" << endl;
}

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

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

int main() {
  string s;
  cin>>s;
  string ans="TBD";
  if(s[5]='0'){
    if(s[6]='1' || s[6]='2' || s[6]='3' || s[6]= '4') ans="Heisei";
  }
  cout<<ans<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:41: error: lvalue required as left operand of assignment
    9 |     if(s[6]='1' || s[6]='2' || s[6]='3' || s[6]= '4') ans="Heisei";
Language: C++

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

using ll=long long;
const ll MOD=1000000007;

int main() {
  int s;
  cin >> s;
  if(s[5]=='0'&&s[6]-'0'<=4)
     cout << "Heisei" << endl;
  else
    cout << "TBD" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:7: error: invalid types 'int[int]' for array subscript
   10 |   if(s[5]=='0'&&s[6]-'0'<=4)
      |       ^
a.cc:10:18: error: invalid types 'int[int]' for array subscript
   10 |   if(s[5]=='0'&&s[6]-'0'<=4)
      |                  ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
template<class T> inline bool chmax(T& a, T b) {if (a < b) {a = b;return true;}return false;}

int main() {
    string s;
  cin >> s;
  int year;
  year = s.substr(4);
  int month = s.substr(6,2);
  int day = s.substr(9,2);
  
  if (year*365 + month*30 + day > 737055){
  cout << "TBD" << endl;
  }
  else {
    cout << "Heisei" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:18: error: cannot convert 'std::__cxx11::basic_string<char>' to 'int' in assignment
   10 |   year = s.substr(4);
      |          ~~~~~~~~^~~
      |                  |
      |                  std::__cxx11::basic_string<char>
a.cc:11:23: error: cannot convert 'std::__cxx11::basic_string<char>' to 'int' in initialization
   11 |   int month = s.substr(6,2);
      |               ~~~~~~~~^~~~~
      |                       |
      |                       std::__cxx11::basic_string<char>
a.cc:12:21: error: cannot convert 'std::__cxx11::basic_string<char>' to 'int' in initialization
   12 |   int day = s.substr(9,2);
      |             ~~~~~~~~^~~~~
      |                     |
      |                     std::__cxx11::basic_string<char>
a.cc:19:2: error: expected '}' at end of input
   19 | }
      |  ^
a.cc:6:12: note: to match this '{'
    6 | int main() {
      |            ^
Language: C++

#include <iostream>
#include <string>
using namespace std;

int main() {
    string S;
    cin >> S;
    if (S[5] == '0') {
        if (S[6] < '5') {

            cout << "Heisei" << endl;
        }
        else
        {
            cout << "TBD" << endl;
        }
    }
    else
    {
        cout << "TBD" << endl;
    }
 
}
 ]

Compiler output:
a.cc:24:2: error: expected unqualified-id before ']' token
   24 |  ]
      |  ^
Language: C++

#include <bits/stdc++.h>
int main(){
    int y, m, d;char c1, c2;cin >> y >> c1 >> m >> c2 >> d;
    cout << (m <= 4 ? "Heisei" : "TBD") << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:29: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    3 |     int y, m, d;char c1, c2;cin >> y >> c1 >> m >> c2 >> d;
      |                             ^~~
      |                             std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 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:4:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    4 |     cout << (m <= 4 ? "Heisei" : "TBD") << 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:4:44: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    4 |     cout << (m <= 4 ? "Heisei" : "TBD") << 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:
/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>
int main(){
    int y, m, d;char c1, c2;cin >> y >> c1 >> m >> c2 >> d;
    cout << (m <= 4 ? "Heisei" : "Reiwa") << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:29: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    3 |     int y, m, d;char c1, c2;cin >> y >> c1 >> m >> c2 >> d;
      |                             ^~~
      |                             std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 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:4:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    4 |     cout << (m <= 4 ? "Heisei" : "Reiwa") << 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:4:46: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    4 |     cout << (m <= 4 ? "Heisei" : "Reiwa") << 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:
/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;

int main() {
  vector<char> a(10);
  for(int i = 0; i < 10; i++){
    cin >> a.at(i); 
  }
  if(a.at(6) - '0' >= 5) cout << "TBD" << endl;
  else cout << "Heisei" << endl;
}


Compiler output:
a.cc:10:33: error: stray '\16' in program
   10 |   else cout << "Heisei" << endl;<U+000E>
      |                                 ^~~~~~~~
a.cc:11:2: error: stray '\16' in program
   11 | }<U+000E>
      |  ^~~~~~~~
Language: C++

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

int main() {
  string s; cin >> s;
  int y = stoi(substr(s,0,4));
  int m = stoi(substr(s,5,2));
  int d = stoi(substr(s,8,2));
  int ok = true;
  if (y < 2019) {ok = false;}
  if (y == 2019 && m < 4) {ok = false;}
  if (y == 2019 && m == 4 && d <= 30) {ok = false;}
  if (ok) {cout << "TBD" << endl;}
  else {cout << "Heisei" << endl;}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:16: error: 'substr' was not declared in this scope; did you mean 'strstr'?
    7 |   int y = stoi(substr(s,0,4));
      |                ^~~~~~
      |                strstr
Language: C++

//#define _GLIBCXX_DEBUG

#include<bits/stdc++.h>
using namespace std;
const int INF= 1e9+5;
typedef long long ll;

int main(){
  string s;
  if(s[0]>2 ||(s[0]=2 && (a[1]>0 ||(s[1]=0 && (a[2]>1 ||(s[2]=1 && (a[3]>9 ||(s[3]=9 && (a[5]>0 ||(s[5]=0 && (a[6]>4 ||(s[6]=4 && (a[8]>3 ||(s[8]=3 && (a[9]>0 ))))) ))))) ))))){
    cout<<"TBD"<<endl;
  }
  else cout<<"Heisei"<<endl;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:27: error: 'a' was not declared in this scope
   10 |   if(s[0]>2 ||(s[0]=2 && (a[1]>0 ||(s[1]=0 && (a[2]>1 ||(s[2]=1 && (a[3]>9 ||(s[3]=9 && (a[5]>0 ||(s[5]=0 && (a[6]>4 ||(s[6]=4 && (a[8]>3 ||(s[8]=3 && (a[9]>0 ))))) ))))) ))))){
      |                           ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  string s;
  cin>>s;
  string t = "2019/04/30";
  if(s<=t){
    out<<"Heisei"<<endl;
  }
  else{
    cout<<"TBD"<<endl;
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: 'out' was not declared in this scope
    8 |     out<<"Heisei"<<endl;
      |     ^~~
Language: C++

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

int main() {
  string s;
  getline(cin,s);
  s.erase(4,1);
  s.erase(7,1);
  int a = 1000000;
  int b = 0;
  for(i=0;i<8;i++){
    b += s.at(i)*a;
    a = a/10;
  }
  if(b<=20190430){
    cout << "Heisei" << endl;
  }
  else{
    cout << "TBD" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:7: error: 'i' was not declared in this scope
   11 |   for(i=0;i<8;i++){
      |       ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main(){
  string s;cin>>s;
  int ans="Heisei";
  if(s.substr(5,2)=="04")ans="TBD";
  cout <<ans<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:11: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
    6 |   int ans="Heisei";
      |           ^~~~~~~~
      |           |
      |           const char*
a.cc:7:30: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
    7 |   if(s.substr(5,2)=="04")ans="TBD";
      |                              ^~~~~
      |                              |
      |                              const char*
Language: C++

#include<iostream>
#include<vector>
#include<string>


using namespace std;

void main(){
	string s;
	cin >> s;

	if (s <= "2019/04/30") {
		cout<<"Heisei";
	}
	else {
		cout<<"TBD";
	}
}

Compiler output:
a.cc:8:1: error: '::main' must return 'int'
    8 | void main(){
      | ^~~~
Language: C++

#include <iostream>
using namespace std;

int main(){
    string a(100,'0');
    
    cin >> a;
    int y=stoi(a.substr(0,4));
    int m=stoi(a.substr(5,2));
    int d=stoi(a.substr(8,2));
    bool heisei=y > 2019 || 
        (y == 2019 ?  
        (m > 4 || (m==4 ? d >= 30 ? true:false) :false):false)


    cout << (heisei ? "Heisei":"TBD") << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:47: error: expected ':' before ')' token
   13 |         (m > 4 || (m==4 ? d >= 30 ? true:false) :false):false)
      |                                               ^
      |                                               :
a.cc:13:47: error: expected primary-expression before ')' token
a.cc:13:48: error: expected ')' before ':' token
   13 |         (m > 4 || (m==4 ? d >= 30 ? true:false) :false):false)
      |         ~                                      ^~
      |                                                )
a.cc:16:46: error: expected ':' before ';' token
   16 |     cout << (heisei ? "Heisei":"TBD") << endl;
      |                                              ^
      |                                              :
a.cc:16:46: error: expected primary-expression before ';' token
a.cc:16:46: error: expected ')' before ';' token
   16 |     cout << (heisei ? "Heisei":"TBD") << endl;
      |                                              ^
      |                                              )
a.cc:12:9: note: to match this '('
   12 |         (y == 2019 ?
      |         ^
Language: C++

#include <bits/stc++.h>

using namespace std;

int main(){
	int y, m, d;
	char c1, c2;
	
	cin >> y >> c1 >> m >> c2 >> d;
	cout << (m <= 4 ? "Heisei" : "TBD") << endl;
}

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

#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <cmath>
using namespace std;
#define rep(i, n) for(int i = 0; i < n; i++)
typedef long long ll;

int main(){
    string s;
    cin >> s;
    int n = stoi(s.at(6));
    if(n>4){
        cout << "TBD" << endl;
    }
    else
    {
        cout << "HEISEI" << endl;
    }
    
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:17: error: no matching function for call to 'stoi(__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type&)'
   13 |     int n = stoi(s.at(6));
      |             ~~~~^~~~~~~~~
In file included from /usr/include/c++/14/string:54,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/basic_string.h:4164:3: note: candidate: 'int std::__cxx11::stoi(const std::string&, std::size_t*, int)'
 4164 |   stoi(const string& __str, size_t* __idx = 0, int __base = 10)
      |   ^~~~
/usr/include/c++/14/bits/basic_string.h:4164:22: note:   no known conversion for argument 1 from '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} to 'const std::string&' {aka 'const std::__cxx11::basic_string<char>&'}
 4164 |   stoi(const string& __str, size_t* __idx = 0, int __base = 10)
      |        ~~~~~~~~~~~~~~^~~~~
/usr/include/c++/14/bits/basic_string.h:4432:3: note: candidate: 'int std::__cxx11::stoi(const std::wstring&, std::size_t*, int)'
 4432 |   stoi(const wstring& __str, size_t* __idx = 0, int __base = 10)
      |   ^~~~
/usr/include/c++/14/bits/basic_string.h:4432:23: note:   no known conversion for argument 1 from '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} to 'const std::wstring&' {aka 'const std::__cxx11::basic_string<wchar_t>&'}
 4432 |   stoi(const wstring& __str, size_t* __idx = 0, int __base = 10)
      |        ~~~~~~~~~~~~~~~^~~~~
Language: C++

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

int main() {
  
  string str, asn='2019/04/30';
  
  cin >> str;
  
  if(str<=ans) {
    
    cout << "Heisei" << endl;
    
  } else {
    
    cout << "TBD" << endl;
    
  }
  
  return 0;
  
}


Compiler output:
a.cc:6:19: warning: multi-character literal with 10 characters exceeds 'int' size of 4 bytes
    6 |   string str, asn='2019/04/30';
      |                   ^~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:6:19: error: conversion from 'int' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
a.cc:10:11: error: 'ans' was not declared in this scope; did you mean 'asn'?
   10 |   if(str<=ans) {
      |           ^~~
      |           asn
Language: C++

#include <bits/stdc++.h>
using namespace std;
using ll= long long;
using vi= vector<int>;
using vvi= vector<vi>;
using vd= vector<double>;
using vvd= vector<vd>;
using vc= vector<char>;
using vb= vector<bool>;
#define rep(i,x,n) for(int i=x; i<n; i++)
#define all(x) x.begin(), x.end()


int main(){
  string s;
  cin >> s;

  if(s <= "2019/04/30"){
    cout << "Heisei"
  }else{
    cout << "TBD";
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:19:21: error: expected ';' before '}' token
   19 |     cout << "Heisei"
      |                     ^
      |                     ;
   20 |   }else{
      |   ~
Language: C++

#include <bits/stdc++.h>
using namespace std;
using ll= long long;
using vi= vector<int>;
using vvi= vector<vi>;
using vd= vector<double>;
using vvd= vector<vd>;
using vc= vector<char>;
using vb= vector<bool>;
#define rep(i,x,n) for(int i=x; i<n; i++)
#define all(x) x.begin(), x.end()


int main(){
  string s;
  cin >> s;

  if(s <= "2019/04/30"){
    cout << "Heisei"
  }else{
    cout << TBD;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:19:21: error: expected ';' before '}' token
   19 |     cout << "Heisei"
      |                     ^
      |                     ;
   20 |   }else{
      |   ~                  
a.cc:21:13: error: 'TBD' was not declared in this scope
   21 |     cout << TBD;
      |             ^~~
Language: Java

s = input()

if s<= '2019/04/30':
    print("Heisei")
else:
    print("TBD")

Compiler output:
Main.java:1: error: class, interface, enum, or record expected
s = input()
^
Main.java:3: error: unclosed character literal
if s<= '2019/04/30':
       ^
Main.java:3: error: unclosed character literal
if s<= '2019/04/30':
                  ^
3 errors
Language: C++

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

int main() {
	string str;
	cin >> str;
	str tmp = "2019/04/30";
	if(str>tmp?"TBD":"Heisei");
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:12: error: expected ';' before 'tmp'
    7 |         str tmp = "2019/04/30";
      |            ^~~~
      |            ;
a.cc:8:16: error: 'tmp' was not declared in this scope; did you mean 'tm'?
    8 |         if(str>tmp?"TBD":"Heisei");
      |                ^~~
      |                tm
Language: Java

import java.util.*;
public class Main {
  public static void main(String args[]) {
    Scanner sc = new Scanner(System.in);
    String[] data = new String[2];

    data[0] = "2019/04/30";
    data[1] = sc.nextLine();

    Arrays.sore(data);

    if (data[1].equals("2019/04/30")) {
      System.out.println("Heisei");
    } else {
      System.out.println("TBD");
    }
  }
}


Compiler output:
Main.java:10: error: cannot find symbol
    Arrays.sore(data);
          ^
  symbol:   method sore(String[])
  location: class Arrays
1 error
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for(int i=0; i<(n); i++)
int main()
{
    string s;
    cin >> s;
	
  	string h = substr(s, 5, 7);
	if(h == "04" || h == "03" || h == "02" || h == "01")
      cout << "Heisei" << endl;
  	else
      cout << "TBD" << endl;


    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:20: error: 'substr' was not declared in this scope; did you mean 'strstr'?
    9 |         string h = substr(s, 5, 7);
      |                    ^~~~~~
      |                    strstr
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for(int i=0; i<(n); i++)
int main()
{
    string s;
    cin >> s;
	
  	string h = substr(5, 7);
	if(h == "04" || h == "03" || h == "02" || h == "01")
      cout << "Heisei" << endl;
  	else
      cout << "TBD" << endl;


    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:20: error: 'substr' was not declared in this scope; did you mean 'strstr'?
    9 |         string h = substr(5, 7);
      |                    ^~~~~~
      |                    strstr
Language: C++

#include <iostream>

using namespace std;

int main(){
    int y;
    int m;
    int d;
    char a;
    char b;
    cin >> y >> a >> m >> b >> d;
    if(){
        cout << "TBD" << endl;
    }
    else{
        cout << "Heisei" << endl;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:8: error: expected primary-expression before ')' token
   12 |     if(){
      |        ^
Language: C

#include <stdio.h>
#include <string.h>
#include <stdlib.h>
int main(void){
    char s[200];
    scanf("%s",s);
    if(s[6]=='5'||s[6]=='6'||s[6]=='7'||s[6]=='8'||s[6]=='9'||s[5]=='9'){printf("TBD");}
    else{printf("Heisei")}
}

Compiler output:
main.c: In function 'main':
main.c:8:26: error: expected ';' before '}' token
    8 |     else{printf("Heisei")}
      |                          ^
      |                          ;
Language: C++

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

int main() {
  ios::sync_with_stdio(false);
  cin.tie(nullptr);
  string s;cin>>s;
  char m1 = s[5], m2 = s[6];
  int mm = stoi(m1+m2);
  if (mm <= 4) puts("Heisei"); else puts("No");
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:16: error: no matching function for call to 'stoi(int)'
   10 |   int mm = stoi(m1+m2);
      |            ~~~~^~~~~~~
In file included from /usr/include/c++/14/string:54,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52,
                 from a.cc:1:
/usr/include/c++/14/bits/basic_string.h:4164:3: note: candidate: 'int std::__cxx11::stoi(const std::string&, std::size_t*, int)'
 4164 |   stoi(const string& __str, size_t* __idx = 0, int __base = 10)
      |   ^~~~
/usr/include/c++/14/bits/basic_string.h:4164:22: note:   no known conversion for argument 1 from 'int' to 'const std::string&' {aka 'const std::__cxx11::basic_string<char>&'}
 4164 |   stoi(const string& __str, size_t* __idx = 0, int __base = 10)
      |        ~~~~~~~~~~~~~~^~~~~
/usr/include/c++/14/bits/basic_string.h:4432:3: note: candidate: 'int std::__cxx11::stoi(const std::wstring&, std::size_t*, int)'
 4432 |   stoi(const wstring& __str, size_t* __idx = 0, int __base = 10)
      |   ^~~~
/usr/include/c++/14/bits/basic_string.h:4432:23: note:   no known conversion for argument 1 from 'int' to 'const std::wstring&' {aka 'const std::__cxx11::basic_string<wchar_t>&'}
 4432 |   stoi(const wstring& __str, size_t* __idx = 0, int __base = 10)
      |        ~~~~~~~~~~~~~~~^~~~~
Language: C++

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

int main() {
  ios::sync_with_stdio(false);
  cin.tie(nullptr);
  string s;cin>>s;
  string y = s[0]+s[1]+s[2]+s[3], m = s[5]+s[6], d = s[8]+s[9];
  int yyyy = stoi(y), mm = stoi(m), dd = stoi(d);
  if (mm <= 4) puts("Heisei"); else puts("No");
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:28: error: conversion from 'int' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
    9 |   string y = s[0]+s[1]+s[2]+s[3], m = s[5]+s[6], d = s[8]+s[9];
a.cc:9:43: error: conversion from 'int' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
    9 |   string y = s[0]+s[1]+s[2]+s[3], m = s[5]+s[6], d = s[8]+s[9];
a.cc:9:58: error: conversion from 'int' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
    9 |   string y = s[0]+s[1]+s[2]+s[3], m = s[5]+s[6], d = s[8]+s[9];
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0;i<n;i++)
int main(){
  string s; cin>>s;
  if(s[5]=='1') cout<<"TBD"<<endl;
  int a=atoi(s[6]); 
  else if(a<5) cout<<"Heisei"<<endl;
  else cout<<"TBD"<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:13: error: invalid conversion from '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} to 'const char*' [-fpermissive]
    7 |   int a=atoi(s[6]);
      |         ~~~~^~~~~~
      |             |
      |             __gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type {aka char}
In file included from /usr/include/c++/14/cstdlib:79,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:42,
                 from a.cc:1:
/usr/include/stdlib.h:105:30: note:   initializing argument 1 of 'int atoi(const char*)'
  105 | extern int atoi (const char *__nptr)
      |                  ~~~~~~~~~~~~^~~~~~
a.cc:8:3: error: 'else' without a previous 'if'
    8 |   else if(a<5) cout<<"Heisei"<<endl;
      |   ^~~~
Language: C++

import re
s=input()
if int(re.match(r'(\d{4})/(\d{2})/(\d{2})',s).groups()[1])>4:
    print('TBD')
else:
    print('Heisei')

Compiler output:
a.cc:3:18: warning: unknown escape sequence: '\d'
    3 | if int(re.match(r'(\d{4})/(\d{2})/(\d{2})',s).groups()[1])>4:
      |                  ^~~~~~~~~~~~~~~~~~~~~~~~~
a.cc:3:18: warning: unknown escape sequence: '\d'
a.cc:3:18: warning: unknown escape sequence: '\d'
a.cc:3:18: warning: multi-character literal with 20 characters exceeds 'int' size of 4 bytes
a.cc:4:11: warning: multi-character character constant [-Wmultichar]
    4 |     print('TBD')
      |           ^~~~~
a.cc:6:11: warning: multi-character literal with 6 characters exceeds 'int' size of 4 bytes
    6 |     print('Heisei')
      |           ^~~~~~~~
a.cc:1:1: error: 'import' does not name a type
    1 | import re
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
Language: C++

#include <iostream>

int main(){
  string str;
  cin >> str;
  str = str.substr(5,2);
  cout << (str > "04"? "TBD":"Heisei") << endl;
  
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'string' was not declared in this scope
    4 |   string str;
      |   ^~~~~~
a.cc:4:3: note: suggested alternatives:
In file included from /usr/include/c++/14/iosfwd:41,
                 from /usr/include/c++/14/ios:40,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
In file included from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44:
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   cin >> str;
      |   ^~~
      |   std::cin
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:5:10: error: 'str' was not declared in this scope; did you mean 'std'?
    5 |   cin >> str;
      |          ^~~
      |          std
a.cc:7:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |   cout << (str > "04"? "TBD":"Heisei") << 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:7:43: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |   cout << (str > "04"? "TBD":"Heisei") << 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 <iostream>
#include <string>
#include <typeinfo>
using namespace std;
int main(){
  string s;
  cin >> s;
  string m=substr(5,2);
  if (m.at(1)='/') m.substr(0,1);
  int mm=stoi(m);
  if (mm < 5) cout << "heisei" << endl;
  else cout << "TBD" << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: 'substr' was not declared in this scope
    8 |   string m=substr(5,2);
      |            ^~~~~~
a.cc:9:28: warning: ignoring return value of 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc> std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::substr(size_type, size_type) const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]', declared with attribute 'nodiscard' [-Wunused-result]
    9 |   if (m.at(1)='/') m.substr(0,1);
      |                    ~~~~~~~~^~~~~
In file included from /usr/include/c++/14/string:54,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/basic_string.h:3208:7: note: declared here
 3208 |       substr(size_type __pos = 0, size_type __n = npos) const
      |       ^~~~~~
Language: C++

#include <iostream>
#include <string>
#include <vector>

using namespace std;
#define rep(i,n) for(int (i)=0;(i)<(n);(i)++)

int main(){
  inr y,m,d;
  char a,b;
  cin >> y >> a >> m >> y >> b;
  if(m <= 4)cout << "Heisei" << endl;
  else cout << "TDB" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: 'inr' was not declared in this scope; did you mean 'int'?
    9 |   inr y,m,d;
      |   ^~~
      |   int
a.cc:11:10: error: 'y' was not declared in this scope
   11 |   cin >> y >> a >> m >> y >> b;
      |          ^
a.cc:11:20: error: 'm' was not declared in this scope
   11 |   cin >> y >> a >> m >> y >> b;
      |                    ^
Language: C++

#include <iostream>
#include <string>
#include <vector>
 
using namespace std;
#define rep(i,n) for(int (i)=0;(i)<(n);(i)++)
 
int main(){
  inr y,m,d;
  char x,y;
  cin >> y >> x >> m >> y >> d;
  if(m <= 4)cout << "Heisei" << endl;
  else cout << "TDB" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: 'inr' was not declared in this scope; did you mean 'int'?
    9 |   inr y,m,d;
      |   ^~~
      |   int
a.cc:11:20: error: 'm' was not declared in this scope
   11 |   cin >> y >> x >> m >> y >> d;
      |                    ^
a.cc:11:30: error: 'd' was not declared in this scope
   11 |   cin >> y >> x >> m >> y >> d;
      |                              ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define int long long
signed main(){
    int y, m, d;
    char dc1, dc2;
    cin>>y>>c1>>m>>c2>>d;
    if(m<=4){
        cout<<"Heisei"; return 0;
    }
    else cout<<"TBD";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:13: error: 'c1' was not declared in this scope; did you mean 'dc1'?
    7 |     cin>>y>>c1>>m>>c2>>d;
      |             ^~
      |             dc1
a.cc:7:20: error: 'c2' was not declared in this scope; did you mean 'dc2'?
    7 |     cin>>y>>c1>>m>>c2>>d;
      |                    ^~
      |                    dc2
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  string s;
  cin >> s;
  if(s.at(6)== 1 || s.at(6)== 2 || s.at(6)== 3 || s.at(6)== 4 ){
    if(s.at(5)== 0){
      cout << "Heisei" << endl;
    }else{
      cout << "TBD" << endl;
  }else{
      cout << "TBD" << endl;
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:4: error: expected '}' before 'else'
   11 |   }else{
      |    ^~~~
a.cc:6:64: note: to match this '{'
    6 |   if(s.at(6)== 1 || s.at(6)== 2 || s.at(6)== 3 || s.at(6)== 4 ){
      |                                                                ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  string s;
  cin >> s;
  if(s.at(6)== "1" || s.at(6)== "2" || s.at(6)== "3" || s.at(6)== "4" ){
    if(s.at(5)== "0"){
      cout << "Heisei" << endl;
    }else{
      cout << "TBD" << endl;
  }else{
      cout << "TBD" << endl;
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    6 |   if(s.at(6)== "1" || s.at(6)== "2" || s.at(6)== "3" || s.at(6)== "4" ){
      |      ~~~~~~~^~~~~~
a.cc:6:30: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    6 |   if(s.at(6)== "1" || s.at(6)== "2" || s.at(6)== "3" || s.at(6)== "4" ){
      |                       ~~~~~~~^~~~~~
a.cc:6:47: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    6 |   if(s.at(6)== "1" || s.at(6)== "2" || s.at(6)== "3" || s.at(6)== "4" ){
      |                                        ~~~~~~~^~~~~~
a.cc:6:64: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    6 |   if(s.at(6)== "1" || s.at(6)== "2" || s.at(6)== "3" || s.at(6)== "4" ){
      |                                                         ~~~~~~~^~~~~~
a.cc:7:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |     if(s.at(5)== "0"){
      |        ~~~~~~~^~~~~~
a.cc:11:4: error: expected '}' before 'else'
   11 |   }else{
      |    ^~~~
a.cc:6:72: note: to match this '{'
    6 |   if(s.at(6)== "1" || s.at(6)== "2" || s.at(6)== "3" || s.at(6)== "4" ){
      |                                                                        ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  string S;
  cin>>S;
  if(S.at(5)=='1')
    cout<<"Heisei"<<endl;
  else if(S.at(5)=='2')
    cout<<"Heisei"<<endl
  else if(S.at(5)=='3')
    cout<<"Heisei"<<endl;
  else if(S.at(5)=='4')
    cout<<"Heisei"<<endl;
  else
    cout<<"TBD"<<endl;
  }

Compiler output:
a.cc: In function 'int main()':
a.cc:9:25: error: expected ';' before 'else'
    9 |     cout<<"Heisei"<<endl
      |                         ^
      |                         ;
   10 |   else if(S.at(5)=='3')
      |   ~~~~
Language: C++

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

int main() {
  
  string s;
  cin >> s;
  
  if (s.at(5)=='0' && (vec.at(6)=='1'||vec.at(6)=='2'||vec.at(6)=='3'||vec.at(6)=='4')) {
    cout << "Heisei" << endl;
  }
  
  else cout << "TBD" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:24: error: 'vec' was not declared in this scope
    9 |   if (s.at(5)=='0' && (vec.at(6)=='1'||vec.at(6)=='2'||vec.at(6)=='3'||vec.at(6)=='4')) {
      |                        ^~~
Language: C++

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

int main() {
  
  string s;
  cin >> s;
  
  if (s.at(5)=='0' && (vec.at(6)=='1'||vec.at(6)=='2'||vec.at(6)=='3'||vec.at(6)=='4')) {
    cout << "Heisei" << endl;
  }
  
  else cout << TBD << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:24: error: 'vec' was not declared in this scope
    9 |   if (s.at(5)=='0' && (vec.at(6)=='1'||vec.at(6)=='2'||vec.at(6)=='3'||vec.at(6)=='4')) {
      |                        ^~~
a.cc:13:16: error: 'TBD' was not declared in this scope
   13 |   else cout << TBD << endl;
      |                ^~~
Language: C++

#include <iostream>
#include <cstdlib>
#include <vector>
#include <algorithm>
using namespace std;

int main() {
  string str, year, mon, day;
  cin >> str;
  int y, m, d;
  year = str[0] + str[1] + str[2] + str[3];
  y = (int)year;
  mon = str[5] + str[6];
  m = (int)mon;
  day = str[8] + str[9];
  d = (int)day;
  

  if(y < 2019) {
    cout << "Heisei" << endl;
    return 0;
  }
  else if(m < 4) {
    cout << "Heisei" << endl;
    return 0;
  }
  else if(d <= 30) {
    cout << "Heisei" << endl;
    return 0;
  }
  else
    cout << "TBD" << endl;
  return 0;
  
		 
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:7: error: invalid cast from type 'std::string' {aka 'std::__cxx11::basic_string<char>'} to type 'int'
   12 |   y = (int)year;
      |       ^~~~~~~~~
a.cc:14:7: error: invalid cast from type 'std::string' {aka 'std::__cxx11::basic_string<char>'} to type 'int'
   14 |   m = (int)mon;
      |       ^~~~~~~~
a.cc:16:7: error: invalid cast from type 'std::string' {aka 'std::__cxx11::basic_string<char>'} to type 'int'
   16 |   d = (int)day;
      |       ^~~~~~~~
Language: C++

    #include <bits/stdc++.h>
    using namespace std;
     
    int main(){
      string s;
      cin >> s;
      if(4<(int)(s.substr(5,2))) cout << "TBD" << endl;
      else cout << "Heisei" << endl;
      return 0;
    }

Compiler output:
a.cc: In function 'int main()':
a.cc:7:12: error: invalid cast from type 'std::__cxx11::basic_string<char>' to type 'int'
    7 |       if(4<(int)(s.substr(5,2))) cout << "TBD" << endl;
      |            ^~~~~~~~~~~~~~~~~~~~
Language: C++

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

int main(){
  string s;
  cin >> s;
  if(4<(int)s.substr(5,2)) cout << "TBD" << endl;
  else cout << "Heisei" << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:8: error: invalid cast from type 'std::__cxx11::basic_string<char>' to type 'int'
    7 |   if(4<(int)s.substr(5,2)) cout << "TBD" << endl;
      |        ^~~~~~~~~~~~~~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main (){
  bool a=0;
  string s;
  cin>>s;
  if(s[5]=='1'){
  a=1;
  }
    else if(s[6]>"4")
      a=1;
  if(a==1)
    cout<<"TBD";
  else
    cout<<"Heisei";
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:17: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |     else if(s[6]>"4")
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main (){
  bool a=0;
  string s;
  cin>>s;
  string c=substr(s,6,1);
  if(s[5]=='1'){
  a=1;
  }
    else if(c[0]>"4")
      a=1;
  if(a=1)
    cout<<"TBD";
  else
    cout<<"Heisei";
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:12: error: 'substr' was not declared in this scope; did you mean 'strstr'?
    7 |   string c=substr(s,6,1);
      |            ^~~~~~
      |            strstr
a.cc:11:17: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |     else if(c[0]>"4")
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main (){
  bool a=0;
  string s;
  cin>>s;
  string c=substr(6,6,s);
  if(s[5]=='1'){
  a=1;
  }
    else if(c[0]>"4")
      a=1;
  if(a=1)
    cout<<"TBD";
  else
    cout<<"Heisei";
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:12: error: 'substr' was not declared in this scope; did you mean 'strstr'?
    7 |   string c=substr(6,6,s);
      |            ^~~~~~
      |            strstr
a.cc:11:17: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |     else if(c[0]>"4")
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main (){
  bool a=0;
  string s;
  string c=substr(6,6);
  cin>>s;
  if(s[5]=='1'){
  a=1;
  }
    else if(c[0]>"4")
      a=1;
  if(a=TRUE)
    cout<<"TBD";
  else
    cout<<"Heisei";
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:12: error: 'substr' was not declared in this scope; did you mean 'strstr'?
    6 |   string c=substr(6,6);
      |            ^~~~~~
      |            strstr
a.cc:11:17: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |     else if(c[0]>"4")
a.cc:13:8: error: 'TRUE' was not declared in this scope
   13 |   if(a=TRUE)
      |        ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main (){
  bool a=0;
  string s;
  int c;
  cin>>s;
  const char b=s[6];
  c=atoi(s[6]);
  if(s[5]=='1'){
  a=1;
  }
    else if(c>4)
      a=1;
  if(a=TRUE)
    cout<<"TBD";
  else
    cout<<"Heisei";
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: invalid conversion from '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} to 'const char*' [-fpermissive]
    9 |   c=atoi(s[6]);
      |     ~~~~^~~~~~
      |         |
      |         __gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type {aka char}
In file included from /usr/include/c++/14/cstdlib:79,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:42,
                 from a.cc:1:
/usr/include/stdlib.h:105:30: note:   initializing argument 1 of 'int atoi(const char*)'
  105 | extern int atoi (const char *__nptr)
      |                  ~~~~~~~~~~~~^~~~~~
a.cc:15:8: error: 'TRUE' was not declared in this scope
   15 |   if(a=TRUE)
      |        ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main (){
  bool a=0;
  string s;
  int c;
  cin>>s;
  const char b=s[6];
  c=atoi(b);
  if(s[5]=='1'){
  a=1;
  }
    else if(c>4)
      a=1;
  if(a=TRUE)
    cout<<"TBD";
  else
    cout<<"Heisei";
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:10: error: invalid conversion from 'char' to 'const char*' [-fpermissive]
    9 |   c=atoi(b);
      |          ^
      |          |
      |          char
In file included from /usr/include/c++/14/cstdlib:79,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:42,
                 from a.cc:1:
/usr/include/stdlib.h:105:30: note:   initializing argument 1 of 'int atoi(const char*)'
  105 | extern int atoi (const char *__nptr)
      |                  ~~~~~~~~~~~~^~~~~~
a.cc:15:8: error: 'TRUE' was not declared in this scope
   15 |   if(a=TRUE)
      |        ^~~~
Language: Java

import java.util.Scanner;

public class Main{
  public static void main(String[] args){
    Scanner sc=new Scanner(System.in);
    final String S=sc.next();
    String[] s=S.split("/");
    int y=Integer.parseInt(s[0]);
    int m=Integer.parseInt(s[1]);
    int d=Integer.parseInt(s[2]);
    boolean flg=false;
    if(y<=2019){
      if(m<=4){
        if(d<=30){
          flg=true;
        }
      }
    }
    if(flg){
      System.out.println("Heisei");
    }else{
      System.out.prinln("TBD");
    }
  }
}

Compiler output:
Main.java:22: error: cannot find symbol
      System.out.prinln("TBD");
                ^
  symbol:   method prinln(String)
  location: variable out of type PrintStream
1 error
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main (){
  bool a=0;
  string s;
  cin>>s;
  const char b=s[6];
  if(s[5]=='1'){
  a=1;
  }
    else if(atoi(b)>4)
      a=1;
  if(a=TRUE)
    cout<<"TBD";
  else
    cout<<"Heisei";
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:18: error: invalid conversion from 'char' to 'const char*' [-fpermissive]
   11 |     else if(atoi(b)>4)
      |                  ^
      |                  |
      |                  char
In file included from /usr/include/c++/14/cstdlib:79,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:42,
                 from a.cc:1:
/usr/include/stdlib.h:105:30: note:   initializing argument 1 of 'int atoi(const char*)'
  105 | extern int atoi (const char *__nptr)
      |                  ~~~~~~~~~~~~^~~~~~
a.cc:13:8: error: 'TRUE' was not declared in this scope
   13 |   if(a=TRUE)
      |        ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main (){
  bool a=0;
  string s;
  cin>>s;
  const b=s[6];
  if(s[5]=='1'){
  a=1;
  }
    else if(atoi(b)>4)
      a=1;
  if(a=TRUE)
    cout<<"TBD";
  else
    cout<<"Heisei";
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: 'b' does not name a type
    7 |   const b=s[6];
      |         ^
a.cc:11:18: error: 'b' was not declared in this scope
   11 |     else if(atoi(b)>4)
      |                  ^
a.cc:13:8: error: 'TRUE' was not declared in this scope
   13 |   if(a=TRUE)
      |        ^~~~