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

#include<stdio.h>
#include<string.h>

#define STRING_MAX = (200000+1)

int StringTransformation(char* s, char* t) {
    int length = strlen(s);

    for(int i = 0; i < length; i++){
        if(t[i] != s[i]){
            for(int j = 0; j < length; j++){
                if(s[j] == s[i]){
                    if(j < i){
                        return 0;
                    }
                    s[j] = t[i];
                }
                else if(s[j] == t[i]){
                    if(j < i){
                        return 0;
                    }
                    s[j] = s[i];
                }
            }
        }
    }

    return strcmp(s, t) == 0;
}

int main(void){
    char s[STRING_MAX], t[STRING_MAX];
    scanf("%s\n%s", s, t);

    if(StringTransformation(s, t) != 0){
        printf("Yes\n");
    }
    else{
        printf("No\n");
    }
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:4:20: error: expected expression before '=' token
    4 | #define STRING_MAX = (200000+1)
      |                    ^
main.c:32:12: note: in expansion of macro 'STRING_MAX'
   32 |     char s[STRING_MAX], t[STRING_MAX];
      |            ^~~~~~~~~~
main.c:4:20: error: expected expression before '=' token
    4 | #define STRING_MAX = (200000+1)
      |                    ^
main.c:32:27: note: in expansion of macro 'STRING_MAX'
   32 |     char s[STRING_MAX], t[STRING_MAX];
      |                           ^~~~~~~~~~
Language: C

#include<stdio.h>
#include<string.h>

#define STRING_MAX=(200000+1)

int StringTransformation(char* s, char* t) {
    int length = strlen(s);

    for(int i = 0; i < length; i++){
        if(t[i] != s[i]){
            for(int j = 0; j < length; j++){
                if(s[j] == s[i]){
                    if(j < i){
                        return 0;
                    }
                    s[j] = t[i];
                }
                else if(s[j] == t[i]){
                    if(j < i){
                        return 0;
                    }
                    s[j] = s[i];
                }
            }
        }
    }

    return strcmp(s, t) == 0;
}

int main(void){
    char s[STRING_MAX], t[STRING_MAX];
    scanf("%s\n%s", s, t);

    if(StringTransformation(s, t) != 0){
        printf("Yes\n");
    }
    else{
        printf("No\n");
    }
    return 0;
}


Compiler output:
main.c:4:9: warning: ISO C99 requires whitespace after the macro name
    4 | #define STRING_MAX=(200000+1)
      |         ^~~~~~~~~~
main.c: In function 'main':
main.c:4:19: error: expected expression before '=' token
    4 | #define STRING_MAX=(200000+1)
      |                   ^
main.c:32:12: note: in expansion of macro 'STRING_MAX'
   32 |     char s[STRING_MAX], t[STRING_MAX];
      |            ^~~~~~~~~~
main.c:4:19: error: expected expression before '=' token
    4 | #define STRING_MAX=(200000+1)
      |                   ^
main.c:32:27: note: in expansion of macro 'STRING_MAX'
   32 |     char s[STRING_MAX], t[STRING_MAX];
      |                           ^~~~~~~~~~
Language: C

#include<stdio.h>
#include<string.h>

int main(void){
    char s[200001], t[200001], c;
    int map[26];
    for(int i = 0; i < 26; i++){
        map[i] = 0;
    }
    scanf("%s\n%s", s, t);
    int length = strlen(s)

    for(int i = 0; i < length; i++){
        if(map[t[i] - 97] == 0){
            map[t[i] - 97] = s[i];
        }
        else if(map[t[i] - 97] == s[i]){
            continue;
        }
        else{
            printf("No\n");
            return 0;
        }
    }
    printf("Yes\n");
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:13:5: error: expected ',' or ';' before 'for'
   13 |     for(int i = 0; i < length; i++){
      |     ^~~
main.c:13:20: error: 'i' undeclared (first use in this function)
   13 |     for(int i = 0; i < length; i++){
      |                    ^
main.c:13:20: note: each undeclared identifier is reported only once for each function it appears in
main.c:13:35: error: expected ';' before ')' token
   13 |     for(int i = 0; i < length; i++){
      |                                   ^
      |                                   ;
main.c:13:35: error: expected statement before ')' token
main.c:18:13: error: continue statement not within a loop
   18 |             continue;
      |             ^~~~~~~~
Language: C

#include<stdio.h>

int compare(char *, char *, int);

int main(){
    int length, i;
    char A[200001], B[200001];

    scanf("%s %s", A, B);

    //配列の長さを取得
    //while(A[length++] != '\0'); 初期値 length = -1
    length = sizeof(A) / sizeof(A[0]);

    if(compare(A,B,length)) printf("No");
    else printf("Yes");

    return 0;
}

//判定関数
int compare(char *A, char *B, int length){
    //a~zまでの探索と全ての配列要素の探索
    for(int alpha = 97;alpha < 123 ; alpha++){
        int charDiffA = 100;
        int charDiffB = 100;
        int checkA = 100;
        int checkB = 100;
        for(int i=-1; i<length; i++){
            if(alpha==A[i]){//Aから見て差のパターンが異なるものの検出
                //異なる差を持つ配列の組が存在したら検出する
                charDiffA = A[i] - B[i];
                if(charDiffA<100 && checkA !=100 && checkA != charDiffA){
                    return 1;
                }
                checkA = charDiffA;
            }
            if(alpha==B[i]){//Bから見たパターン
                charDiffB = A[i] - B[i];
                if(charDiffB<100 && checkB !=100 && checkB != charDiffB){
                    return 1;
                }
                checkB = charDiffB;
            }
        }
    }
    return 0;
}
#include<stdio.h>

int compare(char *, char *, int);

int main(){
    int length, i;
    char A[200001], B[200001];

    scanf("%s %s", A, B);

    //配列の長さを取得
    //while(A[length++] != '\0'); 初期値 length = -1
    length = sizeof(A) / sizeof(A[0]);

    if(compare(A,B,length)) printf("No");
    else printf("Yes");

    return 0;
}

//判定関数
int compare(char *A, char *B, int length){
    //a~zまでの探索と全ての配列要素の探索
    for(int alpha = 97;alpha < 123 ; alpha++){
        int charDiffA = 100;
        int charDiffB = 100;
        int checkA = 100;
        int checkB = 100;
        for(int i=-1; i<length; i++){
            if(alpha==A[i]){//Aから見て差のパターンが異なるものの検出
                //異なる差を持つ配列の組が存在したら検出する
                charDiffA = A[i] - B[i];
                if(charDiffA<100 && checkA !=100 && checkA != charDiffA){
                    return 1;
                }
                checkA = charDiffA;
            }
            if(alpha==B[i]){//Bから見たパターン
                charDiffB = A[i] - B[i];
                if(charDiffB<100 && checkB !=100 && checkB != charDiffB){
                    return 1;
                }
                checkB = charDiffB;
            }
        }
    }
    return 0;
}


Compiler output:
main.c:53:5: error: redefinition of 'main'
   53 | int main(){
      |     ^~~~
main.c:5:5: note: previous definition of 'main' with type 'int()'
    5 | int main(){
      |     ^~~~
main.c:70:5: error: redefinition of 'compare'
   70 | int compare(char *A, char *B, int length){
      |     ^~~~~~~
main.c:22:5: note: previous definition of 'compare' with type 'int(char *, char *, int)'
   22 | int compare(char *A, char *B, int length){
      |     ^~~~~~~
Language: C

#include<stdio.h>

int compare(char *, char *, int);

int main(){
    int length, i;
    char A[200001], B[200001];

    scanf("%s %s", A, B);

    //配列の長さを取得
    //while(A[length++] != '\0'); 初期値 length = -1
    length = sizeof(A) / sizeof(A[0]);

    if(compare(A,B,length)) printf("No");
    else printf("Yes");

    return 0;
}

//判定関数
int compare(char *A, char *B, int length){
    //a~zまでの探索と全ての配列要素の探索
    for(int alpha = 97;alpha < 123 ; alpha++){
        int charDiffA = 100;
        int charDiffB = 100;
        int checkA = 100;
        int checkB = 100;
        for(int i=-1; i<length; i++){
            if(alpha==A[i]){
                //異なる差を持つ配列の組が存在したら検出する
                charDiffA = abs(A[i] - B[i]);
                if(charDiffA<100 && checkA !=100 && checkA != charDiff){
                    return 1;
                }
                checkA = charDiffA;
            }
            if(alpha==B[i]){
                //異なる差を持つ配列の組が存在したら検出する
                charDiffB = abs(A[i] - B[i]);
                if(charDiffB<100 && checkB !=100 && checkB != charDiff){
                    return 1;
                }
                checkB = charDiffB;
            }
        }
    }
    return 0;
}


Compiler output:
main.c: In function 'compare':
main.c:32:29: error: implicit declaration of function 'abs' [-Wimplicit-function-declaration]
   32 |                 charDiffA = abs(A[i] - B[i]);
      |                             ^~~
main.c:2:1: note: include '<stdlib.h>' or provide a declaration of 'abs'
    1 | #include<stdio.h>
  +++ |+#include <stdlib.h>
    2 | 
main.c:33:63: error: 'charDiff' undeclared (first use in this function); did you mean 'charDiffB'?
   33 |                 if(charDiffA<100 && checkA !=100 && checkA != charDiff){
      |                                                               ^~~~~~~~
      |                                                               charDiffB
main.c:33:63: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

include <stdio.h>
#include <stdlib.h>
#include <string.h>

int main(void){

  long i, j, len;
  int wrong = 0;
  char a[200000];
  char b[200000];
//  int c[200000];
//  int d[200000];

  scanf("%s", a);
  scanf("%s", b);

  len = strlen(a);

/*
  for(j = 0; j < len; j++){
    for(i = j; i < len; i++){
      c[i] = a[i] - a[j];
  //    d[i] = b[i] - b[j];
      if(c[i] == 0 || d[i] == 0){
        if(b[i] - b[j] == 0){
        }else{
          wrong++;
          goto Answer;
        }
      }
    }
  }
*/

  for(i = 0; i < len; i++){
    for(j = i; j < len; j++){
      if(a[i] == a[j] || b[i] == b[j]){
        if(b[i] != b[j] || a[i] != a[j]){
          wrong++;
          goto Answer;
        }
      }
    }
  }





  Answer: ;

  if(wrong == 0){
    printf("Yes\n");
  }else{
    printf("No\n");
  }


  return 0;
}


Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <stdio.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:14:3: error: 'scanf' was not declared in this scope
   14 |   scanf("%s", a);
      |   ^~~~~
a.cc:53:5: error: 'printf' was not declared in this scope
   53 |     printf("Yes\n");
      |     ^~~~~~
a.cc:4:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
    3 | #include <string.h>
  +++ |+#include <cstdio>
    4 | 
a.cc:55:5: error: 'printf' was not declared in this scope
   55 |     printf("No\n");
      |     ^~~~~~
a.cc:55:5: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
Language: C

#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>

int main(){
int i, j, n;
int len;
int wrong = 0;
char a[200000];
char b[200000];
int c[200000] = {};
int d[200000] = {};
int seno[128] = {};
int tno[128] = {};

scanf("%s", &a);
scanf("%s", &b);

len = strlen(a);

for(i = 0; i<len;i++){
  seno[int(a[i])]++;
  tno[int(b[i])]++;
}

for(i = 0;i < 128; i++){
  c[seno[i]]++;
  d[tno[i]]++;
}

for(i = 0; i < len; i++){
  if(c[i] != d[i]) wrong++;
}
if(wrong == 0){
  printf("Yes\n");
}else{
  printf("No\n");
}


  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:23:8: error: expected expression before 'int'
   23 |   seno[int(a[i])]++;
      |        ^~~
main.c:24:7: error: expected expression before 'int'
   24 |   tno[int(b[i])]++;
      |       ^~~
Language: C

#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>

int main(){
int i, j, n;
int len;
int wrong = 0;
char a[200000];
char b[200000];
char c[200000] = {};
char d[200000] = {};
int seno[128] = {};
int tno[128] = {};

scanf("%s", &a);
scanf("%s", &b);

len = strlen(a);

for(i = 0; i<len;i++){
  seno[int(a[i])]++;
  tno[int(b[i])]++;
}

for(i = 0;i < 128; i++){
  c[seno[i]]++;
  d[tno[i]]++;
}

for(i = 0; i < len; i++){
  if(c[i] != d[i]) wrong++;
}
if(wrong == 0){
  printf("Yes\n");
}else{
  printf("No\n");
}


  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:23:8: error: expected expression before 'int'
   23 |   seno[int(a[i])]++;
      |        ^~~
main.c:24:7: error: expected expression before 'int'
   24 |   tno[int(b[i])]++;
      |       ^~~
Language: C++

#include <iostream>
#include <string>
#include <algorithm>
using namespace std;

bool match(string S, string T)
{
    vector<bool> b(S.size());
    for (int i = 0; i < S.size(); i++) {
        if (b[i]) continue;
        char c1 = S[i], c2 = T[i];
        for (int j = i + 1; j < S.size(); j++) {
            if (S[j] == c1) {
                b[j] = true;
                if (T[j] != c2) return false;
            }
        }
    }
    return true;
}

int main()
{
    string S, T;
    cin >> S >> T;
    bool answer = match(S, T) && match(T, S);
    cout << (answer ? "Yes" : "No") << endl;
    return 0;
}

Compiler output:
a.cc: In function 'bool match(std::string, std::string)':
a.cc:8:5: error: 'vector' was not declared in this scope
    8 |     vector<bool> b(S.size());
      |     ^~~~~~
a.cc:4:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    3 | #include <algorithm>
  +++ |+#include <vector>
    4 | using namespace std;
a.cc:8:12: error: expected primary-expression before 'bool'
    8 |     vector<bool> b(S.size());
      |            ^~~~
a.cc:10:13: error: 'b' was not declared in this scope
   10 |         if (b[i]) continue;
      |             ^
a.cc:14:17: error: 'b' was not declared in this scope
   14 |                 b[j] = true;
      |                 ^
Language: C++

#include <iostream>

using namespace std;

void main()
{
    string s, t;
    char test[100] = { 0 } ;
    cin >> s;
    cin >> t;
    const int len = s.length();
    
    if (len != t.length()) { cout << "No" << endl; return; }
    
    for (int i=0; i<len; i++) {
        int x = (int) (s[i] - 'a') ;
        const char y = t[i];
        if (test[x] == 0) {
            test[x] = y;
        } else if (test[x]!=y) {
            cout << "No" << endl;
            return;
        }
    }
    cout << "Yes" << endl;
}

Compiler output:
a.cc:5:1: error: '::main' must return 'int'
    5 | void main()
      | ^~~~
a.cc: In function 'int main()':
a.cc:13:52: error: return-statement with no value, in function returning 'int' [-fpermissive]
   13 |     if (len != t.length()) { cout << "No" << endl; return; }
      |                                                    ^~~~~~
a.cc:22:13: error: return-statement with no value, in function returning 'int' [-fpermissive]
   22 |             return;
      |             ^~~~~~
Language: C++

#include <cstdio>
#include <algorithm>

using namespace std;

int main() {
  char S[200010];
  char T[200010];
  int a[26] = {};
  int b[26] = {};
  scanf("%s", S);
  scanf("%s", T);
  int i;
  for (i = 0; i < strlen(S); i++) {
    int si = (int)S[i] - 97;
    int ti = (int)T[i] - 97;
    if (a[si] > 0 || b[ti] > 0) {
      if (a[si] != ti || b[ti] != si) {
	printf("No\n");
	return 0;
      }
    } else {
      a[si] = ti;
      b[ti] = si;
    }
  }
  printf("Yes");
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:19: error: 'strlen' was not declared in this scope
   14 |   for (i = 0; i < strlen(S); i++) {
      |                   ^~~~~~
a.cc:3:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    2 | #include <algorithm>
  +++ |+#include <cstring>
    3 |
Language: C++

#include<iostream>
#include<cstdio>
#include<math.h>
#include<algorithm>

int main(void){
    std::string S,T;
    cin>>S;
    cin>>T;
    
    int start=0;
    for(int j=0;j<S.length();j++){
        if(S[j]!=T[j]){
            for(int i=start;i<S.length();i++){
                if(S[0]==S[i])S[i]=T[i];
            }
        }
    }
    
    if(S==T){
        std::cout<<"Yes"<<std::endl;
    }else{
        std::cout<<"No"<<std::endl;
    }
    

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    8 |     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
      |                  ^~~
Language: C++

#include <iostream>
#include <string>
#include <algorithm>
#include <stack>
#include <queue>
#include <map>
#include <cmath>
#include <time.h>
#include <stdio.h>
#define int long long
using namespace std;
int gcd(int x, int y) {
	if (y == 0)return x;
	return gcd(y, x%y);
}
int lcm(int x, int y) {
	return x / gcd(x, y)*y;
}
int mypow(int x, int y) {
	if (y == 0)return 1;
	if (y % 2)return mypow(x, y - 1)*x;
	else return mypow(x, y / 2)*mypow(x, y / 2);
}
int Max(int x, int y) {
	if (x > y)return x;
	else return y;
}
int Min(int x, int y) {
	if (x < y)return x;
	else return y;
}
int kai(int x) {
	int cnt=1;
	if (x == 0)return 1;
	cnt = kai(x - 1);
	return x * cnt;
}
inline void shoki()
{
	srand((unsigned int)time(NULL));
}

/*Library End!*/

signed main() {
	string s, t;
	map<char, char>m1;
	map<char, bool>m2;
	map<char, char>m3;
	map<char, bool>m4;
	cin >> s >> t;
	for (int i = 0; i < s.size(); i++) {
		if (m1[t[i]] != s[i] && m2[t[i]]) {
			cout << "No" << endl;
			goto end;
		}
		m1[t[i]] = s[i];
		m2[t[i]] = true;
	}
	for (int i = 0; i < s.size(); i++) {
		if (m3[s[i]] != t[i] && m4[s[i]) {
			cout << "No" << endl;
			goto end;
		}
		m3[s[i]] = t[i];
		m4[s[i]] = true;
	}
	cout << "Yes" << endl;
end:;
	system("PAUSE");
	return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:61:48: error: expected ']' before ')' token
   61 |                 if (m3[s[i]] != t[i] && m4[s[i]) {
      |                                                ^
      |                                                ]
Language: C++

using namespace std;
typedef signed long long ll;

#include <iostream>
#include <fstream>
#include <cstdio>
#include <cmath>
#include <vector>
#include <cstring>
#include <string>
#include <set>
#include <map>
#include <stack>
#include <queue>
#include <deque>
#include <bitset>
#include <algorithm>
#include <complex>


#define REP(i,n) for(int i=0; i<n; ++i)
#define FOR(i,a,b) for(int i=a; i<=b; ++i)
#define FORR(i,a,b) for (int i=a; i>=b; --i)
#define ALL(c) (c).begin(), (c).end()

typedef long long ll;
typedef vector<int> VI;
typedef vector<ll> VL;
typedef vector<VL> VVL;
typedef vector<VI> VVI;
typedef pair<int, int> P;
typedef pair<ll, ll> PL;

int in() { int x; scanf_s("%d", &x); return x; }
ll lin() { ll x; scanf_s("%lld", &x); return x; }

int main() {
	string s, t;
	cin >> s >> t;
	int n = s.length();
	map<char, char> mp;
	REP(i, n) {
		mp[s[i]] = t[i];
	}

	for (char c = 'a'; c <= 'z'; c++) {
		for (char d = 'a'; d <= 'z'; d++) {
			if (mp.count(c) == 0 || mp.count(d) == 0 || c == d) continue; 
			if (mp[c] == mp[d]) {
				cout << "No" << endl;
				return 0;
			}
		}
	}

	REP(i, n) {
		s[i] = mp[s[i]];
	}
	cout << (s == t ? "Yes" : "No") << endl;

	return 0;
}


Compiler output:
a.cc: In function 'int in()':
a.cc:34:19: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
   34 | int in() { int x; scanf_s("%d", &x); return x; }
      |                   ^~~~~~~
      |                   scanf
a.cc: In function 'll lin()':
a.cc:35:18: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
   35 | ll lin() { ll x; scanf_s("%lld", &x); return x; }
      |                  ^~~~~~~
      |                  scanf
Language: C++

#include "pch.h"
#include <iostream>
#include <fstream>
#include <cstdio>
#include <cmath>
#include <vector>
#include <cstring>
#include <string>
#include <set>
#include <map>
#include <stack>
#include <queue>
#include <deque>
#include <bitset>
#include <algorithm>
#include <complex>
#include <algorithm>
using namespace std;

int main()
{
	string s, t;
	cin >> s >> t;
	map <char, char> mp;
	int n = s.size();
	for (int i = 0; i < n; ++i) {
		mp[s[i]] = t[i];
	}

	for (char i = 'a'; i <= 'z'; i++) {
		for (char j = 'a'; i <= 'z'; ++j) {
			if (mp[i] == 0 || mp[j] == 0 || i == j)
				continue;
			if (mp[i] == mp[j]) {
				cout << "No" << endl;
				return 0;
			}
		}
	}

	for (int i = 0; i < n; ++i) {
		s[i] = mp[s[i]];
	}

	if (s != t) {
		cout << "No" << endl;
	}
	else {
		cout << "Yes" << endl;
	}
	return 0;
}

Compiler output:
a.cc:1:10: fatal error: pch.h: No such file or directory
    1 | #include "pch.h"
      |          ^~~~~~~
compilation terminated.
Language: C++


#include <iostream>
#include <climits>
#include <bitset>
#include <stack>
#include <queue>
#include <iomanip>
#include <limits>
#include <string>
#include <cmath>
#include <set>
#include <map>
#include <math.h>
#include <algorithm>
#include <vector>
#include <string.h>
#include <complex>

using namespace std;
typedef long long ll;


typedef complex<double> xy_t;
double dot_product(xy_t a, xy_t b) { return (conj(a)*b).real(); }
double cross_product(xy_t a, xy_t b) { return (conj(a)*b).imag(); }

typedef pair<ll,ll> P;
long long int INF = 1e18;
double Pi = 3.141592653589;
const int mod = 1000000007;
// memset(a,0,sizeof(a)); →全部０にする

vector<int> G[100005];
std::vector<P> tree[100010];

int dx[9]={1,0,-1,0,1,1,-1,-1,0};
int dy[9]={0,1,0,-1,1,-1,-1,1,0};

#define p(x) cout<<x<<endl;
#define el cout<<endl;
#define pe(x) cout<<x<<" ";
#define ps(x) cout<<fixed<<setprecision(25)<<x<<endl;
#define re(i,a,b) for(i=a;i<=b;i++)
#define pb push_back
#define lb lower_bound
#define ub upper_bound
#define deba(x) cout<< #x << " = " << x <<endl;

ll i,j,k,ii,jj;
ll n,m,sum,num;
ll ans=0;
ll a,b,c,d,e,f,g,h,w;
ll start,end;
ll x[500005],y[500005],z[500005];
ll checks[50],checkt[50];
char s[500005],t[500005];

int main(){
    cin>>s>>t;
    n = strlen(s);
    for(i=0;i<n;i++){
        if(checks[s[i]-'a'] == 0){
            checks[s[i]-'a'] = num + 1;
            num ++;
            x[i] = num;
        }else{
            x[i] = checks[s[i]-'a'];
        }
    }
    num = 0;
    for(i=0;i<n;i++){
        if(checkt[t[i]-'a']==0){
            checkt[t[i]-'a'] = num + 1;
            num ++;
            y[i] = num ;
        }else{
            y[i] = checkt[t[i]-'a'];
        }
    }
    flag = false;
    for(i=0;i<n;i++){
        if(x[i]!=y[i])flag=true;
    }
    
    if(flag){
        p("No");
    }else{
        p("Yes");
    }
    return 0;
    
}



Compiler output:
a.cc: In function 'int main()':
a.cc:80:5: error: 'flag' was not declared in this scope
   80 |     flag = false;
      |     ^~~~
Language: C++

#include <iostream>
#include <string>
#include <map>
using namespace std;
string s, t;
 
int main() {
    cin >> s >> t;
    map<char, char> m1;
    map<char, char> m2;
    if (s.size() != t.size()) {
        cout << "No"<<endl;
        return 0;
    }
    for (int i = 0; i < s.size(); i++) {
        if (s[i] != t[i]) {
            if (m1.find(s[i]) != m1.end() && m1[s[i]] != t[i]) {
                cout << "No" << endl;
                return 0;
            }
        }
        m[s[i]] = t[i];
    }
    for (int i = 0; i < t.size(); i++) {
        if (t[i] != s[i]) {
            if (m2.find(t[i]) != m2.end() && m2[t[i]] != s[i]) {
                cout << "No" << endl;
                return 0;
            }
        }
        m2[t[i]] = s[i];
    }
    if (m1.size() != m2.size()) {
        cout << "No" << endl;
        return 0;
    }
    map<char, char>::iterator iter = m1.begin();
    while (iter != m1.end()) {
        if (m2.find(iter->second) == m2.end() || m2[iter->second] != iter->first) {
            cout << "No" << endl;
            return 0;
        }
        iter++;
    }
    cout << "Yes" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:22:9: error: 'm' was not declared in this scope
   22 |         m[s[i]] = t[i];
      |         ^
Language: C++

#include <iostream>
#include <string>
#include <algorithm>
#include <set>
using namespace std;
#define rep(i,n) for(int i=0;i<n;i++)

string s, t;
int a[26];
int b[26];

int main() {
	cin >> s >> t;
	rep(i, s.size())a[s[i] - 'a']++;
	rep(i, s.size())b[t[i] - 'a']++;
	sort(a, a + 26);
	sort(b, b + 26);
	rep(i, 26) {
		if (a[i] != b[i]) {
			puts("No");
			return 0;
		}
	}
	pts("Yes");
	getchar();
	getchar();
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:24:9: error: 'pts' was not declared in this scope; did you mean 'puts'?
   24 |         pts("Yes");
      |         ^~~
      |         puts
Language: C++

#include<stdio.h>
int main() {
	char S[200000], T[200000];
	scanf("%s %s", &S, &T);
	for (int i = 0;T[i]!=0;i++) {
		for (int j = i + 1; T[j] != 0; j++) {
			if (T[i] == T[j])break;
		}
	}
	T[i] == T[j]?printf("No") :printf("Yes");
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:11: error: 'i' was not declared in this scope
   10 |         T[i] == T[j]?printf("No") :printf("Yes");
      |           ^
a.cc:10:19: error: 'j' was not declared in this scope
   10 |         T[i] == T[j]?printf("No") :printf("Yes");
      |                   ^
Language: C++

#include <cstdio>
#include <string>
#include <cmath>
#include <string>
#include <algorithm>
#include <iostream>
#include <map>
#include <vector>
#include <iomanip>
#include <tuple>
#include <queue>
#include <numeric>
using namespace std;
typedef long long ll;
#define rep(i, a, n) for (int i=a;i<n;++i)
#define repeq(i, a, n) for(int i=a;i<=n;++i)
#define repi(m, itr) for (auto itr = m.begin();itr != m.end();++itr)
#define per(i, a, n) for (int i=n-1; i>=a;--i)
#define pb push_back
#define mp make_pair
#define all(x) (x).begin(), (x).end()

// C - String Transformation
string S, T;
string ans = "Yes";
int s[26], t[26];

int main(){
    cin >> S >> T;

    iota(s[0], s[26], -1);
    iota(t[0], t[26], -1);
    
    rep(i, 0, S.size()){
        int s_tmp = S[i] - 'a';
        int t_tmp = T[i] - 'a';
        if(s[s_tmp] != -1 || t[t_tmp] != -1){
            if(s[s_tmp] != t_tmp || t[t_tmp] != s_tmp){
                cout << "No" << endl;
                return 0;
            }
        }else{
            s[s_tmp] = t_tmp;
            t[t_tmp] = s_tmp;
        }
    }


    cout << ans << endl;
    return 0;
}




Compiler output:
In file included from /usr/include/c++/14/numeric:62,
                 from a.cc:12:
/usr/include/c++/14/bits/stl_numeric.h: In instantiation of 'void std::iota(_ForwardIterator, _ForwardIterator, _Tp) [with _ForwardIterator = int; _Tp = int]':
a.cc:31:9:   required from here
   31 |     iota(s[0], s[26], -1);
      |     ~~~~^~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_numeric.h:99:11: error: invalid type argument of unary '*' (have 'int')
   99 |           *__first = __value;
      |           ^~~~~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i, a, n) for (int i=a;i<n;++i)
#define repeq(i, a, n) for(int i=a;i<=n;++i)
#define repi(m, itr) for (auto itr = m.begin();itr != m.end();++itr)
#define per(i, a, n) for (int i=n-1; i>=a;--i)
#define pb push_back
#define mp make_pair
#define all(x) (x).begin(), (x).end()

// C - String Transformation
string S, T;
string ans = "Yes";
int s[26], t[26];

int main(){
    cin >> S >> T;

    iota(s[0], s[26], -1);
    iota(t[0], t[26], -1);

    rep(i, 0, S.size()){
        int s_tmp = S[i] - 'a';
        int t_tmp = T[i] - 'a';
        if(s[s_tmp] != -1 || t[t_tmp] != -1){
            if(s[s_tmp] != t_tmp || t[t_tmp] != s_tmp){
                cout << "No" << endl;
                return 0;
            }
        }else{
            s[s_tmp] = t_tmp;
            t[t_tmp] = s_tmp;
        }
    }


    cout << ans << endl;
    return 0;
}




Compiler output:
In file included from /usr/include/c++/14/numeric:62,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:58,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_numeric.h: In instantiation of 'void std::iota(_ForwardIterator, _ForwardIterator, _Tp) [with _ForwardIterator = int; _Tp = int]':
a.cc:20:9:   required from here
   20 |     iota(s[0], s[26], -1);
      |     ~~~~^~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_numeric.h:99:11: error: invalid type argument of unary '*' (have 'int')
   99 |           *__first = __value;
      |           ^~~~~~~~
Language: C++

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

string s, t;
bool solve();

int main() {
  cin >> s >> t;

  prians(solve());
  return 0;
}

bool solve() {
  for(int i = 0; i < s.size(); ++i)
    for(int j = 1; j < s.size(); ++j) {
      if(s[i] == s[j] && t[i] == t[j]) continue;
      if(t[i] == t[j] && s[i] != s[j]) return 0;
    }
  return 1;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:3: error: 'prians' was not declared in this scope
   10 |   prians(solve());
      |   ^~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
char s[200003],s1[200003];
int ss[30],ss1[30];
int main()
{

cin>>s>>s1;
int a,b;a=strlen(s);b=strlen(s1);
 for(int i=1;i<=a;i++)
    ss[s[i]-'a']++,ss1[s1[i]-'a']++;
    for(int i=1;i<=a;i++)
    if(s[i]!=s1[i]&&ss[s[i]-'a']!=ss1[s1[i]-'a']){cout<<"No";return ;}
    cout<<"Yes";
return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:13:62: error: return-statement with no value, in function returning 'int' [-fpermissive]
   13 |     if(s[i]!=s1[i]&&ss[s[i]-'a']!=ss1[s1[i]-'a']){cout<<"No";return ;}
      |                                                              ^~~~~~
Language: C++

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

int main(){
  string s,t;
  cin>>s>>t;
  vector<int> start(26,-1);
  vector<int> goal(26,-1);
  for(int i=0;i<.size();i++){
    int a=s[i]-'a';
    int b=t[i]-'a';
    
    if(start[a]!=-1||goal[b]!=-1){
      if(start[a]!=b||goal[b]!=a){
        cout<<"No"<<endl;
        return 0;
      }
    }
    start[a]=b;
    goal[b]=a;
  }
  cout<<"Yes"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:17: error: expected primary-expression before '.' token
    9 |   for(int i=0;i<.size();i++){
      |                 ^
Language: C++

#include <iostream>
#include <stdio.h>
using namespace  std;
#define LL long long
const int mod = 1e9+7;
const int N = 2e5+55;
int to[200];
int x[N],y[N];
int l;
void f(char s[],int num[])
{
	int cnt=0;
	memset(to,0,sizeof to);
	for(int i=0;i<l;i++){
		if(to[s[i]]==0)
			to[s[i]]=++cnt;
		num[i]=to[s[i]];
	}
}

int main()
{
	char s1[N],s2[N];
	cin>>s1>>s2;
	l=strlen(s1);
	f(s1,x);
	f(s2,y);
	for(int i=0;i<l;i++){
		if(x[i]!=y[i]){
			printf("No\n");
			return 0;
		}
	}
	printf("Yes\n");
}


Compiler output:
a.cc: In function 'void f(char*, int*)':
a.cc:13:9: error: 'memset' was not declared in this scope
   13 |         memset(to,0,sizeof to);
      |         ^~~~~~
a.cc:2:1: note: 'memset' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    1 | #include <iostream>
  +++ |+#include <cstring>
    2 | #include <stdio.h>
a.cc: In function 'int main()':
a.cc:25:11: error: 'strlen' was not declared in this scope
   25 |         l=strlen(s1);
      |           ^~~~~~
a.cc:25:11: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main () {
  string s, t;
  cin >> s >> t;
  int a = s.size();
  bool can = false ;
  for (int k = 0; k < a; k ++) {
    for (int l = 0; l < a; l ++) {
      while (s[k] != s[l]) {
        if (t[k] == t[l]) {
          can = true;
        }
      break;
      }
      if (can) break;
    }
    if (can) break;
  }
  for (int i = 0; i < a; i ++) {
    for (int j = 0; j < a; j ++) {
      while (t[k] != t[l]) {
        if (s[k] == s[l]) {
          can = true;
        }
      break;
      }
      if (can) break;
    }
    if (can) break;
  }
  if(can) cout << "No" << endl;
  else cout << "Yes" << endl;
}





Compiler output:
a.cc: In function 'int main()':
a.cc:22:16: error: 'k' was not declared in this scope
   22 |       while (t[k] != t[l]) {
      |                ^
a.cc:22:24: error: 'l' was not declared in this scope
   22 |       while (t[k] != t[l]) {
      |                        ^
Language: C++

#include <cstdio>

char s[200010],t[200010];
char mp[200];

int main(){
	scanf("%s %s",s + 1,t + 1);
	int len = strlen(s + 1);
	for(int i = 1;i <= len;++i)
	if(!mp[s[i]] && !mp[t[i]])mp[s[i]] = t[i],mp[t[i]] = s[i];
	else if(mp[s[i]] != t[i] || mp[t[i]] != s[i]){puts("No");return 0;}
	puts("Yes");
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:19: error: 'strlen' was not declared in this scope
    8 |         int len = strlen(s + 1);
      |                   ^~~~~~
a.cc:2:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    1 | #include <cstdio>
  +++ |+#include <cstring>
    2 |
Language: C++

#include <cstdio>

char s[200010],t[200010];
char mp[200];

int main(){
scanf("%s %s",s + 1,t + 1);
int len = strlen(s + 1);
for(int i = 1;i <= len;++i)
if(!mp[s[i]] && !mp[t[i]])mp[s[i]] = t[i],mp[t[i]] = s[i];
else if(mp[s[i]] != t[i] || mp[t[i]] != s[i]){puts("No"};return 0;}
puts("Yes");
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:11: error: 'strlen' was not declared in this scope
    8 | int len = strlen(s + 1);
      |           ^~~~~~
a.cc:2:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    1 | #include <cstdio>
  +++ |+#include <cstring>
    2 | 
a.cc:11:56: error: expected ')' before '}' token
   11 | else if(mp[s[i]] != t[i] || mp[t[i]] != s[i]){puts("No"};return 0;}
      |                                                   ~    ^
      |                                                        )
a.cc: At global scope:
a.cc:12:5: error: expected constructor, destructor, or type conversion before '(' token
   12 | puts("Yes");
      |     ^
a.cc:13:1: error: expected declaration before '}' token
   13 | }
      | ^
Language: C++

#include <bits/stdc++.h>
#define REP(i, n) for(int i = 0; i < n; i++)
#define REPR(i, n) for(int i = n; i >= 0; i--)
#define FOR(i, m, n) for(int i = m; i < n; i++)
#define INF 2e9
#define ALL(v) (v).begin(), (v).end()
using namespace std;
typedef long long ll;

//const int dx[] = {1, 0, -1, 0, 1, -1, -1, 1};
//const int dy[] = {0, 1, 0, -1, 1, 1, -1, -1};

int main()
{
	string s, t;
	cin >> s >> t;

	REP(i, (int)s.size()){
		if (s[i] != t[i]){
			char a = s[i], b = t[i];
			for (int j = 0; j < (int)s.size(); j++){
				if (s[j] == a){
					s[j] = b;
					continue;
				}
				if (s[j] == b){
					s[j] = a;
				}
				if (j < i && s[j] != t[j]) {
                  cout << "No" << endl;
                  return (0);
			}
		}
	}

	if (s == t) cout << "Yes" << endl;
	else cout << "No" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:38:2: error: expected '}' at end of input
   38 | }
      |  ^
a.cc:14:1: note: to match this '{'
   14 | {
      | ^
Language: C++

#include <string>
#include <map>
#include <iostream>

using namespace std;

int main()
{
    string S, T;
    cin >> S >> T;
    
    const int NO_OF_ALPHABETS = 26;
    vector <int> used(NO_OF_ALPHABETS, false);
    
    map <char, char> equivalent;
    
    for(int i = 0; i < S.size(); i++)
    {
        if(!used[S[i] - 'a'] && !used[T[i] - 'a'])
        {
            equivalent[S[i]] = T[i];
            equivalent[T[i]] = S[i];
            
            used[S[i] - 'a'] = used[T[i] - 'a'] = true;
        }
    }
    
    int same_string = true;
    for(int i = 0; i < S.size(); i++)
    {
        if(S[i] != equivalent[T[i]])
            same_string = false;
    }
    
    cout << (same_string ? "Yes" : "No");
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:5: error: 'vector' was not declared in this scope
   13 |     vector <int> used(NO_OF_ALPHABETS, false);
      |     ^~~~~~
a.cc:4:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    3 | #include <iostream>
  +++ |+#include <vector>
    4 | 
a.cc:13:13: error: expected primary-expression before 'int'
   13 |     vector <int> used(NO_OF_ALPHABETS, false);
      |             ^~~
a.cc:19:13: error: 'used' was not declared in this scope
   19 |         if(!used[S[i] - 'a'] && !used[T[i] - 'a'])
      |             ^~~~
Language: C++

#include <iostream>
#include <algorithm>
#include <math.h>
#include <string.h>

typedef long long ll;
using namespace std;

int main()
{
    string S, T;
    int s[26]={0}, t[26]={0};
    cin >> S >> T;

    for(int i=0; i<S.length(); i++){
        s[S[i]-'a']++;
        t[T[i]-'a']++;
    }
    sort(s, s+26);
    sort(t, t+26);

    for(int i=0; i<s.length(); i++){
        if(s[i] != t[i]){
            cout << "No" << endl;
            return 0;
        }
    }

    cout << "Yes" << endl;

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:22:22: error: request for member 'length' in 's', which is of non-class type 'int [26]'
   22 |     for(int i=0; i<s.length(); i++){
      |                      ^~~~~~
Language: C++

#include <iostream>
#include <string>
#include <algorithm>

using namespace std;

int main()
{
    string s, t;
    char x, y;

    cin >> s >> t;

    for (int i = 0; i < (int)s.size(); i++) {
        if (s[i] == t[i]) continue;

        x = s[i];
        y = t[i];

        for (int j = 0; j < (int)s.size(); j++) {
            if (s[j] == x[i]) {
                s[j] = y[0];
                continue;
            }
            if (s[j] == y[i]) {
                s[j] = x[0];
            }
            if (j < i && s[j] != t[j]) break;
        }
    }
    if (s == t) cout << "Yes" << endl;
    else cout << "No" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:21:26: error: invalid types 'char[int]' for array subscript
   21 |             if (s[j] == x[i]) {
      |                          ^
a.cc:22:25: error: invalid types 'char[int]' for array subscript
   22 |                 s[j] = y[0];
      |                         ^
a.cc:25:26: error: invalid types 'char[int]' for array subscript
   25 |             if (s[j] == y[i]) {
      |                          ^
a.cc:26:25: error: invalid types 'char[int]' for array subscript
   26 |                 s[j] = x[0];
      |                         ^
Language: C++

#include <iostream>
#include <string>
#include <vector>
using namespace std;
const int alphabet_num = 'z' - 'a' + 1;

int main() {
  
  string s, t;
  vector<int> map(alphabet_num, -1), inv(alphabet_num, -1);
  
  cin >> s >> t;
  
  for (int i = 0, l = s.size(); i < l; i++) {
    if (map[s[i]] != -1 || inv[t[i]] != -1) {
      if (map[s[i]] != t[i] || minv[t[i]] != s[i]) {
        cout << "No" << endl;
        return 0;
      }
    }
  }
  
  cout << "Yes" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:32: error: 'minv' was not declared in this scope; did you mean 'inv'?
   16 |       if (map[s[i]] != t[i] || minv[t[i]] != s[i]) {
      |                                ^~~~
      |                                inv
Language: C++

#include <cstdio>
#include <queue>
#include <vector>
#include <algorithm>
#include<cstring>
#include<cstdlib>
#include<iostream>
#include<string>
#include<map>
#include<set>
#include<math.h>
//#include<bits/stdc++.h>

using namespace std;
#define ll long long
#define ull unsigned long long
#define INF 1e9
#define eps 1e-6
#define PI acos(-1.0)
#define M 10010
#define IOS ios::sync_with_stdio(0); cin.tie(0); cout.tie(0);
typedef pair<int, int>P;
const int mod = 1e9 + 7;
const int maxn = 2e5 + 10;

char s[maxn], t[maxn];
int vis[26];
int cnt[26];
map<char,char>mp;

int main() {
	IOS;
	//freopen("in.txt", "r", stdin);
	//freopen("out.txt","w",stdout);
	//a = 999999866000004473;
	//b = 999999822000007597;
    cin >> s >> t;
    int len = strlen(s);
    for(char i ='a'; i <= 'z' ; ++i)
        mp[i] = i;
  // for(char i ='a'; i <= 'z' ; ++i)
     // cout << mp[i];
    for(int i = 0; i < len;++i){
        if(mp[s[i]]!= t[i]){
            if(mp[s[i]] != s[i]){
            cout << "No";
            return 0;
        }
            if(vis[t[i]-'a']){
               cout <<"No";
               return 0;

            }
            mp[s[i]] = t[i];
        }
        vis[t[i]-'a']=1;
    }
     for(char i ='a'; i <= 'z' ; ++i)
        mp[i] = i;
    for(int i = 0; i < len;++i){
        if(mp[t[i]]!= s[i]){
            if(mp[t[i]] != t[i]){
            cout << "No";
            return 0;
        }
            if(cnt[s[i]-'a']){
               cout <<"No";
               return 0;

            }
            mp[t[i]] = s[i];
        }
        cnt[i]-'a']=1;
    }
    cout << "Yes" ;
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:73:19: error: expected ';' before ']' token
   73 |         cnt[i]-'a']=1;
      |                   ^
      |                   ;
Language: C++

#include <iostream>
#include <vector>
#include <algorithm>
#include <string.h>
#include <iomanip>
#include <math.h>
#include <string>
#include <queue>
#include <map>
#include <set>
#include <functional>

using namespace std;

typedef long long int ll;
typedef std::pair<int, int> pii;
typedef std::pair<ll, int> pli;
typedef std::pair<ll, ll> pll;

#define FOR(i,n,m) for(ll i=(ll)(m);i<(ll)(n);++i)
#define REP(i,n) FOR(i,n,0)
#define IREP(i,n) for(ll i=(ll)(n);i>=0;--i)
#define OF64 std::setprecision(10)

const ll MOD = 1000000007;
const ll INF = (ll)1e15;

int c[30];

int main()
{
	string S, T;
	cin >> S >> T;

	map<char, char> ma, ima;
	string s = "Yes";
	REP(i, S.length())
	{
		char s = S[i], t = T[i];
		if (ma.count(s))
		{
			if (ma[s] != t)
			{
				s = "No";
			}
		}
		if (ima.count(t))
		{
			if (ima[t] != s)
			{
				s = "No";
			}
		}
		ma[s] = t;
		ima[t] = s;
	}
	cout << s << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:44:37: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
   44 |                                 s = "No";
      |                                     ^~~~
      |                                     |
      |                                     const char*
a.cc:51:37: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
   51 |                                 s = "No";
      |                                     ^~~~
      |                                     |
      |                                     const char*
Language: Java

#include<iostream>
#include<vector>
#include<sstream>
#include<string>
#include<numeric>
#include <algorithm>
using namespace std;
int input(){
  int x;
  cin>>x;
  return x;
}
int abs(int x){
  if(x>=0){
    return x;
  }else{
    return -x;
  }
}
int gcd(int x, int y){
	if(x<y){
    return gcd(y,x);
  }
  if(y==0){
    return x;
  }
  return gcd(y,x%y);
}
int moji(char i){
  if(i=='a'){
    return 1;
  }
  if(i=='b'){
    return 2;
  }
  if(i=='c'){
    return 3;
  }
  if(i=='d'){
    return 4;
  }
  if(i=='e'){
    return 5;
  }
  if(i=='f'){
    return 6;
  }
  if(i=='g'){
    return 7;
  }
  if(i=='h'){
    return 8;
  }
  if(i=='i'){
    return 9;
  }
  if(i=='j'){
    return 10;
  }
  if(i=='k'){
    return 11;
  }
  if(i=='l'){
    return 12;
  }
  if(i=='m'){
    return 13;
  }
  if(i=='n'){
    return 14;
  }
  if(i=='o'){
    return 15;
  }
  if(i=='p'){
    return 16;
  }
  if(i=='q'){
    return 17;
  }
  if(i=='r'){
    return 18;
  }
  if(i=='s'){
    return 19;
  }
  if(i=='t'){
    return 20;
  }
  if(i=='u'){
    return 21;
  }
  if(i=='v'){
    return 22;
  }
  if(i=='w'){
    return 23;
  }
  if(i=='x'){
    return 24;
  }
  if(i=='y'){
    return 25;
  }
  if(i=='z'){
    return 26;
  }
  return 100;
  
}




int main() {
  string S,T;
  cin>>S>>T;
  int s[S.size()];
  int t[S.size()];
  for(int i=0;i<S.size();i++){
    s[i]=moji(S.at(i));
    t[i]=moji(T.at(i));
  }
  bool ok=true;
  for(int i=1;i<=26;i++){
    int a[200000];
    int sum=0;
   for(int j=0;j<S.size();j++){
      if(s[j]==i){
        a[sum]=j;
        sum++;
      }
    }
    
    
    for(int k=0;k<sum;k++){
      if(t[a[k]]==t[a[k+1]]){
        

      }else{
        ok=false;
        
      }

    }
    

    }
    if(ok){
      cout<<"Yes"<<endl;
    }else{

      cout<<"No"<<endl;
    }








  
 
  
  

  


  

  




  
  
}

  

  



Compiler output:
Main.java:1: error: illegal character: '#'
#include<iostream>
^
Main.java:2: error: illegal character: '#'
#include<vector>
^
Main.java:3: error: illegal character: '#'
#include<sstream>
^
Main.java:4: error: illegal character: '#'
#include<string>
^
Main.java:5: error: illegal character: '#'
#include<numeric>
^
Main.java:6: error: illegal character: '#'
#include <algorithm>
^
Main.java:10: error: not a statement
  cin>>x;
     ^
Main.java:8: error: unnamed classes are a preview feature and are disabled by default.
int input(){
^
  (use --enable-preview to enable unnamed classes)
Main.java:117: error: not a statement
  cin>>S>>T;
        ^
Main.java:150: error: not a statement
      cout<<"Yes"<<endl;
                 ^
Main.java:153: error: not a statement
      cout<<"No"<<endl;
                ^
Main.java:118: error: ']' expected
  int s[S.size()];
        ^
Main.java:118: error: ';' expected
  int s[S.size()];
                ^
Main.java:119: error: ']' expected
  int t[S.size()];
        ^
Main.java:119: error: ';' expected
  int t[S.size()];
                ^
Main.java:126: error: ']' expected
    int a[200000];
          ^
16 errors
Language: C++

#include<cstdio>

#include<cstring>

#include<iostream>

using namespace std;

char c[30],d[30];

bool vis[30],v[30];

int main()

{

    memset(vis,false,sizeof(vis));

    memset(v,false,sizrof(v));

    string s,t;

    cin>>s;

    cin>>t;

    bool flag=true;

    for(int i=0;i<s.size();i++)

    {

        int x=s[i]-'a';

        if(!vis[x]) vis[x]=true,c[x]=t[i];

        else if(c[x]!=t[i]) {flag=false;break;}

       x=t[i]-'a';

if(!vis[x]) vis[x]=true,d[x]=s[i];

        else if(d[x]!=s[i]) {flag=false;break;}

    }

    if(flag) cout<<"Yes"<<endl;

    else cout<<"No"<<endl;

}



Compiler output:
a.cc: In function 'int main()':
a.cc:19:20: error: 'sizrof' was not declared in this scope
   19 |     memset(v,false,sizrof(v));
      |                    ^~~~~~
Language: C++

#include <iostream>
#include <string>
using namespace std;

string Comp(int x[26], int y[26]){
    string flag = "Yes";
    bool boo = false;
    for(int i = 0; i < 26; ++i){
        if(x[i] == 0){
            boo = true;
        }
    }
    
    if(boo){
        for(int i = 0; i < 26; ++i){
            for(int j = 0; j < 26; ++j){
                if(x[i] == y[j]){
                    y[j] = -1;
                    break;
                }
            }
        }
        for(int i = 0; i < 26; ++i){
                if(y[i] != -1){
                    flag = "No";
                }
        }
    } else {
        sort(x, x+26);
        sort(y, y+26);
        int num = -1;
        int num_count = 0;
        for(int i = 0; i < 26; ++i){
//            cout << x[i] << " ";
            for(int j = 0; j < 26; ++j){
                if(x[i] == y[j]){
                    y[j] = -1;
                }
            }
            if(num == x[i]){
                ++num_count;
            } else {
                if(num_count % 2 == 1){
                    flag = "No";
                    return flag;
                }
                num = x[i];
                num_count = 1;
            }
            
        }
    }
    return flag;
}

int main() {
    string S, T;
    cin >> S >> T;
    
    const int sizeS = S.length();
    const int sizeT = T.length();
    
    int listS[26];
    int listT[26];
    
//    cout << sizeS << sizeT << endl;
    
    int i = 0;
    for(char alph = 'a'; alph <='z'; ++alph){
        int count = 0;
        for(int j = 0; j < sizeS; ++j){
            if(alph == S[j]){
                ++count;
            }
        }
        listS[i] = count;
//        cout << count << " ";
        ++i;
    }
//    cout << endl;
    
    i = 0;
    for(char alph = 'a'; alph <='z'; ++alph){
        int count = 0;
        for(int j = 0; j < sizeT; ++j){
            if(alph == T[j]){
                ++count;
            }
        }
        listT[i] = count;
//        cout << count << " ";
        ++i;
    }
    
    cout << Comp(listS, listT) << endl;
    
    return 0;
}

Compiler output:
a.cc: In function 'std::string Comp(int*, int*)':
a.cc:29:9: error: 'sort' was not declared in this scope; did you mean 'short'?
   29 |         sort(x, x+26);
      |         ^~~~
      |         short