Language: C++

#include<iostream>
#include<string>

int main(){
  int i,v;
  sring s,y,m,d;
  cin>>>s;
  for(i=0;s[i]!='/';i++){
    y[i]=s[i];
    v=i;
  }
  int vin=v+2
  for(i=vin;s[i]!='/';i++){
    m[i-vin]=s[i];
    v=i;
  }
  vin = v+2
  for(i=vin;s[i]!='';i++) d[i-vin]=s[i];
  
  if(atoi(m.c_str())=<4) cout<<'Heisei'<<endl;
  else cout<<'TBD'<<endl;
  return 0;
}

    
  

Compiler output:
a.cc:18:19: error: empty character constant
   18 |   for(i=vin;s[i]!='';i++) d[i-vin]=s[i];
      |                   ^~
a.cc:20:32: warning: multi-character literal with 6 characters exceeds 'int' size of 4 bytes
   20 |   if(atoi(m.c_str())=<4) cout<<'Heisei'<<endl;
      |                                ^~~~~~~~
a.cc:21:14: warning: multi-character character constant [-Wmultichar]
   21 |   else cout<<'TBD'<<endl;
      |              ^~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'sring' was not declared in this scope
    6 |   sring s,y,m,d;
      |   ^~~~~
a.cc:7:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |   cin>>>s;
      |   ^~~
      |   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:7:8: error: expected primary-expression before '>' token
    7 |   cin>>>s;
      |        ^
a.cc:7:9: error: 's' was not declared in this scope
    7 |   cin>>>s;
      |         ^
a.cc:9:5: error: 'y' was not declared in this scope
    9 |     y[i]=s[i];
      |     ^
a.cc:13:3: error: expected ',' or ';' before 'for'
   13 |   for(i=vin;s[i]!='/';i++){
      |   ^~~
a.cc:13:26: error: expected ';' before ')' token
   13 |   for(i=vin;s[i]!='/';i++){
      |                          ^
      |                          ;
a.cc:17:12: error: expected ';' before 'for'
   17 |   vin = v+2
      |            ^
      |            ;
   18 |   for(i=vin;s[i]!='';i++) d[i-vin]=s[i];
      |   ~~~       
a.cc:18:25: error: expected ';' before ')' token
   18 |   for(i=vin;s[i]!='';i++) d[i-vin]=s[i];
      |                         ^
      |                         ;
a.cc:20:11: error: 'm' was not declared in this scope
   20 |   if(atoi(m.c_str())=<4) cout<<'Heisei'<<endl;
      |           ^
a.cc:20:22: error: expected primary-expression before '<' token
   20 |   if(atoi(m.c_str())=<4) cout<<'Heisei'<<endl;
      |                      ^
a.cc:20:26: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   20 |   if(atoi(m.c_str())=<4) cout<<'Heisei'<<endl;
      |                          ^~~~
      |                          std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:20:42: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   20 |   if(atoi(m.c_str())=<4) cout<<'Heisei'<<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)
      |     ^~~~
a.cc:21:8: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   21 |   else cout<<'TBD'<<endl;
      |        ^~~~
      |        std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:21:21: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   21 |   else cout<<'TBD'<<endl;
      |                     ^~~~
      |                     std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~