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

#include <iostream>
int main(){
    int y, m ,d;
    char a, b;
    cin >> y >> a >> m >> b >> d;
    cout << (m <= 4 ? "Heisei" : "TBD") << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |     cin >> y >> a >> m >> b >> d;
      |     ^~~
      |     std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:6:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |     cout << (m <= 4 ? "Heisei" : "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:6:44: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |     cout << (m <= 4 ? "Heisei" : "TBD") << endl;
      |                                            ^~~~
      |                                            std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include <stdio.h>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: 'cin' was not declared in this scope
    6 |     cin >> y >> a >> m >> b >> d;
      |     ^~~
a.cc:7:5: error: 'cout' was not declared in this scope
    7 |     cout << (m <= 4 ? "Heisei" : "TBD") << endl;
      |     ^~~~
a.cc:7:44: error: 'endl' was not declared in this scope
    7 |     cout << (m <= 4 ? "Heisei" : "TBD") << endl;
      |                                            ^~~~
Language: C++

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


Compiler output:
a.cc:6:12: warning: multi-character literal with 10 characters exceeds 'int' size of 4 bytes
    6 |   string t='2019/04/30';
      |            ^~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:6:12: error: conversion from 'int' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
Language: Java

import java.util.Scanner;

public class JavaSampleClass {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		String day = scan.next();
		
		int year = Integer.parseInt(day.substring(0,4));
		int mon = Integer.parseInt(day.substring(5,7));
		
		if(year>=2019 && mon >=5) {System.out.println("TBD");}
		else System.out.println("Heisei");
		
	}

}


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

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

int main() {
    string S;
    cin >> S;
    int flag = 0;
    string m = S[5] + S[6];

    if( 4 < stoi(m) ) {
        flag = 1;
    }

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:21: error: conversion from 'int' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
   11 |     string m = S[5] + S[6];
Language: C++

#include <iostream>
using namespace std;

int main() {
	int s;
	cin >> s
		if (s <= 20190430) {
			cout << Heisei;
		}
		else {
			cout << TBD;
		}
	retuen 0
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:17: error: expected ';' before 'if'
    6 |         cin >> s
      |                 ^
      |                 ;
    7 |                 if (s <= 20190430) {
      |                 ~~
a.cc:10:17: error: 'else' without a previous 'if'
   10 |                 else {
      |                 ^~~~
a.cc:11:33: error: 'TBD' was not declared in this scope
   11 |                         cout << TBD;
      |                                 ^~~
a.cc:13:9: error: 'retuen' was not declared in this scope
   13 |         retuen 0
      |         ^~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int N;
  cin >> N;
  double ans=0;
  for (int i = 0; i < M; i++) {
    double x;
    string u;
    cin >> x >> u;
    if (u == "JPY") {
      ans += x;
    }
    else {
      ans += x*380000;
    }
  }
  cout << ans << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:23: error: 'M' was not declared in this scope
    8 |   for (int i = 0; i < M; i++) {
      |                       ^
Language: C++

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

int main(){
  string s;
  cin>>s;
  int ans=0;
  stirng t="2019/04/30";
  for(int i=0;i<10;i++){
    if(s.at(i)>t.at(i)){
      ans=1;
      break;
    }
    
  }

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 'stirng' was not declared in this scope
    8 |   stirng t="2019/04/30";
      |   ^~~~~~
a.cc:10:16: error: 't' was not declared in this scope
   10 |     if(s.at(i)>t.at(i)){
      |                ^
Language: C++

#include <iostream>
using namespace std;
int main(){
  int yyyy, mm, dd;
  cin >> yyyy >> mm >> dd;
  if(yyyy<2019||(yyyy==2019&&mm<4)||(yyyy==2019&&mm==4&&dd==30)
    cout << "Heisei";
  else
    cout << "TBD";
      return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:64: error: expected ';' before 'cout'
    6 |   if(yyyy<2019||(yyyy==2019&&mm<4)||(yyyy==2019&&mm==4&&dd==30)
      |                                                                ^
      |                                                                ;
    7 |     cout << "Heisei";
      |     ~~~~                                                        
a.cc:8:3: error: expected primary-expression before 'else'
    8 |   else
      |   ^~~~
a.cc:7:22: error: expected ')' before 'else'
    7 |     cout << "Heisei";
      |                      ^
      |                      )
    8 |   else
      |   ~~~~                
a.cc:6:5: note: to match this '('
    6 |   if(yyyy<2019||(yyyy==2019&&mm<4)||(yyyy==2019&&mm==4&&dd==30)
      |     ^
Language: C++

#include <iostream>
using namespace std;
int main(){
  int yyyy, mm, dd;
  cin >> yyyy >> mm >> dd;
  if(yyyy<2019||(yyyy==2019&&mm<4))
    cout << "Heisei";
  else
    cout "TBD"
      return 0;
}


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

1 #include <iostream>
2 using namespace std;
3 int main(){
4 int y, m, d;
5 char c1, c2;
6 cin >> y >> c1 >> m >> c2 >> d;
7 cout << (m <= 4 ? "Heisei" : "TBD") << endl;
8 }

Compiler output:
a.cc:1:3: error: stray '#' in program
    1 | 1 #include <iostream>
      |   ^
a.cc:1:1: error: expected unqualified-id before numeric constant
    1 | 1 #include <iostream>
      | ^
a.cc:3:1: error: expected unqualified-id before numeric constant
    3 | 3 int main(){
      | ^
Language: C++

#include<iostream>
using namespace std;

int main(){
  stirng s;
  cin>>s;
  
  if(s[5]>4) cout<<"TBD"<<endl;
  else cout<<"Heisei"<<endl;
  return 0;
  
}

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

#include<iostream>
using namespace std;

int main(){
  stirng s;
  cin>>s;
  
  cout<<(s[5]>4 ? "TBD" : "Heisei")<<endl;
  return 0;
  
}

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

import std.algorithm, std.container, std.conv, std.math, std.range, std.typecons, std.stdio, std.string;

auto rdsp(){return readln.splitter;}
void pick(R,T)(ref R r,ref T t){t=r.front.to!T;r.popFront;}
void readV(T...)(ref T t){auto r=rdsp;foreach(ref v;t)pick(r,v);}

void main()
{
  string s; readV(s);
  writeln(s <= "2019/04/30" ? "Heisei" : "TBD");
}


Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import std.algorithm, std.container, std.conv, std.math, std.range, std.typecons, std.stdio, std.string;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc: In function 'auto rdsp()':
a.cc:3:20: error: 'readln' was not declared in this scope
    3 | auto rdsp(){return readln.splitter;}
      |                    ^~~~~~
a.cc: At global scope:
a.cc:4:6: error: variable or field 'pick' declared void
    4 | void pick(R,T)(ref R r,ref T t){t=r.front.to!T;r.popFront;}
      |      ^~~~
a.cc:4:11: error: 'R' was not declared in this scope
    4 | void pick(R,T)(ref R r,ref T t){t=r.front.to!T;r.popFront;}
      |           ^
a.cc:4:13: error: 'T' was not declared in this scope
    4 | void pick(R,T)(ref R r,ref T t){t=r.front.to!T;r.popFront;}
      |             ^
a.cc:5:6: error: variable or field 'readV' declared void
    5 | void readV(T...)(ref T t){auto r=rdsp;foreach(ref v;t)pick(r,v);}
      |      ^~~~~
a.cc:5:12: error: 'T' was not declared in this scope
    5 | void readV(T...)(ref T t){auto r=rdsp;foreach(ref v;t)pick(r,v);}
      |            ^
a.cc:7:1: error: '::main' must return 'int'
    7 | void main()
      | ^~~~
a.cc: In function 'int main()':
a.cc:9:3: error: 'string' was not declared in this scope
    9 |   string s; readV(s);
      |   ^~~~~~
a.cc:9:19: error: 's' was not declared in this scope
    9 |   string s; readV(s);
      |                   ^
a.cc:9:13: error: 'readV' was not declared in this scope
    9 |   string s; readV(s);
      |             ^~~~~
a.cc:10:3: error: 'writeln' was not declared in this scope
   10 |   writeln(s <= "2019/04/30" ? "Heisei" : "TBD");
      |   ^~~~~~~
Language: C

#include stdio.h
 
int main(void){
	char sha1,sha2;
    int year,month,day;
    
    scanf("%d%c%d%c%d",year,sha1,month,sha2,day);
    
    if(month < 4){
    	printf("Heisei");
    }else if(month = 4){
    	printf("Heisei");
    }else{
    	printf("TBD");
    }
	return 0;    
}

Compiler output:
main.c:1:10: error: #include expects "FILENAME" or <FILENAME>
    1 | #include stdio.h
      |          ^~~~~
main.c: In function 'main':
main.c:7:5: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    7 |     scanf("%d%c%d%c%d",year,sha1,month,sha2,day);
      |     ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | #include stdio.h
main.c:7:5: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    7 |     scanf("%d%c%d%c%d",year,sha1,month,sha2,day);
      |     ^~~~~
main.c:7:5: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:10:9: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   10 |         printf("Heisei");
      |         ^~~~~~
main.c:10:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:10:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:10:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:12:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   12 |         printf("Heisei");
      |         ^~~~~~
main.c:12:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:14:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   14 |         printf("TBD");
      |         ^~~~~~
main.c:14:9: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

<#include stdio.h>

int main(void){
	char sha1,sha2;
    int year,month,day;
    
    scanf("%d%c%d%c%d",year,sha1,month,sha2,day);
    
    if(month < 4){
    	printf("Heisei");
    }else if(month = 4){
    	printf("Heisei");
    }else{
    	printf("TBD");
    }
	return 0;    
}

Compiler output:
main.c:1:1: error: expected identifier or '(' before '<' token
    1 | <#include stdio.h>
      | ^
main.c:1:2: error: stray '#' in program
    1 | <#include stdio.h>
      |  ^
Language: C++

#include<iostream>
using namespace std;

int main(){
  int y,m,d;
  char a,b;
  cin >> y >> a >> m >> b >> d;
  
  cout << (m > 4 ? "Heisei" : "TED" ) << endl;
  
  reutrn 0;
}  
  


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

#include<iostream>
using namespace std;

int main(){
  int y,m,d;
  char a,b;
  cin y >> a >> m >> b >> d;
  
  cout << (m > 4 ? "Heisei" : "TED" ) << endl;
  
  reutrn 0;
}  
  


Compiler output:
a.cc: In function 'int main()':
a.cc:7:6: error: expected ';' before 'y'
    7 |   cin y >> a >> m >> b >> d;
      |      ^~
      |      ;
a.cc:11:3: error: 'reutrn' was not declared in this scope
   11 |   reutrn 0;
      |   ^~~~~~
Language: C++

#include<iostream>
using namespace std;

int main(){
  int y,m,d;
  char a,b;
  cin y >> a >> m >> b >> d;
  
  cout << (m > 4 ? "Heisei" : "TED" ) << endl;
  
  reutrn 0;
  
  


Compiler output:
a.cc: In function 'int main()':
a.cc:7:6: error: expected ';' before 'y'
    7 |   cin y >> a >> m >> b >> d;
      |      ^~
      |      ;
a.cc:11:3: error: 'reutrn' was not declared in this scope
   11 |   reutrn 0;
      |   ^~~~~~
a.cc:11:12: error: expected '}' at end of input
   11 |   reutrn 0;
      |            ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: Java

import java.util.*;
public class Main {
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);

    int S = sc.nextInt();
    int T =S-20190000;

    if (T<=430){System.out.println("Heisei");}
    else{Syeten.out.println("TBD");}
  }
}

Compiler output:
Main.java:10: error: package Syeten does not exist
    else{Syeten.out.println("TBD");}
               ^
1 error
Language: Java

import java.util.*;
public class Main {
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);

    int S = sc.nextInt();
    int T =S-20190000;

    if (T<=430){System.out.println(Heisei);}
    else{Syeten.out.println(TBD);}
  }
}

Compiler output:
Main.java:9: error: cannot find symbol
    if (T<=430){System.out.println(Heisei);}
                                   ^
  symbol:   variable Heisei
  location: class Main
Main.java:10: error: cannot find symbol
    else{Syeten.out.println(TBD);}
                            ^
  symbol:   variable TBD
  location: class Main
Main.java:10: error: package Syeten does not exist
    else{Syeten.out.println(TBD);}
               ^
3 errors
Language: C++

#include <bits/stdc++.h>

using namespace std;

#define REP(i, n) for(int i = 0; i < (n); i++)
#define SORT(v, n) sort(v, v+n);
#define SSORT(v, n) sort(v, v+n, greater<int>())

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

Compiler output:
a.cc: In function 'int main()':
a.cc:13:36: error: expected ';' before 'if'
   13 |         month = stoi(s.substr(5,2))
      |                                    ^
      |                                    ;
   14 |         if(month<5) cout << "Heisei" << endl;
      |         ~~                          
a.cc:15:9: error: 'else' without a previous 'if'
   15 |         else cout << "TBD" << endl;
      |         ^~~~
Language: C++

>,,>,,, ,>,
[[>]<[-<]>]
>[->++++++++++<]
>>++++<
[[->]<[<]>]<+<
[
  >>
  ++++++++++[->++++++++<]>++++.------------------.++.[>]
]
>
[
  > 
  ++++++++++[->++++++++++>+++++++<<]>>++.<+.++++.++++++++++.--------------.++++.[>]
]

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

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

int main() {
  string S;
  cin >> S;
  
  	if (S.at(7) == "1" && S.at(8) == "1") {
      cout << "TBD" << endl;
    }
  	if (S.at(7) == "1" && S.at(8) == "2") {
      cout << "TBD" << endl;
    }
    else if (S.at(8) == "1") {
      cout << "Heisei" << endl;
    }
  	else if (S.at(8) == "2") {
      cout << "Heisei" << endl;
    }
     else if (S.at(8) == "3") {
       cout << "Heisei" << endl;
     }
  	else if (S.at(8) == "4") {
      cout << "Heisei" << endl;
    }
    else {
      cout << "TBD" << endl;
    }
}
      


Compiler output:
a.cc: In function 'int main()':
a.cc:8:21: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |         if (S.at(7) == "1" && S.at(8) == "1") {
      |             ~~~~~~~~^~~~~~
a.cc:8:39: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |         if (S.at(7) == "1" && S.at(8) == "1") {
      |                               ~~~~~~~~^~~~~~
a.cc:11:21: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |         if (S.at(7) == "1" && S.at(8) == "2") {
      |             ~~~~~~~~^~~~~~
a.cc:11:39: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |         if (S.at(7) == "1" && S.at(8) == "2") {
      |                               ~~~~~~~~^~~~~~
a.cc:14:22: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   14 |     else if (S.at(8) == "1") {
      |              ~~~~~~~~^~~~~~
a.cc:17:26: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   17 |         else if (S.at(8) == "2") {
      |                  ~~~~~~~~^~~~~~
a.cc:20:23: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   20 |      else if (S.at(8) == "3") {
      |               ~~~~~~~~^~~~~~
a.cc:23:26: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   23 |         else if (S.at(8) == "4") {
      |                  ~~~~~~~~^~~~~~
Language: C++

#include<iostream>
#include<string>
#include<cstdio>
using namespace std;
string s;
int y, m, d;
int main(){
  cin >> s;
  sscanf( s.c_str(), "%d/%d/%d",&y, &m, &d);
  if(m > 4) cout << "TBD" << endl;
  else << "Heisei" << endl;
  return 0;
  }
  


Compiler output:
a.cc: In function 'int main()':
a.cc:11:8: error: expected primary-expression before '<<' token
   11 |   else << "Heisei" << endl;
      |        ^~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define MOD 1000000007
typedef long long ll;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:91: error: expected ')' before '{' token
    9 |     if(S.at(5) == '0' && (S.at(6) == '1'|| S.at(6) == '2'||S.at(6) == '3'||S.at(6) == '4'){
      |       ~                                                                                   ^
      |                                                                                           )
a.cc:14:1: error: expected primary-expression before '}' token
   14 | }
      | ^
Language: Java

import java.util.*;
class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        char s = sc.next().charAt(6);
        int month = Integer.parseCharacter(s);
        
        if(month > 4){
            System.out.println("TBD");
        }else{
            System.out.println("Heisei");
        }
    }
}

Compiler output:
Main.java:6: error: cannot find symbol
        int month = Integer.parseCharacter(s);
                           ^
  symbol:   method parseCharacter(char)
  location: class Integer
1 error
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
	string S;
	cin >> S;
	cout << (S < "2019/04/30")?"TBD":"Heisei" << endl;	
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:51: error: invalid operands of types 'const char [7]' and '<unresolved overloaded function type>' to binary 'operator<<'
    6 |         cout << (S < "2019/04/30")?"TBD":"Heisei" << endl;
      |                                          ~~~~~~~~~^~~~~~~
Language: C++

#include<iostream>
#include<string>
#include<typeinfo>
#include<vector>
#include<algorithm>
using namespace std;
int main()
{
	string s;
	cin >> s;

	if(S>"2019/04/30"){
		cout << "TBD" << endl;
	}else{
		cout << "Heisei" << endl;
	}

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:12: error: 'S' was not declared in this scope
   12 |         if(S>"2019/04/30"){
      |            ^
Language: Java

import java.util.*;
class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        String s = (char)sc.next().charAt(6);
        int month = Integer.parseInt(s);
        
        if(month > 4){
            System.out.println("TBD");
        }else{
            System.out.println("Heisei");
        }
    }
}

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

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

int main(){
  string s;
  cin>>s;
  int i;
  i=s[1]*1000+s[2]*100+s[3]*10+s[4];
  if(i>2019){
    cout<<"TBD\n";
  }
  if(i<2019){
   cout<<"Heisei\n";
  }
  if(i==2019){
    i=s[6]*10+s[7];
    if(i>=5){
    cout<<"TBD\n";
    }
    else {
      cout<<"TBD\n";
  }}
  
    
  }
  
  return 0;
}

Compiler output:
a.cc:28:3: error: expected unqualified-id before 'return'
   28 |   return 0;
      |   ^~~~~~
a.cc:29:1: error: expected declaration before '}' token
   29 | }
      | ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:11: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'const char*'
    8 |   if(atoi(t) < 5){
      |           ^
      |           |
      |           std::string {aka std::__cxx11::basic_string<char>}
In file included from /usr/include/c++/14/cstdlib:79,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:42,
                 from a.cc:1:
/usr/include/stdlib.h:105:30: note:   initializing argument 1 of 'int atoi(const char*)'
  105 | extern int atoi (const char *__nptr)
      |                  ~~~~~~~~~~~~^~~~~~
Language: C++

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

Compiler output:
a.cc:1:9: 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(){
char y[5];
char m[3];
char d[2];
cin.get(y,5);
cin.get(m,3);
cin.get(d,2);

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

Compiler output:
a.cc: In function 'int main()':
a.cc:13:21: error: invalid operands of types 'const char [7]' and '<unresolved overloaded function type>' to binary 'operator<<'
   13 | else cout <"Heisei" << endl;
      |            ~~~~~~~~~^~~~~~~
Language: C++

#include<iostream>
using namespace std;

int main(){
  int a,b,c;
  cin>>a>>b>>c;
  
  if(a<2019||a=2019,b<5){
    
    cout<<"Heisei"<<endl;
  }
  
  else{
    cout<<"TBD"<<endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: lvalue required as left operand of assignment
    8 |   if(a<2019||a=2019,b<5){
      |      ~~~~~~^~~
Language: C

#include <stdio.h>


int main(void)
{
	char s[];
	
	scanf("%s",s);
	
	int year = 1000*s[0]+100*s[1]+10*s[2]+s[3];
	
	int month = 10*s[5]+s[6];
	
	if(year < 2019){
		puts("heisei");
	}else if(year == 2019 && month <= 4){
		puts("heisei");
	}else if(year == 2019 && month >= 5){
		puts("TBD");
	}else{
		puts("TBD");
	}
	
	return 0;
}
	
	

Compiler output:
main.c: In function 'main':
main.c:6:14: error: array size missing in 's'
    6 |         char s[];
      |              ^
Language: C++

#include <iostream>
using namespace std;

int y, m, d;

scanf("%d/%d/%d", &y, &m, &d);
if(y < 2019){
  cout << "Heisei" << endl;
}else {
  if(m < 4){
  cout << "Heisei" << endl;
  }else{
    if(d <=30){
      cout << "Heisei" << endl;
    }else {
      cout << "TBD" << endl;
}

Compiler output:
a.cc:6:6: error: expected constructor, destructor, or type conversion before '(' token
    6 | scanf("%d/%d/%d", &y, &m, &d);
      |      ^
a.cc:7:1: error: expected unqualified-id before 'if'
    7 | if(y < 2019){
      | ^~
a.cc:9:2: error: expected unqualified-id before 'else'
    9 | }else {
      |  ^~~~
Language: C++

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

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

}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: expected initializer before '>>' token
    8 |    int year>>month>>day;
      |            ^~
a.cc:9:11: error: expected initializer before '>>' token
    9 |    char c1>>c2;
      |           ^~
a.cc:10:10: error: 'year' was not declared in this scope
   10 |    cin >>year >> c1 >> month >> c2> > day;
      |          ^~~~
a.cc:10:18: error: 'c1' was not declared in this scope; did you mean 'y1'?
   10 |    cin >>year >> c1 >> month >> c2> > day;
      |                  ^~
      |                  y1
a.cc:10:24: error: 'month' was not declared in this scope
   10 |    cin >>year >> c1 >> month >> c2> > day;
      |                        ^~~~~
a.cc:10:33: error: 'c2' was not declared in this scope
   10 |    cin >>year >> c1 >> month >> c2> > day;
      |                                 ^~
a.cc:10:37: error: expected primary-expression before '>' token
   10 |    cin >>year >> c1 >> month >> c2> > day;
      |                                     ^
a.cc:10:39: error: 'day' was not declared in this scope
   10 |    cin >>year >> c1 >> month >> c2> > day;
      |                                       ^~~
Language: C++

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

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

}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: expected initializer before '>>' token
    8 |    int year>>month>>day;
      |            ^~
a.cc:9:11: error: expected initializer before '>>' token
    9 |    char c1>>c2;
      |           ^~
a.cc:10:9: error: 'year' was not declared in this scope
   10 |    cin>>year>>c1>>month>>c2>>day;
      |         ^~~~
a.cc:10:15: error: 'c1' was not declared in this scope; did you mean 'y1'?
   10 |    cin>>year>>c1>>month>>c2>>day;
      |               ^~
      |               y1
a.cc:10:19: error: 'month' was not declared in this scope
   10 |    cin>>year>>c1>>month>>c2>>day;
      |                   ^~~~~
a.cc:10:26: error: 'c2' was not declared in this scope
   10 |    cin>>year>>c1>>month>>c2>>day;
      |                          ^~
a.cc:10:30: error: 'day' was not declared in this scope
   10 |    cin>>year>>c1>>month>>c2>>day;
      |                              ^~~
Language: C

#include<stdio.h>
#include<string.h>
//abc120-A
/*
int main(void)
{
	int a, b, c,d;
	scanf("%d %d %d", &a, &b, &c);

	if (b >= a * c)
	{
		printf("%d", c);
	}

	else
	{
		d = b / a;
		printf("%d", d);
	}
	return 0;
}
//abc120-B
int main(void)
{
	int a, b, k, tmp;
	int ans = 0, i, j;

	scanf("%d %d %d", &a, &b, &k);

	if (a < b)
	{
		tmp = a;
		a = b;
		b = tmp;
	}

	for (i = b; i > 0; i--)
	{
		if ((a % i + b % i) == 0)
		{
			ans += 1;
		}
		if (ans == k)
		{
			break;
		}

	}
	printf("%d", i);
	return 0;
}
//abc119-A
int main(void)
{
	int a, b, c;
	scanf("%d/%d/%d", &a, &b, &c);
	if (b < 5)
	{
		printf("Heisei");
	}
	else
	{
		printf("TBD");
	}

	
	return 0;
}*/
//abc119-b
int main(void)
{
	int a, i;
	float sum = 0;
	char s[15];
	float y;

	scanf_s("%d", &a);
	for (i = 0; i < a; i++)
	{
		scanf_s("%f", &y);
		scanf_s("%s", s, 15);
		if (strcmp(s, "JPY") == 0)
		{
			sum += y;
		}

		else
		{
			sum += y * 380000;
		}
	}
	printf("%f", sum);
	return 0;
}

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

#include "bits/stdc++.h"

#define REP(i, n) for(int i = 0; i < n; i++)
#define REPR(i, n) for(int i = n; i >= 0; i--)
#define FOR(i, m, n) for(int i = m; i < n; i++)
#define INF 2e9
#define ALL(v) v.begin(), v.end()

using namespace std;

int main()
{
	int seireki = 0;
	int tuki = 0;
	int hiniti = 0;

	scanf("%d/%d/%d", &seireki, &tuki, &Ahiniti);

	if (seireki <= 2019 && tuki <= 4 && hiniti <= 30)
	{
		cout << "Heisei";
	}
	else
	{
		cout << "TBD";
	}

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:45: error: 'Ahiniti' was not declared in this scope; did you mean 'hiniti'?
   17 |         scanf("%d/%d/%d", &seireki, &tuki, &Ahiniti);
      |                                             ^~~~~~~
      |                                             hiniti
Language: C++

#include "stdc++.h"

#define REP(i, n) for(int i = 0; i < n; i++)
#define REPR(i, n) for(int i = n; i >= 0; i--)
#define FOR(i, m, n) for(int i = m; i < n; i++)
#define INF 2e9
#define ALL(v) v.begin(), v.end()

using namespace std;

int main()
{
	int seireki;
	int tuki;
	int hiniti;

	scanf("%d/%d/%d", seireki, tuki, hiniti);

	if (seireki <= 2019 && tuki <= 4 && hiniti <= 30)
	{
		cout << "Heisei";
	}
	else
	{
		cout << "TBD";
	}

	return 0;
}

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

#include<iostream>
#include<strnig>
using std::cin;
using std::cout;
using std::endl;

int main(void){
  std::string s;
  cin>>s;
  if(s[5]=='1'){
    cout<<"Heisei"<<endl;
  }else{
    int c=s[6]-'0';
    if(c>=5){
      cout<<"Heisei"<<endl;
    }else{
      cout<<"TBD"<<endl; 
    }
  }
  return 0;
}

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

#include <stdio.h>

int main(){
  int a,b,c;
  scanf("%d/%d/%d",&a,&b,,&c);
  if(b > 4){
    printf("Heisei");
  }else{
    printf("TBD");
  }
}

Compiler output:
main.c: In function 'main':
main.c:5:26: error: expected expression before ',' token
    5 |   scanf("%d/%d/%d",&a,&b,,&c);
      |                          ^
Language: C

#define <stdio.h>

int main(){
  int a,b,c;
  scanf("%d/%d/%d",&a,&b,,&c);
  if(b > 4){
    printf("Heisei");
  }else{
    printf("TBD");
  }
}

Compiler output:
main.c:1:9: error: macro names must be identifiers
    1 | #define <stdio.h>
      |         ^
main.c: In function 'main':
main.c:5:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    5 |   scanf("%d/%d/%d",&a,&b,,&c);
      |   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | #define <stdio.h>
main.c:5:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    5 |   scanf("%d/%d/%d",&a,&b,,&c);
      |   ^~~~~
main.c:5:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:5:26: error: expected expression before ',' token
    5 |   scanf("%d/%d/%d",&a,&b,,&c);
      |                          ^
main.c:7:5: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    7 |     printf("Heisei");
      |     ^~~~~~
main.c:7:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:7:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:7:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:9:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
    9 |     printf("TBD");
      |     ^~~~~~
main.c:9:5: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

#define <stdio.h>

int main(){
  int a,b,c;
  scanf("%d/%d/%d",&a,&,b,&c);
  if(b > 4){
    printf("Heisei");
  }else{
    printf("TBD");
  }
}

Compiler output:
main.c:1:9: error: macro names must be identifiers
    1 | #define <stdio.h>
      |         ^
main.c: In function 'main':
main.c:5:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    5 |   scanf("%d/%d/%d",&a,&,b,&c);
      |   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | #define <stdio.h>
main.c:5:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    5 |   scanf("%d/%d/%d",&a,&,b,&c);
      |   ^~~~~
main.c:5:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:5:24: error: expected expression before ',' token
    5 |   scanf("%d/%d/%d",&a,&,b,&c);
      |                        ^
main.c:7:5: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    7 |     printf("Heisei");
      |     ^~~~~~
main.c:7:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:7:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:7:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:9:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
    9 |     printf("TBD");
      |     ^~~~~~
main.c:9:5: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C++

#define <stdio.h>

int main(){
  int a,b,c;
  scanf("%d/%d/%d",&a,&,b,&c);
  if(b > 4){
    printf("Heisei");
  }else{
    printf("TBD");
  }
}

Compiler output:
a.cc:1:9: error: macro names must be identifiers
    1 | #define <stdio.h>
      |         ^
a.cc: In function 'int main()':
a.cc:5:24: error: expected primary-expression before ',' token
    5 |   scanf("%d/%d/%d",&a,&,b,&c);
      |                        ^
a.cc:5:3: error: 'scanf' was not declared in this scope
    5 |   scanf("%d/%d/%d",&a,&,b,&c);
      |   ^~~~~
a.cc:7:5: error: 'printf' was not declared in this scope
    7 |     printf("Heisei");
      |     ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | #define <stdio.h>
a.cc:9:5: error: 'printf' was not declared in this scope
    9 |     printf("TBD");
      |     ^~~~~~
a.cc:9:5: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
Language: C++

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

int main(){
    string s;
    cin >> s;
    int y,m,d;
    vector<int> y(4),m(2);
    for(int i=0;i<4;i++) y[i]=s[i];
    for(int i=0;i<2;i++) m[i]=s[i+6];
    cout << (y<=2019&&m<=4?"Heisei":"TBD") << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:17: error: conflicting declaration 'std::vector<int> y'
   12 |     vector<int> y(4),m(2);
      |                 ^
a.cc:11:9: note: previous declaration as 'int y'
   11 |     int y,m,d;
      |         ^
a.cc:12:22: error: conflicting declaration 'std::vector<int> m'
   12 |     vector<int> y(4),m(2);
      |                      ^
a.cc:11:11: note: previous declaration as 'int m'
   11 |     int y,m,d;
      |           ^
a.cc:13:27: error: invalid types 'int[int]' for array subscript
   13 |     for(int i=0;i<4;i++) y[i]=s[i];
      |                           ^
a.cc:14:27: error: invalid types 'int[int]' for array subscript
   14 |     for(int i=0;i<2;i++) m[i]=s[i+6];
      |                           ^
Language: C

#include<stdio.h>
#include<math.h>
int main(void)
{
  char s[11];
  int a[9],b;
  scanf("%s",s[11]);
  a[0]=(s[0]-48)*1e7;
  a[1]=(s[1]-48)*1e6;
  a[2]=(s[2]-48)*1e5;
  a[3]=(s[3]-48)*1e4;
  a[4]=(s[5]-48)*1e3;
  a[5]=(s[6]-48)*1e2;
  a[6]=(s[8]-48)*1e1;
  a[7]=(s[9]-48)*1;
  b=a[0]+a[1]+a[2]+a[3]+a[4]+a[5]+a[6]+a[7];
  if(b<=20190431){
    printf("Heisei");
  }else{
    pirntf("TBD");
  }


    
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:20:5: error: implicit declaration of function 'pirntf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   20 |     pirntf("TBD");
      |     ^~~~~~
      |     printf
Language: C++

#include<iostream>
#include<string>
using namespace std;
int main() {

	string s;
	cin >> s;
	int m = stoi(s.substr(5, 2));
	int d = stoi(s.substr(8, 2));
	string ans = "TBD";
	if (b <= 4)ans = "Heisei";
	cout << ans << endl;

	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:13: error: 'b' was not declared in this scope
   11 |         if (b <= 4)ans = "Heisei";
      |             ^
Language: C++

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

int main() {
  int y, m, d;
  char c;
  
  cin >> y >> c >> m >> c >> d;
  
  if (m >= 5)
    cout << "TBD" <<endl;
  else
    cout << "Heisei" <<endl;

Compiler output:
a.cc: In function 'int main()':
a.cc:13:29: error: expected '}' at end of input
   13 |     cout << "Heisei" <<endl;
      |                             ^
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;
  int yy = atoi(substr(0, 4)),
  	  mm = atoi(substr(5, 2)),
  	  dd = atoi(substr(8, 2));
  
  if (yy > 2019)
    cout << "TBD"<< endl;
  else if (yy < 2019)
    cout << "Heisei" << endl;
  else if ((mm == 4 && dd ==30) || mm > 4)
    cout << "Heisei" <<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:17: error: 'substr' was not declared in this scope; did you mean 'strstr'?
    7 |   int yy = atoi(substr(0, 4)),
      |                 ^~~~~~
      |                 strstr
a.cc:15:13: error: 'mm' was not declared in this scope; did you mean 'tm'?
   15 |   else if ((mm == 4 && dd ==30) || mm > 4)
      |             ^~
      |             tm
a.cc:15:24: error: 'dd' was not declared in this scope
   15 |   else if ((mm == 4 && dd ==30) || mm > 4)
      |                        ^~
Language: C++

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

int main(){
  string s;
  cin >> s;
  string mm;
 
  if(s.at(5) == '1' || s.at(6) == '5' || s.at(6) == '6' ||s.at(6) = '7' || s.at(6) == '8' || s.at(6) == '9'){
    cout << "TBD" << endl;
  }
  else {
    cout << "Heisei" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:57: error: lvalue required as left operand of assignment
    9 |   if(s.at(5) == '1' || s.at(6) == '5' || s.at(6) == '6' ||s.at(6) = '7' || s.at(6) == '8' || s.at(6) == '9'){
      |      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
Language: C++

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

int main(){
  string s;
  cin >> s;
  string mm;
 
  if(s.at(5) == '1' || s.at(6) == '5' || s.at(6) == '6' ||s.at(6) = '7' || s.at(6) == '8' || s.at(6) = '9'){
    cout << "TBD" << endl;
  }
  else {
    cout << "Heisei" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:91: error: lvalue required as left operand of assignment
    9 |   if(s.at(5) == '1' || s.at(6) == '5' || s.at(6) == '6' ||s.at(6) = '7' || s.at(6) == '8' || s.at(6) = '9'){
      |                                                                     ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
Language: C++

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

int main(){
  string s;
  cin >> s;
  string mm;
 
  if(s.at(5) == '1' || s.at(6) == '5' || s.at(6) == '6' || || s.at(6) = '7' || s.at(6) == '8' || s.at(6) = '9'){
    cout << "TBD" << endl;
  }
  else {
    cout << "Heisei" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:60: error: expected primary-expression before '||' token
    9 |   if(s.at(5) == '1' || s.at(6) == '5' || s.at(6) == '6' || || s.at(6) = '7' || s.at(6) == '8' || s.at(6) = '9'){
      |                                                            ^~
a.cc:9:95: error: lvalue required as left operand of assignment
    9 |   if(s.at(5) == '1' || s.at(6) == '5' || s.at(6) == '6' || || s.at(6) = '7' || s.at(6) == '8' || s.at(6) = '9'){
      |                                                                         ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
Language: C

#include <stdio.h>
int main (void){
	char ymd[12];
    int i, y=0, m=0, d=0;
	scanf("%s", ymd);
  	
	for(i=0;i<4;i++){
		y+= (int)ymd[i]-'0';
  		m+= (int)ymd[4+i]-'0';
  		d+= (int)ymd[8+i]-'0';
  		
  		y=y*10;
  		d=d*10;
  		m=m*10;
    }
  	m/=100;
  	d/=100;
  	
 	if(y>=2019&&m>=4||d>=30){
          printf("TBD");
     }else{
      printf("Heisei");
        
    }
  

Compiler output:
main.c: In function 'main':
main.c:24:5: error: expected declaration or statement at end of input
   24 |     }
      |     ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:33: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |                 }else if(S.at(6)=="1"||S.at(6)=="2"||S.at(6)=="3"||S.at(6)=="4"){
      |                          ~~~~~~~^~~~~
a.cc:8:47: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |                 }else if(S.at(6)=="1"||S.at(6)=="2"||S.at(6)=="3"||S.at(6)=="4"){
      |                                        ~~~~~~~^~~~~
a.cc:8:61: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |                 }else if(S.at(6)=="1"||S.at(6)=="2"||S.at(6)=="3"||S.at(6)=="4"){
      |                                                      ~~~~~~~^~~~~
a.cc:8:75: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |                 }else if(S.at(6)=="1"||S.at(6)=="2"||S.at(6)=="3"||S.at(6)=="4"){
      |                                                                    ~~~~~~~^~~~~
Language: C++

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

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

Compiler output:
a.cc:7:3: error: extended character 　 is not valid in an identifier
    7 |   　
      |   ^
a.cc: In function 'int main()':
a.cc:7:3: error: '\U00003000' was not declared in this scope
    7 |   　
      |   ^~
a.cc:9:9: error: 'year' was not declared in this scope
    9 |         year  = (s[0] - '0') * 1000 + (s[1] - '0') * 100 + (s[2] - '0') * 10 + (s[3] - '0');
      |         ^~~~
a.cc:10:9: error: 'month' was not declared in this scope
   10 |         month = (s[5] - '0') * 10 + (s[6] - '0');
      |         ^~~~~
a.cc:11:9: error: 'day' was not declared in this scope
   11 |         day   = (s[8] - '0') * 10 + (s[9] - '0');
      |         ^~~
Language: C++

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

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

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

#include<stdio.h>

int main(){
  char a;
  scanf("%s",a);
  if(a[5]==1){
    printf("TBD");
  }else if(a[6]>4){
    printf("TBD");
  }else{
    printf("Heisei");
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:7: error: subscripted value is neither array nor pointer nor vector
    6 |   if(a[5]==1){
      |       ^
main.c:8:13: error: subscripted value is neither array nor pointer nor vector
    8 |   }else if(a[6]>4){
      |             ^
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: In function 'int main()':
a.cc:6:15: error: expected initializer before 'd'
    6 |      int y, m d;
      |               ^
a.cc:8:24: error: 'm' was not declared in this scope
    8 |      cin >> y >> c1 >> m >> c2 >> d;
      |                        ^
a.cc:8:35: error: 'd' was not declared in this scope
    8 |      cin >> y >> c1 >> m >> c2 >> d;
      |                                   ^
a.cc:9:40: error: invalid operands of types 'const char [4]' and '<unresolved overloaded function type>' to binary 'operator<<'
    9 |      cout << m <= 4 ? "Heisei" : "TBD" << endl;
      |                                  ~~~~~~^~~~~~~
Language: Java

import java.util.*;
import java.text.SimpleDateFormat;
public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String s = sc.next();
    SimpleDateFormat f = new SimpleDateFormat("yyyy/MM/dd");
    Date d = f.parse(s);
    Date dh = f.parse("2019/04/30");
    if(d.getTime() > dh.getTime()){
      System.out.println("TBD");
    }else{
      System.out.println("Heisei");
    }
  }
}

Compiler output:
Main.java:8: error: unreported exception ParseException; must be caught or declared to be thrown
    Date d = f.parse(s);
                    ^
Main.java:9: error: unreported exception ParseException; must be caught or declared to be thrown
    Date dh = f.parse("2019/04/30");
                     ^
2 errors