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

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

 int main(){

 int h,r;
cin>>h>>r;
if ( h+r<0 ){cout<<"-1"<<endl;}
if ( h+r>0 ){cout<<"0"<<endl;}

return 0; 
}



Compiler output:
a.cc:9:5: error: extended character   is not valid in an identifier
    9 | if ( h+r>0 ){cout<<"0"<<endl;}
      |     ^
a.cc:4:2: error: expected identifier before 'int'
    4 |  int main(){
      |  ^~~
a.cc:2:16: error: expected ';' before 'int'
    2 | using namespace
      |                ^
      |                ;
    3 | 
    4 |  int main(){
      |  ~~~            
a.cc: In function 'int main()':
a.cc:7:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 | cin>>h>>r;
      | ^~~
      | std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 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:8:14: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 | if ( h+r<0 ){cout<<"-1"<<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:8:26: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 | if ( h+r<0 ){cout<<"-1"<<endl;}
      |                          ^~~~
      |                          std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:9:5: error: '\U000000a0h' was not declared in this scope
    9 | if ( h+r>0 ){cout<<"0"<<endl;}
      |     ^~
a.cc:9:14: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 | if ( h+r>0 ){cout<<"0"<<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:9:25: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 | if ( h+r>0 ){cout<<"0"<<endl;}
      |                         ^~~~
      |                         std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

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

 int main(){

 int h,r;
cin>>h>>r;
if ( h + r < 0 )cout<<"-1"<<endl;
else if ( h + r > 0 )cout<<"1"<<endl;
else if ( h + r == 0 )cout<<"0"<<endl;
return 0; 
}



Compiler output:
a.cc:9:10: error: extended character   is not valid in an identifier
    9 | else if ( h + r > 0 )cout<<"1"<<endl;
      |          ^
a.cc: In function 'int main()':
a.cc:9:10: error: '\U000000a0h' was not declared in this scope
    9 | else if ( h + r > 0 )cout<<"1"<<endl;
      |          ^~
Language: C++

import java.util.Scanner;

public class Main {
	public static void main(String argv[]) {
		Scanner sc = new Scanner(System.in);
		int H = sc.nextInt();
		int R = sc.nextInt();
		int time = 0;
		if(H + R < 0)    time = -1;
		else if(H + R >= 2*R) time =  1;
		else if(H + R == 0)   time = 0;
		else if(H + R >= 1) time = 1;
		System.out.println(time);
	}
}


Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.Scanner;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: expected unqualified-id before 'public'
    3 | public class Main {
      | ^~~~~~
Language: C++

#include <stdio.h>

int main(void){
    int a,b;
    scanf("%d %d",&a,&b);
    if(a+b==0)return printf(0),0;
    if(a<0&&b<a)return printf(-1),0;
    return printf(1),0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:31: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
    7 |     if(a<0&&b<a)return printf(-1),0;
      |                               ^~
      |                               |
      |                               int
In file included from a.cc:1:
/usr/include/stdio.h:363:43: note:   initializing argument 1 of 'int printf(const char*, ...)'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
a.cc:8:19: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
    8 |     return printf(1),0;
      |                   ^
      |                   |
      |                   int
/usr/include/stdio.h:363:43: note:   initializing argument 1 of 'int printf(const char*, ...)'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
Language: C++

#include <algorithm>
#include <iostream>
#include <math.h>
#include <cstdio>
#include <string.h>
using namespace std;
int main(void){
	int h,r,ans;
	cin>>h>>r;
	if(h+r>0)ans=1;
	else if(h+w<0)ans=-1;
	else ans=0;
	cout<<ans<<endl;
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:19: error: 'w' was not declared in this scope
   11 |         else if(h+w<0)ans=-1;
      |                   ^
Language: C++

#include <algorithm>
#include <cstdio>
#include <iostream>
#include <map>
#include <cmath>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <vector>
#include <stdlib.h>
#include <stdio.h>
#include <bitset>
#include <cstring>
#include <deque>
#include <iomanip>
#include <limits>
#include <fstream>
using namespace std;
#define FOR(I,A,B) for(int I = (A); I < (B); ++I)
#define CLR(mat) memset(mat, 0, sizeof(mat))
typedef long long ll;

int main()
{
  ios::sync_with_stdio(false);
  cin.tie(0);
  int h, r;
  cin >> h >> r;
  if(abs(h) == r) cout << 0 << endl;
  else if(h >= 0) cout << 1 << endl;
  else id(h < 0) {
      if(abs(h) < r) cout << -1 << endl;
      else cout << 1 << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:33:8: error: 'id' was not declared in this scope
   33 |   else id(h < 0) {
      |        ^~
Language: C++

#include<iostream>
using namespace std;

int main(){
    int h,r;
    cinn>>h>>r;
    if(h+r>0)cout<<1<<endl;
    if(h+r ==0)cout<<0<<endl;
    if(h+r<0)cout<<-1<<endl;
    
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: 'cinn' was not declared in this scope
    6 |     cinn>>h>>r;
      |     ^~~~
Language: C++

#include<iostream>
using namespace std;

int main(){
    int h,r;
    cinn>>h>>r;
    if(h+r>0)cout<<1<<endl;
    else if(h+r ==0)cout<<0<<endl;
    else if(h+r<0)cout<<-1<<endl;
    
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: 'cinn' was not declared in this scope
    6 |     cinn>>h>>r;
      |     ^~~~
Language: Java

import java.util.Scanner;

public class Main {
    public static void main(String[] args) throws Exception {
       Scanner s = new Scanner (System.in);
       
       int E = s.nextInt();
       int Y = s.nextInt();
       
       if(1912 > Y && Y > 1867){
           int A = Y-1867;
           System.out.print("M");
           System.out.println(A);
       }else if(1926 > Y && Y >1911){
           int B = Y-1911;
           System.out.print("T");
           System.out.println(B);
       }else if(1989 > Y && Y > 1925){
            int C = Y-1925;
            System.out.print("S");
            System.out.println(C);
       }else if(2017 > Y && Y > 1988){
           int D = Y-1988;
           System.out.print("H");
           System.out.println(D);
       }else if(E == 1){
           System.out.println(Y+1867);
       }else if(E == 2){
           System.out.println(Y+1911);
       }else if(E == 3){
            System.out.println(Y+1925);
       }else if(E == 4){
            System.out.println(Y+1988);
       }
       
       

Compiler output:
Main.java:34: error: reached end of file while parsing
       }
        ^
1 error
Language: Java

import java.util.*;

public class Main {

	public static void main(String[] args) {
		Scanner in=new Scanner(System.in);
		int E=in.nextInt(),Y=in.nextInt();
		
		switch(E){
		case 0:
			if(Y<=1911)System.out.println("M"+(Y-1867));
			else if(Y<=1925)System.out.println("T"+(Y-1911));
			else if(Y<=1988)System.out.println("S"+(Y-1925));
			else System.out.println("H"+(Y-1988));
			break;
		
		case 1:
			System.out.println(Y+1867);
			break;
		
		case 2:
			System.out.println(Y+1911);
			break;
		
		case 3:
			System.out.println(Y+1925);
			break;
		
		case 4:
			System.out.println(Y+1988);
			break;
		}
	}



Compiler output:
Main.java:33: error: reached end of file while parsing
	}
	 ^
1 error
Language: C

#include<stdio.h>
int main(void)
{
 int a,b,c;
 scanf("%d %d",&a,&b);
 if(a==0){
  if(b>=1868&&b<=1911){
   c=b-1867;
   printf("M%d\n",c);
  }
  else if(b>=1912&&b<=1925){
   c=b-1911;
   printf("T%d\n",c);
  }
  else if(b>=1926&&b<=1988){
   c=b-1925;
   printf("S%d\n",c);
  }
  else{
   c=b-1988;
   printf("H%d\n",c);
  }
 else if(a==1){
  c=b+1867;
 }
 else if(a==2){
  c=b+1911;
 }
 else if(a==3){
  c=b+1925;
 else{
  c=b+1988;
 }
 if(a!=0){
  printf("%d\n",c);
 }
 return(0);
}

Compiler output:
main.c: In function 'main':
main.c:23:2: error: expected '}' before 'else'
   23 |  else if(a==1){
      |  ^~~~
main.c:31:2: error: expected '}' before 'else'
   31 |  else{
      |  ^~~~
Language: C

#include<stdio.h>
int main(void)
{
??int a,b,c;
??scanf("%d %d",&a,&b);
??if(a==0){
????if(b>=1868&&b<=1911){
??????c=b-1867;
??????printf("M%d\n",c);
????}
????else if(b>=1912&&b<=1925){
??????c=b-1911;
??????printf("T%d\n",c);
????}
????else if(b>=1926&&b<=1988){
??????c=b-1925;
??????printf("S%d\n",c);
????}
????else{
??????c=b-1988;
??????printf("H%d\n",c);
????}
 }
??else if(a==1){
????c=b+1867;
??}
??else if(a==2){
????c=b+1911;
??}
??else if(a==3){
????c=b+1925;
 }
??else{
????c=b+1988;
??}
??if(a!=0){
????printf("%d\n",c);
??}
??return(0);
}

Compiler output:
main.c: In function 'main':
main.c:4:1: error: expected expression before '?' token
    4 | ??int a,b,c;
      | ^
main.c:5:1: error: expected expression before '?' token
    5 | ??scanf("%d %d",&a,&b);
      | ^
main.c:5:18: error: 'a' undeclared (first use in this function)
    5 | ??scanf("%d %d",&a,&b);
      |                  ^
main.c:5:18: note: each undeclared identifier is reported only once for each function it appears in
main.c:5:21: error: 'b' undeclared (first use in this function)
    5 | ??scanf("%d %d",&a,&b);
      |                     ^
main.c:6:1: error: expected expression before '?' token
    6 | ??if(a==0){
      | ^
Language: C

#include<stdio.h>
int main(void)
{
	int E,Y;
	scanf("%d%d",&E,&Y);
	if (E==0)
	{
		if (Y<=1911)
		printf("M%d\n",Y-1867);
		else if (Y<=1925)
		printf("T%d\n",Y-1911);
		else if (Y<=1988)
		printf("S%d\n",Y-1925);
		else 
		printf("H%d\n",Y-1988);
	}
	else if (E==1)
	printf("%d\n",Y+1867);
	else if (E==2)
	printf("%d\n",Y+1911);
	else if (E==3)
	printf("%d\n",Y+1925);
	else 
	printf("%d\n",Y+1988);}
	return 0;
}

Compiler output:
main.c:25:9: error: expected identifier or '(' before 'return'
   25 |         return 0;
      |         ^~~~~~
main.c:26:1: error: expected identifier or '(' before '}' token
   26 | }
      | ^
Language: C++

#include<iostream>
using namespace std;

int main(){
  int E, Y;
  cin E >> Y;

  switch(E){
    case 0:
            if(1868<=Y && Y<=1911){
              cout << 'M' << Y-1867 << endl;
            }
            else if(1912<=Y && Y<=1925){
              cout << 'T' << Y-1911 << endl;
            }
            else if(1926<=Y && Y<=1988){
              cout << 'S' << Y-1925 << endl;
            }
            else if(1989<=Y && Y<=2016){
              cout << 'H' << Y-1988 << endl;
            }
            break;
    case 1:
            cout << Y+1867 << endl;
            break;
    case 2;
            cout << Y+1911 << endl;
    case 3;
            cout << Y+1925 << endl;
    case 4;
            cout << Y+1988 << endl;
  }
  return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:6:6: error: expected ';' before 'E'
    6 |   cin E >> Y;
      |      ^~
      |      ;
a.cc:26:11: error: expected ':' before ';' token
   26 |     case 2;
      |           ^
      |           :
a.cc:28:11: error: expected ':' before ';' token
   28 |     case 3;
      |           ^
      |           :
a.cc:30:11: error: expected ':' before ';' token
   30 |     case 4;
      |           ^
      |           :
Language: C++

#include<iostream>
using namespace std;

int main(){
  int E, Y;
  cin >> E >> Y;

  switch(E){
    case 0:
            if(1868<=Y && Y<=1911){
              cout << 'M' << Y-1867 << endl;
            }
            else if(1912<=Y && Y<=1925){
              cout << 'T' << Y-1911 << endl;
            }
            else if(1926<=Y && Y<=1988){
              cout << 'S' << Y-1925 << endl;
            }
            else if(1989<=Y && Y<=2016){
              cout << 'H' << Y-1988 << endl;
            }
            break;
    case 1:
            cout << Y+1867 << endl;
            break;
    case 2:
            cout << Y+1911 << endl;
            break;
    case 3:
            cout << Y+1925 << endl;]
            break;
    case 4:
            cout << Y+1988 << endl;
            break;
  }
  return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:30:36: error: expected primary-expression before ']' token
   30 |             cout << Y+1925 << endl;]
      |                                    ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int E,Y;
  int M=1912,T=1926,S=1989,H=2020;
  cin >> E >> Y;
  if(E ==0){
    if(Y<M) cout << "M" << (Y-1868)+1 << endl;
    if(Y<T && M<=Y) cout << "T" << Y-M+1 << endl;
    if(Y<S && T<=Y) cout << "S" << Y-T+1 << endl;
    if(Y<H && S<=Y) cout << "H" << Y-S=1 << endl;
  }
  if(E == 1) cout << 1968+Y-1 << endl;
  if(E == 2) cout << M+Y-1 << endl;
  if(E == 3) cout << T+Y-1 << endl;
  if(E == 4) cout << S+Y-1 << endl;
    
  return 0;

}



Compiler output:
a.cc: In function 'int main()':
a.cc:11:42: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
   11 |     if(Y<H && S<=Y) cout << "H" << Y-S=1 << endl;
      |                                        ~~^~~~~~~
Language: C++

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

int main(){
  int E,Y;

  cin>>E>>Y;

  if(E=0&&1911-Y>=0){
    
    cout<<M"1911-Y"<<endl;
  }
  else if(E=0&&1925-Y>=0){

    cout<<T"1925-Y"<<endl;
  }
  
  else if(E=0&&1988-Y>=0){

    cout<<S"1988-Y"<<endl;
  }

  else if(E=0&&2016-Y>=0){

    cout<<H"2016-Y"<<endl;
  }

  else if(E=1&&1868>=Y){
    cout<<1868+Y-1<<endl;
  }
  else if(E=2&&1912>=Y){
    cout<<1912+Y-1<<endl;
  }
  else if(E=3&&1926>=Y){
    cout<<1926+Y-1<<endl;
  }
  else if(E=4&&1989>=Y){
    cout<<1989=Y-1<<endl;
  }
  return 0;

}



Compiler output:
a.cc: In function 'int main()':
a.cc:11:11: error: 'M' was not declared in this scope
   11 |     cout<<M"1911-Y"<<endl;
      |           ^
a.cc:15:11: error: 'T' was not declared in this scope
   15 |     cout<<T"1925-Y"<<endl;
      |           ^
a.cc:20:11: error: 'S' was not declared in this scope
   20 |     cout<<S"1988-Y"<<endl;
      |           ^
a.cc:25:11: error: 'H' was not declared in this scope
   25 |     cout<<H"2016-Y"<<endl;
      |           ^
a.cc:38:19: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
   38 |     cout<<1989=Y-1<<endl;
      |                ~~~^~~~~~
Language: C++

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

int main(){
  int E,Y,M,T,S,H;

  cin>>E>>Y;

  if(E=0&&1911-Y>=0){
    
    cout<<M"1911-Y"<<endl;
  }
  else if(E=0&&1925-Y>=0){

    cout<<T"1925-Y"<<endl;
  }
  
  else if(E=0&&1988-Y>=0){

    cout<<S"1988-Y"<<endl;
  }

  else if(E=0&&2016-Y>=0){

    cout<<H"2016-Y"<<endl;
  }

  else if(E=1&&1868>=Y){
    cout<<1868+Y-1<<endl;
  }
  else if(E=2&&1912>=Y){
    cout<<1912+Y-1<<endl;
  }
  else if(E=3&&1926>=Y){
    cout<<1926+Y-1<<endl;
  }
  else if(E=4&&1989>=Y){
    cout<<1989=Y-1<<endl;
  }
  return 0;

}



Compiler output:
a.cc: In function 'int main()':
a.cc:11:12: error: expected ';' before string constant
   11 |     cout<<M"1911-Y"<<endl;
      |            ^~~~~~~~
      |            ;
a.cc:15:12: error: expected ';' before string constant
   15 |     cout<<T"1925-Y"<<endl;
      |            ^~~~~~~~
      |            ;
a.cc:20:12: error: expected ';' before string constant
   20 |     cout<<S"1988-Y"<<endl;
      |            ^~~~~~~~
      |            ;
a.cc:25:12: error: expected ';' before string constant
   25 |     cout<<H"2016-Y"<<endl;
      |            ^~~~~~~~
      |            ;
a.cc:38:19: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
   38 |     cout<<1989=Y-1<<endl;
      |                ~~~^~~~~~
Language: C++

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

int main(){
  int E,Y,M,T,S,H;

  cin>>E>>Y;

  if(E=0&&1911-Y>=0){
    
    cout<<M"1911-Y"<<endl
  }
  else if(E=0&&1925-Y>=0){

    cout<<T"1925-Y"<<endl
  }
  
  else if(E=0&&1988-Y>=0){

    cout<<S"1988-Y"<<endl
  }

  else if(E=0&&2016-Y>=0){

    cout<<H"2016-Y"<<endl
  }

  else if(E=1&&1868>=Y){
    cout<<1868+Y-1<<endl
  }
  else if(E=2&&1912>=Y){
    cout<<1912+Y-1<<endl
  }
  else if(E=3&&1926>=Y){
    cout<<1926+Y-1<<endl
  }
  else if(E=4&&1989>=Y){
    cout<<1989=Y-1<<endl
  }
  return 0;

}



Compiler output:
a.cc: In function 'int main()':
a.cc:11:12: error: expected ';' before string constant
   11 |     cout<<M"1911-Y"<<endl
      |            ^~~~~~~~
      |            ;
a.cc:15:12: error: expected ';' before string constant
   15 |     cout<<T"1925-Y"<<endl
      |            ^~~~~~~~
      |            ;
a.cc:20:12: error: expected ';' before string constant
   20 |     cout<<S"1988-Y"<<endl
      |            ^~~~~~~~
      |            ;
a.cc:25:12: error: expected ';' before string constant
   25 |     cout<<H"2016-Y"<<endl
      |            ^~~~~~~~
      |            ;
a.cc:29:25: error: expected ';' before '}' token
   29 |     cout<<1868+Y-1<<endl
      |                         ^
      |                         ;
   30 |   }
      |   ~                      
a.cc:32:25: error: expected ';' before '}' token
   32 |     cout<<1912+Y-1<<endl
      |                         ^
      |                         ;
   33 |   }
      |   ~                      
a.cc:35:25: error: expected ';' before '}' token
   35 |     cout<<1926+Y-1<<endl
      |                         ^
      |                         ;
   36 |   }
      |   ~                      
a.cc:38:19: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
   38 |     cout<<1989=Y-1<<endl
      |                ~~~^~~~~~
Language: C++

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

int main(){
  int E,Y,M,T,S,H;

  cin>>E>>Y;

  if(E=0&&1911-Y>=0){
    
    cout<<M"1911-Y"<<endl
  
  else if(E=0&&1925-Y>=0){

    cout<<T"1925-Y"<<endl
  
  
  else if(E=0&&1988-Y>=0){

    cout<<S"1988-Y"<<endl
  

  else if(E=0&&2016-Y>=0){

    cout<<H"2016-Y"<<endl
  

  else if(E=1&&1868>=Y){
    cout<<1868+Y-1<<endl
  
  else if(E=2&&1912>=Y){
    cout<<1912+Y-1<<endl
  
  else if(E=3&&1926>=Y){
    cout<<1926+Y-1<<endl
  
  else if(E=4&&1989>=Y){
    cout<<1989=Y-1<<endl
  
  return 0;

}



Compiler output:
a.cc: In function 'int main()':
a.cc:11:12: error: expected ';' before string constant
   11 |     cout<<M"1911-Y"<<endl
      |            ^~~~~~~~
      |            ;
a.cc:42:2: error: expected '}' at end of input
   42 | }
      |  ^
a.cc:9:21: note: to match this '{'
    9 |   if(E=0&&1911-Y>=0){
      |                     ^
a.cc:42:2: error: expected '}' at end of input
   42 | }
      |  ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

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

int main(){
  int E,Y,M,T,S,H;

  cin>>E>>Y;

  if(E=0&&1911-Y>=0){
    
    cout<<M"1911-Y"<<endl
  
  else if(E=0&&1925-Y>=0){

    cout<<T"1925-Y"<<endl
  
  
  else if(E=0&&1988-Y>=0){

    cout<<S"1988-Y"<<endl
  

  else if(E=0&&2016-Y>=0){

    cout<<H"2016-Y"<<endl
  

  else if(E=1&&1868>=Y){
    cout<<1868+Y-1<<endl
  
  else if(E=2&&1912>=Y){
    cout<<1912+Y-1<<endl
  
  else if(E=3&&1926>=Y){
    cout<<1926+Y-1<<endl
  
  else if(E=4&&1989>=Y){
    cout<<1989=Y-1<<endl
      }
  return 0;

}



Compiler output:
a.cc: In function 'int main()':
a.cc:11:12: error: expected ';' before string constant
   11 |     cout<<M"1911-Y"<<endl
      |            ^~~~~~~~
      |            ;
a.cc:42:2: error: expected '}' at end of input
   42 | }
      |  ^
a.cc:9:21: note: to match this '{'
    9 |   if(E=0&&1911-Y>=0){
      |                     ^
a.cc:42:2: error: expected '}' at end of input
   42 | }
      |  ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

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

int main(){
  int E,Y,M,T,S,H;

  cin>>E>>Y;

  if(E=0&&1911-Y>=0){
    
    cout<<M"1911-Y"<<endl
      }
  else if(E=0&&1925-Y>=0){

    cout<<T"1925-Y"<<endl
      }
  
  else if(E=0&&1988-Y>=0){

    cout<<S"1988-Y"<<endl
  
      }
  else if(E=0&&2016-Y>=0){

    cout<<H"2016-Y"<<endl
      }

  else if(E=1&&1868>=Y){
    cout<<1868+Y-1<<endl
      }
  else if(E=2&&1912>=Y){
    cout<<1912+Y-1<<endl
      }
  else if(E=3&&1926>=Y){
    cout<<1926+Y-1<<endl
      }
  else if(E=4&&1989>=Y){
    cout<<1989=Y-1<<endl
      }
  return 0;

}



Compiler output:
a.cc: In function 'int main()':
a.cc:11:12: error: expected ';' before string constant
   11 |     cout<<M"1911-Y"<<endl
      |            ^~~~~~~~
      |            ;
a.cc:15:12: error: expected ';' before string constant
   15 |     cout<<T"1925-Y"<<endl
      |            ^~~~~~~~
      |            ;
a.cc:20:12: error: expected ';' before string constant
   20 |     cout<<S"1988-Y"<<endl
      |            ^~~~~~~~
      |            ;
a.cc:25:12: error: expected ';' before string constant
   25 |     cout<<H"2016-Y"<<endl
      |            ^~~~~~~~
      |            ;
a.cc:29:25: error: expected ';' before '}' token
   29 |     cout<<1868+Y-1<<endl
      |                         ^
      |                         ;
   30 |       }
      |       ~                  
a.cc:32:25: error: expected ';' before '}' token
   32 |     cout<<1912+Y-1<<endl
      |                         ^
      |                         ;
   33 |       }
      |       ~                  
a.cc:35:25: error: expected ';' before '}' token
   35 |     cout<<1926+Y-1<<endl
      |                         ^
      |                         ;
   36 |       }
      |       ~                  
a.cc:38:19: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
   38 |     cout<<1989=Y-1<<endl
      |                ~~~^~~~~~
Language: C++

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

int main(){
  int E,Y,M,T,S,H;

  cin>>E>>Y;

  if(E=0&&1911-Y>=0){
    
    cout<<M"1911-Y"<<endl
      }
  else if(E=0&&1925-Y>=0){

    cout<<T"1925-Y"<<endl
      } else if(E=0&&1988-Y>=0){

    cout<<S"1988-Y"<<endl
  
      } else if(E=0&&2016-Y>=0){

    cout<<H"2016-Y"<<endl
      } else if(E=1&&1868>=Y){
    cout<<1868+Y-1<<endl
      } else if(E=2&&1912>=Y){
    cout<<1912+Y-1<<endl
      } else if(E=3&&1926>=Y){
    cout<<1926+Y-1<<endl
      } else if(E=4&&1989>=Y){
    cout<<1989=Y-1<<endl
      }
  return 0;

}



Compiler output:
a.cc: In function 'int main()':
a.cc:11:12: error: expected ';' before string constant
   11 |     cout<<M"1911-Y"<<endl
      |            ^~~~~~~~
      |            ;
a.cc:15:12: error: expected ';' before string constant
   15 |     cout<<T"1925-Y"<<endl
      |            ^~~~~~~~
      |            ;
a.cc:18:12: error: expected ';' before string constant
   18 |     cout<<S"1988-Y"<<endl
      |            ^~~~~~~~
      |            ;
a.cc:22:12: error: expected ';' before string constant
   22 |     cout<<H"2016-Y"<<endl
      |            ^~~~~~~~
      |            ;
a.cc:24:25: error: expected ';' before '}' token
   24 |     cout<<1868+Y-1<<endl
      |                         ^
      |                         ;
   25 |       } else if(E=2&&1912>=Y){
      |       ~                  
a.cc:26:25: error: expected ';' before '}' token
   26 |     cout<<1912+Y-1<<endl
      |                         ^
      |                         ;
   27 |       } else if(E=3&&1926>=Y){
      |       ~                  
a.cc:28:25: error: expected ';' before '}' token
   28 |     cout<<1926+Y-1<<endl
      |                         ^
      |                         ;
   29 |       } else if(E=4&&1989>=Y){
      |       ~                  
a.cc:30:19: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
   30 |     cout<<1989=Y-1<<endl
      |                ~~~^~~~~~
Language: C++

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

int main(){
  int E,Y,M,T,S,H;

  cin>>E>>Y;

  if(E=0&&1911-Y>=0){
    cout<<M"1911-Y"<<endl
      } else if(E=0&&1925-Y>=0){
    cout<<T"1925-Y"<<endl
      } else if(E=0&&1988-Y>=0){
    cout<<S"1988-Y"<<endl
      } else if(E=0&&2016-Y>=0){
    cout<<H"2016-Y"<<endl
      } else if(E=1&&1868>=Y){
    cout<<1868+Y-1<<endl
      } else if(E=2&&1912>=Y){
    cout<<1912+Y-1<<endl
      } else if(E=3&&1926>=Y){
    cout<<1926+Y-1<<endl
      } else if(E=4&&1989>=Y){
    cout<<1989=Y-1<<endl
      }
  return 0;

}



Compiler output:
a.cc: In function 'int main()':
a.cc:10:12: error: expected ';' before string constant
   10 |     cout<<M"1911-Y"<<endl
      |            ^~~~~~~~
      |            ;
a.cc:12:12: error: expected ';' before string constant
   12 |     cout<<T"1925-Y"<<endl
      |            ^~~~~~~~
      |            ;
a.cc:14:12: error: expected ';' before string constant
   14 |     cout<<S"1988-Y"<<endl
      |            ^~~~~~~~
      |            ;
a.cc:16:12: error: expected ';' before string constant
   16 |     cout<<H"2016-Y"<<endl
      |            ^~~~~~~~
      |            ;
a.cc:18:25: error: expected ';' before '}' token
   18 |     cout<<1868+Y-1<<endl
      |                         ^
      |                         ;
   19 |       } else if(E=2&&1912>=Y){
      |       ~                  
a.cc:20:25: error: expected ';' before '}' token
   20 |     cout<<1912+Y-1<<endl
      |                         ^
      |                         ;
   21 |       } else if(E=3&&1926>=Y){
      |       ~                  
a.cc:22:25: error: expected ';' before '}' token
   22 |     cout<<1926+Y-1<<endl
      |                         ^
      |                         ;
   23 |       } else if(E=4&&1989>=Y){
      |       ~                  
a.cc:24:19: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
   24 |     cout<<1989=Y-1<<endl
      |                ~~~^~~~~~
Language: C++

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

int main(){
  int E,Y,M,T,S,H;

  cin>>E>>Y;

  if(E=0&&1911-Y>=0){
    cout<<M"1911-Y"<<endl
      } else if(E=0&&1925-Y>=0){
    cout<<T"1925-Y"<<endl
      } else if(E=0&&1988-Y>=0){
    cout<<S"1988-Y"<<endl
      } else if(E=0&&2016-Y>=0){
    cout<<H"2016-Y"<<endl
      } else if(E=1&&1868>=Y){
    cout<<1867+Y<<endl
      } else if(E=2&&1912>=Y){
    cout<<1911+Y<<endl
      } else if(E=3&&1926>=Y){
    cout<<1925+Y<<endl
      } else if(E=4&&1989>=Y){
    cout<<1988+Y<<endl
      }
  return 0;

}



Compiler output:
a.cc: In function 'int main()':
a.cc:10:12: error: expected ';' before string constant
   10 |     cout<<M"1911-Y"<<endl
      |            ^~~~~~~~
      |            ;
a.cc:12:12: error: expected ';' before string constant
   12 |     cout<<T"1925-Y"<<endl
      |            ^~~~~~~~
      |            ;
a.cc:14:12: error: expected ';' before string constant
   14 |     cout<<S"1988-Y"<<endl
      |            ^~~~~~~~
      |            ;
a.cc:16:12: error: expected ';' before string constant
   16 |     cout<<H"2016-Y"<<endl
      |            ^~~~~~~~
      |            ;
a.cc:18:23: error: expected ';' before '}' token
   18 |     cout<<1867+Y<<endl
      |                       ^
      |                       ;
   19 |       } else if(E=2&&1912>=Y){
      |       ~                
a.cc:20:23: error: expected ';' before '}' token
   20 |     cout<<1911+Y<<endl
      |                       ^
      |                       ;
   21 |       } else if(E=3&&1926>=Y){
      |       ~                
a.cc:22:23: error: expected ';' before '}' token
   22 |     cout<<1925+Y<<endl
      |                       ^
      |                       ;
   23 |       } else if(E=4&&1989>=Y){
      |       ~                
a.cc:24:23: error: expected ';' before '}' token
   24 |     cout<<1988+Y<<endl
      |                       ^
      |                       ;
   25 |       }
      |       ~
Language: C++

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

int main(){
  int E,Y,M,T,S,H;

  cin>>E>>Y;

  if(E=0&&1911-Y>=0){
    cout<<M1911-Y<<endl
      } else if(E=0&&1925-Y>=0){
    cout<<T1925-Y<<endl
      } else if(E=0&&1988-Y>=0){
    cout<<S1988-Y<<endl
      } else if(E=0&&2016-Y>=0){
    cout<<H2016-Y<<endl
      } else if(E=1&&1868>=Y){
    cout<<1867+Y<<endl
      } else if(E=2&&1912>=Y){
    cout<<1911+Y<<endl
      } else if(E=3&&1926>=Y){
    cout<<1925+Y<<endl
      } else if(E=4&&1989>=Y){
    cout<<1988+Y<<endl
      }
  return 0;

}



Compiler output:
a.cc: In function 'int main()':
a.cc:10:11: error: 'M1911' was not declared in this scope
   10 |     cout<<M1911-Y<<endl
      |           ^~~~~
a.cc:12:11: error: 'T1925' was not declared in this scope
   12 |     cout<<T1925-Y<<endl
      |           ^~~~~
a.cc:14:11: error: 'S1988' was not declared in this scope
   14 |     cout<<S1988-Y<<endl
      |           ^~~~~
a.cc:16:11: error: 'H2016' was not declared in this scope
   16 |     cout<<H2016-Y<<endl
      |           ^~~~~
a.cc:18:23: error: expected ';' before '}' token
   18 |     cout<<1867+Y<<endl
      |                       ^
      |                       ;
   19 |       } else if(E=2&&1912>=Y){
      |       ~                
a.cc:20:23: error: expected ';' before '}' token
   20 |     cout<<1911+Y<<endl
      |                       ^
      |                       ;
   21 |       } else if(E=3&&1926>=Y){
      |       ~                
a.cc:22:23: error: expected ';' before '}' token
   22 |     cout<<1925+Y<<endl
      |                       ^
      |                       ;
   23 |       } else if(E=4&&1989>=Y){
      |       ~                
a.cc:24:23: error: expected ';' before '}' token
   24 |     cout<<1988+Y<<endl
      |                       ^
      |                       ;
   25 |       }
      |       ~
Language: C++

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

int main(){
  int E,Y,M,T,S,H;

  cin>>E>>Y;

  if(E=0&&1911-Y>=0){
    cout<<M1911-Y<<endl
      } else if(E=0&&1925-Y>=0){
    cout<<T"1925-Y"<<endl
      } else if(E=0&&1988-Y>=0){
    cout<<S"1988-Y"<<endl
      } else if(E=0&&2016-Y>=0){
    cout<<H"2016-Y"<<endl
      } else if(E=1&&1868>=Y){
    cout<<"1867+Y"<<endl
      } else if(E=2&&1912>=Y){
    cout<<"1911+Y"<<endl
      } else if(E=3&&1926>=Y){
    cout<<"1925+Y"<<endl
      } else if(E=4&&1989>=Y){
    cout<<"1988+Y"<<endl
      }
  return 0;

}



Compiler output:
a.cc: In function 'int main()':
a.cc:10:11: error: 'M1911' was not declared in this scope
   10 |     cout<<M1911-Y<<endl
      |           ^~~~~
a.cc:12:12: error: expected ';' before string constant
   12 |     cout<<T"1925-Y"<<endl
      |            ^~~~~~~~
      |            ;
a.cc:14:12: error: expected ';' before string constant
   14 |     cout<<S"1988-Y"<<endl
      |            ^~~~~~~~
      |            ;
a.cc:16:12: error: expected ';' before string constant
   16 |     cout<<H"2016-Y"<<endl
      |            ^~~~~~~~
      |            ;
a.cc:18:25: error: expected ';' before '}' token
   18 |     cout<<"1867+Y"<<endl
      |                         ^
      |                         ;
   19 |       } else if(E=2&&1912>=Y){
      |       ~                  
a.cc:20:25: error: expected ';' before '}' token
   20 |     cout<<"1911+Y"<<endl
      |                         ^
      |                         ;
   21 |       } else if(E=3&&1926>=Y){
      |       ~                  
a.cc:22:25: error: expected ';' before '}' token
   22 |     cout<<"1925+Y"<<endl
      |                         ^
      |                         ;
   23 |       } else if(E=4&&1989>=Y){
      |       ~                  
a.cc:24:25: error: expected ';' before '}' token
   24 |     cout<<"1988+Y"<<endl
      |                         ^
      |                         ;
   25 |       }
      |       ~
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main(){

int E, Y;
cin>>E>>Y;

if(E = 0){
 if(1868 <= Y <= 1912) cout<<M<<" "<<(Y + 1) - 1868<<endl;
 if(1912 <= Y <= 1926) cout<<T<<" "<<(Y + 1) - 1912<<endl;
 if(1926 <= Y <= 1988) cout<<S<<" "<<(Y + 1) - 1926<<endl;
 if(1988 <= Y <= 2016) cout<<H<<" "<<(Y + 1) - 1988<<endl;
 }
if(E = 1) cout<<Y + 1868 - 1<<endl;
if(E = 2) cout<<Y + 1912 - 1<<endl;
if(E = 3) cout<<Y + 1926 - 1<<endl;
if(E = 4) cout<<Y + 1988 - 1<<endl;

return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:30: error: 'M' was not declared in this scope
   11 |  if(1868 <= Y <= 1912) cout<<M<<" "<<(Y + 1) - 1868<<endl;
      |                              ^
a.cc:12:30: error: 'T' was not declared in this scope
   12 |  if(1912 <= Y <= 1926) cout<<T<<" "<<(Y + 1) - 1912<<endl;
      |                              ^
a.cc:13:30: error: 'S' was not declared in this scope
   13 |  if(1926 <= Y <= 1988) cout<<S<<" "<<(Y + 1) - 1926<<endl;
      |                              ^
a.cc:14:30: error: 'H' was not declared in this scope
   14 |  if(1988 <= Y <= 2016) cout<<H<<" "<<(Y + 1) - 1988<<endl;
      |                              ^
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main(){

int E, Y;
cin>>E>>Y;

if(E = 0){
 if(1868 <= Y <= 1912) cout<<M<<" "<<(Y - 1) - 1868<<endl;
 if(1912 <= Y <= 1926) cout<<T<<" "<<(Y - 1) - 1912<<endl;
 if(1926 <= Y <= 1988) cout<<S<<" "<<(Y - 1) - 1926<<endl;
 if(1988 <= Y <= 2016) cout<<H<<" "<<(Y - 1) - 1988<<endl;
 }
if(E = 1) cout<<Y + 1868 - 1<<endl;
if(E = 2) cout<<Y + 1912 - 1<<endl;
if(E = 3) cout<<Y + 1926 - 1<<endl;
if(E = 4) cout<<Y + 1988 - 1<<endl;

return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:30: error: 'M' was not declared in this scope
   11 |  if(1868 <= Y <= 1912) cout<<M<<" "<<(Y - 1) - 1868<<endl;
      |                              ^
a.cc:12:30: error: 'T' was not declared in this scope
   12 |  if(1912 <= Y <= 1926) cout<<T<<" "<<(Y - 1) - 1912<<endl;
      |                              ^
a.cc:13:30: error: 'S' was not declared in this scope
   13 |  if(1926 <= Y <= 1988) cout<<S<<" "<<(Y - 1) - 1926<<endl;
      |                              ^
a.cc:14:30: error: 'H' was not declared in this scope
   14 |  if(1988 <= Y <= 2016) cout<<H<<" "<<(Y - 1) - 1988<<endl;
      |                              ^
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main(){

int E, Y;
cin>>E>>Y;

if(E = 0){
 if(1868 <= Y <= 1912) cout<<M<<" "<<(Y + 1) - 1868<<endl;
 if(1912 <= Y <= 1926) cout<<T<<" "<<(Y + 1) - 1912<<endl;
 if(1926 <= Y <= 1988) cout<<S<<" "<<(Y + 1) - 1926<<endl;
 if(1988 <= Y <= 2016) cout<<H<<" "<<(Y + 1) - 1988<<endl;
 }
if(E = 1) cout<<Y + 1868    <<endl;
if(E = 2) cout<<Y + 1912    <<endl;
if(E = 3) cout<<Y + 1926    <<endl;
if(E = 4) cout<<Y + 1988    <<endl;

return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:30: error: 'M' was not declared in this scope
   11 |  if(1868 <= Y <= 1912) cout<<M<<" "<<(Y + 1) - 1868<<endl;
      |                              ^
a.cc:12:30: error: 'T' was not declared in this scope
   12 |  if(1912 <= Y <= 1926) cout<<T<<" "<<(Y + 1) - 1912<<endl;
      |                              ^
a.cc:13:30: error: 'S' was not declared in this scope
   13 |  if(1926 <= Y <= 1988) cout<<S<<" "<<(Y + 1) - 1926<<endl;
      |                              ^
a.cc:14:30: error: 'H' was not declared in this scope
   14 |  if(1988 <= Y <= 2016) cout<<H<<" "<<(Y + 1) - 1988<<endl;
      |                              ^
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main(){

int E, Y;
cin>>E>>Y;

if(E = 0){
 if(1868 <= Y <= 1912) cout<<M<<" "<< Y      - 1868<<endl;
 if(1912 <= Y <= 1926) cout<<T<<" "<< Y      - 1912<<endl;
 if(1926 <= Y <= 1988) cout<<S<<" "<< Y      - 1926<<endl;
 if(1988 <= Y <= 2016) cout<<H<<" "<< Y      - 1988<<endl;
 }
if(E = 1) cout<<Y + 1868    <<endl;
if(E = 2) cout<<Y + 1912    <<endl;
if(E = 3) cout<<Y + 1926    <<endl;
if(E = 4) cout<<Y + 1988    <<endl;

return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:30: error: 'M' was not declared in this scope
   11 |  if(1868 <= Y <= 1912) cout<<M<<" "<< Y      - 1868<<endl;
      |                              ^
a.cc:12:30: error: 'T' was not declared in this scope
   12 |  if(1912 <= Y <= 1926) cout<<T<<" "<< Y      - 1912<<endl;
      |                              ^
a.cc:13:30: error: 'S' was not declared in this scope
   13 |  if(1926 <= Y <= 1988) cout<<S<<" "<< Y      - 1926<<endl;
      |                              ^
a.cc:14:30: error: 'H' was not declared in this scope
   14 |  if(1988 <= Y <= 2016) cout<<H<<" "<< Y      - 1988<<endl;
      |                              ^
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main(){

int E, Y;
cin>>E>>Y;

if(E = 0){
 if(1868 <= Y <= 1912) cout<<M<<" "<<Y - 1868<<endl;
 if(1912 <= Y <= 1926) cout<<T<<" "<<Y - 1912<<endl;
 if(1926 <= Y <= 1988) cout<<S<<" "<<Y - 1926<<endl;
 if(1988 <= Y <= 2016) cout<<H<<" "<<Y - 1988<<endl;
 }
if(E = 1) cout<<Y + 1868    <<endl;
if(E = 2) cout<<Y + 1912    <<endl;
if(E = 3) cout<<Y + 1926    <<endl;
if(E = 4) cout<<Y + 1988    <<endl;

return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:30: error: 'M' was not declared in this scope
   11 |  if(1868 <= Y <= 1912) cout<<M<<" "<<Y - 1868<<endl;
      |                              ^
a.cc:12:30: error: 'T' was not declared in this scope
   12 |  if(1912 <= Y <= 1926) cout<<T<<" "<<Y - 1912<<endl;
      |                              ^
a.cc:13:30: error: 'S' was not declared in this scope
   13 |  if(1926 <= Y <= 1988) cout<<S<<" "<<Y - 1926<<endl;
      |                              ^
a.cc:14:30: error: 'H' was not declared in this scope
   14 |  if(1988 <= Y <= 2016) cout<<H<<" "<<Y - 1988<<endl;
      |                              ^
Language: C++

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

int main(){
  int E,Y,M,T,S,H;

  cin>>E>>Y;

  if(E=0&&1911-Y>=0){
    cout<<M1911-Y<<endl;
      } else if(E=0&&1925-Y>=0){
    cout<<T"1925-Y"<<endl;
      } else if(E=0&&1988-Y>=0){
    cout<<S"1988-Y"<<endl;
      } else if(E=0&&2016-Y>=0){
    cout<<H"2016-Y"<<endl;
      } else if(E=1&&1868>=Y){
    cout<<"1867+Y"<<endl;
      } else if(E=2&&1912>=Y){
    cout<<"1911+Y"<<endl;
      } else if(E=3&&1926>=Y){
    cout<<"1925+Y"<<endl;
      } else if(E=4&&1989>=Y){
    cout<<"1988+Y"<<endl;
      }
  return 0;

}



Compiler output:
a.cc: In function 'int main()':
a.cc:10:11: error: 'M1911' was not declared in this scope
   10 |     cout<<M1911-Y<<endl;
      |           ^~~~~
a.cc:12:12: error: expected ';' before string constant
   12 |     cout<<T"1925-Y"<<endl;
      |            ^~~~~~~~
      |            ;
a.cc:14:12: error: expected ';' before string constant
   14 |     cout<<S"1988-Y"<<endl;
      |            ^~~~~~~~
      |            ;
a.cc:16:12: error: expected ';' before string constant
   16 |     cout<<H"2016-Y"<<endl;
      |            ^~~~~~~~
      |            ;
Language: C++

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

int main(){
  int E,Y,M,T,S,H;

  cin>>E>>Y;

  if(E=0&&1911-Y>=0){
    cout<<"M1911-Y"<<endl;
      } else if(E=0&&1925-Y>=0){
    cout<<T"1925-Y"<<endl;
      } else if(E=0&&1988-Y>=0){
    cout<<S"1988-Y"<<endl;
      } else if(E=0&&2016-Y>=0){
    cout<<H"2016-Y"<<endl;
      }

  else if(E=1&&1868>=Y){
    cout<<"1867+Y"<<endl;
      } else if(E=2&&1912>=Y){
    cout<<"1911+Y"<<endl;
      } else if(E=3&&1926>=Y){
    cout<<"1925+Y"<<endl;
      } else if(E=4&&1989>=Y){
    cout<<"1988+Y"<<endl;
      }
  return 0;

}



Compiler output:
a.cc: In function 'int main()':
a.cc:12:12: error: expected ';' before string constant
   12 |     cout<<T"1925-Y"<<endl;
      |            ^~~~~~~~
      |            ;
a.cc:14:12: error: expected ';' before string constant
   14 |     cout<<S"1988-Y"<<endl;
      |            ^~~~~~~~
      |            ;
a.cc:16:12: error: expected ';' before string constant
   16 |     cout<<H"2016-Y"<<endl;
      |            ^~~~~~~~
      |            ;
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main(){

int E, Y;
cin>>E>>Y;

if(E = 0){
 if(1868 <= Y && Y <= 1912) cout<<M<<" "<<(Y + 1) - 1868<<endl;
 if(1912 <= Y && Y <= 1926) cout<<T<<" "<<(Y + 1) - 1912<<endl;
 if(1926 <= Y && Y <= 1988) cout<<S<<" "<<(Y + 1) - 1926<<endl;
 if(1988 <= Y && Y <= 2016) cout<<H<<" "<<(Y + 1) - 1988<<endl;
 }
if(E = 1) cout<<Y + 1868    <<endl;
if(E = 2) cout<<Y + 1912    <<endl;
if(E = 3) cout<<Y + 1926    <<endl;
if(E = 4) cout<<Y + 1988    <<endl;

return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:35: error: 'M' was not declared in this scope
   11 |  if(1868 <= Y && Y <= 1912) cout<<M<<" "<<(Y + 1) - 1868<<endl;
      |                                   ^
a.cc:12:35: error: 'T' was not declared in this scope
   12 |  if(1912 <= Y && Y <= 1926) cout<<T<<" "<<(Y + 1) - 1912<<endl;
      |                                   ^
a.cc:13:35: error: 'S' was not declared in this scope
   13 |  if(1926 <= Y && Y <= 1988) cout<<S<<" "<<(Y + 1) - 1926<<endl;
      |                                   ^
a.cc:14:35: error: 'H' was not declared in this scope
   14 |  if(1988 <= Y && Y <= 2016) cout<<H<<" "<<(Y + 1) - 1988<<endl;
      |                                   ^
Language: C++

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

int main(){
  int E,Y,M,T,S,H;

  cin>>E>>Y;

  if(E=0&&1911-Y>=0){
    cout<<M"1911-Y"<<endl;
      } else if(E=0&&1925-Y>=0){
    cout<<T"1925-Y"<<endl;
      } else if(E=0&&1988-Y>=0){
    cout<<S"1988-Y"<<endl;
      } else if(E=0&&2016-Y>=0){
    cout<<H"2016-Y"<<endl;
      }

  else if(E=1&&1868>=Y){
    cout<<"1867+Y"<<endl;
      } else if(E=2&&1912>=Y){
    cout<<"1911+Y"<<endl;
      } else if(E=3&&1926>=Y){
    cout<<"1925+Y"<<endl;
      } else if(E=4&&1989>=Y){
    cout<<"1988+Y"<<endl;
      }
  return 0;

}



Compiler output:
a.cc: In function 'int main()':
a.cc:10:12: error: expected ';' before string constant
   10 |     cout<<M"1911-Y"<<endl;
      |            ^~~~~~~~
      |            ;
a.cc:12:12: error: expected ';' before string constant
   12 |     cout<<T"1925-Y"<<endl;
      |            ^~~~~~~~
      |            ;
a.cc:14:12: error: expected ';' before string constant
   14 |     cout<<S"1988-Y"<<endl;
      |            ^~~~~~~~
      |            ;
a.cc:16:12: error: expected ';' before string constant
   16 |     cout<<H"2016-Y"<<endl;
      |            ^~~~~~~~
      |            ;
Language: C++

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

int main(){
  int E,Y,M,T,S,H;

  cin>>E>>Y;

  if(E=0&&1911-Y>=0){
    cout<<M1911-Y<<endl;
      } else if(E=0&&1925-Y>=0){
    cout<<T1925-Y<<endl;
      } else if(E=0&&1988-Y>=0){
    cout<<S1988-Y<<endl;
      } else if(E=0&&2016-Y>=0){
    cout<<H2016-Y<<endl;
      }

  else if(E=1&&1868>=Y){
    cout<<1867+Y<<endl;
      } else if(E=2&&1912>=Y){
    cout<<1911+Y<<endl;
      } else if(E=3&&1926>=Y){
    cout<<1925+Y<<endl;
      } else if(E=4&&1989>=Y){
    cout<<1988+Y<<endl;
      }
  return 0;

}



Compiler output:
a.cc: In function 'int main()':
a.cc:10:11: error: 'M1911' was not declared in this scope
   10 |     cout<<M1911-Y<<endl;
      |           ^~~~~
a.cc:12:11: error: 'T1925' was not declared in this scope
   12 |     cout<<T1925-Y<<endl;
      |           ^~~~~
a.cc:14:11: error: 'S1988' was not declared in this scope
   14 |     cout<<S1988-Y<<endl;
      |           ^~~~~
a.cc:16:11: error: 'H2016' was not declared in this scope
   16 |     cout<<H2016-Y<<endl;
      |           ^~~~~
Language: C++

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

int main(){
  int E,Y,M,T,S,H;

  cin>>E>>Y;

  if(E=0&&1911-Y>=0){
    cout<<M"1911"-Y<<endl;
      } else if(E=0&&1925-Y>=0){
    cout<<T"1925"-Y<<endl;
      } else if(E=0&&1988-Y>=0){
    cout<<S"1988"-Y<<endl;
      } else if(E=0&&2016-Y>=0){
    cout<<H"2016"-Y<<endl;
      }

  else if(E=1&&1868>=Y){
    cout<<"1867"+Y<<endl;
      } else if(E=2&&1912>=Y){
    cout<<"1911"+Y<<endl;
      } else if(E=3&&1926>=Y){
    cout<<"1925"+Y<<endl;
      } else if(E=4&&1989>=Y){
    cout<<"1988"+Y<<endl;
      }
  return 0;

}



Compiler output:
a.cc: In function 'int main()':
a.cc:10:12: error: expected ';' before string constant
   10 |     cout<<M"1911"-Y<<endl;
      |            ^~~~~~
      |            ;
a.cc:12:12: error: expected ';' before string constant
   12 |     cout<<T"1925"-Y<<endl;
      |            ^~~~~~
      |            ;
a.cc:14:12: error: expected ';' before string constant
   14 |     cout<<S"1988"-Y<<endl;
      |            ^~~~~~
      |            ;
a.cc:16:12: error: expected ';' before string constant
   16 |     cout<<H"2016"-Y<<endl;
      |            ^~~~~~
      |            ;
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main(){

int E, Y;
cin>>E>>Y;

if(E = 0){
 if(1868 <= Y && Y <= 1912) cout<<M<<" "<<(Y + 1) - 1868<<endl;
 else if(1912 <= Y && Y <= 1926) cout<<T<<" "<<(Y + 1) - 1912<<endl;
 else if(1926 <= Y && Y <= 1989) cout<<S<<" "<<(Y + 1) - 1926<<endl;
 else if(1989 <= Y && Y <= 2016) cout<<H<<" "<<(Y + 1) - 1989<<endl;
 }
 
if(E = 1) cout<<Y + 1868    <<endl;
if(E = 2) cout<<Y + 1912    <<endl;
if(E = 3) cout<<Y + 1926    <<endl;
if(E = 4) cout<<Y + 1988    <<endl;

return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:35: error: 'M' was not declared in this scope
   11 |  if(1868 <= Y && Y <= 1912) cout<<M<<" "<<(Y + 1) - 1868<<endl;
      |                                   ^
a.cc:12:40: error: 'T' was not declared in this scope
   12 |  else if(1912 <= Y && Y <= 1926) cout<<T<<" "<<(Y + 1) - 1912<<endl;
      |                                        ^
a.cc:13:40: error: 'S' was not declared in this scope
   13 |  else if(1926 <= Y && Y <= 1989) cout<<S<<" "<<(Y + 1) - 1926<<endl;
      |                                        ^
a.cc:14:40: error: 'H' was not declared in this scope
   14 |  else if(1989 <= Y && Y <= 2016) cout<<H<<" "<<(Y + 1) - 1989<<endl;
      |                                        ^
Language: C++

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

int main(){
  int E,Y,M,T,S,H;

  cin>>E>>Y;

  if(E=0&&1911-Y>=0){
    cout<<M"1912-Y"<<endl;
      } else if(E=0&&1925-Y>=0){
    cout<<T"1926-Y"<<endl;
      } else if(E=0&&1988-Y>=0){
    cout<<S"1989-Y"<<endl;
      } else if(E=0&&2016-Y>=0){
    cout<<H"2017-Y"<<endl;
      }

  else if(E=1&&1868>=Y){
    cout<<"1867+Y"<<endl;
      } else if(E=2&&1912>=Y){
    cout<<"1911+Y"<<endl;
      } else if(E=3&&1926>=Y){
    cout<<"1925+Y"<<endl;
      } else if(E=4&&1989>=Y){
    cout<<"1988+Y"<<endl;
      }
  return 0;

}



Compiler output:
a.cc: In function 'int main()':
a.cc:10:12: error: expected ';' before string constant
   10 |     cout<<M"1912-Y"<<endl;
      |            ^~~~~~~~
      |            ;
a.cc:12:12: error: expected ';' before string constant
   12 |     cout<<T"1926-Y"<<endl;
      |            ^~~~~~~~
      |            ;
a.cc:14:12: error: expected ';' before string constant
   14 |     cout<<S"1989-Y"<<endl;
      |            ^~~~~~~~
      |            ;
a.cc:16:12: error: expected ';' before string constant
   16 |     cout<<H"2017-Y"<<endl;
      |            ^~~~~~~~
      |            ;