Language: C++

include <iostream>
#include <stdio.h>
#include <vector> 
#include <math.h> 
#include <algorithm>
using namespace std;
string zip(string s) {
   int counter = 1; 
   int i = 1;
   string S = "";
   int l = s.size();
   while (i <= l) {
       if (s[i] == s[i-1]) {
           counter += 1;
       } else {
           S += to_string(counter);
           counter = 1;
       }
       i++;
   }
   if (counter != 1) S += to_string(counter);
   return S;
}

int main(void){
    string s,t; cin >> s >> t;
    vector<char> st;
    vector<char> tt;

    int i = 0;
    string answer = "Yes";
    while (i < s.size()) {
        if (find(st.begin(), st.end(), s[i]) == st.end()) {
            st.push_back(s[i]);
        }
        i++;
    }
    i = 0;
    while (i < s.size()) {
        if (find(tt.begin(), tt.end(), t[i]) == tt.end()) {
            tt.push_back(t[i]);
        }
        i++;
    }
    if (st.size() != tt.size()) answer = "No";
    if (zip(s) != zip(t)) answer = "No";

    cout << answer << endl;
}


Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <iostream>
      | ^~~~~~~
In file included from /usr/include/math.h:275,
                 from /usr/include/c++/14/cmath:47,
                 from /usr/include/c++/14/math.h:36,
                 from a.cc:4:
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:382:1: error: '__intmax_t' does not name a type; did you mean '__int128_t'?
  382 | __MATHDECL (__intmax_t, fromfp,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:382:1: error: '__intmax_t' does not name a type; did you mean '__int128_t'?
  382 | __MATHDECL (__intmax_t, fromfp,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:387:1: error: '__uintmax_t' does not name a type; did you mean '__uint128_t'?
  387 | __MATHDECL (__uintmax_t, ufromfp,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:387:1: error: '__uintmax_t' does not name a type; did you mean '__uint128_t'?
  387 | __MATHDECL (__uintmax_t, ufromfp,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:393:1: error: '__intmax_t' does not name a type; did you mean '__int128_t'?
  393 | __MATHDECL (__intmax_t, fromfpx,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:393:1: error: '__intmax_t' does not name a type; did you mean '__int128_t'?
  393 | __MATHDECL (__intmax_t, fromfpx,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:399:1: error: '__uintmax_t' does not name a type; did you mean '__uint128_t'?
  399 | __MATHDECL (__uintmax_t, ufromfpx,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:399:1: error: '__uintmax_t' does not name a type; did you mean '__uint128_t'?
  399 | __MATHDECL (__uintmax_t, ufromfpx,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:382:1: error: '__intmax_t' does not name a type; did you mean '__int128_t'?
  382 | __MATHDECL (__intmax_t, fromfp,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:382:1: error: '__intmax_t' does not name a type; did you mean '__int128_t'?
  382 | __MATHDECL (__intmax_t, fromfp,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:387:1: error: '__uintmax_t' does not name a type; did you mean '__uint128_t'?
  387 | __MATHDECL (__uintmax_t, ufromfp,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:387:1: error: '__uintmax_t' does not name a type; did you mean '__uint128_t'?
  387 | __MATHDECL (__uintmax_t, ufromfp,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:393:1: error: '__intmax_t' does not name a type; did you mean '__int128_t'?
  393 | __MATHDECL (__intmax_t, fromfpx,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:393:1: error: '__intmax_t' does not name a type; did you mean '__int128_t'?
  393 | __MATHDECL (__intmax_t, fromfpx,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:399:1: error: '__uintmax_t' does not name a type; did you mean '__uint128_t'?
  399 | __MATHDECL (__uintmax_t, ufromfpx,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:399:1: error: '__uintmax_t' does not name a type; did you mean '__uint128_t'?
  399 | __MATHDECL (__uintmax_t, ufromfpx,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:382:1: error: '__intmax_t' does not name a type; did you mean '__int128_t'?
  382 | __MATHDECL (__intmax_t, fromfp,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:382:1: error: '__intmax_t' does not name a type; did you mean '__int128_t'?
  382 | __MATHDECL (__intmax_t, fromfp,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:387:1: error: '__uintmax_t' does not name a type; did you mean '__uint128_t'?
  387 | __MATHDECL (__uintmax_t, ufromfp,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:387:1: error: '__uintmax_t' does not name a type; did you mean '__uint128_t'?
  387 | __MATHDECL (__uintmax_t, ufromfp,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:393:1: error: '__intmax_t' does not name a type; did you mean '__int128_t'?
  393 | __MATHDECL (__intmax_t, fromfpx,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:393:1: error: '__intmax_t' does not name a type; did you mean '__int128_t'?
  393 | __MATHDECL (__intmax_t, fromfpx,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:399:1: error: '__uintmax_t' does not name a type; did you mean '__uint128_t'?
  399 | __MATHDECL (__uintmax_t, ufromfpx,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:399:1: error: '__uintmax_t' does not name a type; did you mean '__uint128_t'?
  399 | __MATHDECL (__uintmax_t, ufromfpx,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:382:1: error: '__intmax_t' does not name a type; did you mean '__int128_t'?
  382 | __MATHDECL (__intmax_t, fromfp,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:382:1: error: '__intmax_t' does not name a type; did you mean '__int128_t'?
  382 | __MATHDECL (__intmax_t, fromfp,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:387:1: error: '__uintmax_t' does not name a type; did you mean '__uint128_t'?
  387 | __MATHDECL (__uintmax_t, ufromfp,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:387:1: error: '__uintmax_t' does not name a type; did you mean '__uint128_t'?
  387 | __MATHDECL (__uintmax_t, ufromfp,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:393:1: error: '__intmax_t' does not name a type; did you mean '__int128_t'?
  393 | __MATHDECL (__intmax_t, fromfpx,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:393:1: error: '__intmax_t' does not name a type; did you mean '__int128_t'?
  393 | __MATHDECL (__intmax_t, fromfpx,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:399:1: error: '__uintmax_t' does not name a type; did you mean '__uint128_t'?
  399 | __MATHDECL (__uintmax_t, ufromfpx,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:399:1: error: '__uintmax_t' does not name a type; did you mean '__uint128_t'?
  399 | __MATHDECL (__uintmax_t, ufromfpx,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:382:1: error: '__intmax_t' does not name a type; did you mean '__int128_t'?
  382 | __MATHDECL (__intmax_t, fromfp,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:382:1: error: '__intmax_t' does not name a type; did you mean '__int128_t'?
  382 | __MATHDECL (__intmax_t, fromfp,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:387:1: error: '__uintmax_t' does not name a type; did you mean '__uint128_t'?
  387 | __MATHDECL (__uintmax_t, ufromfp,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:387:1: error: '__uintmax_t' does not name a type; did you mean '__uint128_t'?
  387 | __MATHDECL (__uintmax_t, ufromfp,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:393:1: error: '__intmax_t' does not name a type; did you mean '__int128_t'?
  393 | __MATHDECL (__intmax_t, fromfpx,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:393:1: error: '__intmax_t' does not name a type; did you mean '__int128_t'?
  393 | __MATHDECL (__intmax_t, fromfpx,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:399:1: error: '__uintmax_t' does not name a type; did you mean '__uint128_t'?
  399 | __MATHDECL (__uintmax_t, ufromfpx,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:399:1: error: '__uintmax_t' does not name a type; did you mean '__uint128_t'?
  399 | __MATHDECL (__uintmax_t, ufromfpx,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:382:1: error: '__intmax_t' does not name a type; did you mean '__int128_t'?
  382 | __MATHDECL (__intmax_t, fromfp,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:382:1: error: '__intmax_t' does not name a type; did you mean '__int128_t'?
  382 | __MATHDECL (__intmax_t, fromfp,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:387:1: error: '__uintmax_t' does not name a type; did you mean '__uint128_t'?
  387 | __MATHDECL (__uintmax_t, ufromfp,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:387:1: error: '__uintmax_t' does not name a type; did you mean '__uint128_t'?
  387 | __MATHDECL (__uintmax_t, ufromfp,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:393:1: error: '__intmax_t' does not name a type; did you mean '__int128_t'?
  393 | __MATHDECL (__intmax_t, fromfpx,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:393:1: error: '__intmax_t' does not name a type; did you mean '__int128_t'?
  393 | __MATHDECL (__intmax_t, fromfpx,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:399:1: error: '__uintmax_t' does not name a type; did you m