Language: C++

#include<bits/stdc++.h>
using namespace std;
inline int read () {
	int num = 0;
	char c = ' ';
	bool flag = true;
	for (;c > '9' || c < '0';c = getchar())
		if (c == '-')
			flag = false;
	for (;c >= '0' && c <= '9';num = (num << 1) + (num << 3) + c - 48, c = getchar());
	return flag ? num : -num;
}
const int maxn = 200020;
char s[maxn],t[maxn];
int n;
void init () {
	scanf("%s",s + 1);
	scanf("%s",t + 1);
	n = strlen(s + 1);
}
int a[maxn],map1[maxn],cnt1 = 0;
void work1 () {
	for (int i = 1;i <= n;i ++) {
		int c = (int)s[i];
		if (map1[c] == 0)
			map1[c] = ++ cnt1;
		a[i] = map1[c];
	}
}
int b[maxn],map2[maxn],cnt2 = 0;
void work2 () {
	for (int i = 1;i <= n;i ++) {
		int c = (int)t[i];
		if (map2[c] == 0)
			map2[c] = ++ cnt2;
		b[i] = map2[c];
	}
}
int main () {
	init ();
	work1 ();
	work2 ();
	for (int i = 1;i <= n;i ++)
		if (a[i] != b[i]) {
			printf("No\n");
			return 0;
		}
	printf("Yes\n");
	return 0;
}#include<bits/stdc++.h>
using namespace std;
inline int read () {
	int num = 0;
	char c = ' ';
	bool flag = true;
	for (;c > '9' || c < '0';c = getchar())
		if (c == '-')
			flag = false;
	for (;c >= '0' && c <= '9';num = (num << 1) + (num << 3) + c - 48, c = getchar());
	return flag ? num : -num;
}
const int maxn = 200020;
char s[maxn],t[maxn];
int n;
void init () {
	scanf("%s",s + 1);
	scanf("%s",t + 1);
	n = strlen(s + 1);
}
int a[maxn],map1[maxn],cnt1 = 0;
void work1 () {
	for (int i = 1;i <= n;i ++) {
		int c = (int)s[i];
		if (map1[c] == 0)
			map1[c] = ++ cnt1;
		a[i] = map1[c];
	}
}
int b[maxn],map2[maxn],cnt2 = 0;
void work2 () {
	for (int i = 1;i <= n;i ++) {
		int c = (int)t[i];
		if (map2[c] == 0)
			map2[c] = ++ cnt2;
		b[i] = map2[c];
	}
}
int main () {
	init ();
	work1 ();
	work2 ();
	for (int i = 1;i <= n;i ++)
		if (a[i] != b[i]) {
			printf("No\n");
			return 0;
		}
	printf("Yes\n");
	return 0;
}

Compiler output:
a.cc:50:2: error: stray '#' in program
   50 | }#include<bits/stdc++.h>
      |  ^
a.cc:50:3: error: 'include' does not name a type
   50 | }#include<bits/stdc++.h>
      |   ^~~~~~~
a.cc:52:12: error: redefinition of 'int read()'
   52 | inline int read () {
      |            ^~~~
a.cc:3:12: note: 'int read()' previously defined here
    3 | inline int read () {
      |            ^~~~
a.cc:62:11: error: redefinition of 'const int maxn'
   62 | const int maxn = 200020;
      |           ^~~~
a.cc:13:11: note: 'const int maxn' previously defined here
   13 | const int maxn = 200020;
      |           ^~~~
a.cc:63:6: error: redefinition of 'char s [200020]'
   63 | char s[maxn],t[maxn];
      |      ^
a.cc:14:6: note: 'char s [200020]' previously declared here
   14 | char s[maxn],t[maxn];
      |      ^
a.cc:63:14: error: redefinition of 'char t [200020]'
   63 | char s[maxn],t[maxn];
      |              ^
a.cc:14:14: note: 'char t [200020]' previously declared here
   14 | char s[maxn],t[maxn];
      |              ^
a.cc:64:5: error: redefinition of 'int n'
   64 | int n;
      |     ^
a.cc:15:5: note: 'int n' previously declared here
   15 | int n;
      |     ^
a.cc:65:6: error: redefinition of 'void init()'
   65 | void init () {
      |      ^~~~
a.cc:16:6: note: 'void init()' previously defined here
   16 | void init () {
      |      ^~~~
a.cc:70:5: error: redefinition of 'int a [200020]'
   70 | int a[maxn],map1[maxn],cnt1 = 0;
      |     ^
a.cc:21:5: note: 'int a [200020]' previously declared here
   21 | int a[maxn],map1[maxn],cnt1 = 0;
      |     ^
a.cc:70:13: error: redefinition of 'int map1 [200020]'
   70 | int a[maxn],map1[maxn],cnt1 = 0;
      |             ^~~~
a.cc:21:13: note: 'int map1 [200020]' previously declared here
   21 | int a[maxn],map1[maxn],cnt1 = 0;
      |             ^~~~
a.cc:70:24: error: redefinition of 'int cnt1'
   70 | int a[maxn],map1[maxn],cnt1 = 0;
      |                        ^~~~
a.cc:21:24: note: 'int cnt1' previously defined here
   21 | int a[maxn],map1[maxn],cnt1 = 0;
      |                        ^~~~
a.cc:71:6: error: redefinition of 'void work1()'
   71 | void work1 () {
      |      ^~~~~
a.cc:22:6: note: 'void work1()' previously defined here
   22 | void work1 () {
      |      ^~~~~
a.cc:79:5: error: redefinition of 'int b [200020]'
   79 | int b[maxn],map2[maxn],cnt2 = 0;
      |     ^
a.cc:30:5: note: 'int b [200020]' previously declared here
   30 | int b[maxn],map2[maxn],cnt2 = 0;
      |     ^
a.cc:79:13: error: redefinition of 'int map2 [200020]'
   79 | int b[maxn],map2[maxn],cnt2 = 0;
      |             ^~~~
a.cc:30:13: note: 'int map2 [200020]' previously declared here
   30 | int b[maxn],map2[maxn],cnt2 = 0;
      |             ^~~~
a.cc:79:24: error: redefinition of 'int cnt2'
   79 | int b[maxn],map2[maxn],cnt2 = 0;
      |                        ^~~~
a.cc:30:24: note: 'int cnt2' previously defined here
   30 | int b[maxn],map2[maxn],cnt2 = 0;
      |                        ^~~~
a.cc:80:6: error: redefinition of 'void work2()'
   80 | void work2 () {
      |      ^~~~~
a.cc:31:6: note: 'void work2()' previously defined here
   31 | void work2 () {
      |      ^~~~~
a.cc:88:5: error: redefinition of 'int main()'
   88 | int main () {
      |     ^~~~
a.cc:39:5: note: 'int main()' previously defined here
   39 | int main () {
      |     ^~~~