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

#include <bits/stdc++.h>
using namespace std;
int main (){
  bool a=0;
  string s;
  char b;
  cin>>s;
  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:12:18: error: invalid conversion from 'char' to 'const char*' [-fpermissive]
   12 |     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:14:8: error: 'TRUE' was not declared in this scope
   14 |   if(a=TRUE)
      |        ^~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:17: error: invalid conversion from '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} to 'const char*' [-fpermissive]
   11 |     else if(atoi(s[6])>4)
      |             ~~~~^~~~~~
      |                 |
      |                 __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: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(){
    
    string s;
    cin >> s;
    int a=1000*s.at(0)+100*s.at(1)+10*s.at(2)+s.at(3);
    if(a<2019){cout <<"Heisei"<< endl;return 0;}
    if(a>2019){cout <<"TBD"<< endl;return 0;}
    int a=10*s.at(5)+s.at(6);
    if(a<04){cout <<"Heisei"<< endl;return 0;}
    if(a>04){cout <<"TBD"<< endl;return 0;}
    int a=10*s.at(8)+s.at(9);
    if(a<=30){cout <<"Heisei"<< endl;return 0;}
    if(a>30){cout <<"TBD"<< endl;return 0;}
    
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:9: error: redeclaration of 'int a'
   12 |     int a=10*s.at(5)+s.at(6);
      |         ^
a.cc:9:9: note: 'int a' previously declared here
    9 |     int a=1000*s.at(0)+100*s.at(1)+10*s.at(2)+s.at(3);
      |         ^
a.cc:15:9: error: redeclaration of 'int a'
   15 |     int a=10*s.at(8)+s.at(9);
      |         ^
a.cc:9:9: note: 'int a' previously declared here
    9 |     int a=1000*s.at(0)+100*s.at(1)+10*s.at(2)+s.at(3);
      |         ^
Language: C++

#include <bits/stdc++.h>

using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:68: error: expected ')' before '{' token
    7 |   if(s[5]=='0' && (s[6]=='1' || s[6]=='2' || s[6]=='3' ||s[6]=='4'){
      |     ~                                                              ^
      |                                                                    )
a.cc:13:1: error: expected primary-expression before '}' token
   13 | }
      | ^
Language: C++

#include<iostream>
using namespace std;
int main(void){
  int a,b,c;
  string s,t,u;
 cin >> s;
  t = s.erase(4,1);
  u = t.erace(6,1);
  if(stoi(u) <= 20190430){
    cout << "Heisei";
  }else{
    cout << "TBD";
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'erace'; did you mean 'erase'?
    8 |   u = t.erace(6,1);
      |         ^~~~~
      |         erase
Language: C++

#include<iostream>
using namespace std;
int main(void){
  int a,b,c;
  string s;
 cin >> s;
  s.erase(4,1);
  s.erace(7,1);
  if(stoi(s) <= 20190430){
    cout << "Heisei";
  }else{
    cout << "TBD";
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'erace'; did you mean 'erase'?
    8 |   s.erace(7,1);
      |     ^~~~~
      |     erase
Language: C++

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

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

	int y = 0, m = 0, d = 0;
	sscanf_s(s.c_str(), "%d/%d/%d", &y, &m, &d);

	if (2019 < y || (2019 == y && 5 <= m)) {
		cout << "TBD" << endl;
	}
	else {
		cout << "Heisei" << endl;
	}

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:9: error: 'sscanf_s' was not declared in this scope; did you mean 'sscanf'?
   11 |         sscanf_s(s.c_str(), "%d/%d/%d", &y, &m, &d);
      |         ^~~~~~~~
      |         sscanf
Language: C++

s = input()
before = ("Heisei")
after = ("TBD")
if s[6] == "1":
    print(before)
elif s[6] == "2":
    print(before)
elif s[6] == "3":
    print(before)
elif s[6] == "4":
    print(before)
else:
    print(after)

Compiler output:
a.cc:1:1: error: 's' does not name a type
    1 | s = input()
      | ^
Language: C++

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

int main(){
  string S,Gengou;
  cin >> S;
  int yy,mm,dd;
  yy = S.substr(0,4);
  mm = S.substr(5,2);
  dd = S.substr(8,2);
  
  Gengou = "Heisei";
  if(yy>2019)Gengou = "TBD";
  else if(yy=2019 && mm>4)Gengou = "TBD";
  
  cout << Gengou << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:16: error: cannot convert 'std::__cxx11::basic_string<char>' to 'int' in assignment
    8 |   yy = S.substr(0,4);
      |        ~~~~~~~~^~~~~
      |                |
      |                std::__cxx11::basic_string<char>
a.cc:9:16: error: cannot convert 'std::__cxx11::basic_string<char>' to 'int' in assignment
    9 |   mm = S.substr(5,2);
      |        ~~~~~~~~^~~~~
      |                |
      |                std::__cxx11::basic_string<char>
a.cc:10:16: error: cannot convert 'std::__cxx11::basic_string<char>' to 'int' in assignment
   10 |   dd = S.substr(8,2);
      |        ~~~~~~~~^~~~~
      |                |
      |                std::__cxx11::basic_string<char>
Language: C++

#include<iostream>

using namespace std;

int main()
{
    char S[11];
    cin >> S;

    char A[9] = {'\0'};
    for(int i = 0; i < 4; i++){
        A[i] = S[i];
    }
    for(int i = 4; i < 6; i++){
        A[i] = S[i + 1];
    }
    for(int i = 6; i < 8; i++){
        A[i] = S[i + 2];
    }

    if(strcmp(A, "20190430") <= 0){
        cout << "Heisei";
    }
    else{
        cout << "TBD";
    }
    cout << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:8: error: 'strcmp' was not declared in this scope
   21 |     if(strcmp(A, "20190430") <= 0){
      |        ^~~~~~
a.cc:2:1: note: 'strcmp' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    1 | #include<iostream>
  +++ |+#include <cstring>
    2 |
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'stirng' was not declared in this scope
    4 |   stirng S;
      |   ^~~~~~
a.cc:5:10: error: 'S' was not declared in this scope
    5 |   cin >> S;
      |          ^
Language: C++

#include <iostream>
#include <math.h>
#include <algorithm>
#include <iomanip>
using namespace std;

int main()
{
    int m,n,o,i,j,k;
    float f,g,h;
    char c,d;
    //string a;
    //cin>>m;
    cin>>m>>c>>n>>d>>i;
    //cin>>f>>g;
    //cin>>c;
    if(n>4||(n==4%%i==31)) cout<<"TBD";
    else cout<<"Heisei";
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:19: error: expected primary-expression before '%' token
   17 |     if(n>4||(n==4%%i==31)) cout<<"TBD";
      |                   ^
Language: C

#include<stdio.h>

int main() {
	int num1,num2,num3,num4=0;
	scanf_s("%d", &num1);
	scanf_s("%d" ,& num2);
	scanf_s("%d" ,& num3);
	if (2020 >= num1) {
	num4=1;
	}
	else if (num1==2019 && num2>=5) {
		num4 = 1;
	}
	else if (num1==2019&&num2==4&&num3 >= 30) {
		num4 = 1;
	}
	
	if (num4 != 1) {
		printf("TBD");
	}
	else {
		printf("Heisei");
	}
	return 0;

}

Compiler output:
main.c: In function 'main':
main.c:5:9: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    5 |         scanf_s("%d", &num1);
      |         ^~~~~~~
      |         scanf
Language: C++

#include<stdio.h>

int main() {
	int num1,num2,num3,num4=0;
	scanf_s("%d", &num1);
	scanf_s("%d" ,& num2);
	scanf_s("%d" ,& num3);
	if (2020 >= num1) {
	num4=1;
	}
	else if (num1==2019 && num2>=5) {
		num4 = 1;
	}
	else if (num1==2019&&num2==4&&num3 >= 30) {
		num4 = 1;
	}
	
	if (num4 != 1) {
		printf("TBD");
	}
	else {
		printf("Heisei");
	}
	return 0;

}

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("%d", &num1);
      |         ^~~~~~~
      |         scanf
Language: C


#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <string.h>
int main(void)
{
	int year, tuki, niti;
	scanf(" %d %d %d", year, tuki, niti);
	if (year < 2019) {
		printf("Heisei");
		break;
	}
	else
		if (tuki < 4 && niti <= 30)printf("Heisei");
		else printf("TBD")
	
}

Compiler output:
main.c: In function 'main':
main.c:11:17: error: break statement not within loop or switch
   11 |                 break;
      |                 ^~~~~
main.c:15:35: error: expected ';' before '}' token
   15 |                 else printf("TBD")
      |                                   ^
      |                                   ;
   16 | 
   17 | }
      | ~
Language: C++

#include<stdio.h>

int main(void) {
    char s[11];
    scanf("%s", &s);
    if(s[6] == "0") {
        if(s[7] == "1" || s[7] == "2" || s[7] == "3" || s[7] == "4") {
            printf("Heisei");
        } else printf("TBD"); 
    } else printf("TBD");

    return 0;
    
}


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[6] == "0") {
      |        ~~~~~^~~~~~
a.cc:7:17: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |         if(s[7] == "1" || s[7] == "2" || s[7] == "3" || s[7] == "4") {
      |            ~~~~~^~~~~~
a.cc:7:32: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |         if(s[7] == "1" || s[7] == "2" || s[7] == "3" || s[7] == "4") {
      |                           ~~~~~^~~~~~
a.cc:7:47: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |         if(s[7] == "1" || s[7] == "2" || s[7] == "3" || s[7] == "4") {
      |                                          ~~~~~^~~~~~
a.cc:7:62: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |         if(s[7] == "1" || s[7] == "2" || s[7] == "3" || s[7] == "4") {
      |                                                         ~~~~~^~~~~~
Language: C++


#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <map>
#include <set>
#include <cmath>
#include <random>

using namespace std;




int main()
{
	int y,m,d;

	scanf_s("%d/%d/%d",&y,&m,&d);

	if (m > 4){
		printf("TBD");
	}
	else {
		if (m < 4) {
			printf("Heisei");
		}
		else {
			if (d <= 30) {
				printf("Heisei");
			}
			else {
				printf("TBD");
			}
		}
	}


	return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:20:9: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
   20 |         scanf_s("%d/%d/%d",&y,&m,&d);
      |         ^~~~~~~
      |         scanf
Language: Java

function Main(input) {
	input = new Date(input).getTime();
    var check = new Date("2019/04/30").getTime();
   console.log((input <= check) ? "Heisei" : "TBD");
}

Main(require("fs").readFileSync("/dev/stdin", "utf8"));


Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
function Main(input) {
^
  (use --enable-preview to enable unnamed classes)
Main.java:1: error: <identifier> expected
function Main(input) {
                   ^
Main.java:7: error: class, interface, enum, or record expected
Main(require("fs").readFileSync("/dev/stdin", "utf8"));
^
3 errors
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for(int i = 0; i < (int)(n); i++)
#define SORT(c) sort((c).begin(),(c).end())
#define REVERSE(c) reverse((c).begin(), (c).end());
const long long MOD = 10e9 + 7;
typedef long long ll;

int main(){
	string S;
	cin >> S;
	string ans = "TBD";
	string A = S.at(6);
	for(int i = 1; i < 5; i++){
		if(A == to_string(i)){
			ans = "heisei";
			break;
		}
	}
	cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:24: error: conversion from '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
   13 |         string A = S.at(6);
      |                    ~~~~^~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for(int i = 0; i < (int)(n); i++)
#define SORT(c) sort((c).begin(),(c).end())
#define REVERSE(c) reverse((c).begin(), (c).end());
const long long MOD = 10e9 + 7;
typedef long long ll;

int main(){
	string S;
	cin >> S;
	string ans = "TBD";
	string A = S[6];
	for(int i = 1; i < 5; i++){
		if(A == to_string(i)){
			ans = "heisei";
			break;
		}
	}
	cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:23: error: conversion from '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
   13 |         string A = S[6];
      |                       ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for(int i = 0; i < (int)(n); i++)
#define SORT(c) sort((c).begin(),(c).end())
#define REVERSE(c) reverse((c).begin(), (c).end());
const long long MOD = 10e9 + 7;
typedef long long ll;

int main(){
	string S;
	cin >> S;
	int ans;
	if(S.at(6) <= 4)ans = "heisei";
	else ans = "TBD";
	cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:31: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
   13 |         if(S.at(6) <= 4)ans = "heisei";
      |                               ^~~~~~~~
      |                               |
      |                               const char*
a.cc:14:20: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
   14 |         else ans = "TBD";
      |                    ^~~~~
      |                    |
      |                    const char*
Language: C++

#include<iostream>
#include<string>
#include<cstdio>
#include<cstring>
#include<vector>
#include<cmath>
#include<algorithm>
#include<functional>
#include<iomanip>
#include<queue>
#include<ciso646>
#include<random>
#include<map>
#include<set>
#include<complex>
#include<bitset>
#include<stack>
#include<unordered_map>
#include<utility>
#include<cassert>
using namespace std;

typedef long long ll;
typedef unsigned long long ul;
typedef unsigned int ui;
typedef long double ld;
const ll mod = 1000000007;
const ll INF = mod * mod;
#define rep(i,n) for(int i=0;i<n;i++)
#define per(i,n) for(int i=n-1;i>=0;i--)
#define Rep(i,sta,n) for(int i=sta;i<n;i++)
#define rep1(i,n) for(int i=1;i<=n;i++)
#define per1(i,n) for(int i=n;i>=1;i--)
#define Rep1(i,sta,n) for(int i=sta;i<=n;i++)
typedef complex<ld> Point;
const ld eps = 1e-8;
const ld pi = acos(-1.0);
typedef pair<int, int> P;
typedef pair<ld, ld> LDP;
typedef pair<ll, ll> LP;
typedef vector<int> vec;
typedef vector<string> svec;
#define fr first
#define sc second
#define all(c) c.begin(),c.end()
#define pb push_back
//#define int long long

void solve() {
	string s; cin >> s;
    if(s[5] == '0' && (s[6] == '1' || s[6] == '2' || s[6] == '3' || s[6] == '4') {
    	cout << "Heisei" << endl; return;
    }
    else {
        cout << "TBD" << endl;
    }
}

signed main() {
	ios::sync_with_stdio(false);
	cin.tie(0);
	//cout << fixed << setprecision(10);
	//init();
	solve();
	//cout << "finish" << endl;
    return 0;
}


Compiler output:
a.cc: In function 'void solve()':
a.cc:51:81: error: expected ')' before '{' token
   51 |     if(s[5] == '0' && (s[6] == '1' || s[6] == '2' || s[6] == '3' || s[6] == '4') {
      |       ~                                                                         ^~
      |                                                                                 )
a.cc:57:1: error: expected primary-expression before '}' token
   57 | }
      | ^
Language: Java

import java.util.*;
import java.text.SimpleDateFormat;
 
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
        SimpleDateFormat format = new SimpleDateFormat("yyyy/MM/dd");
        try {
          Date date = format.parse(sc.next());
          Date last = format.parse("2019/04/30");
    
		  // 出力
		  System.out.println(date.after(last) ? "TBD" : "Heisei");
        } catch (Exception e) {
        }
	}

Compiler output:
Main.java:16: error: reached end of file while parsing
	}
	 ^
1 error
Language: Java

import java.util.*;
import java.text.SimpleDateFormat;
 
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
        SimpleDateFormat format = new SimpleDateFormat("yyyy/MM/dd");
        try {
          Date date = format.parse(sc.next());
          Date last = format.parse("2019/04/30");
    
		  
		  System.out.println(date.after(last) ? "TBD" : "Heisei");
        } catch (Exception e) {
        }
	}

Compiler output:
Main.java:16: error: reached end of file while parsing
	}
	 ^
1 error
Language: C++

#include<iostream>
#include<string>
#include<cstdio>
#include<cstring>
#include<vector>
#include<cmath>
#include<algorithm>
#include<functional>
#include<iomanip>
#include<queue>
#include<ciso646>
#include<random>
#include<map>
#include<set>
#include<complex>
#include<bitset>
#include<stack>
#include<unordered_map>
#include<utility>
#include<cassert>
using namespace std;

typedef long long ll;
typedef unsigned long long ul;
typedef unsigned int ui;
typedef long double ld;
const ll mod = 1000000007;
const ll INF = mod * mod;
#define rep(i,n) for(int i=0;i<n;i++)
#define per(i,n) for(int i=n-1;i>=0;i--)
#define Rep(i,sta,n) for(int i=sta;i<n;i++)
#define rep1(i,n) for(int i=1;i<=n;i++)
#define per1(i,n) for(int i=n;i>=1;i--)
#define Rep1(i,sta,n) for(int i=sta;i<=n;i++)
typedef complex<ld> Point;
const ld eps = 1e-8;
const ld pi = acos(-1.0);
typedef pair<int, int> P;
typedef pair<ld, ld> LDP;
typedef pair<ll, ll> LP;
typedef vector<int> vec;
typedef vector<string> svec;
#define fr first
#define sc second
#define all(c) c.begin(),c.end()
#define pb push_back
//#define int long long

void solve() {
	string s; cin >> s;
    if(s[5] == 0 && (s[6] == 1 || s[6] == 2 || s[6] == 3 || s[6] == 4) {
    	cout << "Heisei" << endl; return;
    }
    else {
        cout << "TBD" << endl;
    }
}

signed main() {
	ios::sync_with_stdio(false);
	cin.tie(0);
	//cout << fixed << setprecision(10);
	//init();
	solve();
	//cout << "finish" << endl;
    return 0;
}

Compiler output:
a.cc: In function 'void solve()':
a.cc:51:71: error: expected ')' before '{' token
   51 |     if(s[5] == 0 && (s[6] == 1 || s[6] == 2 || s[6] == 3 || s[6] == 4) {
      |       ~                                                               ^~
      |                                                                       )
a.cc:57:1: error: expected primary-expression before '}' token
   57 | }
      | ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:13: error: no matching function for call to 'stoi(__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type&)'
    7 |   int x=stoi(s[6]);
      |         ~~~~^~~~~~
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 '__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 S;
  cin >>S;
  
  string ans;
  if(S[6]>4) ans = TBD;
  else ans = Heisei;
  
  cout << ans <<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:20: error: 'TBD' was not declared in this scope
    9 |   if(S[6]>4) ans = TBD;
      |                    ^~~
a.cc:10:14: error: 'Heisei' was not declared in this scope
   10 |   else ans = Heisei;
      |              ^~~~~~
Language: C++

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

Compiler output:
a.cc:3:1: error: expected unqualified-id before '{' token
    3 | {
      | ^
Language: C++

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

string S;

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

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

#include <iostream>
#include <vector>
#include <cmath>
using namespace std;
void chmin(int &a, int b) { if (a > b) a = b; }

int N, A, B, C;
vector<int> L;

// 再帰
int rec(int i, int a, int b, int c) {
    if (i == N) {
        if (!a || !b || !c) return INF; // A, B, C いずれも竹は 1 本は必ず使ってないとダメ
        return abs(a - A) + abs(b - B) + abs(c - C); // 合体してできた a, b, c を A, B, C にするコスト
    }

    // 今ある竹を採用しない場合
    int res = rec(i+1, a, b, c);
    
    // A, B, C を使う場合。
    // (a ? 10 : 0) とかは、最初の 1 本目は合体コストなし、2 本目からはコスト 10 かかることを意味する
    chmin(res, rec(i+1, a + L[i], b, c) + (a ? 10 : 0));
    chmin(res, rec(i+1, a, b + L[i], c) + (b ? 10 : 0));
    chmin(res, rec(i+1, a, b, c + L[i]) + (c ? 10 : 0));
    
    return res;
}

int main() {
    // 入力
    cin >> N >> A >> B >> C;
    L.resize(N);
    for (int i = 0; i< N; ++i) cin >> L[i];
    
    // 再帰する
    cout << rec(0, 0, 0, 0) << endl;
}

Compiler output:
a.cc: In function 'int rec(int, int, int, int)':
a.cc:13:36: error: 'INF' was not declared in this scope
   13 |         if (!a || !b || !c) return INF; // A, B, C いずれも竹は 1 本は必ず使ってないとダメ
      |                                    ^~~
Language: C++

#include <iostream>
#include <algorithm>
#include <stdint.h> // atoi 
using namespace std;
#define ct(string) cout << string << endl

int main() {
  string s;
  cin >> s;
  int tuki = atoi(s.substr(5,2));
  if (tuki > 4) ct("TBD");
  else ct("Heisei");
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:27: error: cannot convert 'std::__cxx11::basic_string<char>' to 'const char*'
   10 |   int tuki = atoi(s.substr(5,2));
      |                   ~~~~~~~~^~~~~
      |                           |
      |                           std::__cxx11::basic_string<char>
In file included from /usr/include/c++/14/cstdlib:79,
                 from /usr/include/c++/14/ext/string_conversions.h:43,
                 from /usr/include/c++/14/bits/basic_string.h:4154,
                 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/stdlib.h:105:30: note:   initializing argument 1 of 'int atoi(const char*)'
  105 | extern int atoi (const char *__nptr)
      |                  ~~~~~~~~~~~~^~~~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:26: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'st'; did you mean 'at'?
    7 |   if(s.at(5) == '0' && s.st(6) < '5')
      |                          ^~
      |                          at
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:26: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'st'; did you mean 'at'?
    7 |   if(s.at(5) == '0' && s.st(6) < 5)
      |                          ^~
      |                          at
Language: C++

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

int main(){
  string S;
  cin >> S;
  int A = stoi(S[5])*10 + stoi(S[6]);
  if(A <= 4) cout << "Heisei" << endl;
  else cout << "TBD" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:15: error: no matching function for call to 'stoi(__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type&)'
    7 |   int A = stoi(S[5])*10 + stoi(S[6]);
      |           ~~~~^~~~~~
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 '__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)
      |        ~~~~~~~~~~~~~~~^~~~~
a.cc:7:31: error: no matching function for call to 'stoi(__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type&)'
    7 |   int A = stoi(S[5])*10 + stoi(S[6]);
      |                           ~~~~^~~~~~
/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: Java

import java.util.Scanner;

public class StillTBD.java {

    public static void main(String[] args) {
        String s;
        String k="2019/04/30";
        Scanner input = new Scanner(System.in);
        s = input.nextLine();
        if(s == null ? k == null : s.equals(k))
        {
            System.out.println("Heisei");
        }
        else
        {
            System.out.println("TBD");
        }
        
    }
}

Compiler output:
Main.java:3: error: '{' expected
public class StillTBD.java {
                     ^
1 error
Language: Java

import java.util.Scanner;

public class StillTBD {

    public static void main(String[] args) {
        String s;
        String k="2019/04/30";
        Scanner input = new Scanner(System.in);
        s = input.nextLine();
        if(s == null ? k == null : s.equals(k))
        {
            System.out.println("Heisei");
        }
        else
        {
            System.out.println("TBD");
        }
        
    }
}

Compiler output:
Main.java:3: error: class StillTBD is public, should be declared in a file named StillTBD.java
public class StillTBD {
       ^
1 error
Language: Java

public class StillTBD {

    public static void main(String[] args) {
        String s;
        String k="2019/04/30";
        Scanner input = new Scanner(System.in);
        s = input.nextLine();
        if(s == null ? k == null : s.equals(k))
        {
            System.out.println("Heisei");
        }
        else
        {
            System.out.println("TBD");
        }
        
    }
}


Compiler output:
Main.java:1: error: class StillTBD is public, should be declared in a file named StillTBD.java
public class StillTBD {
       ^
Main.java:6: error: cannot find symbol
        Scanner input = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class StillTBD
Main.java:6: error: cannot find symbol
        Scanner input = new Scanner(System.in);
                            ^
  symbol:   class Scanner
  location: class StillTBD
3 errors
Language: C++

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

int main() {
 　int y,m,d;
   char c1, c2;
   cin >> y >> c1 >> m >> c2 >> d;
   if(y < 2019){
     cout << " Heisei " << endl;}
   else if (y == 2019 && m < 5){
      cout << "Heisei" << endl;}
   else{
     cout << "TBD" << endl;}
}


Compiler output:
a.cc:5:2: error: extended character 　 is not valid in an identifier
    5 |  　int y,m,d;
      |  ^
a.cc: In function 'int main()':
a.cc:5:2: error: '\U00003000int' was not declared in this scope
    5 |  　int y,m,d;
      |  ^~~~~
a.cc:7:11: error: 'y' was not declared in this scope; did you mean 'yn'?
    7 |    cin >> y >> c1 >> m >> c2 >> d;
      |           ^
      |           yn
a.cc:7:22: error: 'm' was not declared in this scope; did you mean 'tm'?
    7 |    cin >> y >> c1 >> m >> c2 >> d;
      |                      ^
      |                      tm
a.cc:7:33: error: 'd' was not declared in this scope
    7 |    cin >> y >> c1 >> m >> c2 >> d;
      |                                 ^
Language: C++

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

int main() {
 　int y,m,d;
   char c1, c2;
   cin >> y >> c1 >> m >> c2 >> d;
   if(y < 2019){
     cout << " Heisei " << endl;}
   else if (y == 2019 && m < 5){
      cout << "Heisei" << endl;}
   else{
     cout << TBD << endl;}
}


Compiler output:
a.cc:5:2: error: extended character 　 is not valid in an identifier
    5 |  　int y,m,d;
      |  ^
a.cc: In function 'int main()':
a.cc:5:2: error: '\U00003000int' was not declared in this scope
    5 |  　int y,m,d;
      |  ^~~~~
a.cc:7:11: error: 'y' was not declared in this scope; did you mean 'yn'?
    7 |    cin >> y >> c1 >> m >> c2 >> d;
      |           ^
      |           yn
a.cc:7:22: error: 'm' was not declared in this scope; did you mean 'tm'?
    7 |    cin >> y >> c1 >> m >> c2 >> d;
      |                      ^
      |                      tm
a.cc:7:33: error: 'd' was not declared in this scope
    7 |    cin >> y >> c1 >> m >> c2 >> d;
      |                                 ^
a.cc:13:14: error: 'TBD' was not declared in this scope
   13 |      cout << TBD << endl;}
      |              ^~~
Language: C++

#include <bits/stdc++.h>

#define mod 1000000007

using namespace std;
typedef long long ll; 
 
int main(void){
	
	int year, month, day;
	char c1, c2
	
	cin >> year >> c1 >> month >> c2 >> day;
	
	if(month <= 4)
		cout << "Heisei";
	else
		cout << "TBD";
	
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:9: error: expected initializer before 'cin'
   13 |         cin >> year >> c1 >> month >> c2 >> day;
      |         ^~~
Language: C++

#include<bits/stdc++.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
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:44: error: expected ';' before 'return'
    8 |   cout << (m <= 4 ? "Heisei":"TBD") << endl
      |                                            ^
      |                                            ;
    9 |   return 0;
      |   ~~~~~~
Language: C++

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

    
  

Compiler output:
a.cc: In function 'int main()':
a.cc:8:58: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'st'; did you mean 'at'?
    8 |     if(S.at(6)=='4' || S.at(6)=='3' || S.at(6)=='2' || S.st(6)=='1')
      |                                                          ^~
      |                                                          at
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:22: error: 'class std::__cxx11::basic_string<char>' has no member named 'stoi'
    6 |   if (s.substr(5, 6).stoi < 5) {
      |                      ^~~~
Language: Java

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String S = sc.next();
		String yyyy = S.substring(0, 4);
		String mm = S.substring(5, 7);
		String dd = S.substring(8, 10);

		if (Integer.parseInt(yyyy) >= 2019 && Integer.parseInt(mm) >= 5) {
			System.out.println("TBD");
		} else {
			System.out.println("Heisei");
		}



	}

Compiler output:
Main.java:20: error: reached end of file while parsing
	}
	 ^
1 error
Language: C++

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

int main(void){
  stirng S;
  cin >> S;
  string ret;
  if(S[6] > '4') ret = "TBD";
  else if(S[5] == '1') ret = "TBD";
  else ret = "Heisei";
  cout << ret << endl;
  return 0;  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'stirng' was not declared in this scope
    5 |   stirng S;
      |   ^~~~~~
a.cc:6:10: error: 'S' was not declared in this scope
    6 |   cin >> S;
      |          ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  string S;
  cin >> S;
  int A,B;
  A=stoi(&S[0],4);
  B=stoi(&S[5],2);
  if(A>2019)cout << "TBD" << endl;
  else if(A<2019)cout << "Heisei" << endl;
  else if(B>4)cout << "TBD" << endl;
  else if(B<5)cout << "Heisei" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:16: error: invalid conversion from 'int' to 'std::size_t*' {aka 'long unsigned int*'} [-fpermissive]
    7 |   A=stoi(&S[0],4);
      |                ^
      |                |
      |                int
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:37: note:   initializing argument 2 of 'int std::__cxx11::stoi(const std::string&, std::size_t*, int)'
 4164 |   stoi(const string& __str, size_t* __idx = 0, int __base = 10)
      |                             ~~~~~~~~^~~~~~~~~
a.cc:8:16: error: invalid conversion from 'int' to 'std::size_t*' {aka 'long unsigned int*'} [-fpermissive]
    8 |   B=stoi(&S[5],2);
      |                ^
      |                |
      |                int
/usr/include/c++/14/bits/basic_string.h:4164:37: note:   initializing argument 2 of 'int std::__cxx11::stoi(const std::string&, std::size_t*, int)'
 4164 |   stoi(const string& __str, size_t* __idx = 0, int __base = 10)
      |                             ~~~~~~~~^~~~~~~~~
Language: C++

#include <iostream>
#include <string>

using namespace std;

int main(){
string S;
cin>> S;
string monthdigit1=S[5];
string monthdigit2=S[6];
int l=stoi(monthdigit1);
int k=stoi(monthdigit2);
if(l==1){
    cout <<"TBD";
    return 0;
}
for(int i=1;i<5;i++){
    if(k==i){
        cout <<"Heisei";
        return 0;
    }
}
cout <<"TBD";
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:23: error: conversion from '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
    9 | string monthdigit1=S[5];
      |                       ^
a.cc:10:23: error: conversion from '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
   10 | string monthdigit2=S[6];
      |                       ^
Language: C++

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

int main()
{
    int y, m, d;
    char c1, c2;

    cin >> y >> c1 >> m >> c2 >> d;
    time = y * 10000 + m * 100 + d;
    if(time > 20190430){
        cout << "TBD" << emdl;
    }else{
        cout << "Heisei" << endl;
    }

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:10: error: assignment of function 'time_t time(time_t*)'
   14 |     time = y * 10000 + m * 100 + d;
      |     ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
a.cc:15:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   15 |     if(time > 20190430){
      |        ~~~~~^~~~~~~~~~
a.cc:16:26: error: 'emdl' was not declared in this scope
   16 |         cout << "TBD" << emdl;
      |                          ^~~~
Language: Java

import java.util.*;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		
		String s = sc.next();
		List<String> sl = new ArrayList<String>(Arrays.asList(s.split("/")));
		
		if(Integer.parseInt(sl.get(0)) < 2019) {
			System.out.println("Heisei");
		}else if(Integer.parseInt(sl.get(1)) < 4){
			System.out.println("Heisei"e;
		}else {
			System.out.println("TBD");
		}
		
		sc.close();
		
		
		
	}
}

Compiler output:
Main.java:13: error: ')' or ',' expected
			System.out.println("Heisei"e;
			                           ^
1 error
Language: C++

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

int main() {

  string S;
  cin >>S;
  if(S.at(6)<='4'){
    cout <<"Heisei";
  }
  else if(S.at(6)>'4'{
    cout<<"TBD";
  }

}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:22: error: expected ')' before '{' token
   11 |   else if(S.at(6)>'4'{
      |          ~           ^
      |                      )
a.cc:15:1: error: expected primary-expression before '}' token
   15 | }
      | ^
Language: C++

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

int main() {

  string S;
  cin >>S;
  if(S.at(6)<=4){
    cout <<"Heisei";
  }
  else if(S.at(6)>4{
    cout<<"TBD";
  }

}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:20: error: expected ')' before '{' token
   11 |   else if(S.at(6)>4{
      |          ~         ^
      |                    )
a.cc:15:1: error: expected primary-expression before '}' token
   15 | }
      | ^
Language: C++

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


int main()
{
  string s;
  cin >> s;
  string m = {s[5], s[6]};
  auto mm = atoi(m);
  if (mm < 5) {
    cout << "Heisei" << endl;
  } else {
    cout << "TBD" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:18: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'const char*'
   10 |   auto mm = atoi(m);
      |                  ^
      |                  |
      |                  std::string {aka std::__cxx11::basic_string<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)
      |                  ~~~~~~~~~~~~^~~~~~
Language: C++

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


int main()
{
  string s;
  cin >> s;
  string m = {s[5], s[6]};
  auto mm = atoi(m);
  if (mm < 5) {
    cout << "Heisei" << endl;
  } else {
    cout << "TBD" << endl;
  }
}


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

#include <iostream>
#include <vector>
#include <iterator>
#include <cmath>
#include <algorithm>

int N, A, B, C;
std::vector<int> l;

int dfs(int n, int a, int b, int c){
  if(n == N){
    if(std::min( {a, b, c} ) > 0){
      return std::fabs(a - A) + std::fabs(b - B) + std::fabs(c - C) - 30;
    }else{
      return 100000;
    }
  }

  int mp1 = dfs(n + 1, a, b, c);
  int mp2 = dfs(n + 1, a + l[n], b, c) + 10;
  int mp3 = dfs(n + 1, a, b + l[n] ,c) + 10;
  int mp4 = dfs(n + 1, a, b, c + l[n]) + 10;
  return min( {mp1, mp2, mp3, mp4} );
}

int main(){
  std::cin >> N >> A >> B >> C;
  std::copy_n(std::istream_iterator<int>(std::cin), N , std::back_inserter(l));
  std::cout << dfs(0, 0, 0, 0) << std::endl;
  return 0;
}


Compiler output:
a.cc: In function 'int dfs(int, int, int, int)':
a.cc:23:10: error: 'min' was not declared in this scope; did you mean 'std::min'?
   23 |   return min( {mp1, mp2, mp3, mp4} );
      |          ^~~
      |          std::min
In file included from /usr/include/c++/14/algorithm:61,
                 from a.cc:5:
/usr/include/c++/14/bits/stl_algo.h:5696:5: note: 'std::min' declared here
 5696 |     min(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define pb push_back
#define pf push_front

typedef long long ll;
typedef vector<int> vi;
typedef vector<ll> vl;
typedef pair<int,int> pii;
typedef pair<ll,ll> pll;

#define mp make_pair
#define fi first
#define se second
typedef pair<int,int> pint;
#define All(s) s.begin(),s.end()
#define rAll(s) s.rbegin(),s.rend()
#define REP(i,a,b) for(int i=a;i<b;i++)
#define rep(i,n) REP(i,0,n)



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


Compiler output:
a.cc: In function 'int main()':
a.cc:25:2: error: expected ';' before 'char'
   25 | 5 char c1, c2;
      |  ^~~~~
      |  ;
a.cc:26:2: error: expected ';' before 'cin'
   26 | 6 cin >> y >> c1 >> m >> c2 >> d;
      |  ^~~~
      |  ;
a.cc:27:2: error: expected ';' before 'cout'
   27 | 7 cout << (m <= 4 ? "Heisei" : "TBD") << endl;
      |  ^~~~~
      |  ;
Language: Java

import java.util.*;
import java.time.*;
import java.time.format.*;
public class Main{
	public static void main(String[] args){
    	Scanner sc = new Scanner(System.in);
      String str = sc.next();
      DateTimeFormatter = 
        DateTimeFormatter.ofPattern("yyyy/MM/dd");
      LocalDate d =
        LocalDate.parse(str,f);
      LocalDate reiwa =
        LocalDate.parse("2019/04/30",f);
      if(d.isAfter(reiwa))
        System.out.println("TBD");
      else System.out.println("Heisei");
    }
}

Compiler output:
Main.java:8: error: cannot find symbol
      DateTimeFormatter = 
      ^
  symbol:   variable DateTimeFormatter
  location: class Main
Main.java:11: error: cannot find symbol
        LocalDate.parse(str,f);
                            ^
  symbol:   variable f
  location: class Main
Main.java:13: error: cannot find symbol
        LocalDate.parse("2019/04/30",f);
                                     ^
  symbol:   variable f
  location: class Main
3 errors
Language: C++

#include "pch.h"
#include <stdio.h>
#include <string.h>
#include <algorithm>
#include <iostream>
#include <string>
#include <vector>
#include <functional>
#include <map>
#include <iomanip>
#include <math.h> 
#include <stack>
#include <queue>
#include <bitset>
#include <cstdlib>
#include <tuple>
#include <cctype>
#include <ctype.h>
#include <set>
#include <sstream>
#include <time.h>
#include <numeric>
using namespace std;
//#define int long long
#define rep(i,s,n) for(int i = s;i<n;i++)
#define repe(i,s,n) for(int i = s;i<=n;i++)
#define rrep(i,s,n) for(int i = (n)-1;i>=(s);i--)
#define all(v) (v).begin(),(v).end()
#define pb push_back
#define fi first
#define se second
#define chmin(a,b) a=min((a),(b))
#define chmax(a,b) a=max((a),(b))
#define l1 list[index]
#define l2 list[index - 1]
#define l3 list[index + 1]
#define iif(i,j) ((i<0 && j<0) || (i>0 && j>0)) ? true : false 
typedef long long ll;
typedef pair<int, int>pint;
typedef vector<int>vint;
typedef vector<pint>vpint;
typedef pair<pint, int> P1;
typedef pair<int, pint> P2;
typedef pair<pint, pint> PP;
static const ll maxLL = (ll)1 << 62;
const ll MOD = 1000000007;
const ll INF = 1e18;
const double PI = 3.14159265359;
int ca[12] = { 31,28,31,30,31,30,31,31,30,31,30,31 };




signed main() {
	int n, m;
	string s;

	cin >> s;

	string seis = { s[0],s[1],s[2],s[3] };
	string mons = { s[5],s[6] };
	string days = { s[8],s[9] };

	int sei = stoi(seis);
	int mon = stoi(mons);
	int day = stoi(days);

	if (sei > 2019) {
		cout << "TBD" << endl;
	}
	else if (sei == 2019 && mon > 4) {
		cout << "TBD" << endl;
	}
	else if (sei == 2019 && mon == 4 && day > 30) {
		cout << "TBD" << endl;
	}
	else {
		cout << "Heisei" << endl;
	}




	return 0;
}

Compiler output:
a.cc:1:10: fatal error: pch.h: No such file or directory
    1 | #include "pch.h"
      |          ^~~~~~~
compilation terminated.