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

#include <iostream>
using namespace std;
int main(void){
    int y,m,mm;
    char a1,a2;
    cin >> y >> a1 >> m >>mm;
    if((m==0)&&(mm=<4)){
        cout << "Heisei" << endl;
    }else{
        cout <<"TBD" << endl;        
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:20: error: expected primary-expression before '<' token
    7 |     if((m==0)&&(mm=<4)){
      |                    ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:15:5: error: expected '}' at end of input
   15 |    }
      |     ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

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

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

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 <string>

using namespace std;
int main(void)
{
   string str;
   cin >> str;
   int m1 = str[5]-'0';
   int m2 = str[6]-'0';
   m1 = 10*m1+m2;
   if(m1<=4)
      cout<<"Heisei"<<endl;
   else
      cout<<"TDB"<<endl;

   cout<<str[5]<<str[6]<<endl;
   return 0;
}


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

#include <stdio.h>

int main(void)
{
        char s[11];
        scanf("%s", s);
        if (s <= '2019/04/30') printf("Heisei\n");
        else                   printf("TBD\n");
        return 0;
}


Compiler output:
a.cc:7:18: warning: multi-character literal with 10 characters exceeds 'int' size of 4 bytes
    7 |         if (s <= '2019/04/30') printf("Heisei\n");
      |                  ^~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:7:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |         if (s <= '2019/04/30') printf("Heisei\n");
      |             ~~^~~~~~~~~~~~~~~
Language: C++

s=str(input())
if(int(s[:4])<2019):
    print('Heisei')
elif(int(s[:4])>2019):
    print('TBD')
elif(int(s[5:7])<4):
    print('Heisei')
elif(int(s[5:7])>4):
    print('TBD')
elif(int(s[8:])<=30):
    print('Heisei')
else:
    print('TBD')
    

Compiler output:
a.cc:3:11: warning: multi-character literal with 6 characters exceeds 'int' size of 4 bytes
    3 |     print('Heisei')
      |           ^~~~~~~~
a.cc:5:11: warning: multi-character character constant [-Wmultichar]
    5 |     print('TBD')
      |           ^~~~~
a.cc:7:11: warning: multi-character literal with 6 characters exceeds 'int' size of 4 bytes
    7 |     print('Heisei')
      |           ^~~~~~~~
a.cc:9:11: warning: multi-character character constant [-Wmultichar]
    9 |     print('TBD')
      |           ^~~~~
a.cc:11:11: warning: multi-character literal with 6 characters exceeds 'int' size of 4 bytes
   11 |     print('Heisei')
      |           ^~~~~~~~
a.cc:13:11: warning: multi-character character constant [-Wmultichar]
   13 |     print('TBD')
      |           ^~~~~
a.cc:1:1: error: 's' does not name a type
    1 | s=str(input())
      | ^
Language: C++

#include<iostream>
#include<string>
using namespace std;
int main(){
  cin >> s;
  if(s > "2019/04/30") cout << "TBD\n";
  else cout << "Heisei\n";
  return 0;
}

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

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

int main() {
  string s;
  cin >> s;
  cout << (s <= "2019/04/30" ? "Heisei":"TBD") << endl;
  return 0;
}

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

#include <iostream>
#include <stdio.h>
#include <string.h>
using namespace std;

int main()
{
    char s[20];
    scanf("%s",s);
    char *s2="2019/04/30";
    if(stricmp(s,s2)>0)
        printf("TBD\n");
    else
        printf("Heisei\n");
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
   10 |     char *s2="2019/04/30";
      |              ^~~~~~~~~~~~
a.cc:11:8: error: 'stricmp' was not declared in this scope; did you mean 'strncmp'?
   11 |     if(stricmp(s,s2)>0)
      |        ^~~~~~~
      |        strncmp
Language: C++

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

int main()
{
    char s[20];
    scanf("%s",s);
    char *s2="2019/04/30";
    if(stricmp(s,s2)>0)
        printf("TBD\n");
    else
        printf("Heisei\n");
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
    8 |     char *s2="2019/04/30";
      |              ^~~~~~~~~~~~
a.cc:9:8: error: 'stricmp' was not declared in this scope; did you mean 'strncmp'?
    9 |     if(stricmp(s,s2)>0)
      |        ^~~~~~~
      |        strncmp
Language: C++

s = input().split('/')
limit=20190430
if int(''.join(s))>limit:
	print('TBD')
else:
	print('Heisei')

Compiler output:
a.cc:3:8: error: empty character constant
    3 | if int(''.join(s))>limit:
      |        ^~
a.cc:4:15: warning: multi-character character constant [-Wmultichar]
    4 |         print('TBD')
      |               ^~~~~
a.cc:6:15: warning: multi-character literal with 6 characters exceeds 'int' size of 4 bytes
    6 |         print('Heisei')
      |               ^~~~~~~~
a.cc:1:1: error: 's' does not name a type
    1 | s = input().split('/')
      | ^
Language: C++

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

int main(){
  int year,month,day;
  cin>>year>>month>>day;
  if(month<=4)cout << "Heisei"<<endl;
  else cout <<"TBD"<<endl;
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #icnlude; did you mean #include?
    1 | #icnlude <bits/stdc++.h>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin>>year>>month>>day;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #icnlude <bits/stdc++.h>
a.cc:7:15: error: 'cout' was not declared in this scope
    7 |   if(month<=4)cout << "Heisei"<<endl;
      |               ^~~~
a.cc:7:15: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:7:33: error: 'endl' was not declared in this scope
    7 |   if(month<=4)cout << "Heisei"<<endl;
      |                                 ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #icnlude <bits/stdc++.h>
a.cc:8:8: error: 'cout' was not declared in this scope
    8 |   else cout <<"TBD"<<endl;
      |        ^~~~
a.cc:8:8: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:8:22: error: 'endl' was not declared in this scope
    8 |   else cout <<"TBD"<<endl;
      |                      ^~~~
a.cc:8:22: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: Java

import java.util.Scanner;

public class TestA {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String s = sc.nextLine();
		String[] temp = s.split("/");

		int year = Integer.parseInt(temp[0]);
		int month;
		if (temp[1].charAt(0) == '0') {
			month = Integer.parseInt(temp[1].substring(1));
		} else {
			month = Integer.parseInt(temp[1]);
		}
		int date;
		if (temp[2].charAt(0) == '0') {
			date = Integer.parseInt(temp[2].substring(1));
		} else {
			date = Integer.parseInt((temp[2]));
		}

		if (year < 2019) {
			System.out.println("Heisei");
		} else {
			if (month < 4) {
				System.out.println("Heisei");
			} else if (month == 4) {
				if (date <= 30) {
					System.out.println("Heisei");
				} else {
					System.out.println("TBD");
				}
			} else {
				System.out.println("TBD");
			}
		}
	}
}

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

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Scanner;
 
public class Main {
    public static void main(String[] args) throws Exception {    
      
    Date boundaryDate = ConvertDateFromString("2019/04/30");
    
    Scanner scanner = new Scanner(System.in);
    String input = scanner.nextLine();
    
    int result = ConvertDateFromString(input).compareTo(boundaryDate);
 
    if ((result == -1) || (result == 0)) {
      System.out.println("Heisei");
    } else {
      System.out.println("TBD");
    }
 
    scanner.close();
 
}
 
  public static Date ConvertDateFromString(String dateStr) throws ParseException {
 
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd");
 
        // Date型変換
	Date formatDate = sdf.parse(dateStr);
        System.out.println(formatDate);
        return formatDate;
    }
}

Compiler output:
Main.java:25: error: cannot find symbol
  public static Date ConvertDateFromString(String dateStr) throws ParseException {
                                                                  ^
  symbol:   class ParseException
  location: class Main
1 error
Language: Java

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Scanner;
 
public class Main {
    public static void main(String[] args) throws Exception {    
      try{
      
    Date boundaryDate = ConvertDateFromString("2019/04/30");
    
    Scanner scanner = new Scanner(System.in);
    String input = scanner.nextLine();
    
    int result = ConvertDateFromString(input).compareTo(boundaryDate);
 
    if ((result == -1) || (result == 0)) {
      System.out.println("Heisei");
    } else {
      System.out.println("TBD");
    }
 
    scanner.close();
    } catch(Exception e) {
	System.out.println(e);
    }
 
 }
 
  public static Date ConvertDateFromString(String dateStr) throws ParseException {
 
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd");
 
        // Date型変換
	Date formatDate = sdf.parse(dateStr);
        System.out.println(formatDate);
        return formatDate;
    }
}

Compiler output:
Main.java:29: error: cannot find symbol
  public static Date ConvertDateFromString(String dateStr) throws ParseException {
                                                                  ^
  symbol:   class ParseException
  location: class Main
1 error
Language: Java

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Scanner;
 
class Main {
  public static void main(String args[]) {
    try{
    Date boundaryDate = ConvertDateFromString("2019/04/30");
    
    Scanner scanner = new Scanner(System.in);
    String input = scanner.nextLine();
    
    int result = ConvertDateFromString(input).compareTo(boundaryDate);
 
    if ((result == -1) || (result == 0)) {
      System.out.println("Heisei");
    } else {
      System.out.println("TBD");
    }
 
    scanner.close();
    } catch(Exception e) {
	System.out.println(e);
    }
 
 }
 
  public static Date ConvertDateFromString(String dateStr) throws ParseException {
 
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd");
 
        // Date型変換
	Date formatDate = sdf.parse(dateStr);
        System.out.println(formatDate);
        return formatDate;
    }
}

Compiler output:
Main.java:28: error: cannot find symbol
  public static Date ConvertDateFromString(String dateStr) throws ParseException {
                                                                  ^
  symbol:   class ParseException
  location: class Main
1 error
Language: Java

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Scanner;
 
class stillTBD {
  public static void main(String args[]) {
    try{
    Date boundaryDate = ConvertDateFromString("2019/04/30");
    
    Scanner scanner = new Scanner(System.in);
    String input = scanner.nextLine();
    
    int result = ConvertDateFromString(input).compareTo(boundaryDate);
 
    if ((result == -1) || (result == 0)) {
      System.out.println("Heisei");
    } else {
      System.out.println("TBD");
    }
 
    scanner.close();
    } catch(Exception e) {
	System.out.println(e);
    }
 
 }
 
  public static Date ConvertDateFromString(String dateStr) throws ParseException {
 
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd");
 
        // Date型変換
	Date formatDate = sdf.parse(dateStr);
        System.out.println(formatDate);
        return formatDate;
    }
}

Compiler output:
Main.java:28: error: cannot find symbol
  public static Date ConvertDateFromString(String dateStr) throws ParseException {
                                                                  ^
  symbol:   class ParseException
  location: class stillTBD
1 error
Language: C++

cutsub x "" = [x]
cutsub x (a : as) = 
  if a == '/' then
    x : (cutsub "" as)
  else
    cutsub (x ++ [a]) as


cut l = cutsub "" l

main = do
    input <- getLine
    let 
      [a, b, c] = map read $ cut input
    putStrLn (if (b <= 4) then "Heisei" else "TBD")


Compiler output:
a.cc:1:1: error: 'cutsub' does not name a type
    1 | cutsub x "" = [x]
      | ^~~~~~
Language: C++

#include "bits/stdc++.h"
using namespace std;
#define PB push_back
#define MP make_pair
#define REP(i,n) for(int i=0;i<(n);i++)
int main(){
  int a,b,c;
  scnaf("%d/%d/%d",&a,&b,&c);
  if(a<2019){
    cout<<"Heisei"<<endl;
  }else if(a==2019){
    if(b<4){
      cout<<"Heisei"<<endl;
    }else if(b==4){
      if(c<=30){
        cout<<"Heisei"<<endl;
      }else{
        cout<<"TBD"<<endl;
      }
    }else{
      cout<<"TBD"<<endl;
    }
  }else{
    cout<<"TBD"<<endl;
  }else{
    cout<<"TBD"<<endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 'scnaf' was not declared in this scope; did you mean 'scanf'?
    8 |   scnaf("%d/%d/%d",&a,&b,&c);
      |   ^~~~~
      |   scanf
a.cc:25:4: error: 'else' without a previous 'if'
   25 |   }else{
      |    ^~~~
Language: C++

#include <iostream> 
#include <iomanip> 
#include <vector> 
#include <algorithm> 
#include <numeric> 
#include <functional> 
#include <cmath> 
#include <queue> 
#include <stack> 

#define Ford(i,a,b) for (int i=(a);i<(b);i++) 
#define For(i,n) Ford(i,0,n) 
typedef long long ll; 

using namespace std;

int main(){
  int y,m,d;
  string ans;
  cin>>y>>m>>d;
  if(m>4){
    ans = "TBD";
  }
  else{
    ans = "Heisei";
  }
  cout<<ans<<endl;
  retun 0;
}

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

#include<iostream>
#include<string.h>
using namespace std;
int main(){
  string str;
  cin>>str;
 
  str.erase(4,1);
    str.erase(7,1);
 if(stoi(str)；<20190430){
 cout<<"Heisei"<<endl;
 }else{
  cout<<"TBD"<<endl;
 }
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:14: error: expected ')' before '\U0000ff1b'
   10 |  if(stoi(str)；<20190430){
      |    ~         ^~
      |              )
Language: C++

#include<iostream>
#include<string.h>
#include<sstream>
using namespace std;
int main(){
  string str;
  cin>>str;
 
  str.erase(4,1);
    str.erase(7,1);
 if( atoi(str.c_str())；<20190430){
 cout<<"Heisei"<<endl;
 }else{
  cout<<"TBD"<<endl;
 }
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:23: error: expected ')' before '\U0000ff1b'
   11 |  if( atoi(str.c_str())；<20190430){
      |    ~                  ^~
      |                       )
Language: C++

#include<iostream>
#include<string.h>
using namespace std;
int main(){
  string str;
  cin>>str;
 
  str.erase(4,1);
    str.erase(7,1);
  atoi(str.c_str())；
 if( atoi(str.c_str())；<20190430){
 cout<<"Heisei"<<endl;
 }else{
  cout<<"TBD"<<endl;
 }
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:20: error: expected ';' before '\U0000ff1b'
   10 |   atoi(str.c_str())；
      |                    ^~
      |                    ;
a.cc:13:3: error: 'else' without a previous 'if'
   13 |  }else{
      |   ^~~~
Language: C++

#include<iostream>
#include<string.h>
using namespace std;
int main(){
  string str;
  cin>>str;
 
  str.erase(4,1);
    str.erase(7,1);
  atoi(str.c_str())；
 if( atoi(str.c_str())；<20190430){
 cout<<"Heisei"<<endl;
 }else{
  cout<<"TBD"<<endl;
 }
return 0;

Compiler output:
a.cc: In function 'int main()':
a.cc:10:20: error: expected ';' before '\U0000ff1b'
   10 |   atoi(str.c_str())；
      |                    ^~
      |                    ;
a.cc:13:3: error: 'else' without a previous 'if'
   13 |  }else{
      |   ^~~~
a.cc:16:10: error: expected '}' at end of input
   16 | return 0;
      |          ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

#include<iostream>
#include<string.hs
using namespace std;
int main(){
  string str;
  cin>>str;
 
  str.erase(4,1);
    str.erase(7,1);
  atoi(str.c_str())；
 if( atoi(str.c_str())；<20190430){
 cout<<"Heisei"<<endl;
 }else{
  cout<<"TBD"<<endl;
 }
return 0;
}

Compiler output:
a.cc:2:19: error: missing terminating > character
    2 | #include<string.hs
      |                   ^
a.cc:2:9: fatal error: string.hs: No such file or directory
    2 | #include<string.hs
      |         ^
compilation terminated.
Language: C++

#include<iostream>
#include<string.h>
using namespace std;
int main(){
  string str;
  cin>>str;
 
  str.erase(4,1);
    str.erase(7,1);
 if( (int)str<20190430){
 cout<<"Heisei"<<endl;
 }else{
  cout<<"TBD"<<endl;
 }
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:6: error: invalid cast from type 'std::string' {aka 'std::__cxx11::basic_string<char>'} to type 'int'
   10 |  if( (int)str<20190430){
      |      ^~~~~~~~
Language: C++

#include<iostream>
#include<string.h>
int main(){
  string str;
  cin>>str;
 
  str.erase(4,1);
    str.erase(7,1);
 if( (int)str<20190430){
 cout<<"Heisei"<<endl;
 }else{
  cout<<"TBD"<<endl;
 }
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'string' was not declared in this scope
    4 |   string str;
      |   ^~~~~~
a.cc:4:3: note: suggested alternatives:
In file included from /usr/include/c++/14/iosfwd:41,
                 from /usr/include/c++/14/ios:40,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
In file included from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44:
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   cin>>str;
      |   ^~~
      |   std::cin
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:5:8: error: 'str' was not declared in this scope; did you mean 'std'?
    5 |   cin>>str;
      |        ^~~
      |        std
a.cc:10:2: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |  cout<<"Heisei"<<endl;
      |  ^~~~
      |  std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:10:18: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   10 |  cout<<"Heisei"<<endl;
      |                  ^~~~
      |                  std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:12:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   12 |   cout<<"TBD"<<endl;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:12:16: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   12 |   cout<<"TBD"<<endl;
      |                ^~~~
      |                std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#inculde<iostream>
#inculde<string.h>
int main(){
  string str;
  cin>>str;
 
  str.erase(4,1);
    str.erase(7,1);
 if( (int)str<20190430){
 cout<<"Heisei"<<endl;
 }else{
  cout<<"TBD"<<endl;
 }
return 0;
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inculde; did you mean #include?
    1 | #inculde<iostream>
      |  ^~~~~~~
      |  include
a.cc:2:2: error: invalid preprocessing directive #inculde; did you mean #include?
    2 | #inculde<string.h>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:4:3: error: 'string' was not declared in this scope
    4 |   string str;
      |   ^~~~~~
a.cc:5:3: error: 'cin' was not declared in this scope
    5 |   cin>>str;
      |   ^~~
a.cc:5:8: error: 'str' was not declared in this scope; did you mean 'std'?
    5 |   cin>>str;
      |        ^~~
      |        std
a.cc:10:2: error: 'cout' was not declared in this scope
   10 |  cout<<"Heisei"<<endl;
      |  ^~~~
a.cc:10:18: error: 'endl' was not declared in this scope
   10 |  cout<<"Heisei"<<endl;
      |                  ^~~~
a.cc:12:3: error: 'cout' was not declared in this scope
   12 |   cout<<"TBD"<<endl;
      |   ^~~~
a.cc:12:16: error: 'endl' was not declared in this scope
   12 |   cout<<"TBD"<<endl;
      |                ^~~~
Language: C++

#inculde<iostream>
#include<string.h>
int main(){
  string str;
  cin>>str;

  str.erase(4,1);
    str.erase(7,1);
 if( (int)str<20190430){
 cout<<"Heisei"<<endl;
 }else{
  cout<<"TBD"<<endl;
 }
return 0;
}


Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inculde; did you mean #include?
    1 | #inculde<iostream>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:4:3: error: 'string' was not declared in this scope
    4 |   string str;
      |   ^~~~~~
a.cc:5:3: error: 'cin' was not declared in this scope
    5 |   cin>>str;
      |   ^~~
a.cc:5:8: error: 'str' was not declared in this scope; did you mean 'std'?
    5 |   cin>>str;
      |        ^~~
      |        std
a.cc:10:2: error: 'cout' was not declared in this scope
   10 |  cout<<"Heisei"<<endl;
      |  ^~~~
a.cc:10:18: error: 'endl' was not declared in this scope
   10 |  cout<<"Heisei"<<endl;
      |                  ^~~~
a.cc:12:3: error: 'cout' was not declared in this scope
   12 |   cout<<"TBD"<<endl;
      |   ^~~~
a.cc:12:16: error: 'endl' was not declared in this scope
   12 |   cout<<"TBD"<<endl;
      |                ^~~~
Language: C++

#include <iostream>
     
using namespace std;
    
     
int main() {
  std::string s;
  cin >> s;
        
  char cary[10]; 
  s.copy(cary, 10);
      
  std::string sn("");
  for (int i=0;i<10;i++){
    if ((i != 4) || (i != 7)) {
      sn += cary[i];
    }
  }
      
  int num = atoi(str.c_str());
  if(num>20190430){
    cout << "TBD" << endl;
  } else {
    cout << "Heisei" << endl;
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:18: error: 'str' was not declared in this scope; did you mean 'std'?
   20 |   int num = atoi(str.c_str());
      |                  ^~~
      |                  std
Language: Java

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

public class  Main  {
    public static void main(String[] args) {
        Date formatDate;
        Date heiseiDate;
        
    	Scanner sc = new Scanner(System.in);
      
      	String sdate = sc.next();
      	
      	
      	SimpleDateFormat sdf = new SimpleDateFormat("yyyy/mm/dd");
 
      	 try {
             formatDate = sdf.parse(sdate);
             heiseiDate = sdf.parse("2019/04/30");
           }catch (ParseException e) {
                 e.printStackTrace();
           }
      	 
      	if(formatDate.before(heiseiDate)){
        	System.out.println("Heisei");
        }else{
        	System.out.println("TBD");
        } 
    }
};


Compiler output:
Main.java:25: error: variable formatDate might not have been initialized
      	if(formatDate.before(heiseiDate)){
      	   ^
Main.java:25: error: variable heiseiDate might not have been initialized
      	if(formatDate.before(heiseiDate)){
      	                     ^
2 errors
Language: Java

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

public class Main  {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
      
      	String sdate = sc.next();
      
      	SimpleDateFormat sdf = new SimpleDateFormat("yyyy/mm/dd");
 
        Date formatDate = sdf.parse(sdate);
            	Date heiseiDate = sdf.parse("2019/04/30");
 
      	if(formatDate.before(heiseiDate)){
        	System.out.println("Heisei");
        }else{
        	System.out.println("TBD");
        } 
    }
};

Compiler output:
Main.java:13: error: unreported exception ParseException; must be caught or declared to be thrown
        Date formatDate = sdf.parse(sdate);
                                   ^
Main.java:14: error: unreported exception ParseException; must be caught or declared to be thrown
            	Date heiseiDate = sdf.parse("2019/04/30");
            	                           ^
2 errors
Language: Java

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

public class datetest  {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
      
      	String sdate = sc.next();
      
      	SimpleDateFormat sdf = new SimpleDateFormat("yyyy/mm/dd");
 
        Date formatDate = sdf.parse(sdate);
            	Date heiseiDate = sdf.parse("2019/04/30");
 
      	if(formatDate.before(heiseiDate)){
        	System.out.println("Heisei");
        }else{
        	System.out.println("TBD");
        } 
    }
};

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

import java.util.*;
import java.lang.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
      
      	String sdate = sc.next();
      
      	SimpleDateFormat sdf = new SimpleDateFormat("yyyy/mm/dd");
 
        Date formatDate = sdf.parse(sdate);
      	Date heiseiDate = new SimpleDateFormat("yyyy/MM/dd").format(2019/04/30);
 
      	if(formatDate.before(heiseiDate)){
        	System.out.println("Heisei");
        }else{
        	System.out.println("TBD");
        } 
    }
};

Compiler output:
Main.java:10: error: cannot find symbol
      	SimpleDateFormat sdf = new SimpleDateFormat("yyyy/mm/dd");
      	^
  symbol:   class SimpleDateFormat
  location: class Main
Main.java:10: error: cannot find symbol
      	SimpleDateFormat sdf = new SimpleDateFormat("yyyy/mm/dd");
      	                           ^
  symbol:   class SimpleDateFormat
  location: class Main
Main.java:13: error: cannot find symbol
      	Date heiseiDate = new SimpleDateFormat("yyyy/MM/dd").format(2019/04/30);
      	                      ^
  symbol:   class SimpleDateFormat
  location: class Main
3 errors
Language: Java

import java.util.*;
import java.lang.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
      
      	String sdate = sc.next();
      
      	SimpleDateFormat sdf = new SimpleDateFormat("yyyy/mm/dd");
 
        Date formatDate = sdf.parse(sdate);
      	Date heiseiDate = new SimpleDateFormat("yyyy/MM/dd").format(2019/04/30);
 
      	if(formatDate.before(heiseiDate){
        	System.out.println("Heisei");
        }else{
        	System.out.println("TBD");
        } 
    }
};

Compiler output:
Main.java:15: error: ')' expected
      	if(formatDate.before(heiseiDate){
      	                                ^
1 error
Language: Java

import java.util.*;
import java.lang.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
      
      	String sdate = sc.next();
      
      	SimpleDateFormat sdf = new SimpleDateFormat("yyyy/mm/dd");
 
        Date formatDate = sdf.parse(sdate);
 
      	if(formatDate.before（2019/04/30）){
        	System.out.println("Heisei");
        }else{
        	System.out.println("TBD");
        } 
    }
};

Compiler output:
Main.java:14: error: illegal character: '\uff08'
      	if(formatDate.before?2019/04/30?){
      	                    ^
Main.java:14: error: illegal character: '\uff09'
      	if(formatDate.before?2019/04/30?){
      	                               ^
Main.java:16: error: 'else' without 'if'
        }else{
         ^
3 errors
Language: Java

import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
      
      	String sdate = sc.next();
      
      	SimpleDateFormat sdf = new SimpleDateFormat("yyyy/mm/dd");
 
        Date formatDate = sdf.parse(sdate);
 
      	if(formatDate <= 2019/04/30){
        	System.out.println("Heisei");
        }else{
        	System.out.println("TBD");
        } 
    }
};

Compiler output:
Main.java:9: error: cannot find symbol
      	SimpleDateFormat sdf = new SimpleDateFormat("yyyy/mm/dd");
      	^
  symbol:   class SimpleDateFormat
  location: class Main
Main.java:9: error: cannot find symbol
      	SimpleDateFormat sdf = new SimpleDateFormat("yyyy/mm/dd");
      	                           ^
  symbol:   class SimpleDateFormat
  location: class Main
Main.java:13: error: bad operand types for binary operator '<='
      	if(formatDate <= 2019/04/30){
      	              ^
  first type:  Date
  second type: int
3 errors
Language: Java

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
      
      	String sdate = sc.next();
      
      	SimpleDateFormat sdf = new SimpleDateFormat("yyyy/mm/dd");

        Date formatDate = sdf.parse(sdate);

      	if(formatDate <= 2019/04/30){
        	System.out.println("Heisei");
        }else{
        	System.out.println("TBD");
        } 
    }
};

Compiler output:
Main.java:3: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class Main
Main.java:3: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
                         ^
  symbol:   class Scanner
  location: class Main
Main.java:7: error: cannot find symbol
      	SimpleDateFormat sdf = new SimpleDateFormat("yyyy/mm/dd");
      	^
  symbol:   class SimpleDateFormat
  location: class Main
Main.java:7: error: cannot find symbol
      	SimpleDateFormat sdf = new SimpleDateFormat("yyyy/mm/dd");
      	                           ^
  symbol:   class SimpleDateFormat
  location: class Main
Main.java:9: error: cannot find symbol
        Date formatDate = sdf.parse(sdate);
        ^
  symbol:   class Date
  location: class Main
5 errors
Language: C++

#include<iostream>
#include<string.h>
using namespace std;
int main(void)
{
   string S;
    cin>>S;
    if(S<="2019/04/30")
    {
        cout<<"Heisei\n"<<endl;
    }
    else (S>"2019/4/30")
    {
        cout<<"TBD\n"<<endl;
    }
   
    
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:25: error: expected ';' before '{' token
   12 |     else (S>"2019/4/30")
      |                         ^
      |                         ;
   13 |     {
      |     ~                    
a.cc:12:12: warning: ignoring return value of 'bool std::operator>(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const _CharT*) [with _CharT = char; _Traits = char_traits<char>; _Alloc = allocator<char>]', declared with attribute 'nodiscard' [-Wunused-result]
   12 |     else (S>"2019/4/30")
      |          ~~^~~~~~~~~~~~~
In file included from /usr/include/c++/14/string:54,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/basic_string.h:3929:5: note: declared here
 3929 |     operator>(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
      |     ^~~~~~~~
Language: C++

#include<iostream>
#include<string.h>
using namespace std;
int main(void)
{
   string S;
    cin>>S;
    if(S<="2019/04/30")
        cout<<"Heisei\n"<<endl;
    else (S>"2019/4/30")
        cout<<"TBD\n"<<endl;
    
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:25: error: expected ';' before 'cout'
   10 |     else (S>"2019/4/30")
      |                         ^
      |                         ;
   11 |         cout<<"TBD\n"<<endl;
      |         ~~~~             
a.cc:10:12: warning: ignoring return value of 'bool std::operator>(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const _CharT*) [with _CharT = char; _Traits = char_traits<char>; _Alloc = allocator<char>]', declared with attribute 'nodiscard' [-Wunused-result]
   10 |     else (S>"2019/4/30")
      |          ~~^~~~~~~~~~~~~
In file included from /usr/include/c++/14/string:54,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/basic_string.h:3929:5: note: declared here
 3929 |     operator>(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
      |     ^~~~~~~~
Language: C++

#include<iostream>
#include<string.h>
using namespace std;
int main(void)
{
   string S;
    cin>>S;
    if(S<="2019/04/30")
    {
        cout<<"Heisei\n"<<endl;
    }
    else (S>"2019/4/30")
    {
        cout<<"TBD\n"<<endl;
    }
    
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:25: error: expected ';' before '{' token
   12 |     else (S>"2019/4/30")
      |                         ^
      |                         ;
   13 |     {
      |     ~                    
a.cc:12:12: warning: ignoring return value of 'bool std::operator>(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const _CharT*) [with _CharT = char; _Traits = char_traits<char>; _Alloc = allocator<char>]', declared with attribute 'nodiscard' [-Wunused-result]
   12 |     else (S>"2019/4/30")
      |          ~~^~~~~~~~~~~~~
In file included from /usr/include/c++/14/string:54,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/basic_string.h:3929:5: note: declared here
 3929 |     operator>(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
      |     ^~~~~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define FOR(i,a,b) for (int i=(a);i<(b);i++)
#define rep(i,n) FOR(i,0,n)
typedef long long ll;
int main(){

	string s;
	cin >> s;

	bool flag = true;

	if (s[5] == '1') {
		flag = false;
	} else if (s[6] == '5' || s[6] == '6' || s[6] == '7' || s[6] == '8'||s[6] == '9') {
		flag = false;
	} 
	if (flag) {
		cout << "Heisei" << endl;
	} else {
		cout << "TBD" << endl;
	}


Compiler output:
a.cc: In function 'int main()':
a.cc:22:10: error: expected '}' at end of input
   22 |         }
      |          ^
a.cc:6:11: note: to match this '{'
    6 | int main(){
      |           ^
Language: C

#include<stdio.h>

int main(){
  int i, md;
  char s[10];
  
  scanf("%s", s);
  
  m = (s[5] - '0')*10 + s[6] - '0';
  
  if(m <= 4){
    printf("heisei\n");
  } else {
    printf("TBD\n");
  }
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:3: error: 'm' undeclared (first use in this function)
    9 |   m = (s[5] - '0')*10 + s[6] - '0';
      |   ^
main.c:9:3: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

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

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

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

#include <stdio.h>
#include <iostream>
#include <string>
using namespace std
  
int main (void)
{
  char a[100];
  int i;
  cin>>a;
  i=atoi(i);
  if (20190430<i)
  {
    cout<<"Heisei";
  }
  else
  {
    cout<<"TBD";
  }
  return 0;
}

Compiler output:
a.cc:4:20: error: expected ';' before 'int'
    4 | using namespace std
      |                    ^
      |                    ;
    5 | 
    6 | int main (void)
      | ~~~                 
a.cc: In function 'int main()':
a.cc:11:10: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
   11 |   i=atoi(i);
      |          ^
      |          |
      |          int
In file included from /usr/include/c++/14/cstdlib:79,
                 from /usr/include/c++/14/ext/string_conversions.h:43,
                 from /usr/include/c++/14/bits/basic_string.h:4154,
                 from /usr/include/c++/14/string:54,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:2:
/usr/include/stdlib.h:105:30: note:   initializing argument 1 of 'int atoi(const char*)'
  105 | extern int atoi (const char *__nptr)
      |                  ~~~~~~~~~~~~^~~~~~
Language: C++

#include <stdio.h>
#include <iostream>
using namespace std
int main (void)
{
  char a[100];
  int i;
  cin>>a;
  i=atoi(i);
  if (20190430<i)
  {
    cout<<"Heisei";
  }
  else
  {
    cout<<"TBD";
  }
  return 0;
}

Compiler output:
a.cc:3:20: error: expected ';' before 'int'
    3 | using namespace std
      |                    ^
      |                    ;
    4 | int main (void)
      | ~~~                 
a.cc: In function 'int main()':
a.cc:9:10: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
    9 |   i=atoi(i);
      |          ^
      |          |
      |          int
In file included from /usr/include/c++/14/cstdlib:79,
                 from /usr/include/c++/14/ext/string_conversions.h:43,
                 from /usr/include/c++/14/bits/basic_string.h:4154,
                 from /usr/include/c++/14/string:54,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:2:
/usr/include/stdlib.h:105:30: note:   initializing argument 1 of 'int atoi(const char*)'
  105 | extern int atoi (const char *__nptr)
      |                  ~~~~~~~~~~~~^~~~~~
Language: C++

#include <stdio.h>
#include <iostream>
using namespace std
int main (void)
{
  char a[100];
  cin>>a;
  if (20190430<a)
  {
    cout<<"Heisei";
  }
  else
  {
    cout<<"TBD";
  }
  return 0;
}

Compiler output:
a.cc:3:20: error: expected ';' before 'int'
    3 | using namespace std
      |                    ^
      |                    ;
    4 | int main (void)
      | ~~~                 
a.cc: In function 'int main()':
a.cc:8:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |   if (20190430<a)
      |       ~~~~~~~~^~
Language: C++

#include <stdio.h>
#include <iostream>
using std
int main (void)
{
  char a[100];
  cin>>a;
  if (20190430<a)
  {
    cout<<"Heisei";
  }
  else
  {
    cout<<"TBD";
  }
  return 0;
}

Compiler output:
a.cc:3:7: error: expected nested-name-specifier before 'std'
    3 | using std
      |       ^~~
Language: C

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

int main(void){
  char tmp[12];
  char year[5];
  char month[3];
  char day[3];
  int y, m, d;
//  scanf("%s", m);
//  printf("aaaaa");
//  y = 2019;
//  m = 03;
//  d = 16;

  year = strncpy(year, tmp, 4);
  month = strncpy(month, tmp+5, 2);
  day = strncpy(day, tmp+8, 2);


  y = atoi(year);
  m = atoi(month);
  d = atoi(tmp);
  
  if(y > 2019){
    printf("TBD");
  }else if( y < 2019){
    printf("Heisei");
  }else if( m > 4){
    printf("TBD");
  }else if(m < 4){
    printf("Heisei");
  }else if(d > 30){
    printf("TBD");
  }else{
    printf("Heisei");
  }
    
 return 0;
}


Compiler output:
main.c: In function 'main':
main.c:16:8: error: assignment to expression with array type
   16 |   year = strncpy(year, tmp, 4);
      |        ^
main.c:17:9: error: assignment to expression with array type
   17 |   month = strncpy(month, tmp+5, 2);
      |         ^
main.c:18:7: error: assignment to expression with array type
   18 |   day = strncpy(day, tmp+8, 2);
      |       ^
main.c:21:7: error: implicit declaration of function 'atoi' [-Wimplicit-function-declaration]
   21 |   y = atoi(year);
      |       ^~~~
Language: C++

#include <bits/stdc++.h>
{
  int m;
  if mm>=5 → cout "TDG"
    else → cout "heisei"
}
      

Compiler output:
a.cc:4:12: error: extended character → is not valid in an identifier
    4 |   if mm>=5 → cout "TDG"
      |            ^
a.cc:5:10: error: extended character → is not valid in an identifier
    5 |     else → cout "heisei"
      |          ^
a.cc:2:1: error: expected unqualified-id before '{' token
    2 | {
      | ^
Language: C

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

int Main(void) {
	char    str[11];
	char    *p;
	int		cnt = 0,check;

	check = scanf("%s", str);
	p = strtok(str, "/");
	while (p)
	{
		if (cnt == 1 && (strcmp(p,"01")==0 || strcmp(p, "02") == 0 || strcmp(p, "03") == 0 || strcmp(p, "04") == 0)) {
			printf("Heisei\n");
			return 0;
		}
		p = strtok(NULL, "/");
		cnt++;
	}
	printf("TBD\n");
		return 0;
	}

Compiler output:
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: Java

import java.util.*;
public class Main {
	public static void main(String[]args) {
		Scanner sc=new Scanner(System.in);
		String po=sc.nextLine();
      po=po.replace("/",".");
      String p[]=po.substring(".",0);
		System.out.println((Integer.parseInt(p[1])<5)?"Heisei":"TBD");
	}
}


Compiler output:
Main.java:7: error: incompatible types: String cannot be converted to int
      String p[]=po.substring(".",0);
                              ^
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
1 error
Language: Java

import java.util.*;
public class Main {
	public static void main(String[]args) {
		Scanner sc=new Scanner(System.in);
		String po=sc.nextLine();
      String p[]=po.substring("//",0);
		System.out.println((Integer.parseInt(p[1])<5)?"Heisei":"TBD");
	}
}


Compiler output:
Main.java:6: error: incompatible types: String cannot be converted to int
      String p[]=po.substring("//",0);
                              ^
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
1 error
Language: C

#include <stdio.h>

int Main(void) {
	char    str[11];
	char    *p;
	int		cnt = 0;

	scanf("%s", str);
	p = strtok(str, "/");
	while (p)
	{
		if (cnt == 1 && (strcmp(p,"01")==0 || strcmp(p, "02") == 0 || strcmp(p, "03") == 0 || strcmp(p, "04") == 0)) {
			printf("Heisei\n");
			return 0;
		}
		p = strtok(NULL, "/");
		cnt++;
	}
	printf("TBD\n");
		return 0;
	}

Compiler output:
main.c: In function 'Main':
main.c:9:13: error: implicit declaration of function 'strtok' [-Wimplicit-function-declaration]
    9 |         p = strtok(str, "/");
      |             ^~~~~~
main.c:9:11: error: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
    9 |         p = strtok(str, "/");
      |           ^
main.c:12:34: error: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration]
   12 |                 if (cnt == 1 && (strcmp(p,"01")==0 || strcmp(p, "02") == 0 || strcmp(p, "03") == 0 || strcmp(p, "04") == 0)) {
      |                                  ^~~~~~
main.c:2:1: note: include '<string.h>' or provide a declaration of 'strcmp'
    1 | #include <stdio.h>
  +++ |+#include <string.h>
    2 | 
main.c:16:19: error: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
   16 |                 p = strtok(NULL, "/");
      |                   ^
Language: Java

import java.util.*;
public class Main {
	public static void main(String[]args) {
		Scanner sc=new Scanner(System.in);
		String po=sc.nextLine();
      String p[]=po.substring("/",0);
		System.out.println((Integer.parseInt(p[1])<5)?"Heisei":"TBD");
	}
}


Compiler output:
Main.java:6: error: incompatible types: String cannot be converted to int
      String p[]=po.substring("/",0);
                              ^
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
1 error
Language: C

#include <stdio.h>

int Main(void) {
	char    str[11];
	char    *p;
	int		cnt = 0;

	scanf("%s", str);
	p = strtok(str, "/");
	while (p)
	{
		if (cnt == 1 && (strcmp(p,"01")==0 || strcmp(p, "02") == 0 || strcmp(p, "03") == 0 || strcmp(p, "04") == 0)) {
			printf("Heisei\n");
			return;
		}
		p = strtok(NULL, "/");
		cnt++;
	}
	printf("TBD\n");
		return 0;
	}

Compiler output:
main.c: In function 'Main':
main.c:9:13: error: implicit declaration of function 'strtok' [-Wimplicit-function-declaration]
    9 |         p = strtok(str, "/");
      |             ^~~~~~
main.c:9:11: error: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
    9 |         p = strtok(str, "/");
      |           ^
main.c:12:34: error: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration]
   12 |                 if (cnt == 1 && (strcmp(p,"01")==0 || strcmp(p, "02") == 0 || strcmp(p, "03") == 0 || strcmp(p, "04") == 0)) {
      |                                  ^~~~~~
main.c:2:1: note: include '<string.h>' or provide a declaration of 'strcmp'
    1 | #include <stdio.h>
  +++ |+#include <string.h>
    2 | 
main.c:14:25: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch]
   14 |                         return;
      |                         ^~~~~~
main.c:3:5: note: declared here
    3 | int Main(void) {
      |     ^~~~
main.c:16:19: error: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
   16 |                 p = strtok(NULL, "/");
      |                   ^
Language: C

#include <stdio.h>
#include <string.h>
int main(void){
  char a[20];
  scanf("%s",&a);
  if(strcmp(a,"2019/04/30")==0)
  {
    printf("Heisei");
  }
  else{
    printf("TBD");
  }
printf 0;
}

Compiler output:
main.c: In function 'main':
main.c:13:7: error: expected ';' before numeric constant
   13 | printf 0;
      |       ^~
      |       ;