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

public class Main{
  import java.util.Date;
  public static void main(String[] args){
    int year = Integer.valueOf(args[0].substring(0, 3));
    int month = Integer.valueOf(args[0].substring(5, 6));
    int day = Integer.valueOf(args[0].substring(8, 9));
    Date inputDay = new Date(year, month, day, 12, 0, 0);
    Date s = new Date(2019, 4, 30, 12, 0, 0);
    if(s.before(inputDay)){
      System.out.println("Heisei");
    }else{
      System.out.println("TBD");
    }
  }
}

Compiler output:
Main.java:2: error: illegal start of type
  import java.util.Date;
  ^
Main.java:2: error: <identifier> expected
  import java.util.Date;
                       ^
2 errors
Language: C

#include <stdio.h>
int main(){
char s[15];
scanf ("%s",s);
a=s[0]-'0';
b=s[1]-'0';
c=s[2]-'0';
 d=s[3]-'0';
 e=s[5]-'0';
 f=s[6]-'0';
 g=s[8]-'0';
 h=s[9]-'0';
if ((a*10000000)+(b*1000000)+(c*100000)+(d*10000)+(e*1000)+(f*100)+(g*10)+h < 20190431){
printf ("Heisei");
}
  else {
  printf ("TBD");
  }
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:1: error: 'a' undeclared (first use in this function)
    5 | a=s[0]-'0';
      | ^
main.c:5:1: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:1: error: 'b' undeclared (first use in this function)
    6 | b=s[1]-'0';
      | ^
main.c:7:1: error: 'c' undeclared (first use in this function)
    7 | c=s[2]-'0';
      | ^
main.c:8:2: error: 'd' undeclared (first use in this function)
    8 |  d=s[3]-'0';
      |  ^
main.c:9:2: error: 'e' undeclared (first use in this function)
    9 |  e=s[5]-'0';
      |  ^
main.c:10:2: error: 'f' undeclared (first use in this function)
   10 |  f=s[6]-'0';
      |  ^
main.c:11:2: error: 'g' undeclared (first use in this function)
   11 |  g=s[8]-'0';
      |  ^
main.c:12:2: error: 'h' undeclared (first use in this function)
   12 |  h=s[9]-'0';
      |  ^
Language: Java

import java.util.*;

public class Main{
    public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
       int x =sc.nextInt();
       if(x<="2019/04/30")System.out.println("Heisei");
       else System.out.println("TBD");
    }
}

Compiler output:
Main.java:7: error: bad operand types for binary operator '<='
       if(x<="2019/04/30")System.out.println("Heisei");
           ^
  first type:  int
  second type: String
1 error
Language: Java

public class Main{
import java.util.Date;
  public static void main(String[] args){
    int year = Integer.valueOf(args[0].substring(0, 3));
    int month = Integer.valueOf(args[0].substring(5, 6));
    int day = Integer.valueOf(args[0].substring(8, 9));
    Date inputDay = new Date(year, month, day, 12, 0, 0);
    Date s = new Date(2019, 4, 30, 12, 0, 0);
    if(s.before(inputDay)){
      System.out.println("Heisei");
    }else{
      System.out.println("TBD");
    }
  }
}

Compiler output:
Main.java:2: error: illegal start of type
import java.util.Date;
^
Main.java:2: error: <identifier> expected
import java.util.Date;
                     ^
2 errors
Language: Java

public class Main{
  public static void main(String[] args){
    int year = Integer.valueOf(args[0].substring(0, 3));
    int month = Integer.valueOf(args[0].substring(5, 6));
    int day = Integer.valueOf(args[0].substring(8, 9));
    Date inputDay = new Date(year, month, day, 12, 0, 0);
    Date s = new Date(2019, 4, 30, 12, 0, 0);
    if(s.before(inputDay)){
      System.out.println("Heisei");
    }else{
      System.out.println("TBD");
    }
  }
}

Compiler output:
Main.java:6: error: cannot find symbol
    Date inputDay = new Date(year, month, day, 12, 0, 0);
    ^
  symbol:   class Date
  location: class Main
Main.java:6: error: cannot find symbol
    Date inputDay = new Date(year, month, day, 12, 0, 0);
                        ^
  symbol:   class Date
  location: class Main
Main.java:7: error: cannot find symbol
    Date s = new Date(2019, 4, 30, 12, 0, 0);
    ^
  symbol:   class Date
  location: class Main
Main.java:7: error: cannot find symbol
    Date s = new Date(2019, 4, 30, 12, 0, 0);
                 ^
  symbol:   class Date
  location: class Main
4 errors
Language: C++

#include<bits/stdc++.h>
#include<string>
#include<iostream>
#include<cmath>
#include<set>
#include<stack>
#include<queue>
#include<windows.h>
#include<unistd.h>
#include<stdio.h>
#include<cstring>
using namespace std;

int main()
{
	int a,b,c;
	char d,e;
	cin>>a>>d>>b>>e>>c;
	if(b<=4)
	{
		cout<<"heisei"<<endl;
	}
	else
	{
		cout<<"TBD"<<endl;
	}
	return 0;
}


Compiler output:
a.cc:8:9: fatal error: windows.h: No such file or directory
    8 | #include<windows.h>
      |         ^~~~~~~~~~~
compilation terminated.
Language: Java

public class Main{
  public static void main(String[] args){
    int year = Integer.valueOf(args[0].substring(0, 3));
    int month = Integer.valueOfargs[0].substring(5, 6));
    int day = Integer.valueOfargs[0].substring(8, 9));
    Date inputDay = new Date(year, month, day, 12, 0, 0);
    Date s = new Date(2019, 4, 30, 12, 0, 0);
    if(s.before(inputDay)){
      System.out.println("Heisei");
    }else{
      System.out.println("TBD");
    }
  }
}

Compiler output:
Main.java:4: error: ';' expected
    int month = Integer.valueOfargs[0].substring(5, 6));
                                                      ^
Main.java:5: error: ';' expected
    int day = Integer.valueOfargs[0].substring(8, 9));
                                                    ^
2 errors
Language: C++

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

int main(){
    char s[10];
    int a,b,c;
    cin >> s;
    sscanf(s,"%d/%d/%d",&a,&b,&c);
    if (a<=2018 || (a==2019 && b <= 4)){
        cout << "HEISEI" << endl;
    }else{
        cout << "TBD" << endl;
    }

    
}

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

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


int main(){
  string S;    
  cin >> S;
  int yyyy = stoi(S.substr(0, 3));
  int mm   = stoi(S.substr(5, 6));
  int dd   = stoi(S.substr(8, 9));
  
  if(yyyy == 2019){
    if(mm <= 4){
      cout << "Heisei" << endl;
    } else {
      cout << "TBD" << endl;
    }
  }else if(yyyy > 2019){
    cout << "TBD" << endl;
  }else {
    cout << "Heisei" << endl;
  }
  return 0;
}

Compiler output:
a.cc:4:2: error: invalid preprocessing directive #inlude; did you mean #include?
    4 | #inlude<algorithm>
      |  ^~~~~~
      |  include
Language: Java

import java.util.*;

public class Main{
    public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
       
       try {
        String x =sc.next();
        SimpleDateFormat sdFormat = new SimpleDateFormat("yyyy/MM/dd hh:mm:ss");
        Date date = sdFormat.parse(strDate);
     
        String str = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss").format(date);
       if(str<=2019/04/30){
           System.out.println("Heisei");
       }else{
           System.out.println("TBD");
       }
     
    } catch (ParseException e) {
        e.printStackTrace();
    }
    }
}

Compiler output:
Main.java:9: error: cannot find symbol
        SimpleDateFormat sdFormat = new SimpleDateFormat("yyyy/MM/dd hh:mm:ss");
        ^
  symbol:   class SimpleDateFormat
  location: class Main
Main.java:9: error: cannot find symbol
        SimpleDateFormat sdFormat = new SimpleDateFormat("yyyy/MM/dd hh:mm:ss");
                                        ^
  symbol:   class SimpleDateFormat
  location: class Main
Main.java:10: error: cannot find symbol
        Date date = sdFormat.parse(strDate);
                                   ^
  symbol:   variable strDate
  location: class Main
Main.java:12: error: cannot find symbol
        String str = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss").format(date);
                         ^
  symbol:   class SimpleDateFormat
  location: class Main
Main.java:13: error: bad operand types for binary operator '<='
       if(str<=2019/04/30){
             ^
  first type:  String
  second type: int
Main.java:19: error: cannot find symbol
    } catch (ParseException e) {
             ^
  symbol:   class ParseException
  location: class Main
6 errors
Language: Java

import java.util.*;

class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    double x;
    if(x<=16.825){
      System.out.println("Heisei");
    }
    else{
      System.out.println("TBD");
    }
  }
}

Compiler output:
Main.java:7: error: variable x might not have been initialized
    if(x<=16.825){
       ^
1 error
Language: Java

public class Main{
  public static void main(String[] args){
    int year = args[0].substring(0, 3);
    int month = args[0].substring(5, 6);
    int day = args[0].substring(8, 9);
    Date inputDay = new Date(year, month, day, 12, 0, 0);
    Date s = new Date(2019, 4, 30, 12, 0, 0);
    if(s.before(inputDay)){
      System.out.println("Heisei");
    }else{
      System.out.println("TBD");
    }
  }
}

Compiler output:
Main.java:3: error: incompatible types: String cannot be converted to int
    int year = args[0].substring(0, 3);
                                ^
Main.java:4: error: incompatible types: String cannot be converted to int
    int month = args[0].substring(5, 6);
                                 ^
Main.java:5: error: incompatible types: String cannot be converted to int
    int day = args[0].substring(8, 9);
                               ^
Main.java:6: error: cannot find symbol
    Date inputDay = new Date(year, month, day, 12, 0, 0);
    ^
  symbol:   class Date
  location: class Main
Main.java:6: error: cannot find symbol
    Date inputDay = new Date(year, month, day, 12, 0, 0);
                        ^
  symbol:   class Date
  location: class Main
Main.java:7: error: cannot find symbol
    Date s = new Date(2019, 4, 30, 12, 0, 0);
    ^
  symbol:   class Date
  location: class Main
Main.java:7: error: cannot find symbol
    Date s = new Date(2019, 4, 30, 12, 0, 0);
                 ^
  symbol:   class Date
  location: class Main
7 errors
Language: C++

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


int main(){
  string S;    
  cin >> S;
  
  int yyyy = stoi(S.substr(0, 3));
  int mm   = stoi(S.substr(5, 6));
  int dd   = stoi(S.substr(8, 9));
  
  if(yyyy == 2019){
    if(mm <= 4){
      cout << "Heisei" << endl;
    } else if (mm > 4){
      cout << "TBD" << endl;
    }
  }else if(yyyy > 2019){
    cout << "TBD" << endl;
  }else if(yyyy < 2019){
    cout << "Heisei" << endl;
  }
  return 0;
}

Compiler output:
a.cc:4:2: error: invalid preprocessing directive #inlude; did you mean #include?
    4 | #inlude<algorithm>
      |  ^~~~~~
      |  include
Language: C++

#include<iostream>
using namespace std;
int main()
{
    string s;
    cin>>s;
    int a=0;
    a+=s[0]-'0';
    a*=10;
    a+=s[1]-'0';
    a*=10;
    a+=s[2]-'0';
    a*=10;
    a+=a[3]-'0';
    int b=0;
    if(s[5]==0)
    b+=s[6]-'0';
    else
    {
        b+=s[5]-'0';
        b*=10;
        b+=a[6]-'0';
    }
    int c=0;
    if(s[8]==0)
    c+=s[9]-'0';
    else
    {
        c+=s[8]-'0';
        c*=10;
        c+=a[9]-'0';
    }
    if(a<2019)
    {
        cout<<"Heisei";
        return 0;
    }
    if(a<=2019 && b<4)
    {
        cout<<"Heisei";
        return 0;
    }
    if(a<=2019 && b<=4 && c<=30)
    {
        cout<<"Heisei";
        return 0;
    }
    cout<<"TBD";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:9: error: invalid types 'int[int]' for array subscript
   14 |     a+=a[3]-'0';
      |         ^
a.cc:22:13: error: invalid types 'int[int]' for array subscript
   22 |         b+=a[6]-'0';
      |             ^
a.cc:31:13: error: invalid types 'int[int]' for array subscript
   31 |         c+=a[9]-'0';
      |             ^
Language: Java

public class Main{
  public static void main(String[] args)}{
    int year = args[0].substring(0, 3);
    int month = args[0].substring(5, 6);
    int day = args[0].substring(8, 9);
    Date inputDay = new Date(year, month, day, 12, 0, 0);
    Date s = new Date(2019, 4, 30, 12, 0, 0);
    if(s.before(inputDay)){
      System.out.println("Heisei");
    }else{
      System.out.println("TBD");
    }
  }
}

Compiler output:
Main.java:2: error: ';' expected
  public static void main(String[] args)}{
                                        ^
Main.java:2: error: class, interface, enum, or record expected
  public static void main(String[] args)}{
                                         ^
Main.java:4: error: unnamed classes are a preview feature and are disabled by default.
    int month = args[0].substring(5, 6);
    ^
  (use --enable-preview to enable unnamed classes)
Main.java:8: error: class, interface, enum, or record expected
    if(s.before(inputDay)){
    ^
Main.java:10: error: class, interface, enum, or record expected
    }else{
    ^
Main.java:12: error: class, interface, enum, or record expected
    }
    ^
6 errors
Language: Java

import java.util.*;

public class Main{
    public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
       
       try {
        String x =sc.Int();
        SimpleDateFormat sdFormat = new SimpleDateFormat("yyyy/MM/dd hh:mm:ss");
        Date date = sdFormat.parse(strDate);
     
        String str = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss").format(date);
       if(str<=2019/04/30){
           System.out.println("Heisei");
       }else{
           System.out.println("TBD");
       }
     
    } catch (ParseException e) {
        e.printStackTrace();
    }
    }
}

Compiler output:
Main.java:8: error: cannot find symbol
        String x =sc.Int();
                    ^
  symbol:   method Int()
  location: variable sc of type Scanner
Main.java:9: error: cannot find symbol
        SimpleDateFormat sdFormat = new SimpleDateFormat("yyyy/MM/dd hh:mm:ss");
        ^
  symbol:   class SimpleDateFormat
  location: class Main
Main.java:9: error: cannot find symbol
        SimpleDateFormat sdFormat = new SimpleDateFormat("yyyy/MM/dd hh:mm:ss");
                                        ^
  symbol:   class SimpleDateFormat
  location: class Main
Main.java:10: error: cannot find symbol
        Date date = sdFormat.parse(strDate);
                                   ^
  symbol:   variable strDate
  location: class Main
Main.java:12: error: cannot find symbol
        String str = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss").format(date);
                         ^
  symbol:   class SimpleDateFormat
  location: class Main
Main.java:13: error: bad operand types for binary operator '<='
       if(str<=2019/04/30){
             ^
  first type:  String
  second type: int
Main.java:19: error: cannot find symbol
    } catch (ParseException e) {
             ^
  symbol:   class ParseException
  location: class Main
7 errors
Language: C++

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

typedef long long ll;
using namespace std;

int main(){
    char s[11] = "";
    char *ptr;
    ll y,m,d,r;
    cin >> s;
    
    ptr = strtok(s,"/");
    y = (ll)atoi(ptr);
    ptr = strtok(NULL,"/");
    m = (ll)atoi(ptr);
    ptr = strtok(NULL,"/");
    d = (ll)atoi(ptr);
    
    r = y*10000 + m*100 + d;
    if(r > 20190430)
        cout << "TBD" << endl;
    else
        cout << "Heisei" << endl;
    
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:11: error: 'strtok' was not declared in this scope; did you mean 'strtoq'?
   13 |     ptr = strtok(s,"/");
      |           ^~~~~~
      |           strtoq
Language: Java

import java.util.*;

public class Main{
    public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
       
       try {
        String x =sc.Int();
        SimpleDateFormat sdFormat = new SimpleDateFormat("yyyy/MM/dd hh:mm:ss");
        Date date = sdFormat.parse(strDate);
     
        String str = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss").format(date);
       if(str<=2019/04/30){
           System.out.println("Heisei");
       }else{
           System.out.println("TBD")
       }
     
    } catch (ParseException e) {
        e.printStackTrace();
    }
    }
}

Compiler output:
Main.java:16: error: ';' expected
           System.out.println("TBD")
                                    ^
1 error
Language: Java

public class Main{
  public static void main(String[] args}{
    int year = args[0].substring(0, 3);
    int month = args[0].substring(5, 6);
    int day = args[0].substring(8, 9);
    Date inputDay = new Date(year, month, day, 12, 0, 0);
    Date s = new Date(2019, 4, 30, 12, 0, 0);
    if(s.before(inputDay){
      System.out.println("Heisei");
    }else{
      System.out.println("TBD");
    }
  }
}

Compiler output:
Main.java:2: error: ',', ')', or '[' expected
  public static void main(String[] args}{
                                       ^
Main.java:2: error: class, interface, enum, or record expected
  public static void main(String[] args}{
                                        ^
Main.java:4: error: unnamed classes are a preview feature and are disabled by default.
    int month = args[0].substring(5, 6);
    ^
  (use --enable-preview to enable unnamed classes)
Main.java:8: error: class, interface, enum, or record expected
    if(s.before(inputDay){
    ^
Main.java:10: error: class, interface, enum, or record expected
    }else{
    ^
Main.java:12: error: class, interface, enum, or record expected
    }
    ^
6 errors
Language: Java

import java.io.*;
import java.util.*;

public class A {
	public static void main(String[] args) {
		try{
			InputStreamReader isr =new InputStreamReader(System.in);
	   		BufferedReader br =new BufferedReader(isr);
	        String dateString = br.readLine();
	       	System.out.println(isHeisei(dateString) ? "Heisei" : "TBD");
		} catch (IOException ioe) {
			ioe.printStackTrace();
		}
	}

	private static boolean isHeisei(final String dateString) {
		StringTokenizer st = new StringTokenizer(dateString, "/");
		final int y = Integer.parseInt(st.nextToken());
	    final int m = Integer.parseInt(st.nextToken());
	    final int d = Integer.parseInt(st.nextToken());
	    if (m <= 4) {
	    	return true;
	    }
		return false;
	}
}


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

public class Main{
  public static void main(String[] args}{
    int year = args[0].substring(0, 3);
    int month = args[0].substring(5, 6);
    int day = args[0].substring(8, 9);
    Date inputDay = new Date(year, month, day. 12, 0, 0);
    Date s = new Date(2019, 4, 30, 12, 0, 0);
    if(s.before(inputDay){
      System.out.println("Heisei");
    }else{
      System.out.println("TBD");
    }
  }
}

Compiler output:
Main.java:2: error: ',', ')', or '[' expected
  public static void main(String[] args}{
                                       ^
Main.java:2: error: class, interface, enum, or record expected
  public static void main(String[] args}{
                                        ^
Main.java:4: error: unnamed classes are a preview feature and are disabled by default.
    int month = args[0].substring(5, 6);
    ^
  (use --enable-preview to enable unnamed classes)
Main.java:6: error: <identifier> expected
    Date inputDay = new Date(year, month, day. 12, 0, 0);
                                              ^
Main.java:8: error: class, interface, enum, or record expected
    if(s.before(inputDay){
    ^
Main.java:10: error: class, interface, enum, or record expected
    }else{
    ^
Main.java:12: error: class, interface, enum, or record expected
    }
    ^
7 errors
Language: Java

import java.util.Scanner;

String tbd= "TBD";
String heisei = "Heisei";

Scanner inputDate = new Scanner(System.in);
String[] splitDate = inputDate.split("/", 0);

int year = Integer.parseInt(splitDate[0]);
int month = Integer.parseInt(splitDate[1]);
int day = Integer.parseInt(splitDate[2]);

if(year <= 2018) return heisei;
else if(year == 2019 && month <= 4) return heisei;
else return tbd;
 

Compiler output:
Main.java:3: error: unnamed classes are a preview feature and are disabled by default.
String tbd= "TBD";
^
  (use --enable-preview to enable unnamed classes)
Main.java:13: error: class, interface, enum, or record expected
if(year <= 2018) return heisei;
^
Main.java:14: error: class, interface, enum, or record expected
else if(year == 2019 && month <= 4) return heisei;
^
Main.java:15: error: class, interface, enum, or record expected
else return tbd;
^
4 errors
Language: C++

#include<iostream>
#include<stdio.h>
#include<string>
#include<vector>
#include<algorithm>
#include<cmath>
using namespace std;
#define INF 1e9;

int main() {
    int y, m, d;
   
    scanf_s(" %d/%d/%d", &y, &m, &d);
    if (m > 4)cout << "TBD";
    else cout << "Heisei";

    return 0;
}

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:20: error: 'day' was not declared in this scope
    7 |   if(month <= 4 && day <= 30)cout << "Heisei" << endl;
      |                    ^~~
Language: C++

#include<bits/stdc++.h>

using namespace std;

int main(){
	char s[10];
  	string n;
  	for(int i=0;i<10;++i)cin>>s[i];
  	if(s[4]=='0'&&(s[5]=='1'||s[5]=='2'||s[5]=='3')){
      n="Heisei";
    　 }else if(s[5]=='4'&&s[6]!='3')n="Heisei";
  	else if(s[5]=='4'&&s[6]=='3'&&s[7]=='0')n="Heisei";
  else n="TBD";
  cout<<n<<endl;
  return 0;
  	
}

Compiler output:
a.cc:11:5: error: extended character 　 is not valid in an identifier
   11 |     　 }else if(s[5]=='4'&&s[6]!='3')n="Heisei";
      |     ^
a.cc: In function 'int main()':
a.cc:11:5: error: '\U00003000' was not declared in this scope
   11 |     　 }else if(s[5]=='4'&&s[6]!='3')n="Heisei";
      |     ^~
Language: Java

import java.util.*;
import java.text.*;

public Class Main{
  public static void main(String args[]) {
    SimpleDateFormat f = new SimpleDateFormat("yyyy/MM/dd");
    Date heisei = f.parse("2019/04/30");
    Date d = f.parse(args[0]);
    if(d.after(heisei)) {
      System.out.println("TBD");
    }
    else {
      System.out.println("Heisei");
    }
  }
}

Compiler output:
Main.java:4: error: class, interface, enum, or record expected
public Class Main{
       ^
Main.java:5: error: unnamed classes are a preview feature and are disabled by default.
  public static void main(String args[]) {
                ^
  (use --enable-preview to enable unnamed classes)
Main.java:16: error: class, interface, enum, or record expected
}
^
3 errors
Language: Java

import java.util.Scanner;
class Main{
  public static void main(String args[]){
    Scanner scan=new Scanner(System.in);
    String str=scan.next();
    int y=Integer.parseInt(str.substring(0,4));
    int m=Integer.parseInt(str.substring(5,7));
    int d=Integer.parseInt(str.substring(8,10));
    if((y>2019)||((y=2019)&&(m>=5))){
      System.out.println("TBD");
    }else{
      System.out.println("Heisei");
    }
  }
}


Compiler output:
Main.java:9: error: bad operand types for binary operator '&&'
    if((y>2019)||((y=2019)&&(m>=5))){
                          ^
  first type:  int
  second type: boolean
1 error
Language: C

include <stdio.h>
#include <ctype.h>
#define max(x,y) ((x)>(y)?(x):(y))
#define min(x,y) ((x)<(y)?(x):(y))
#define FOR(i,m,n) for(i=m;i<n;i++)

int main(void)
{
	int a,c,d=0;
	char b[13];
	scanf("%s",&b);
	a=(b[5]-'0')*10+(b[6]-'0');
	if(a>4){
		d=1;
	}
	if(d==0){
		printf("Heisei");
	}else{
		printf("TBD");
	}
	return 0;
}

Compiler output:
main.c:1:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include <stdio.h>
      |         ^
main.c: In function 'main':
main.c:11:9: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
   11 |         scanf("%s",&b);
      |         ^~~~~
main.c:3:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
    2 | #include <ctype.h>
  +++ |+#include <stdio.h>
    3 | #define max(x,y) ((x)>(y)?(x):(y))
main.c:11:9: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
   11 |         scanf("%s",&b);
      |         ^~~~~
main.c:11:9: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:17:17: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   17 |                 printf("Heisei");
      |                 ^~~~~~
main.c:17:17: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:17:17: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:17:17: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:19:17: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   19 |                 printf("TBD");
      |                 ^~~~~~
main.c:19:17: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C++

#include <bits/stdc++.h>
using namespace  std;
int a,b,c;
int main( ){
cin>>a>>b>>c;
if(a<2019)
cout<<"Heisei";
if(a=2019&&b<4)
cout<<"Heisei";
if(a=2019&&b=4&&c<30)
cout<<"Heisei";
else
cout<<"TBD":
return 0; 
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:10: error: lvalue required as left operand of assignment
   10 | if(a=2019&&b=4&&c<30)
      |      ~~~~^~~
a.cc:13:12: error: expected ';' before ':' token
   13 | cout<<"TBD":
      |            ^
      |            ;
Language: C++

#include<bits/stdc++.h>

using namespace std;

int main(){
	char s[10];
  	string n;
  	if(s[4]=='0'&&(s[5]=='1'||s[5]=='2'||s[5]=='3')){
      n="Heisei";
    　 }else if(s[5]=='4'&&s[6]!='3')n="Heisei";
  	else if(s[5]=='4'&&s[6]=='3'&&s[7]=='0')n="Heisei";
  else n="TBD";
  cout<<n<<endl;
  return 0;
  	
}

Compiler output:
a.cc:10:5: error: extended character 　 is not valid in an identifier
   10 |     　 }else if(s[5]=='4'&&s[6]!='3')n="Heisei";
      |     ^
a.cc: In function 'int main()':
a.cc:10:5: error: '\U00003000' was not declared in this scope
   10 |     　 }else if(s[5]=='4'&&s[6]!='3')n="Heisei";
      |     ^~
Language: Java

import java.util.Scanner;
class Main{
  public static void main(String args[]){
    Scanner scan=new Scanner(System.in);
    String str=scan.next();
    int y=Integer.parseInt(str.substring(0,4));
    int m=Integer.parseInt(str.substring(6,8));
    int d=Integer.parseInt(str.substring(9,11));
    if((y>2019)||((y=2019)&&(m>=5))){
      System.out.println("TBD");
    }else{
      System.out.println("Heisei");
    }
  }
}

Compiler output:
Main.java:9: error: bad operand types for binary operator '&&'
    if((y>2019)||((y=2019)&&(m>=5))){
                          ^
  first type:  int
  second type: boolean
1 error
Language: Java

import java.util.Scanner;

public class A {

    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        String str = scan.next();
        String[] s = str.split("/");
        System.out.println(Integer.parseInt(s[1])<=4?"Heisei":"TBD");
    }
}


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

#include <bits/stdc++.h>
#define inf 1000000000
#define maxs(x,y) (x = max(x , y))
#define mins(x,y) (x = min(x , y))
using namespace std;
typedef long long int ll;

int main(){

    #include <bits/stdc++.h>
#define inf 1000000000
#define maxs(x,y) (x = max(x , y))
#define mins(x,y) (x = min(x , y))
using namespace std;
typedef long long int ll;

int main(){
  string S;
  cin >> S;
  
  string a,b,c;
  int a1,b1,c1;
  a = S.substr(0,4);
  a1 = stoi(a);
  b = S.substr(4,2);
  b1 = stoi(b);
  c = S.substr(6,2);
  c1 = stoi(c);
  
  if(a1 =< 2019){
  	if(b1 =< 04){
    	if(c1 =< 30){
        cout << "Heisei" << endl;
        }
    }
  }else{
  	cout << "TBD" << endl;
  }

}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
   17 | int main(){
      |         ^~
a.cc:17:9: note: remove parentheses to default-initialize a variable
   17 | int main(){
      |         ^~
      |         --
a.cc:17:9: note: or replace parentheses with braces to value-initialize a variable
a.cc:17:11: error: a function-definition is not allowed here before '{' token
   17 | int main(){
      |           ^
a.cc:40:2: error: expected '}' at end of input
   40 | }
      |  ^
a.cc:8:11: note: to match this '{'
    8 | int main(){
      |           ^
Language: C++

#include<iostream>
#include<string>
using namespace std;
int main(){
  string str;
  cin >> str;
  string m = str.m(5,6);
  string d = str.d(8,9);
  if(m=="01"||m=="02"||m=="03"||m=="04"){
    cout << Heisei << endl;
  }else{
    cout << TBD << endl;
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:18: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'm'
    7 |   string m = str.m(5,6);
      |                  ^
a.cc:8:18: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'd'
    8 |   string d = str.d(8,9);
      |                  ^
a.cc:10:13: error: 'Heisei' was not declared in this scope
   10 |     cout << Heisei << endl;
      |             ^~~~~~
a.cc:12:13: error: 'TBD' was not declared in this scope
   12 |     cout << TBD << endl;
      |             ^~~
Language: C++

#include<iostream>
using namespace std;
int main() {
	string s;
	cin >> s;
	
			if (s[5] == '0'&&a[6]>=5) cout << "TBD";
			else if (s[5] >= 1) cout << "TBD";
			else cout << "Heisei";
		
		
	



	
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:42: error: 'a' was not declared in this scope
    7 |                         if (s[5] == '0'&&a[6]>=5) cout << "TBD";
      |                                          ^
Language: C++

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

using namespace std;

int main() {
	string s;

	int y, m, d;
	scanf_s("%d/%d/%d", &y, &m, &d);
	
	if (m <= 4 && y == 2019) {
		cout << "heisei" << endl;
	}
	else if(m > 4 && y == 2019) {
		cout << "TBD" << endl;
	}
	else if (y < 2019) {
		cout << "heisei" << endl;
	}
	else {
		cout << "TBD" << endl;
	}

	return 0;
}

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

#include<stdio.h>
int main(void){
  int mm;
  int dd;
  scanf("%d",&m);
  scanf("%d",&m);
  scanf("%d",&d);
  scanf("%d",&d);
  if(mm<=04){
    if(dd<30){
      printf("Heisei");
    }
  }else{
    printf("TBD");
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:15: error: 'm' was not declared in this scope; did you mean 'mm'?
    5 |   scanf("%d",&m);
      |               ^
      |               mm
a.cc:7:15: error: 'd' was not declared in this scope; did you mean 'dd'?
    7 |   scanf("%d",&d);
      |               ^
      |               dd
Language: C++

#include <bits/stdc++.h>
#define inf 1000000000
#define maxs(x,y) (x = max(x , y))
#define mins(x,y) (x = min(x , y))
using namespace std;
typedef long long int ll;

int main(){
  string S;
  cin >> S;
  
  string a,b,c;
  int a1,b1,c1;
  a = S.substr(0,3);
  a1 = stoi(a);
  b = S.substr(4,5);
  b1 = stoi(b);
  c = S.substr(6,7);
  c1 = stoi(c);
  
  if(a1 =< 2019){
  	if(b1 =< 04){
    	if(c1 =< 30){
        cout << "Heisei" << endl;
        }
    }
  }else{
  	cout << "TBD" << endl;
  }

}


Compiler output:
a.cc: In function 'int main()':
a.cc:21:10: error: expected primary-expression before '<' token
   21 |   if(a1 =< 2019){
      |          ^
a.cc:22:16: error: expected primary-expression before '<' token
   22 |         if(b1 =< 04){
      |                ^
a.cc:23:16: error: expected primary-expression before '<' token
   23 |         if(c1 =< 30){
      |                ^
Language: Java

import java.util.*;
 
public class Main{
    public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
       String x =sc.next();
       if(x<=2019/04/30)System.out.println("Heisei");
       else System.out.println("TBD");
    }
}

Compiler output:
Main.java:7: error: bad operand types for binary operator '<='
       if(x<=2019/04/30)System.out.println("Heisei");
           ^
  first type:  String
  second type: int
1 error
Language: C++

#include<stdio.h>
int main(void){
  int mm;
  int dd;
  scanf("%d,%d",&m,&m);
  scanf("%d,%d",&d,&d);
  if(mm<=04){
    if(dd<30){
      printf("Heisei");
    }
  }else{
    printf("TBD");
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:18: error: 'm' was not declared in this scope; did you mean 'mm'?
    5 |   scanf("%d,%d",&m,&m);
      |                  ^
      |                  mm
a.cc:6:18: error: 'd' was not declared in this scope; did you mean 'dd'?
    6 |   scanf("%d,%d",&d,&d);
      |                  ^
      |                  dd
Language: Java

import java.util.*;

public class Main{
    public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
       int x =sc.next();
       if(x<=2019/04/30)System.out.println("Heisei");
       else System.out.println("TBD");
    }
}

Compiler output:
Main.java:6: error: incompatible types: String cannot be converted to int
       int x =sc.next();
                     ^
1 error
Language: C++

#include<stdio.h>
#include<iostream>
#include<iomanip>
#include<math.h>
#include<algorithm>
#include<utility>
#include<queue>
#include<string.h>
#include<string>
#include<set>
#include<functional>
using namespace std;
typedef long long LL;
typedef pair<int, int> P;
typedef queue<P> Q;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:25:5: error: 'retunr' was not declared in this scope
   25 |     retunr 0;
      |     ^~~~~~
Language: C++

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

#define range(i, f, t) for (int i = (f); i < (t); ++i)
#define rep(i, n) range(i, 0, n)

template <typename T>
ostream &operator<<(ostream &out, const vector<T> &v)
{
  out << "vector(" << v.size() << ") [";
  if (v.size() > 0)
  {
    rep(i, v.size()) out << v[i] << ", ";
    out << "\b\b]";
  }
  else
  {
    out << "]";
  }
  return out;
}

template <typename T, typename U>
ostream &operator<<(ostream &out, const pair<T, U> &p)
{
  out << '(' << p.first << ", " << p.second << ")";
  return out;
}

void solve()
{
  int y, m, d;

  cin >> y;
  cin.ignore(1, '/');
  cin >> m;
  cin.ignore(1, '/');
  cin >> d;

  if (m > 4)
  {
    cout << "TBD";
  }
  else
  {
    cout << "Heisei";
  }
  cout << endl;
}

int main()
{
  cin.tie(0);
  ios_base::sync_with_stdio(false);

  solve();

  return 0;
}


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

#include <iostream>
#include <string>

using namespace std;
int main(){
  int heisei = 0;
  string S;cin >> S;
  if (S.substr(0,4) <= "2019"){
  }else{
    if (S.substr(5,2) <= "04"){
    }else{
      if (S.substr(8,2) <= "20"){
        heisei = 1
      }
    }
  }
  if (heisei == 1){
    cout << "Heisei" << endl;
  }else{
    cout << "TBD" <<endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:19: error: expected ';' before '}' token
   13 |         heisei = 1
      |                   ^
      |                   ;
   14 |       }
      |       ~
Language: C++

#include<stdio.h>
#include<iostream>
#include<iomanip>
#include<math.h>
#include<algorithm>
#include<utility>
#include<queue>
#include<string.h>
#include<string>
#include<set>
#include<functional>
using namespace std;
typedef long long LL;
typedef pair<int, int> P;
typedef queue<P> Q;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:23:20: error: expected ';' before '}' token
   23 |         cout<<"TBD"
      |                    ^
      |                    ;
   24 |     }
      |     ~               
a.cc:25:5: error: 'retunr' was not declared in this scope
   25 |     retunr 0;
      |     ^~~~~~
Language: Java

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.*;
import java.math.*;

public class Main {
	public static void main(String[] args)throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		StringBuilder sb = new StringBuilder();

		String s = br.readLine();

		String[] str = br.readLine().split('/');
		int y = Integer.parseInt(str[0]);
		int m = Integer.parseInt(str[1]);
		if(y>2019 || (y<=2019 && (m>5)){
			System.out.println("TBD");
		}else{
			System.out.println("Heisei");
		}
	}
}

Compiler output:
Main.java:17: error: ')' expected
		if(y>2019 || (y<=2019 && (m>5)){
		                               ^
1 error
Language: C++

S = input()
l = S.split("/")
if int(l[0]) >= 2020:
    print("TBD")
elif int(l[0]) <= 2018:
    print("Heisei")
else:
    if int(l[1]) >= 5:
        print("TBD")
    elif int(l[1]) <= 3:
        print("Heisei")
    else:
        if int(l[2]) >= 31:
            print("TBD")
        else:
            print("Heisei")


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

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.*;
import java.math.*;

public class Main {
	public static void main(String[] args)throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		StringBuilder sb = new StringBuilder();

		String s = br.readLine();

		String[] str = br.readLine().split('/');
		int y = Integer.parseInt(str[0]);
		int m = Integer.parseInt(str[1]);
		if(y>2019 || (y<=2019 && (m>5)){
			System.out.println("TBD");
		}else{
			System.out.println("Heisei");
		}
}

Compiler output:
Main.java:17: error: ')' expected
		if(y>2019 || (y<=2019 && (m>5)){
		                               ^
Main.java:22: error: reached end of file while parsing
}
 ^
2 errors
Language: C++

#include<stdio.h>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin>>s;
      |   ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include<stdio.h>
  +++ |+#include <iostream>
    2 | using namespace std;
a.cc:8:5: error: 'cout' was not declared in this scope
    8 |     cout<<"Heisei"<<endl;
      |     ^~~~
a.cc:8:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:8:21: error: 'endl' was not declared in this scope
    8 |     cout<<"Heisei"<<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 | using namespace std;
a.cc:10:5: error: 'cout' was not declared in this scope
   10 |     cout<<"TBD"<<endl;
      |     ^~~~
a.cc:10:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:10:18: error: 'endl' was not declared in this scope
   10 |     cout<<"TBD"<<endl;
      |                  ^~~~
a.cc:10:18: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

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

int main(){
  string s;
  cin >> s;
  year = (int)s[0]*1000+(int)s[1]*100+(int)s[2]*10+(int)s[3];
  month = (int)s[5]*10 + s[6];
  if(year >2019){
    cout<<"TBD"<<endl;
  }else if(year == 2019 && month > 4){
    cout << "TBD"<< endl;
  }else{
    cout << "Heisei" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'year' was not declared in this scope
    7 |   year = (int)s[0]*1000+(int)s[1]*100+(int)s[2]*10+(int)s[3];
      |   ^~~~
a.cc:8:3: error: 'month' was not declared in this scope
    8 |   month = (int)s[5]*10 + s[6];
      |   ^~~~~
Language: C++

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

typedef vector<int> vi;
typedef pair<int, int> pi;
typedef vector<pi> vii;

typedef long long ll;

#define F first
#define S second

#define ERR 1e-9

#if !ONLINE_JUDGE && !EVAL
    #define dbg_var(x) cerr << #x << ": " << x << "\n";
    #define dbg_iter(x, y) cerr  << #x << ": " << print_iterable(x, y) << "\n";
#else
    #define dbg_var(x)
    #define dbg_iter(x, y)
#endif // ONLINE_JUDGE

template <typename T1, typename T2>
string print_iterable( T1 begin_iter, T2 end_iter){
    bool first = true;
    stringstream res;
    res << "[ ";
    for(; begin_iter != end_iter; ++begin_iter){
        if(!first) res << ", ";
        first = false;
        res << *begin_iter;
    }
    res << " ]";
    return res.str();
}

void aggMax(int & res, int x){ if(x > res)res = x; }
void aggMin(int & res, int x){ if(x < res)res = x; }

int II(){ int i; cin >> i; return i; }
void OI(int i){ cout << i; }

// constraints
#define MAXN 1000000

int main() {
    //freopen("input.txt", "r", stdin);
    //freopen("output.txt", "w", stdout);
    ios::sync_with_stdio(false);
    cin.tie(0);

    string s;
    cin >> s;

    int anno = stoi(s.substr(0,4)), mese = stoi(s.substr(5, 2)), giorno = stoi(s.substr(8, 2));

    if(anno != 2019){
        cout << (anno < 2019 ? "Heisei" : "TBD");
    }else if(mese != 4){
        cout << (mese < 4 ? "Heisei" : "TBD");
    }else{
        cout << (giorno <= 30 ? "Heisei" : "TBD")2019/11/01;
    }

    cout << "\n";
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:62:50: error: expected ';' before numeric constant
   62 |         cout << (giorno <= 30 ? "Heisei" : "TBD")2019/11/01;
      |                                                  ^~~~
      |                                                  ;
Language: C++

a, b, c = map(int, input().split('/'))
print('TBD' if (a > 2019 or (a == 2019 and b > 4)) else 'Heisei')


Compiler output:
a.cc:2:7: warning: multi-character character constant [-Wmultichar]
    2 | print('TBD' if (a > 2019 or (a == 2019 and b > 4)) else 'Heisei')
      |       ^~~~~
a.cc:2:57: warning: multi-character literal with 6 characters exceeds 'int' size of 4 bytes
    2 | print('TBD' if (a > 2019 or (a == 2019 and b > 4)) else 'Heisei')
      |                                                         ^~~~~~~~
a.cc:1:1: error: 'a' does not name a type
    1 | a, b, c = map(int, input().split('/'))
      | ^
Language: C++

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

int main() {
  char a[10];
  for(int i = 0;i < 10,i++){
    cin >> a[i];
  }
  if(a[5] == "1"){
    cout << "TBD" << endl;
  }else{
    if(a[6] == "1" || a[6] == "2" || a[6] == "3" || a[6] == "4"){
      cout << "Heisei" << endl;
    }else{
      cout << "TBD" << endl;
    }
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:27: error: expected ';' before ')' token
    9 |   for(int i = 0;i < 10,i++){
      |                           ^
      |                           ;
a.cc:12:11: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 |   if(a[5] == "1"){
      |      ~~~~~^~~~~~
a.cc:15:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   15 |     if(a[6] == "1" || a[6] == "2" || a[6] == "3" || a[6] == "4"){
      |        ~~~~~^~~~~~
a.cc:15:28: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   15 |     if(a[6] == "1" || a[6] == "2" || a[6] == "3" || a[6] == "4"){
      |                       ~~~~~^~~~~~
a.cc:15:43: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   15 |     if(a[6] == "1" || a[6] == "2" || a[6] == "3" || a[6] == "4"){
      |                                      ~~~~~^~~~~~
a.cc:15:58: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   15 |     if(a[6] == "1" || a[6] == "2" || a[6] == "3" || a[6] == "4"){
      |                                                     ~~~~~^~~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |   if ( s.at(6) == "1" || s.at(6) == "2" || s.at(6) == "3" || s.at(6) == "4" ) {
      |        ~~~~~~~~^~~~~~
a.cc:7:34: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |   if ( s.at(6) == "1" || s.at(6) == "2" || s.at(6) == "3" || s.at(6) == "4" ) {
      |                          ~~~~~~~~^~~~~~
a.cc:7:52: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |   if ( s.at(6) == "1" || s.at(6) == "2" || s.at(6) == "3" || s.at(6) == "4" ) {
      |                                            ~~~~~~~~^~~~~~
a.cc:7:70: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |   if ( s.at(6) == "1" || s.at(6) == "2" || s.at(6) == "3" || s.at(6) == "4" ) {
      |                                                              ~~~~~~~~^~~~~~
Language: C++

include <stdio.h>

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

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


	if (y <= 2018) printf("Heisei\n");
	else if (y == 2019 && m <= 4) printf("Heisei\n");
	else printf("TBD\n");

	return 0;
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <stdio.h>
      | ^~~~~~~
Language: C

#include<stdio.h>

char c;

int main(){
	getchar();
	getchar();
	getchar();
	getchar();
	getchar();
	c=getchar();
  if(c=='1'){puts("TBD"); return;}
	c=getchar();
  if(c>'4'){puts("TBD"); return;}
  if(c<'4'){puts("Heisei"); return;}
	getchar();
	c=getchar();
  if(c<'3'){puts("Heisei"); return;}
	c=getchar();
  if(c=='0'{puts("Heisei"); return;}
  if(c=='1'{puts("TBD"); return;}
}


Compiler output:
main.c: In function 'main':
main.c:12:27: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch]
   12 |   if(c=='1'){puts("TBD"); return;}
      |                           ^~~~~~
main.c:5:5: note: declared here
    5 | int main(){
      |     ^~~~
main.c:14:26: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch]
   14 |   if(c>'4'){puts("TBD"); return;}
      |                          ^~~~~~
main.c:5:5: note: declared here
    5 | int main(){
      |     ^~~~
main.c:15:29: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch]
   15 |   if(c<'4'){puts("Heisei"); return;}
      |                             ^~~~~~
main.c:5:5: note: declared here
    5 | int main(){
      |     ^~~~
main.c:18:29: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch]
   18 |   if(c<'3'){puts("Heisei"); return;}
      |                             ^~~~~~
main.c:5:5: note: declared here
    5 | int main(){
      |     ^~~~
main.c:20:12: error: expected ')' before '{' token
   20 |   if(c=='0'{puts("Heisei"); return;}
      |     ~      ^
      |            )
main.c:22:1: error: expected declaration or statement at end of input
   22 | }
      | ^
Language: Java

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Scanner;
public class A {
    public static void main(String[] args) {
        Scanner scan = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
        String date = scan.next();
        System.out.println(date.compareTo("2019/04/30")<= 0 ? "Heisei" : "TBD");
    }
}

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