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

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

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

#include <stdio.h>
#include <string.h>
int main(void){
  char a;
  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:6:13: error: passing argument 1 of 'strcmp' makes pointer from integer without a cast [-Wint-conversion]
    6 |   if(strcmp(a,"2019/04/30")==0){printf("Heisei");}
      |             ^
      |             |
      |             char
In file included from main.c:2:
/usr/include/string.h:156:32: note: expected 'const char *' but argument is of type 'char'
  156 | extern int strcmp (const char *__s1, const char *__s2)
      |                    ~~~~~~~~~~~~^~~~
main.c:8:7: error: expected ';' before numeric constant
    8 | printf 0;
      |       ^~
      |       ;
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:6:13: error: passing argument 1 of 'strcmp' makes pointer from integer without a cast [-Wint-conversion]
    6 |   if(strcmp(a,"Heisei")==0){printf("Heisei");}
      |             ^
      |             |
      |             char
In file included from main.c:2:
/usr/include/string.h:156:32: note: expected 'const char *' but argument is of type 'char'
  156 | extern int strcmp (const char *__s1, const char *__s2)
      |                    ~~~~~~~~~~~~^~~~
main.c:8:7: error: expected ';' before numeric constant
    8 | printf 0;
      |       ^~
      |       ;
Language: C

#include <stdio.h>
#include <string.h>
int main(void){
  char a;
  scanf("%s",&a);
  if(!strcmp(a, "Heisei")){printf("Heisei");}
  else{printf("TBD");}
printf 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:14: error: passing argument 1 of 'strcmp' makes pointer from integer without a cast [-Wint-conversion]
    6 |   if(!strcmp(a, "Heisei")){printf("Heisei");}
      |              ^
      |              |
      |              char
In file included from main.c:2:
/usr/include/string.h:156:32: note: expected 'const char *' but argument is of type 'char'
  156 | extern int strcmp (const char *__s1, const char *__s2)
      |                    ~~~~~~~~~~~~^~~~
main.c:8:7: error: expected ';' before numeric constant
    8 | printf 0;
      |       ^~
      |       ;
Language: C++

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

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

#include <stdio.h>
#include <string.h>
int main(void){
  char s;
  scanf("%s",&s);
  if(!strcmp(s, "Heisei")){printf("Heisei");}
  else{printf("TBD");}
printf 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:14: error: passing argument 1 of 'strcmp' makes pointer from integer without a cast [-Wint-conversion]
    6 |   if(!strcmp(s, "Heisei")){printf("Heisei");}
      |              ^
      |              |
      |              char
In file included from main.c:2:
/usr/include/string.h:156:32: note: expected 'const char *' but argument is of type 'char'
  156 | extern int strcmp (const char *__s1, const char *__s2)
      |                    ~~~~~~~~~~~~^~~~
main.c:8:7: error: expected ';' before numeric constant
    8 | printf 0;
      |       ^~
      |       ;
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:29: error: passing argument 2 of 'strncpy' makes pointer from integer without a cast [-Wint-conversion]
   17 |   month = strncpy(month, tmp[5], 2);
      |                          ~~~^~~
      |                             |
      |                             char
In file included from main.c:2:
/usr/include/string.h:145:46: note: expected 'const char * restrict' but argument is of type 'char'
  145 |                       const char *__restrict __src, size_t __n)
      |                       ~~~~~~~~~~~~~~~~~~~~~~~^~~~~
main.c:17:9: error: assignment to expression with array type
   17 |   month = strncpy(month, tmp[5], 2);
      |         ^
main.c:18:25: error: passing argument 2 of 'strncpy' makes pointer from integer without a cast [-Wint-conversion]
   18 |   day = strncpy(day, tmp[8], 2);
      |                      ~~~^~~
      |                         |
      |                         char
/usr/include/string.h:145:46: note: expected 'const char * restrict' but argument is of type 'char'
  145 |                       const char *__restrict __src, size_t __n)
      |                       ~~~~~~~~~~~~~~~~~~~~~~~^~~~~
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 <iostream>
#include <string>

void main() {

	std::string str;
	std::cin >> str;
	if (str == "2019/04/30") {
		std::cout << "Heisei" << std::endl;
	}
	else {

		std::cout << "TBD" << std::endl;
	}

	system("pause");
}


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

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

int main(void){
  char m[12];
  int y, m, d;
  scanf("%s", m);
  
  y = atoi(m[0]) * 1000 + atoi(m[1]) * 100 + atoi(m[2]) * 10 + atoi(m[3]);
  m = atoi(m[5]) * 10 + atoi(m[6]);
  d = atoi(m[8]) * 10 + atoi(m[9]);
  
  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:7:10: error: conflicting types for 'm'; have 'int'
    7 |   int y, m, d;
      |          ^
main.c:6:8: note: previous declaration of 'm' with type 'char[12]'
    6 |   char m[12];
      |        ^
Language: C++

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

int main() {

  string s ;
  cin >> s;
  
if(s.at(0)<2){
  cout << "Heisei" << endl;
}
  else{
    if(s.at(0)>3){
    cout << "TBD" << endl;
    }
    else{
      if(s.at(1)>0){
        cout << "TBD" << endl;
      }
      else{
    if(s.at(2)<1){
    cout << "Heisei" << endl;
  }
  else{
  if(s.at(2)=1, s.at(3)<9){
  cout << "Heisei" <<endl;
  }
    else{
      if(s.at(2)=1, s.at(3)=9, s.at(5)=0, s.at(6)=5){
        cout << "Heisei" << endl;
      }
      else{
      cout << "TBD" << endl;
      }
    }
  }
      
} 


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

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

int main() {

  string s ;
  cin >> s;
  
if(s.at(0)<2){
  cout << "Heisei" << endl;
}
  else{
    if(s.at(0)>3){
    cout << "TBD" << endl;
    }
    else{
      if(s.at(1)>0){
        cout << "TBD" << endl;
      }
      else{
    if(s.at(2)<1){
    cout << "Heisei" << endl;
  }
  else{
  if(s.at(2)=1, s.at(3)<9){
  cout << "Heisei" <<endl;
  }
    else{
      if(s.at(2)=1, s.at(3)=9, s.at(5)=0, s.at(6)=5){
        cout << "Heisei" << endl;
      }
      else{
      cout << "TBD" << endl;
      }
    }
  }
      }
} 


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

#include "pch.h"
#include <stdio.h>
#include <string.h>
#include <stdlib.h>

int main(void)
{
  char a[32];
  char *b;
  char *ctx;
   scanf_s("%s", a);
   b = strtok_s(a, "/", &ctx);
   long r = strtol(b, 0, 10);
   if (r > 2019)
   {
	   printf("TBD");
   }
   else if (r == 2019)
   {
	   b = strtok_s(NULL, "/", &ctx);
	   r = strtol(b, 0, 10);
	   if (r <= 4)
	   {
		   printf("Heisei");
	   }
	   else
	   {
		   printf("TBD");
	   }
   }
   else
   {
	   printf("Heisei");
   }
   return 0;
}


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

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

int main(void)
{
  char a[32];
  char *b;
  char *ctx;
   scanf("%s", a);
   b = strtok(a, "/", &ctx);
   long r = strtol(b, 0, 10);
   if (r > 2019)
   {
	   printf("TBD");
   }
   else if (r == 2019)
   {
	   b = strtok(NULL, "/", &ctx);
	   r = strtol(b, 0, 10);
	   if (r <= 4)
	   {
		   printf("Heisei");
	   }
	   else
	   {
		   printf("TBD");
	   }
   }
   else
   {
	   printf("Heisei");
   }
   return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:14: error: too many arguments to function 'char* strtok(char*, const char*)'
   11 |    b = strtok(a, "/", &ctx);
      |        ~~~~~~^~~~~~~~~~~~~~
In file included from a.cc:2:
/usr/include/string.h:356:14: note: declared here
  356 | extern char *strtok (char *__restrict __s, const char *__restrict __delim)
      |              ^~~~~~
a.cc:19:22: error: too many arguments to function 'char* strtok(char*, const char*)'
   19 |            b = strtok(NULL, "/", &ctx);
      |                ~~~~~~^~~~~~~~~~~~~~~~~
/usr/include/string.h:356:14: note: declared here
  356 | extern char *strtok (char *__restrict __s, const char *__restrict __delim)
      |              ^~~~~~
Language: C++

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

int main() {
  int S;
  cin >> S;
  if (yyyy < 2019){
    cout << "Heisei" << endl;
  }
  else if (yyyy == 2019 && mm <= 04){
    cout << "Heisei" << endl;
  }
  else{
    cout << "TBD" << endl;
  }
  
  
}




Compiler output:
a.cc: In function 'int main()':
a.cc:7:7: error: 'yyyy' was not declared in this scope
    7 |   if (yyyy < 2019){
      |       ^~~~
a.cc:10:28: error: 'mm' was not declared in this scope; did you mean 'tm'?
   10 |   else if (yyyy == 2019 && mm <= 04){
      |                            ^~
      |                            tm
Language: C++

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

int main(void)
{
  char a[32];
  char *b;
  char *ctx;
   scanf_s("%s", a);
   b = strtok_s(a, "/", &ctx);
   long r = strtol(b, 0, 10);
   if (r > 2019)
   {
	   printf("TBD");
   }
   else if (r == 2019)
   {
	   b = strtok_s(NULL, "/", &ctx);
	   r = strtol(b, 0, 10);
	   if (r <= 4)
	   {
		   printf("Heisei");
	   }
	   else
	   {
		   printf("TBD");
	   }
   }
   else
   {
	   printf("Heisei");
   }
   return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:4: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
   10 |    scanf_s("%s", a);
      |    ^~~~~~~
      |    scanf
a.cc:11:8: error: 'strtok_s' was not declared in this scope; did you mean 'strtok_r'?
   11 |    b = strtok_s(a, "/", &ctx);
      |        ^~~~~~~~
      |        strtok_r
Language: C

#include "pch.h"
#include <stdio.h>
#include <string.h>
#include <stdlib.h>

int main(void)
{
  char a[32];
  char *b;
  char *ctx;
   scanf_s("%s", a);
   b = strtok_s(a, "/", &ctx);
   long r = strtol(b, 0, 10);
   if (r > 2019)
   {
	   printf("TBD");
   }
   else if (r == 2019)
   {
	   b = strtok_s(NULL, "/", &ctx);
	   r = strtol(b, 0, 10);
	   if (r <= 4)
	   {
		   printf("Heisei");
	   }
	   else
	   {
		   printf("TBD");
	   }
   }
   else
   {
	   printf("Heisei");
   }
   return 0;
}


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

#include <bits/stdc++.h>
#include <algorithm>
#include <limits>
#include <stdlib.h> 
using namespace std;
 
int main(){
    string S;
    cin>>S;
    int year,month,day;
    sscanf(S,"%d/%d/%d",&year,&month,&day);

    long s=day+month*100+year*10000;
    if(s>20190430)cout<<"Heisei"<<endl;
    else cout<<"TBD"<<endl;
}
    
    


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

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

int main() {

  string s ;
  cin >> s;
  
if(s.at(0)<2){
  cout << "Heisei" << endl;
}
  else{
    if(s.at(2)<1)
    cout << "Heisei" << endl;
  }
  else{
  if(s.at(2)=1, s.at(3)<9){
  cout << "Heisei" <<endl;
  }
    else{
      if(s.at(2)=1, s.at(3)=9, s.at(5)=0, s.at(6)=5){
        cout << "Heisei" << endl;
      }
      else{
      cout << "TBD" << endl;
      }
    }
  }
  }

} 


Compiler output:
a.cc: In function 'int main()':
a.cc:16:3: error: 'else' without a previous 'if'
   16 |   else{
      |   ^~~~
a.cc: At global scope:
a.cc:31:1: error: expected declaration before '}' token
   31 | }
      | ^
Language: Java

public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        String S = sc.next();
        int year = Integer.parseInt(S.substring(0,4));
        int month = Integer.parseInt(S.substring(5,7));
        int day = Integer.parseInt(S.substring(8,10));

        if(year < 2019){
            System.out.println("Heisei");
            return;
        }
        if(month <= 4 && year==2019){
            System.out.println("Heisei");
            return;
        }
//        if(month == 4 && day<=30 && year==2019) System.out.println("Heisei");
        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
2 errors
Language: C++

#include<stdio.h>
int main(void){
  int m;
  int array[4]={01,02,03,04};
  scanf("%d",&m);
  int d;
  for(d=0; d<30; d++){
    int array[d]=d;
  }
  if(m=array[]&&d<30){
    printf("Heisei");
  }else{
    printf("BTD");
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:18: error: array must be initialized with a brace-enclosed initializer
    8 |     int array[d]=d;
      |                  ^
a.cc:10:14: error: expected primary-expression before ']' token
   10 |   if(m=array[]&&d<30){
      |              ^
Language: C++

#include <iostream>
#include <vector>
#include <algorithm>

#include <cstdio>
#include <climits>
#include <cstdlib>



using namespace std;

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

  bool HEISEI = true;
  if(S[5] == '1'){
    HEISEI = false;
  }else{
    int i = stoi(S[6]);
    if(i > 4){
      HEISEI = false;
    }
  }

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

  return 0;
}


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

#include<stdio.h>
int main(void){
  int m;
  int array[3]={01,02,03,04};
  scanf("&d",&m);
  int d;
  for(d=0; d<30; d++){
    int array[d]=d;
  }
  if(m=array[]&&d<30){
    printf("Heisei");
  }else{
    printf("BTD");
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:28: error: too many initializers for 'int [3]'
    4 |   int array[3]={01,02,03,04};
      |                            ^
a.cc:8:18: error: array must be initialized with a brace-enclosed initializer
    8 |     int array[d]=d;
      |                  ^
a.cc:10:14: error: expected primary-expression before ']' token
   10 |   if(m=array[]&&d<30){
      |              ^
Language: C++

#include <iostream>
#include <string>

using namespace std;

int main()
{
  string s;
  cin >> s;
  int month = atoi(s.substr(5,2));
  int day = atoi(s.substr(8,2));
  
  if(month <= 4)
    cout << "Heisei" << endl;
  else if (day <= 30)
    cout << "Heisei" << endl;
  else
    cout << "TBD" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:28: error: cannot convert 'std::__cxx11::basic_string<char>' to 'const char*'
   10 |   int month = atoi(s.substr(5,2));
      |                    ~~~~~~~~^~~~~
      |                            |
      |                            std::__cxx11::basic_string<char>
In file included from /usr/include/c++/14/cstdlib:79,
                 from /usr/include/c++/14/ext/string_conversions.h:43,
                 from /usr/include/c++/14/bits/basic_string.h:4154,
                 from /usr/include/c++/14/string:54,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/stdlib.h:105:30: note:   initializing argument 1 of 'int atoi(const char*)'
  105 | extern int atoi (const char *__nptr)
      |                  ~~~~~~~~~~~~^~~~~~
a.cc:11:26: error: cannot convert 'std::__cxx11::basic_string<char>' to 'const char*'
   11 |   int day = atoi(s.substr(8,2));
      |                  ~~~~~~~~^~~~~
      |                          |
      |                          std::__cxx11::basic_string<char>
/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<string.h>
int main()
{
  char str_s[];
  char *str_c="2019/04/30";
  char *str;
  scanf("%s",str_s);
  str=str_s;
  if(strcmp(str,str_c)==0||strcmp(str,str_c)<0)
  {
    printf("Heisei");
  }
  else
  {
    printf("TBD");
  }
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:5:8: error: array size missing in 'str_s'
    5 |   char str_s[];
      |        ^~~~~
Language: C

#include<stdio.h>
int main(void){
  int i=0;
  char S[11],T[]="2019/04/30";
  scanf("%s"S);
  while(i<=9){
    if(i==4 || i==9){
      continue;
    }
    if(S[i]>=T[i] && i>='0' && i<='9'){
      printf("TBD\n");
      return 0;
    }
    i++;
  }
  printf("Heisei\n");
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:13: error: expected ')' before 'S'
    5 |   scanf("%s"S);
      |        ~    ^
      |             )
Language: C++

#include <iostream>
#icnlude <string>

using namespace std;

int main()
{
  string s;
  cin >> s;
  int month = atoi(s.substr(5,2));
  int day = atoi(s.substr(8,2));
  
  if(month <= 4)
    cout << "Heisei" << endl;
  else if (day <= 30)
    cout << "Heisei" << endl;
  else
    cout << "TBD" << endl;
}

Compiler output:
a.cc:2:2: error: invalid preprocessing directive #icnlude; did you mean #include?
    2 | #icnlude <string>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:10:28: error: cannot convert 'std::__cxx11::basic_string<char>' to 'const char*'
   10 |   int month = atoi(s.substr(5,2));
      |                    ~~~~~~~~^~~~~
      |                            |
      |                            std::__cxx11::basic_string<char>
In file included from /usr/include/c++/14/cstdlib:79,
                 from /usr/include/c++/14/ext/string_conversions.h:43,
                 from /usr/include/c++/14/bits/basic_string.h:4154,
                 from /usr/include/c++/14/string:54,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/stdlib.h:105:30: note:   initializing argument 1 of 'int atoi(const char*)'
  105 | extern int atoi (const char *__nptr)
      |                  ~~~~~~~~~~~~^~~~~~
a.cc:11:26: error: cannot convert 'std::__cxx11::basic_string<char>' to 'const char*'
   11 |   int day = atoi(s.substr(8,2));
      |                  ~~~~~~~~^~~~~
      |                          |
      |                          std::__cxx11::basic_string<char>
/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<iostream>
using namespace std;
int main{
  int a,c,e;
  char b,d;
  cin>>a>>b>>c>>d>>e;
  if(b>4)
    cout<<"TBD";
  else
    cout<<"Heisei";
}

Compiler output:
a.cc:3:5: error: cannot declare '::main' to be a global variable
    3 | int main{
      |     ^~~~
a.cc:4:3: error: expected primary-expression before 'int'
    4 |   int a,c,e;
      |   ^~~
a.cc:4:3: error: expected '}' before 'int'
a.cc:3:9: note: to match this '{'
    3 | int main{
      |         ^
a.cc:6:3: error: 'cin' does not name a type
    6 |   cin>>a>>b>>c>>d>>e;
      |   ^~~
a.cc:7:3: error: expected unqualified-id before 'if'
    7 |   if(b>4)
      |   ^~
a.cc:9:3: error: expected unqualified-id before 'else'
    9 |   else
      |   ^~~~
a.cc:11:1: error: expected declaration before '}' token
   11 | }
      | ^
Language: C++

s = list(map(int, input().split("/")))
print("Heisei" if 10000*s[0]+100*s[1]+s[2] <= 20190430 else "TBD")

Compiler output:
a.cc:1:1: error: 's' does not name a type
    1 | s = list(map(int, input().split("/")))
      | ^
Language: Java

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;

public class AtCoder_test {
    public static void main(String[] args) {

        int y, m, d;

        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        try {
            String line = br.readLine();

            String[] tbcConnection = line.split("/");
            int cnt = 0;
            int ok_cnt = 0;
            int end_flg = 0;
            for (String tbc : tbcConnection) {
                if (end_flg == 0){
                    if (Integer.parseInt(tbc) < 2019 && cnt == 0) {
                        ok_cnt++;
                    }

                    cnt++;



                    if(Integer.parseInt(tbc) > 2019 && cnt == 1 && ok_cnt == 0) {
                        System.out.println("TDC");
                        end_flg++;
                    } else if (Integer.parseInt(tbc) > 4 && cnt == 2 && ok_cnt == 0) {
                        System.out.println("TDC");
                        end_flg++;
                    } else if (Integer.parseInt(tbc) > 30 && cnt == 3 && ok_cnt == 0) {
                        System.out.println("TDC");
                        end_flg++;
                    }
                }

            }

            if (end_flg == 0) {
                System.out.println("Heisei");
            } else {
                System.out.println();
            }


        } catch (IOException e) {
            System.out.println(e);
        }
    }
}


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

#include<stdio.h>
#include<string.h>
int main()
{
  char *str_s;
  char *str_c="2019/04/30";
  scanf("%s",str_s[]);
  if(strcmp(str_s,str_c)==0||strcmp(str_s,str_c)<0)
  {
    printf("Heisei");
  }
  else
  {
    printf("TBD");
  }
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:7:20: error: expected expression before ']' token
    7 |   scanf("%s",str_s[]);
      |                    ^
Language: C

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

int main(void){
  char m[12];
  int y, m, d;
  scanf("%s", m);
  
  y = atoi(m[0]) * 1000 + atoi(m[1]) * 100 + atoi(m[2]) * 10 + atoi(m[3]);
  m = atoi(m[5]) * 10 + atoi(m[6]);
  d = atoi(m[8]) * 10 + atoi(m[9]);
  
  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:6:10: error: conflicting types for 'm'; have 'int'
    6 |   int y, m, d;
      |          ^
main.c:5:8: note: previous declaration of 'm' with type 'char[12]'
    5 |   char m[12];
      |        ^
main.c:9:7: error: implicit declaration of function 'atoi' [-Wimplicit-function-declaration]
    9 |   y = atoi(m[0]) * 1000 + atoi(m[1]) * 100 + atoi(m[2]) * 10 + atoi(m[3]);
      |       ^~~~
Language: C

#include<stdio.h>
#include<string.h>
int main()
{
  char str_s[];
  char *str_c="2019/04/30";
  scanf("%s",str_s);
  if(strcmp(str_s,str_c)==0||strcmp(str_s,str_c)<0)
  {
    printf("Heisei");
  }
  else
  {
    printf("TBD");
  }
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:5:8: error: array size missing in 'str_s'
    5 |   char str_s[];
      |        ^~~~~
Language: C++

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

int main() {
  string S;
  cin>>S;
  int a=int(str.substr(0,4));
  int b=int(str.substr(5,2));
  cout<<a;
  if(a<2019){
    cout<<"Heisei"<<endl;
  }
  else if(a==2019 && b<=4)
    cout<<"Heisei"<<endl;
  else{
    cout<<"TBD"<<endl;
  }
}

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

#include<studio.h>
int main(void){
  int a,b,c;
  char d,e;
  scanf("%d%c%d%c%d",&a,&d,&b,&e,&c);
  if(a<=2019 && b<=04){
    printf("Heisei\n");
  }else{
    printf("TBD\n");
  }
}
      

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

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

int main() {
  string S;
  cin>>S;
  int a=int(str.substr(0,3));
  int b=int(str.substr(5,6));
  cout<<a;
  if(a<2019){
    cout<<"Heisei"<<endl;
  }
  else if(a==2019 && b<=4)
    cout<<"Heisei"<<endl;
  else{
    cout<<"TBD"<<endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:13: error: 'str' was not declared in this scope; did you mean 'std'?
    7 |   int a=int(str.substr(0,3));
      |             ^~~
      |             std
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
  	int a,b,n,m,k;
  	scanf("%d/%d%d/%d%d",&n,&a,&m,&b,&k);
  	m=a*10+m;
  	k=b*10=k;
      if(n<=2019)
      {
        if(m<=4)
        {
          if(k<=30)
        	printf("Heisei");
          else
          {
            	printf("TBD");
          }
        }
        else
        {
          	printf("TBD");
        }
      }
  	else
    {
      printf("TBD");
    }
  	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: lvalue required as left operand of assignment
    8 |         k=b*10=k;
      |           ~^~~
Language: C++

#include <string>
#include <sstream>
#include <vector>
#include <cstdlib>
using namespace std;

int main(){
	string S;
	string str;
	vector<string> result;
	cin >> S;
	istringstream iss(S);
	int count=0;
	getline(iss,str,'/');
	int num1 = atoi(str.c_str());
	getline(iss,str,'/');
	int num2 = atoi(str.c_str());
	getline(iss,str,' ');
	int num3 = atoi(str.c_str());

	if(num1 > 2019){
		count++;
	}else if((num1 == 2019 && num2 > 5) || (num1 == 2019 && num2 == 4 && num3>30)){
		count++;
	}

	if(count == 0){
		cout << "Heisei" << endl;
	}else{
		cout << "TBD" << endl;
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:9: error: 'cin' was not declared in this scope
   11 |         cin >> S;
      |         ^~~
a.cc:5:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    4 | #include <cstdlib>
  +++ |+#include <iostream>
    5 | using namespace std;
a.cc:28:17: error: 'cout' was not declared in this scope
   28 |                 cout << "Heisei" << endl;
      |                 ^~~~
a.cc:28:17: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:30:17: error: 'cout' was not declared in this scope
   30 |                 cout << "TBD" << endl;
      |                 ^~~~
a.cc:30:17: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:5:8: error: array size missing in 'str_s'
    5 |   char str_s[];
      |        ^~~~~
Language: C

#include <stdio.h>

int main(void){
  char m[12];
  scanf("%s", m);
  
  if(> 2019){
    printf("TBD");
  }else if( < 2019){
    printf("heisei");
  }else if( <4){
    
  
  }




 return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:6: error: expected expression before '>' token
    7 |   if(> 2019){
      |      ^
main.c:9:13: error: expected expression before '<' token
    9 |   }else if( < 2019){
      |             ^
main.c:11:13: error: expected expression before '<' token
   11 |   }else if( <4){
      |             ^
Language: C

#include<stdio.h>
#include<string.h>
it main()
{
  char *str_s;
  char *str_c="2019/04/30";
  scanf("%s",str_s);
  if(strcmp(str_s,str_c)==0||strcmp(str_s,str_c)<0)
  {
    printf("Heisei");
  }
  else
  {
    printf("TBD");
  }
  return 0;
}


Compiler output:
main.c:3:1: error: unknown type name 'it'; did you mean 'int'?
    3 | it main()
      | ^~
      | int
Language: C

#include<stdio.h>
#include<string.h>
it main()
{
  char *str_s[];
  char *str_c[]="2019/04/30";
  scanf("%s",str_s);
  if(strcmp(str_s,str_c)==0||strcmp(str_s,str_c)<0)
  {
    printf("Heisei");
  }
  else
  {
    printf("TBD");
  }
  return 0;
}


Compiler output:
main.c:3:1: error: unknown type name 'it'; did you mean 'int'?
    3 | it main()
      | ^~
      | int
main.c: In function 'main':
main.c:5:9: error: array size missing in 'str_s'
    5 |   char *str_s[];
      |         ^~~~~
main.c:6:17: error: invalid initializer
    6 |   char *str_c[]="2019/04/30";
      |                 ^~~~~~~~~~~~
main.c:8:13: error: passing argument 1 of 'strcmp' from incompatible pointer type [-Wincompatible-pointer-types]
    8 |   if(strcmp(str_s,str_c)==0||strcmp(str_s,str_c)<0)
      |             ^~~~~
      |             |
      |             char **
In file included from main.c:2:
/usr/include/string.h:156:32: note: expected 'const char *' but argument is of type 'char **'
  156 | extern int strcmp (const char *__s1, const char *__s2)
      |                    ~~~~~~~~~~~~^~~~
main.c:8:19: error: passing argument 2 of 'strcmp' from incompatible pointer type [-Wincompatible-pointer-types]
    8 |   if(strcmp(str_s,str_c)==0||strcmp(str_s,str_c)<0)
      |                   ^~~~~
      |                   |
      |                   char **
/usr/include/string.h:156:50: note: expected 'const char *' but argument is of type 'char **'
  156 | extern int strcmp (const char *__s1, const char *__s2)
      |                                      ~~~~~~~~~~~~^~~~
main.c:8:37: error: passing argument 1 of 'strcmp' from incompatible pointer type [-Wincompatible-pointer-types]
    8 |   if(strcmp(str_s,str_c)==0||strcmp(str_s,str_c)<0)
      |                                     ^~~~~
      |                                     |
      |                                     char **
/usr/include/string.h:156:32: note: expected 'const char *' but argument is of type 'char **'
  156 | extern int strcmp (const char *__s1, const char *__s2)
      |                    ~~~~~~~~~~~~^~~~
main.c:8:43: error: passing argument 2 of 'strcmp' from incompatible pointer type [-Wincompatible-pointer-types]
    8 |   if(strcmp(str_s,str_c)==0||strcmp(str_s,str_c)<0)
      |                                           ^~~~~
      |                                           |
      |                                           char **
/usr/include/string.h:156:50: note: expected 'const char *' but argument is of type 'char **'
  156 | extern int strcmp (const char *__s1, const char *__s2)
      |                                      ~~~~~~~~~~~~^~~~
Language: C

#include<stdio.h>
#include<string.h>
it main()
{
  char str_s[];
  char str_c[]="2019/04/30";
  scanf("%s",str_s);
  if(strcmp(str_s,str_c)==0||strcmp(str_s,str_c)<0)
  {
    printf("Heisei");
  }
  else
  {
    printf("TBD");
  }
  return 0;
}


Compiler output:
main.c:3:1: error: unknown type name 'it'; did you mean 'int'?
    3 | it main()
      | ^~
      | int
main.c: In function 'main':
main.c:5:8: error: array size missing in 'str_s'
    5 |   char str_s[];
      |        ^~~~~
Language: C++

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

int main() {

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

} 

Compiler output:
a.cc: In function 'int main()':
a.cc:9:7: error: expected primary-expression before '=' token
    9 | if(s<==2019/04/30){
      |       ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:47: error: lvalue required as left operand of assignment
    7 |     if(s[6] = '4' || s[6] = '3' || s[6] = '2' || s[6] = '1') {
Language: C

#include <stdio.h>
 
int main(void){
 
  char date[10];
  
  scanf("%s",date);
  
  if(date[5] == '1')
    printf("TBD");
  
  if(date[5] == '0'){
    if(date[6] == '1'
      printf("Heisei");
    else if(date[6] == '2')
      printf("Heisei");
    else if(date[6] == '3')
      printf("Heisei");
    else if(date[6] == '4')
      printf("Heisei");
       
    else
    printf("TBD");
  }
  
 
return 0;
}


Compiler output:
main.c: In function 'main':
main.c:13:22: error: expected ')' before 'printf'
   13 |     if(date[6] == '1'
      |       ~              ^
      |                      )
   14 |       printf("Heisei");
      |       ~~~~~~          
main.c:24:3: error: expected expression before '}' token
   24 |   }
      |   ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
// define
#define int long long
#define UNIQUE(v) v.erase(unique(all(v)), v.end());
#define ZIP(v) sort(all(v)),UNIQUE(v)
#define ADD(a, b) a = (a + b) % mod
#define SUB(a, b) a = (a+mod-b)%mod
#define MUL(a, b) a = (((a)%mod) * ((b)%mod)) % mod
#define rollcall cout << "I'm Sucu." << endl;
#define repi(i,m,n) for(int i = m;i < n;i++)
#define drep(i,n,m) for(int i = n;i >= m;i--)
#define rep(i,n) repi(i,0,n)
#define rrep(i,n) repi(i,1,n+1)
#define chmin(x,y) x = min(x,y)
#define chmax(x,y) x = max(x,y)
#define all(v) v.begin(),v.end()
#define rall(v) v.rbegin(), v.rend()
#define dmp(x,y) make_pair(x,y)
#define pb(x) push_back(x)
#define pf(x) push_front(x)
#define fi first
#define se second
// debug
template <typename T, typename U>
ostream &operator<<(ostream &os, const pair<T, U> &p){
  os << "(" << p.first << "," << p.second << ")";return os;
}
template <typename T>
ostream &operator<<(ostream &os, const vector<T> &v){
  for (auto it = v.begin();it != v.end();++it){
    if(it != v.begin())os << " ";os << *it;
  }return os;
}
template <typename T, typename U>
ostream &operator<<(ostream &os, const map<T, U> &mp){
  for(auto x: mp)os << "(" << x.first << "," << x.second << ")" << endl;
  return os;
}
template<typename T, int SIZE>
int array_length(const T (&)[SIZE]){return SIZE;}
template<typename T, int N>
void PRINTF(const T (&a)[N], int s = N, int t = -1, bool f = true){
	if(t == -1){rep(i,s){if(i)cout << " ";cout << a[i];}}
	else repi(i,s,t){if(i!=s)cout << " ";cout << a[i];}
	if(f)cout << "\n";
}
template<typename T, int N1, int N2>
void PRINTF(const T (&a)[N1][N2], int h = N1, int w = N2){
	rep(i,h){rep(j,w){cout << a[i][j] << " \n"[j==w-1];}}
}
string substr(const string &str, int S1, int S2 = -1){
  if(S2 == -1)return str.substr(S1);
  return str.substr(S1, S2-S1);
}
// typedef
typedef complex<double> Point;
typedef pair<int, int> P;
typedef pair<int, P> PP;
typedef pair<P, int> Pi;
typedef vector<int> vi;
typedef deque<int> dq;
const int inf = 1e9+7;
const int INF = 1e18+7;
// int sum = accumulate(a, a+n, 0LL);
// int mx = max_element(a, a+n);
// int mn = min_element(a, a+n);
// int cnt = count(a, a+n, k);


int date_to_int(string date){ //ex) 2018/08/05
    int y = stoi(date.substr(0, 4)), m = stoi(date.substr(5, 2)), d = stoi(date.substr(8, 2));
    int ans = 0;
    repi(i,1,y)ans += length_of_year(i);
    repi(i,1,m)ans += length_of_month(y, i);
    return ans + d;
}
signed main(){
  string str;
  cin >> str;
  int d1 = date_to_int("2019/04/30");
  int d2 = date_to_int(str);
  if(d2 <= d1)cout << "Heisei" << endl;
  else cout << "TBD" << endl;
  return 0;
}






Compiler output:
a.cc: In function 'long long int date_to_int(std::string)':
a.cc:74:23: error: 'length_of_year' was not declared in this scope
   74 |     repi(i,1,y)ans += length_of_year(i);
      |                       ^~~~~~~~~~~~~~
a.cc:75:23: error: 'length_of_month' was not declared in this scope
   75 |     repi(i,1,m)ans += length_of_month(y, i);
      |                       ^~~~~~~~~~~~~~~
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:7: error: unreported exception ParseException; must be caught or declared to be thrown
    Date heisei = f.parse("2019/04/30");
                         ^
Main.java:8: error: unreported exception ParseException; must be caught or declared to be thrown
    Date d = f.parse(args[0]);
                    ^
2 errors
Language: C++

#include <stdio.h>

int main(void){

  char date[10];
  
  scanf("%s",&date);
  
  if(date[5] == "1")
    printf("TBD");
  
  if(date[5] == "0"){
    if(date[6] == "1")
      printf("Heisei");
    else if(date[6] == "2")
      printf("Heisei");
    else if(date[6] == "3")
      printf("Heisei");
    else if(date[6] == "4")
      printf("Heisei");
  }
  else
    printf("TBD");

return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |   if(date[5] == "1")
      |      ~~~~~~~~^~~~~~
a.cc:12:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 |   if(date[5] == "0"){
      |      ~~~~~~~~^~~~~~
a.cc:13:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   13 |     if(date[6] == "1")
      |        ~~~~~~~~^~~~~~
a.cc:15:21: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   15 |     else if(date[6] == "2")
      |             ~~~~~~~~^~~~~~
a.cc:17:21: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   17 |     else if(date[6] == "3")
      |             ~~~~~~~~^~~~~~
a.cc:19:21: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   19 |     else if(date[6] == "4")
      |             ~~~~~~~~^~~~~~
Language: C++

#include<bits/stdc++.h>
#include<String>

using namespace std;

int main(){
    string s;
    cin >> s;
    int y[3];
    // cout << s << endl;
  
    int j = 0;
    string t = "";
    for(int i=0;i < s.size();i++){
        if(!('0' <= s[i] && s[i] <= '9')){
            // cout << t << endl;
            y[j] = atoi(t.c_str());
            j++;
            t = "";
            continue;
        }
        t += s[i];
        if(i == s.size()-1){
            y[j] = atoi(t.c_str());
        }
    }

    // cout << y[0] << " " << y[1] << " " << y[2] << endl;

    if(y[0] <= 2019 && y[1] <= 4 && y[2] <= 30){
        cout << "Heisei" << endl;
    }else{
        cout << "TBD" << endl;
    }
 
    return 0;
}


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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: invalid types 'int[int]' for array subscript
    7 |     if(s[7] = '4' || s[7] = '3' || s[7] = '2' || s[7] = '1') {
      |         ^
a.cc:7:23: error: invalid types 'int[int]' for array subscript
    7 |     if(s[7] = '4' || s[7] = '3' || s[7] = '2' || s[7] = '1') {
      |                       ^
a.cc:7:37: error: invalid types 'int[int]' for array subscript
    7 |     if(s[7] = '4' || s[7] = '3' || s[7] = '2' || s[7] = '1') {
      |                                     ^
a.cc:7:51: error: invalid types 'int[int]' for array subscript
    7 |     if(s[7] = '4' || s[7] = '3' || s[7] = '2' || s[7] = '1') {
      |                                                   ^
Language: Java

import java.util.*;

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

Compiler output:
Main.java:6: error: incompatible types: int cannot be converted to String
       String x =sc.nextInt();
                           ^
Main.java:7: error: bad operand types for binary operator '<='
       if(x<="2019/04/30")System.out.println("Heisei");
           ^
  first type:  String
  second type: String
2 errors
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:12: error: expected primary-expression before '<' token
    6 |   if(year =< 4){
      |            ^
Language: C++

#include<iostream>

int main () {
  char moji[10];
  for (int i = 0; i < 10; ++i) {
    std::cin >> moji[i];
    }
  int m1 = moji[5], m2 = moji[6], d1 = moji[8], d2 = moji[9];
  int c = 0;
  if (m1 == 1) {
    ++c;
  }
  else if (m2 > 4) {
    ++c;
  }
  else {}
  
  if (c == 0) {
  std:cout << 'Heisei' << std::endl;
  }
  else {
    std::cout << 'TBD' << std::endl;
  }
  return 0;
}

Compiler output:
a.cc:19:15: warning: multi-character literal with 6 characters exceeds 'int' size of 4 bytes
   19 |   std:cout << 'Heisei' << std::endl;
      |               ^~~~~~~~
a.cc:22:18: warning: multi-character character constant [-Wmultichar]
   22 |     std::cout << 'TBD' << std::endl;
      |                  ^~~~~
a.cc: In function 'int main()':
a.cc:19:7: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   19 |   std:cout << 'Heisei' << std::endl;
      |       ^~~~
      |       std::cout
In file included from a.cc:1:
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
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, 4));
  int m1   = stoi(S.substr(5, 1));
  int m2   = stoi(S.substr(6, 1));
  
  if(yyyy == 2019){
    if(m1 == 0 && m2 <= 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