criyle/codenet-compile-errors huggingface dataset:
Language: Java

import java.text.DateFormat;
import java.text.ParseException;
import java.util.*;
  
public class ABC119A {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String S = sc.nextLine();
        if (S.compareTo("2019/04/30") > 0) {
            System.out.println("TBD");
        }
        else {
            System.out.println("Heisei");
        }
    }
}


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

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.*;
public static void main(String[] args) throws ParseException {
	Scanner sc=new Scanner(System.in);

	String S=sc.next();
	SimpleDateFormat s=new SimpleDateFormat("yyyy/mm/dd");
	Date date1=s.parse(S);
	Date date=s.parse("2019/04/30");
	
	if(date1.before(date)) {
	System.out.print("Heisei");
	}
	else if(date1.after(date)) {
		System.out.print("TBD");
}
	
}

Compiler output:
Main.java:4: error: unnamed classes are a preview feature and are disabled by default.
public static void main(String[] args) throws ParseException {
              ^
  (use --enable-preview to enable unnamed classes)
1 error
Language: C++

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

int main(void){
  string S;
  cin>>S;
  int year,month,day;
  sscanf((const char*)S,"%d/%d/%d",&year,&month,&day);
  if(month<=4){
    cout<<"Heisei";
  }
  else{
    cout<<"TBD";
  }
  cout<<endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:10: error: invalid cast from type 'std::string' {aka 'std::__cxx11::basic_string<char>'} to type 'const char*'
    8 |   sscanf((const char*)S,"%d/%d/%d",&year,&month,&day);
      |          ^~~~~~~~~~~~~~
Language: C++

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

int main(void){
  string S;
  cin>>S;
  int year,month,day;
  sscanf(S,"%d/%d/%d",&year,&month,&day);
  if(month<=4){
    cout<<"Heisei";
  }
  else{
    cout<<"TBD";
  }
  cout<<endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:10: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'const char*'
    8 |   sscanf(S,"%d/%d/%d",&year,&month,&day);
      |          ^
      |          |
      |          std::string {aka std::__cxx11::basic_string<char>}
In file included from /usr/include/c++/14/cstdio:42,
                 from /usr/include/c++/14/ext/string_conversions.h:45,
                 from /usr/include/c++/14/bits/basic_string.h:4154,
                 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/stdio.h:430:43: note:   initializing argument 1 of 'int sscanf(const char*, const char*, ...)'
  430 | extern int sscanf (const char *__restrict __s,
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
    int year,month,date;
    char c1,c2;
    cin>>year>>c1>>month>>c2>>date;
    if(m<=4)
    {
        cout<<"Heisei"<<endl;
    }
    else
    {
        cout<<"TBD"<<endl;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:8: error: 'm' was not declared in this scope; did you mean 'tm'?
    8 |     if(m<=4)
      |        ^
      |        tm
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:21: error: expected ';' before string constant
    9 |                 cout"TBD";
      |                     ^~~~~
      |                     ;
Language: C

#include <stdio.h>

int main() {
  int year, month, day;
  scanf("%d/%d/%d", &year, &month, &day);
  if(year >= 2019 && month >= 5) {
    printf("TED\n");
  } else {
    printf("heisei\n");
  }
  retrun 0;
}


Compiler output:
main.c: In function 'main':
main.c:11:3: error: 'retrun' undeclared (first use in this function)
   11 |   retrun 0;
      |   ^~~~~~
main.c:11:3: note: each undeclared identifier is reported only once for each function it appears in
main.c:11:9: error: expected ';' before numeric constant
   11 |   retrun 0;
      |         ^~
      |         ;
Language: C++

#include <iostream>
#include <stdio.h>

using namespace std;

int main()
{
	int year, month, day;
	scanf_s("%d/%d/%d", &year, &month, &day);

	if
	(
		(year > 2019) ||
		(year == 2019 && month > 4) ||
		(year == 2019 && month == 4 && day > 30)
	)
		cout << "TBD" << endl;
	else
		cout << "Heisei" << endl;

	return 0;
}


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

#include <stdio.h>

using namespace std;

int main()
{
	int year, month, day;
	scanf("%d/%d/%d", &year, &month, &day);

	if
	(
		(year > 2019) ||
		(year == 2019 && month > 4) ||
		(year == 2019 && month == 4 && day > 30)
	)
		cout << "TBD" << endl;
	else
		cout << "Heisei" << endl;

	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:17: error: 'cout' was not declared in this scope
   16 |                 cout << "TBD" << endl;
      |                 ^~~~
a.cc:2:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include <stdio.h>
  +++ |+#include <iostream>
    2 | 
a.cc:16:34: error: 'endl' was not declared in this scope
   16 |                 cout << "TBD" << endl;
      |                                  ^~~~
a.cc:2:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    1 | #include <stdio.h>
  +++ |+#include <ostream>
    2 | 
a.cc:18:17: error: 'cout' was not declared in this scope
   18 |                 cout << "Heisei" << endl;
      |                 ^~~~
a.cc:18:17: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:18:37: error: 'endl' was not declared in this scope
   18 |                 cout << "Heisei" << endl;
      |                                     ^~~~
a.cc:18:37: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

#include <stdio.h>

using namespace std;

int main()
{
	int year, month, day;
	scanf_s("%d/%d/%d", &year, &month, &day);

	if
	(
		(year > 2019) ||
		(year == 2019 && month > 4) ||
		(year == 2019 && month == 4 && day > 30)
	)
		cout << "TBD" << endl;
	else
		cout << "Heisei" << endl;

	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
    8 |         scanf_s("%d/%d/%d", &year, &month, &day);
      |         ^~~~~~~
      |         scanf
a.cc:16:17: error: 'cout' was not declared in this scope
   16 |                 cout << "TBD" << endl;
      |                 ^~~~
a.cc:2:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include <stdio.h>
  +++ |+#include <iostream>
    2 | 
a.cc:16:34: error: 'endl' was not declared in this scope
   16 |                 cout << "TBD" << endl;
      |                                  ^~~~
a.cc:2:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    1 | #include <stdio.h>
  +++ |+#include <ostream>
    2 | 
a.cc:18:17: error: 'cout' was not declared in this scope
   18 |                 cout << "Heisei" << endl;
      |                 ^~~~
a.cc:18:17: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:18:37: error: 'endl' was not declared in this scope
   18 |                 cout << "Heisei" << endl;
      |                                     ^~~~
a.cc:18:37: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

using namespace std;

int main()
{
	int year, month, day;
	scanf("%d/%d/%d", &year, &month, &day);

	if
	(
		(year > 2019) ||
		(year == 2019 && month > 4) ||
		(year == 2019 && month == 4 && day > 30)
	)
		cout << "TBD" << endl;
	else
		cout << "Heisei" << endl;

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'scanf' was not declared in this scope
    6 |         scanf("%d/%d/%d", &year, &month, &day);
      |         ^~~~~
a.cc:14:17: error: 'cout' was not declared in this scope
   14 |                 cout << "TBD" << endl;
      |                 ^~~~
a.cc:1:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | using namespace std;
a.cc:14:34: error: 'endl' was not declared in this scope
   14 |                 cout << "TBD" << endl;
      |                                  ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | using namespace std;
a.cc:16:17: error: 'cout' was not declared in this scope
   16 |                 cout << "Heisei" << endl;
      |                 ^~~~
a.cc:16:17: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:16:37: error: 'endl' was not declared in this scope
   16 |                 cout << "Heisei" << endl;
      |                                     ^~~~
a.cc:16:37: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

using namespace std;

int main()
{
	int year, month, day;
	scanf_s("%d/%d/%d", &year, &month, &day);

	if
	(
		(year > 2019) ||
		(year == 2019 && month > 4) ||
		(year == 2019 && month == 4 && day > 30)
	)
		cout << "TBD" << endl;
	else
		cout << "Heisei" << endl;

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'scanf_s' was not declared in this scope
    6 |         scanf_s("%d/%d/%d", &year, &month, &day);
      |         ^~~~~~~
a.cc:14:17: error: 'cout' was not declared in this scope
   14 |                 cout << "TBD" << endl;
      |                 ^~~~
a.cc:1:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | using namespace std;
a.cc:14:34: error: 'endl' was not declared in this scope
   14 |                 cout << "TBD" << endl;
      |                                  ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | using namespace std;
a.cc:16:17: error: 'cout' was not declared in this scope
   16 |                 cout << "Heisei" << endl;
      |                 ^~~~
a.cc:16:17: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:16:37: error: 'endl' was not declared in this scope
   16 |                 cout << "Heisei" << endl;
      |                                     ^~~~
a.cc:16:37: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

#include<iostream>
int main(){
  std::string s, m, d;
  std::cin >> s;
  int month, day;
  m = s.substr(5,2);
  d = s.substr(8,2);
  month = atoi(m.c_str());
  day = atoi(d.c_str());
  if(month <= 4){
    std::cout << "Heisei" << std::endl;
  }else{
    std::cout << "TBD" << endl;
  }
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:27: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   13 |     std::cout << "TBD" << endl;
      |                           ^~~~
      |                           std::endl
In file included from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/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(){
    string S;
  cin >> S;
  if (S[5] - '0') * 10 + (S[6] - '0') < 5) {
    cout << "Heisei" << endl;
  }
  else {
    cout << "TBD" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:19: error: invalid type argument of unary '*' (have 'int')
    7 |   if (S[5] - '0') * 10 + (S[6] - '0') < 5) {
      |                   ^~~~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:17: error: invalid type argument of unary '*' (have 'int')
    7 |   if (S[5] - 0) * 10 + (S[6] - 0) < 5) {
      |                 ^~~~
Language: C++

#include<iostream>
#include<string>

using namespace std;
int main(){
  int N;
  float X;
  string U;
  string S =0.0;
 for(int i = 0; i < N; ++i){
   cin >> X >>U;
   if(U == "BTC") S += X*380000;
   else S += X;
 }
  cout << S << endl;  
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:13: error: conversion from 'double' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
    9 |   string S =0.0;
      |             ^~~
Language: C++

#include<iostream>
using namespace std;
int main(){
  int N;
  float X[10];
  char U[4][10];
  char S =0.0;
 for(int i = 0; i < N; ++i){
   cin >> X[i] >>U[3][i];
   if(U[4][i] == "BTC") S += X[i]*380000;
   else S += X[i];
 }
  cout << S << endl;  
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |    if(U[4][i] == "BTC") S += X[i]*380000;
      |       ~~~~~~~~^~~~~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
	int a,b,c;
	scanf("%d/ %d/ %d/",&a,&b,&c);
	if(2019<a || (a<=2019 && 5<=b)){
		cout("TBD\n");
	}
	else{
		cout("Heisei\n");
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:21: error: no match for call to '(std::ostream {aka std::basic_ostream<char>}) (const char [5])'
    8 |                 cout("TBD\n");
      |                 ~~~~^~~~~~~~~
a.cc:11:21: error: no match for call to '(std::ostream {aka std::basic_ostream<char>}) (const char [8])'
   11 |                 cout("Heisei\n");
      |                 ~~~~^~~~~~~~~~~~
Language: C++

int main(){
	string s;
	cin >> s;
 
	if( s <= "2019/04/30" ){ cout << "Heisei" << endl};
	else {cout << "TBD" << endl};
}

Compiler output:
a.cc: In function 'int main()':
a.cc:2:9: error: 'string' was not declared in this scope
    2 |         string s;
      |         ^~~~~~
a.cc:3:9: error: 'cin' was not declared in this scope
    3 |         cin >> s;
      |         ^~~
a.cc:3:16: error: 's' was not declared in this scope
    3 |         cin >> s;
      |                ^
a.cc:5:34: error: 'cout' was not declared in this scope
    5 |         if( s <= "2019/04/30" ){ cout << "Heisei" << endl};
      |                                  ^~~~
a.cc:5:54: error: 'endl' was not declared in this scope
    5 |         if( s <= "2019/04/30" ){ cout << "Heisei" << endl};
      |                                                      ^~~~
a.cc:6:9: error: 'else' without a previous 'if'
    6 |         else {cout << "TBD" << endl};
      |         ^~~~
a.cc:6:15: error: 'cout' was not declared in this scope
    6 |         else {cout << "TBD" << endl};
      |               ^~~~
a.cc:6:32: error: 'endl' was not declared in this scope
    6 |         else {cout << "TBD" << endl};
      |                                ^~~~
Language: C++

int main(){
	string s;
	cin >> s;
 
	if( s <= "2019/04/30" ) cout << "Heisei" << endl;
	else cout << "TBD" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:2:9: error: 'string' was not declared in this scope
    2 |         string s;
      |         ^~~~~~
a.cc:3:9: error: 'cin' was not declared in this scope
    3 |         cin >> s;
      |         ^~~
a.cc:3:16: error: 's' was not declared in this scope
    3 |         cin >> s;
      |                ^
a.cc:5:33: error: 'cout' was not declared in this scope
    5 |         if( s <= "2019/04/30" ) cout << "Heisei" << endl;
      |                                 ^~~~
a.cc:5:53: error: 'endl' was not declared in this scope
    5 |         if( s <= "2019/04/30" ) cout << "Heisei" << endl;
      |                                                     ^~~~
a.cc:6:14: error: 'cout' was not declared in this scope
    6 |         else cout << "TBD" << endl;
      |              ^~~~
a.cc:6:31: error: 'endl' was not declared in this scope
    6 |         else cout << "TBD" << endl;
      |                               ^~~~
Language: C++

#include<iostream>
using namespace std:;
int main(){
  int y,m,d;
  char c1,c2;
  cin>>y>>c1>>m>>c2>>d;
  if(m<5){
    cout<<"Heisei"<<endl;
  }else{
    cout<<"TBD"<<endl;
  }
}

Compiler output:
a.cc:2:20: error: expected ';' before ':' token
    2 | using namespace std:;
      |                    ^
      |                    ;
a.cc:2:20: error: expected unqualified-id before ':' token
Language: Java

package main

import (
	"fmt"
	"time"
)

const (
	yyyymmdd = "2006/01/02"
)

func main() {
	var dateS, res string
	_, _ = fmt.Scan(&dateS)
	res = solveA(dateS)
	fmt.Println(res)
}

func solveA(dateS string) string {

	t1, _ := time.Parse(yyyymmdd, dateS)
	t2, _ := time.Parse(yyyymmdd, "2019/04/30")

	if t1.Unix() <= t2.Unix() {
		return "Heisei"
	} else {
		return "TBD"
	}
}


Compiler output:
Main.java:1: error: ';' expected
package main
            ^
Main.java:3: error: <identifier> expected
import (
      ^
2 errors
Language: C++

#include <iostream>
#include <vector>
#include <algorithm>
#include <numeric>
#include <string>
#include <cstring>
#include <list>
#include <unordered_set>
#include <tuple>
#include <limits>
#include <type_traits>
using namespace std;

using INT = long long;
using UINT = unsigned long long;

unsigned gcd(unsigned a, unsigned b) {
	while (1) {
		if (a < b) swap(a, b);
		if (!b) break;
		a %= b;
	}
	return a;
}

int main()
{
	string s;
	cin >> s;
	int y, m, d;
	sscanf_s(s.c_str(), "%04d/%02d/%02d", &y, &m, &d);

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


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

#include <bits\stdc++.h>
using namespace std;
#define all(v) begin(v),end(v)
#define rall(v) rbegin(v),rend(v)
using ld = long double;
using ll = long long;
using pll = pair<ll, ll>;
//-----------------------------

void solve()
{
	tm a{}, b{};
	cin >> get_time(&a, "%Y/%m/%d");
	stringstream("2019/06/30") >> get_time(&b, "%Y/%m/%d");
	auto x1 = chrono::system_clock::from_time_t(mktime(&a));
	auto x2 = chrono::system_clock::from_time_t(mktime(&b));
	auto res = x1 - x2;
	cout << ((res.count() < 0) ? "Heisei" : "TBD" );
}

int main()
{
	ios::sync_with_stdio(false);
	cin.tie(nullptr); cout.tie(nullptr);
#ifdef LocaL
	freopen("input.txt", "r+", stdin);
	freopen("output.txt", "w+", stdout);
#endif
	solve();
	return 0;
}

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

#include <bits/stdc++.h>
2.using namespace std;
3. 
4.int main() {
5. 
6.  string s ;
7.  cin >> s;
8.  
9. 
10.      if(s.at(5)=='1'){
11.        cout << "TBD" << endl;
12.      }
13.      else{
14.        if(s.at(6)<'5'){
15.      cout << "Heisei" << endl;
16.        }
17.        else{
18.        cout << "TBD" << endl;
19.        }
20.      }
21.   
22.}


Compiler output:
a.cc:2:1: error: expected unqualified-id before numeric constant
    2 | 2.using namespace std;
      | ^~~~~~~
a.cc:3:1: error: expected unqualified-id before numeric constant
    3 | 3.
      | ^~
Language: C++

#include <bits/stdc++.h>
2.using namespace std;
3. 
4.int main(){
5.  int y,m,d ;
6.  string c1,c2 ;
7.  cin >>y>>c1>>m>>c2>>d ;
8.  if(m <= 4)
9.    cout <<"Heisei"<< endl;
10.  else
11.    cout <<"TBD"<< endl;
12.}


Compiler output:
a.cc:2:1: error: expected unqualified-id before numeric constant
    2 | 2.using namespace std;
      | ^~~~~~~
a.cc:3:1: error: expected unqualified-id before numeric constant
    3 | 3.
      | ^~
Language: C

#include<stdio.h>

int main(){
  char s[128];
  scanf("%s",s);
  int month =(s[5]-'0')*10+(s[6]-'0'):
  int day=(s[8]-'0')*10+s[9]-'0';
  if(month<5)
    printf("Heisei");
  else
    printf("TBD");


}

Compiler output:
main.c: In function 'main':
main.c:6:38: error: expected ',' or ';' before ':' token
    6 |   int month =(s[5]-'0')*10+(s[6]-'0'):
      |                                      ^
Language: C++

#include <iostream>
#include <string>

using namespace std;

int main () {
  	string s;
  	cin >> s;
	int y = 0, m = 0, d = 0;
  	y = (s[0] - '0') * 1000 + (s[1] - '0') * 100 + (s[2] - '0') * 10 + s[3] - '0';
   	m = (s[5] - '0') * 10 + s[6] - '0';
  	d = (s[8] - '0') * 10 + s[9] - '0';
  
  	if (y < 2019) {
      cout << "Heisei";
      return 0;
    }
  	if (y > 2019) {
      cout << "TBD";
      return 0;
    }
  	if (m <= 4) {
      cout << "Heisei"
      return 0;
    }
    else {
      cout << "TBD";
      return 0;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:23:23: error: expected ';' before 'return'
   23 |       cout << "Heisei"
      |                       ^
      |                       ;
   24 |       return 0;
      |       ~~~~~~
Language: C++

#include <iostream>
#include <string>

using namespace std;

int main () {
  	string s;
  	cin >> s;
	int y = 0, m = 0, d = 0;
  	y = (s[0] - '0') * 1000 + (s[1] - '0') * 100 + (s[2] - '0') * 10 + s[3] - '0';
   	m = (s[5] - '0') * 10 + s[6] - '0';
  	d = (s[8] - '0') * 10 + s[9] - '0';
  
  	if (y < 2019) {
      cout << "Heisei";
      return;
    }
  	if (y > 2019) {
      cout << "TBD";
      return;
    }
  	if (m <= 4) {
      cout << "Heisei"
      return;
    }
    else {
      cout << "TBD";
      return;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:7: error: return-statement with no value, in function returning 'int' [-fpermissive]
   16 |       return;
      |       ^~~~~~
a.cc:20:7: error: return-statement with no value, in function returning 'int' [-fpermissive]
   20 |       return;
      |       ^~~~~~
a.cc:23:23: error: expected ';' before 'return'
   23 |       cout << "Heisei"
      |                       ^
      |                       ;
   24 |       return;
      |       ~~~~~~           
a.cc:28:7: error: return-statement with no value, in function returning 'int' [-fpermissive]
   28 |       return;
      |       ^~~~~~
Language: C++

elem = input().split('/')
ans = "Heisei"

if int(elem[0], 10) > 2019:
    ans = "TBD"
elif int(elem[1], 10) > 4:
    ans = "TBD"
elif int(elem[2], 10) > 30:
    ans = "TBD"


print(ans)


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

#include <iostream>
using namespace std;

int main() {
    string s, year, month, day;
    int y, m, d;

    cin >> s;

    year = s[0]+s[1]+s[2]+s[3];
    y = stoi(s);
    month = s[4] + s[5];
    m = stoi(month);
    day = s[6] + s[7];
    d = stoi(day);

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

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:25: error: 'Heisei' was not declared in this scope
   20 |                 cout << Heisei << endl;
      |                         ^~~~~~
a.cc:24:25: error: 'TBD' was not declared in this scope
   24 |                 cout << TBD << endl;
      |                         ^~~
a.cc:28:17: error: 'TBD' was not declared in this scope
   28 |         cout << TBD << endl;
      |                 ^~~
Language: C++

#include <iostream>
using namespace std;

int main() {
    string s, year, month, day;
    int y, m, d;

    cin >> s;

    year = s[0]+s[1]+s[2]+s[3];
    y = stoi(s);
    month = s[4] + s[5];
    m = stoi(month);
    day = s[6] + s[7];
    d = stoi(day);

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

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:25: error: 'Heisei' was not declared in this scope
   20 |                 cout << Heisei << endl;
      |                         ^~~~~~
a.cc:23:17: error: expected '(' before '{' token
   23 |         else if {
      |                 ^
      |                 (
a.cc:30:17: error: 'TBD' was not declared in this scope
   30 |         cout << TBD << endl;
      |                 ^~~
Language: C++

#include<bits/stdc++.h>

using namespace std;

main()
{
    string s;
     cin>>s;
  
   if(a.sub(5,2)>"04")cout<<"TBD";
  else cout<<"Heisei";
  
}

Compiler output:
a.cc:5:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    5 | main()
      | ^~~~
a.cc: In function 'int main()':
a.cc:10:7: error: 'a' was not declared in this scope
   10 |    if(a.sub(5,2)>"04")cout<<"TBD";
      |       ^
Language: C++

#include <string>
#include <iostream>
 
int main(int argc, char* argv[]) {
  std::string str;
  std::cin >> str;
  std::cout << (atoi(str.substr(4, 2).c_str) <= 4) ? "Heisei" : "TBD";
  return 0;
}


Compiler output:
a.cc: In function 'int main(int, char**)':
a.cc:7:39: error: invalid use of non-static member function 'const _CharT* std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::c_str() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
    7 |   std::cout << (atoi(str.substr(4, 2).c_str) <= 4) ? "Heisei" : "TBD";
      |                      ~~~~~~~~~~~~~~~~~^~~~~
In file included from /usr/include/c++/14/string:54,
                 from a.cc:1:
/usr/include/c++/14/bits/basic_string.h:2640:7: note: declared here
 2640 |       c_str() const _GLIBCXX_NOEXCEPT
      |       ^~~~~
Language: C++

#include <string>
#include <iostream>
 
int main(int argc, char* argv[]) {
  string str;
  str << std::cin;
  std::cout << (atoi(str.substr(4, 2).c_str) <= 4) ? "Heisei" : "TBD";
  return 0;
}


Compiler output:
a.cc: In function 'int main(int, char**)':
a.cc:5:3: error: 'string' was not declared in this scope
    5 |   string str;
      |   ^~~~~~
a.cc:5:3: note: suggested alternatives:
In file included from /usr/include/c++/14/string:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:6:3: error: 'str' was not declared in this scope; did you mean 'std'?
    6 |   str << std::cin;
      |   ^~~
      |   std
Language: C++

#include <string>
#include <iosrteam>
 
int main(int argc, char* argv[]) {
  string str;
  str << std::cin;
  std::cout << (atoi(str.substr(4, 2).c_str) <= 4) ? "Heisei" : "TBD";
  return 0;
}


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

#include <string>
#include <iosteam>

int main(int argc, char* argv[]) {
  string str;
  str << std::cin;
  std::cout << (atoi(str.substr(4, 2).c_str) <= 4) ? "Heisei" : "TBD";
  return 0;
}

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


#include <iostream>
#include <vector>

void year_month_day(std::string s,int &y, int &m, int&d)
{
	sscanf(s.c_str(), "%d\/%d\/%d",&y,&m,&d);
}

int main()
{
	std::string s;
	std::cin >> s;
	int y, m, d;
	year_month_day(s, y, m, d);
	//std::cout << y << m << d;
	if (y < 2019 && m < 4 && < d < 30) {
		std::cout << "Heisei";
		return 0;
	}
	std::cout << "TBD";
	return 0;

}


Compiler output:
a.cc: In function 'void year_month_day(std::string, int&, int&, int&)':
a.cc:7:27: warning: unknown escape sequence: '\/'
    7 |         sscanf(s.c_str(), "%d\/%d\/%d",&y,&m,&d);
      |                           ^~~~~~~~~~~~
a.cc:7:27: warning: unknown escape sequence: '\/'
a.cc: In function 'int main()':
a.cc:17:34: error: expected primary-expression before '<' token
   17 |         if (y < 2019 && m < 4 && < d < 30) {
      |                                  ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int Y,M,D;
  cin >> Y >> c1 >> M >> c2 >> D;
  
  if(M <= 4){
    cout << "Heisei" << endl;
  }
  
  else {
    cout << "TBD" << endl;
  }
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:15: error: 'c1' was not declared in this scope; did you mean 'y1'?
    6 |   cin >> Y >> c1 >> M >> c2 >> D;
      |               ^~
      |               y1
a.cc:6:26: error: 'c2' was not declared in this scope
    6 |   cin >> Y >> c1 >> M >> c2 >> D;
      |                          ^~
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define TBD 20190430
int main()
{
	int year,month,day
	scanf("%d/%d/%d",&year,&month,&day);
	long long tmp=year*100+month*100+day;
	if(year>TBD)
		printf("TBD");
	else
		printf("Heisei");
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: expected initializer before 'scanf'
    7 |         scanf("%d/%d/%d",&year,&month,&day);
      |         ^~~~~
a.cc:8:42: error: 'day' was not declared in this scope
    8 |         long long tmp=year*100+month*100+day;
      |                                          ^~~
Language: C++

#include<iostream>
#include<stdio.h>
using namespace std;
int  main() {
	int y, m, d;
	scanf_s("%d/%d/%d", &y, &m, &d);
	if (y >= 2019 && m >= 4 && d >= 30) {
		cout << "Heisei" << endl;
	}
	else {
		cout << "TBD" << endl;
	}
	return 0;
}

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

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

using namespace std;

int main()
{
	char input[100];
	int yy, mm, dd;

	scanf_s("%s", input,100);
	sscanf_s(input, "%d/%d/%d", &yy, &mm, &dd);

	if (yy <= 2018) {
		cout << "Heisei" << endl;
	}
	else if (mm <= 4) {
		cout << "Heisei" << endl;
	}
	else {
		cout << "TBD" << endl;
	}

	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:9: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
   12 |         scanf_s("%s", input,100);
      |         ^~~~~~~
      |         scanf
a.cc:13:9: error: 'sscanf_s' was not declared in this scope; did you mean 'sscanf'?
   13 |         sscanf_s(input, "%d/%d/%d", &yy, &mm, &dd);
      |         ^~~~~~~~
      |         sscanf
Language: C++

#include<iostream>
#include<string>
#include<stdio.h>

using namespace std;

int main()
{
	char input[100];
	int yy, mm, dd;

	scanf_s("%s", input,100);
	sscanf_s(input, "%d/%d/%d", &yy, &mm, &dd);

	if (yy <= 2018) {
		cout << "Heisei" << endl;
	}
	else if (mm <= 4) {
		cout << "Heisei" << endl;
	}
	else {
		cout << "TBD" << endl;
	}

	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:9: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
   12 |         scanf_s("%s", input,100);
      |         ^~~~~~~
      |         scanf
a.cc:13:9: error: 'sscanf_s' was not declared in this scope; did you mean 'sscanf'?
   13 |         sscanf_s(input, "%d/%d/%d", &yy, &mm, &dd);
      |         ^~~~~~~~
      |         sscanf
Language: C++

#include <iostream>
using namespace std;
int main() {
  string S;
  cin >> S;
  
  if (S.at(5)=="1"){
    cout << "TBD" << endl;
  }else{
    if (S.at(6)=="1" || S.at(6)=="2" || S.at(6)=="3" || S.at(6)=="4"){
      cout << "Heisei" << endl;
    } else {
      cout << "TBD" << endl;
    }
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |   if (S.at(5)=="1"){
      |       ~~~~~~~^~~~~
a.cc:10:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |     if (S.at(6)=="1" || S.at(6)=="2" || S.at(6)=="3" || S.at(6)=="4"){
      |         ~~~~~~~^~~~~
a.cc:10:32: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |     if (S.at(6)=="1" || S.at(6)=="2" || S.at(6)=="3" || S.at(6)=="4"){
      |                         ~~~~~~~^~~~~
a.cc:10:48: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |     if (S.at(6)=="1" || S.at(6)=="2" || S.at(6)=="3" || S.at(6)=="4"){
      |                                         ~~~~~~~^~~~~
a.cc:10:64: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |     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;
  string a="2019/04/30"
   if(S<=a) printf("Heisei");
    else printf("TBD");}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:4: error: expected ',' or ';' before 'if'
    7 |    if(S<=a) printf("Heisei");
      |    ^~
a.cc:8:5: error: 'else' without a previous 'if'
    8 |     else printf("TBD");}
      |     ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  string S;
  cin>>S;
  string a="2019/04/30"
   if(S<=a) printf("Heisei");
    else printf("TBD");

Compiler output:
a.cc: In function 'int main()':
a.cc:7:4: error: expected ',' or ';' before 'if'
    7 |    if(S<=a) printf("Heisei");
      |    ^~
a.cc:8:5: error: 'else' without a previous 'if'
    8 |     else printf("TBD");
      |     ^~~~
a.cc:8:24: error: expected '}' at end of input
    8 |     else printf("TBD");
      |                        ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

#include <iostream>
#include <stdlib.h>
#define gett(y, m, d) (y * 31 * 12 + m * 31 + d)
int main(){
  int y,m,d,t;
  std::string in;
  int i=0, j = 0;
  std::cin >> in;
  i = in.instr('/');
  y = atoi(in.substr(0,i).c_str());
  j = i
  i = in.instr('/', i);
  m = atoi(in.substr(j,i).c_str());
  d = atoi(in.substr(i,-1).c_str());
  t = gett(y,m,d);
  if (t <= gett(2019,4,30))
    std::cout << "Heisei";
  else
    std::cout << "TBD";
    
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:10: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'instr'; did you mean 'insert'?
    9 |   i = in.instr('/');
      |          ^~~~~
      |          insert
a.cc:11:8: error: expected ';' before 'i'
   11 |   j = i
      |        ^
      |        ;
   12 |   i = in.instr('/', i);
      |   ~
Language: Java

import java.util.Scanner;

public class StillTBD {
	public static void main(String[] args) {		
		Scanner scanner = new Scanner(System.in);
		String date = scanner.next();
		
		int year = Integer.parseInt(date.substring(0, 4));
		int month = Integer.parseInt(date.substring(5, 7));
		int day = Integer.parseInt(date.substring(8, 10));
		
		if(year <= 2019 && month <= 04) {
			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) throws ParseException {		
		Scanner scanner = new Scanner(System.in);
		String date = scanner.next();
		
		int year = Integer.parseInt(date.substring(0, 4));
		int month = Integer.parseInt(date.substring(5, 7));
		int day = Integer.parseInt(date.substring(8, 10));
		
		if(year <= 2019 && month <= 04) {
			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:2: error: cannot find symbol
	public static void main(String[] args) throws ParseException {		
	                                              ^
  symbol:   class ParseException
  location: class StillTBD
Main.java:3: error: cannot find symbol
		Scanner scanner = new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class StillTBD
Main.java:3: error: cannot find symbol
		Scanner scanner = new Scanner(System.in);
		                      ^
  symbol:   class Scanner
  location: class StillTBD
4 errors
Language: C++

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

int main(){
  char str[100], sakai[]="2019/4/30";
  
  cin >> str;
  
  if(strcmp(str, sakai)<=0) cout << "Heisei" << endl;
  else cput << "TBD" << endl;
}

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

#include <iostream>
using namespace std;

int main(){
  char str[100], sakai[]="2019/4/30";
  
  cin >> str;
  
  if(strcmp(str, sakai)<=0) cout << "Heisei" << endl;
  else cput << "TBD" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:6: error: 'strcmp' was not declared in this scope
    9 |   if(strcmp(str, sakai)<=0) cout << "Heisei" << endl;
      |      ^~~~~~
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 | using namespace std;
a.cc:10:8: error: 'cput' was not declared in this scope
   10 |   else cput << "TBD" << endl;
      |        ^~~~
Language: Java

import java.text.SimpleDateFormat;
import java.util.Scanner;

public class Year {
	public static void main(String[]args) {
		Scanner scanner = new Scanner(System.in);
		SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd");

		String date = scanner.nextLine();
		System.out.println(sdf.format(date));
	}
}

Compiler output:
Main.java:4: error: class Year is public, should be declared in a file named Year.java
public class Year {
       ^
1 error
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int y;
  int m;
  int d;
 
  cin >> y >> c1 >> m >> c2 >> d;
 
  if (m >= 5 || m == 4 && d >= 30) {
    cout << "TBD" << endl;
  }
  else {
  cout << "Heisei" << endl;
}
}

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

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int y;
  int m;
  int d;
 
  cin >> y >> / >> m >> / >> d;
 
  if (y >= 2019 && m >= 4 && d >=30 ) {
    cout << "TBD" << endl;
  }
  else {
  cout << "Heisei" << endl;
}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:15: error: expected primary-expression before '/' token
    9 |   cin >> y >> / >> m >> / >> d;
      |               ^
a.cc:9:17: error: expected primary-expression before '>>' token
    9 |   cin >> y >> / >> m >> / >> d;
      |                 ^~
a.cc:9:25: error: expected primary-expression before '/' token
    9 |   cin >> y >> / >> m >> / >> d;
      |                         ^
a.cc:9:27: error: expected primary-expression before '>>' token
    9 |   cin >> y >> / >> m >> / >> d;
      |                           ^~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int y;
  int m;
  int d;
 
  cin >> y >> / >> m >> / >> d;
 
  if (y >= 2019 && m >= 4 && d >=30 ) {
    cout << "TBD" << endl;
  }
  else {
  cout << "Heisei" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:15: error: expected primary-expression before '/' token
    9 |   cin >> y >> / >> m >> / >> d;
      |               ^
a.cc:9:17: error: expected primary-expression before '>>' token
    9 |   cin >> y >> / >> m >> / >> d;
      |                 ^~
a.cc:9:25: error: expected primary-expression before '/' token
    9 |   cin >> y >> / >> m >> / >> d;
      |                         ^
a.cc:9:27: error: expected primary-expression before '>>' token
    9 |   cin >> y >> / >> m >> / >> d;
      |                           ^~
a.cc:16:2: error: expected '}' at end of input
   16 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

#include <iostream>
using namespace std;
int main(){
  char a,b;
  int c,d,e;
  cin>>c>>a>>d>>b>>e;
  if(d>4)cout<<"TBD"<<endl:
  else cout<<"Heisei"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:27: error: expected ';' before ':' token
    7 |   if(d>4)cout<<"TBD"<<endl:
      |                           ^
      |                           ;
Language: C++

#include<iostream>
using namespace std;
int main() {
  int year,month,day;
  char c1,c2;
  cin>>year>>c1>>month>>c2>>day;
  if(month<=4) {
    cout<<"Heisei"<<endl;
  }
  else {
    cout<<"TBD"<<endl;
  }
}​

Compiler output:
a.cc:13:2: error: '\U0000200b' does not name a type
   13 | }​
      |
Language: C

#include <studio.h>

int main(void)
{
  int year, month, date;
  scanf("%d/%d/%d/", &year, &month ,%date);
  
  double number;
  number = year * 10000 + month * 100 + date;
  
  if(number <= 20190430);
  {
    printf("Heisei%d");
  }
  else
  {
    printf("TBD");
  }
  
  return 0;
  
}


Compiler output:
main.c:1:10: fatal error: studio.h: No such file or directory
    1 | #include <studio.h>
      |          ^~~~~~~~~~
compilation terminated.
Language: Java

class main1{
 public void Main(){
String S;
     System.out.scanf(S);
   int i = Integer.parseInt(S);
 
if(i < 2019/4/30)
{
  System.out.println("Heisei");
}else {
  System.out.println("TBD");
}
   return;
}
}

Compiler output:
Main.java:4: error: cannot find symbol
     System.out.scanf(S);
               ^
  symbol:   method scanf(String)
  location: variable out of type PrintStream
1 error
Language: Java

class main1{
 public void Main(){
   int i = Integer.parseInt(S);
 
if(i < 2019/4/30)
{
  System.out.println("Heisei");
}else {
  System.out.println("TBD");
}
   return;
}
}

Compiler output:
Main.java:3: error: cannot find symbol
   int i = Integer.parseInt(S);
                            ^
  symbol:   variable S
  location: class main1
1 error
Language: Java

class main1{
 public void Main(){
String S;
   int i = Integer.parseInt(S);

if(i < 2019/4/30)
{
  System.out.println("Heisei");
}else {
  System.out.println("TBD");
}
   return;
}
}

Compiler output:
Main.java:4: error: variable S might not have been initialized
   int i = Integer.parseInt(S);
                            ^
1 error
Language: Java

class main1{
 public void Main(){
String S;
if((int)S < 2019/4/30)
{
  System.out.println("Heisei");
}else {
  System.out.println("TBD");
}
   return;
}
}

Compiler output:
Main.java:4: error: incompatible types: String cannot be converted to int
if((int)S < 2019/4/30)
        ^
1 error
Language: Java

class main1{
 public void Main(){
String S;
if(S < "2019/4/30")
{
  System.out.println("Heisei");
}else {
  System.out.println("TBD");
}
   return;
}
}

Compiler output:
Main.java:4: error: bad operand types for binary operator '<'
if(S < "2019/4/30")
     ^
  first type:  String
  second type: String
1 error
Language: Java

class main1{
 public void Main(){
String S;
if(S < (String)2019/4/30)
{
  System.out.println("Heisei");
}else {
  System.out.println("TBD");
}
   return;
}
}

Compiler output:
Main.java:4: error: incompatible types: int cannot be converted to String
if(S < (String)2019/4/30)
               ^
1 error
Language: Java

class main1{
 public void Main(){
String S;
if(S < (2019/4/30).toString())
{
  System.out.println("Heisei");
}else {
  System.out.println("TBD");
}
   return;
}
}

Compiler output:
Main.java:4: error: int cannot be dereferenced
if(S < (2019/4/30).toString())
                  ^
1 error
Language: Java

class main1{
 public void Main(){
String S;
if(S.toINT() < 2019/4/30)
{
  System.out.println("Heisei");
}else {
  System.out.println("TBD");
}
   return;
}
}

Compiler output:
Main.java:4: error: cannot find symbol
if(S.toINT() < 2019/4/30)
    ^
  symbol:   method toINT()
  location: variable S of type String
1 error
Language: Java

class main1{
 public void Main(){
String S;
if(S.toString() < 2019/4/30)
{
  System.out.println("Heisei");
}else {
  System.out.println("TBD");
}
   return;
}
}

Compiler output:
Main.java:4: error: bad operand types for binary operator '<'
if(S.toString() < 2019/4/30)
                ^
  first type:  String
  second type: int
1 error
Language: Java

class main1{
 public void Main(){
String S;
if(S < 2019/4/30)
{
  System.out.println("Heisei");
}else {
  System.out.println("TBD");
}
   return;
}
}

Compiler output:
Main.java:4: error: bad operand types for binary operator '<'
if(S < 2019/4/30)
     ^
  first type:  String
  second type: int
1 error
Language: Java

class Main{
 public main(){
String S;
if(S < 2019/4/30)
{
  System.out.println("Heisei");
}else {
  System.out.println("TBD");
}
   return;
}
}

Compiler output:
Main.java:2: error: invalid method declaration; return type required
 public main(){
        ^
1 error
Language: Java

class main1{
 public Main(){
String S;
if(S < 2019/4/30)
{
  System.out.println("Heisei");
}else {
  System.out.println("TBD");
}
   return;
}
}

Compiler output:
Main.java:2: error: invalid method declaration; return type required
 public Main(){
        ^
1 error
Language: Java

class main(){

String S;
if(S < 2019/4/30)
{
  System.out.println("Heisei")
}else {
  System.out.println("TBD")
}
}

Compiler output:
Main.java:1: error: '{' expected
class main(){
          ^
Main.java:4: error: illegal start of type
if(S < 2019/4/30)
^
Main.java:4: error: illegal start of type
if(S < 2019/4/30)
       ^
Main.java:6: error: ';' expected
  System.out.println("Heisei")
                              ^
Main.java:7: error: illegal start of type
}else {
 ^
Main.java:8: error: ';' expected
  System.out.println("TBD")
                           ^
6 errors
Language: Java

String S;
if(S < 2019/4/30)
{
  System.out.println("Heisei")
}else {
  System.out.println("TBD")
}

Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
String S;
^
  (use --enable-preview to enable unnamed classes)
Main.java:2: error: class, interface, enum, or record expected
if(S < 2019/4/30)
^
2 errors
Language: C++

#include <iostream>
#include <vector>
#include <string>
#define int_inf 1000000000 //1e9
#define ll_inf  1000000000000000000 //1e18

using namespace std;

int StringToInt(string s){
	int ret=0;	if(s.size()>9||s.size()==0) return 0;
	for(int i=0; i<s.size(); i++)
		if(s[i]<'0' && s[i]>'9') return 0;
	ret=s[0]-'0';
	for(int i=1; i<s.size(); i++){ret*=10; ret+=s[i]-'0';}
	return ret;
}
string ExtString(string s, int begin, int end){ // [beg, end)
	string t;
	for(int i=begin; i<end, i++) t+=s[i];
	return t;
}
int main(){
	string s; cin>>s;
	int y,m,d;
	y=StringToInt(ExtString(s,0,4));
	m=StringToInt(ExtString(s,5,7));
	d=StringToInt(ExtString(s,8,10));
	
	if(y<=2019&&m<=4&&d<=30) cout<<"Heisei"<<endl;
	else cout<<"TBD"<<endl;
	
	
	return 0;
}




Compiler output:
a.cc: In function 'std::string ExtString(std::string, int, int)':
a.cc:19:36: error: expected ';' before ')' token
   19 |         for(int i=begin; i<end, i++) t+=s[i];
      |                                    ^
      |                                    ;