Problem p02789 (C++)

Buggy submission (status: Runtime Error):

//		HYSO SERIOUS? WHY SO SERIOUS                            RIOUS? WHY
//SO SERIOUS? WHYSO SERIO 		 ERIOUS? WHY SO SERIOUS ? WHY WHY SO SERIOUS? WHY
//SOSERIOUSWHYS 		       OSERIOUS? WHY SO SERIOU         SERIOUS        ERIOUS? WHY SO
//SERIOUS? WHYS 		          WHY SO SERIOUS? WHY SOSERIOUS? WHYSOSERIOUS? WHY SO SERIOUS?WHY
//SO SE 		           ERIOUS? WHY SO SERIOUS? WHY SO SERIOUS? WHY SO SERIOUS? WHY SOSERIO 		           WHY
//SO SERIOUS? WHY SO SERIOUS? WHY SO SERIOUS? WHY SO SERIOUS? WH 		            SERIOUS?WHYSO
//SERIOUS? WHY SO SERIOUS? WHY SO SERIOUS? WHYSO SE 		              ?WHYSOSERIOUS?WHY SO
//SERIOUS? WHY SO SERIOUS?WHYSO SERIOUS? 		                           OSERIOUS? WHY SO SERIOUS?WHYSOSER
//		                                 HYSOSERIOUS?WHYSOSERI
//		                                     SOSERIOUS?W
//		                                         SER
//		                                          W

#include <iostream>
using namespace std;
#include <algorithm>
#include <bits/stdc++.h>
#define ll long long int
#define read(a)                                                                \
  long long int a;                                                             \
  cin >> a;
#define readstr(s)                                                             \
  string s;                                                                    \
  cin >> s;
#define readarr(a, l)                                                          \
  long long int a[l] = {0};                                                    \
  for (ll i = 0; i < l; i++)                                                   \
    cin >> a[i];
#define loop(i, a, b) for (ll i = a; i < b; i++)
#define rloop(i, a, b) for (ll i = a; i > b; i--)
#define ff first
#define ss second
#define readmtrx(i, j, a, b)                                                   \
  ll arr[a][b] = {0};                                                          \
  for (ll i = 0; i < a; i++)                                                   \
    for (ll j = 0; j < b; j++)                                                 \
      cin >> arr[i][j];
#define v(pi) vector<ll> pi
#define vp(pi) vector<pair<ll, ll>> pi
#define fast                                                                   \
  ios_base::sync_with_stdio(false);                                            \
  cin.tie(0);
#define pb(p) push_back(p)
#define mp make_pair
#include <cmath>
#include <map>
#define mi(lol) map<ll, ll> lol

int main() {
  fast;
#ifndef ONLINE_JUDGE
  freopen("input.txt", "r", stdin);
  freopen("output.txt", "w", stdout);
#endif
  read(a) read(b) if (a == b) cout << "Yes" << endl;
  else cout << "No" << endl;
  return 0;
}


Fixed submission:

//		HYSO SERIOUS? WHY SO SERIOUS                            RIOUS? WHY
//SO SERIOUS? WHYSO SERIO 		 ERIOUS? WHY SO SERIOUS ? WHY WHY SO SERIOUS? WHY
//SOSERIOUSWHYS 		       OSERIOUS? WHY SO SERIOU         SERIOUS        ERIOUS? WHY SO
//SERIOUS? WHYS 		          WHY SO SERIOUS? WHY SOSERIOUS? WHYSOSERIOUS? WHY SO SERIOUS?WHY
//SO SE 		           ERIOUS? WHY SO SERIOUS? WHY SO SERIOUS? WHY SO SERIOUS? WHY SOSERIO 		           WHY
//SO SERIOUS? WHY SO SERIOUS? WHY SO SERIOUS? WHY SO SERIOUS? WH 		            SERIOUS?WHYSO
//SERIOUS? WHY SO SERIOUS? WHY SO SERIOUS? WHYSO SE 		              ?WHYSOSERIOUS?WHY SO
//SERIOUS? WHY SO SERIOUS?WHYSO SERIOUS? 		                           OSERIOUS? WHY SO SERIOUS?WHYSOSER
//		                                 HYSOSERIOUS?WHYSOSERI
//		                                     SOSERIOUS?W
//		                                         SER
//		                                          W

#include <iostream>
using namespace std;
#include <algorithm>
#include <bits/stdc++.h>
#define ll long long int
#define read(a)                                                                \
  long long int a;                                                             \
  cin >> a;
#define readstr(s)                                                             \
  string s;                                                                    \
  cin >> s;
#define readarr(a, l)                                                          \
  long long int a[l] = {0};                                                    \
  for (ll i = 0; i < l; i++)                                                   \
    cin >> a[i];
#define loop(i, a, b) for (ll i = a; i < b; i++)
#define rloop(i, a, b) for (ll i = a; i > b; i--)
#define ff first
#define ss second
#define readmtrx(i, j, a, b)                                                   \
  ll arr[a][b] = {0};                                                          \
  for (ll i = 0; i < a; i++)                                                   \
    for (ll j = 0; j < b; j++)                                                 \
      cin >> arr[i][j];
#define v(pi) vector<ll> pi
#define vp(pi) vector<pair<ll, ll>> pi
#define fast                                                                   \
  ios_base::sync_with_stdio(false);                                            \
  cin.tie(0);
#define pb(p) push_back(p)
#define mp make_pair
#include <cmath>
#include <map>
#define mi(lol) map<ll, ll> lol

int main() {
  fast;
  // #ifndef ONLINE_JUDGE
  // freopen("input.txt","r",stdin);
  // freopen("output.txt","w",stdout);
  // #endif
  read(a) read(b) if (a == b) cout << "Yes" << endl;
  else cout << "No" << endl;
  return 0;
}