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

#include<cstdio>
#include<cstdlib>
#include<algorithm>
#include<iostream>
#include<queue>
#include<vector>
#include <bitset>
#include<math.h>
using namespace std;
#define INF 1100000000000000
#define MOD 1000000007
typedef long long ll;
typedef pair<int,int> P;

int C[30],A[30];


int main(){
  bool flag=true;
  string S,T;
  cin>>S>>T;
  int s[210000],t[210000];
  for(int i=0;i<30;i++) C[i]=-1;
  for(int i=0;i<(int)S.size();i++){
    s[i]=S[i]-'a';
    t[i]=T[i]-'a';
  }

  for(int i=0;i<(int)S.size();i++){
    if(C[s[i]]==-1){
      if(s[i]!=t[i]){
        C[s[i]]=t[i];
        A[s[i]]++;
      }
    }else{
      if(C[s[i]]!=t[i]){
        flag=false;
        break;
      }
    }
  }
  sort(C,C+N);
  for(int i=0;i<29;i++){
    if(C[i]==C[i+1] && C[i]!=0) flag=false;
  }
  if(flag) cout<<"Yes"<<endl;
  else cout<<"No"<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:42:12: error: 'N' was not declared in this scope
   42 |   sort(C,C+N);
      |            ^
Language: C++

#include<cstdio>
#include<cstdlib>
#include<algorithm>
#include<iostream>
#include<queue>
#include<vector>
#include <bitset>
#include<math.h>
using namespace std;
#define INF 1100000000000000
#define MOD 1000000007
typedef long long ll;
typedef pair<int,int> P;

int C[30],A[30];


int main(){
  bool flag=true;
  string S,T;
  cin>>S>>T;
  int s[210000],t[210000];
  for(int i=0;i<30;i++) C[i]=-1;
  for(int i=0;i<(int)S.size();i++){
    s[i]=S[i]-'a';
    t[i]=T[i]-'a';
  }

  for(int i=0;i<(int)S.size();i++){
    if(C[s[i]]==-1){
      if(s[i]!=t[i]){
        C[s[i]]=t[i];
        A[s[i]]++;
      }
    }else{
      if(C[s[i]]!=t[i]){
        flag=false;
        break;
      }
    }
  }
  sort(C,C+N);
  for(int i=0;i<29;i++){
    if(C[i]==C[i+1] && C[i]!=0) flag=false
  }
  if(flag) cout<<"Yes"<<endl;
  else cout<<"No"<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:42:12: error: 'N' was not declared in this scope
   42 |   sort(C,C+N);
      |            ^
a.cc:44:43: error: expected ';' before '}' token
   44 |     if(C[i]==C[i+1] && C[i]!=0) flag=false
      |                                           ^
      |                                           ;
   45 |   }
      |   ~
Language: C++

#include<cstdio>
#include<cstdlib>
#include<algorithm>
#include<iostream>
#include<queue>
#include<vector>
#include <bitset>
#include<math.h>
using namespace std;
#define INF 1100000000000000
#define MOD 1000000007
typedef long long ll;
typedef pair<int,int> P;

int C[30],A[30];


int main(){
  bool flag=true;
  string S,T;
  cin>>S>>T;
  int s[210000],t[210000];
  for(int i=0;i<30;i++) C[i]=-1;
  for(int i=0;i<(int)S.size();i++){
    s[i]=S[i]-'a';
    t[i]=T[i]-'a';
  }

  for(int i=0;i<(int)S.size();i++){
    if(C[s[i]]==0){
      if(s[i]!=t[i]){
        C[s[i]]=t[i];
        A[s[i]]++;
      }
    }else{
      if(C[s[i]]!=t[i]){
        flag=false;
        break;
      }
    }
  }
  if(!flag) cout<<"No"<<endl;
  else{
    for(int i=0;i<30;i++){
      if(C[i]){
        if(A==0){
          flag=false;
          break;
        }else A--;
      }
    }
    if(flag) cout<<"Yes"<<endl;
    else cout<<"No"<<endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:49:15: error: lvalue required as decrement operand
   49 |         }else A--;
      |               ^
Language: C++

s = input()
t = input()
Ps = [[] for i in range(26)]
Pt = [[] for i in range(26)]
for i in range(len(s)):
    Ps[ord(s[i])-97] += [i]
for i in range(len(t)):
    Pt[ord(t[i])-97] += [i]
Ps.sort()
Pt.sort()
if Ps == Pt:
    print('Yes')
else:
    print('No')   

Compiler output:
a.cc:12:11: warning: multi-character character constant [-Wmultichar]
   12 |     print('Yes')
      |           ^~~~~
a.cc:14:11: warning: multi-character character constant [-Wmultichar]
   14 |     print('No')
      |           ^~~~
a.cc:1:1: error: 's' does not name a type
    1 | s = input()
      | ^
Language: C++

#include <bits/stdc++.h>
#define REP(i,n) for(int i=0;i<n;i++)
#define REPP(i,n) for(int i=1;i<=n;i++)
const double PI = acos(-1);
const double EPS = 1e-15;
long long INF=(long long)1E17;
#define i_7 (long long)(1E9+7)
long mod(long a){
    long long c=a%i_7;
    if(c>=0)return c;
    return c+i_7;
}
using namespace std;
bool prime_(int n){
  if(n==1){
    return false;
  }else if(n==2){
    return true;
  }else{
    for(int i=2;i<=sqrt(n);i++){
      if(n%i==0){
        return false;
      }
    }
    return true;
  }
}

long long gcd_(long long a, long long b){
  if(a<b){
    swap(a,b);
  }
  if(a%b==0){
    return b;
  }else{
    return gcd_(b,a%b);
  }
}
 
long long lcm_(long long x, long long y){
  return (x/gcd_(x,y))*y;
}
 
class UnionFind {
    public:
    //各頂点の親の番号を格納する。その頂点自身が親だった場合は-(その集合のサイズ)を入れる。
    vector<int> Parent;
    
    //クラスを作るときは、Parentの値を全て-1にする。
    //以下のようにすると全てバラバラの頂点として解釈できる。
    UnionFind(int N) {
        Parent = vector<int>(N, -1);
    }
    
    //Aがどのグループに属しているか調べる
    int root(int A) {
        if (Parent[A] < 0) return A;
        return Parent[A] = root(Parent[A]);
    }
    
    //自分のいるグループの頂点数を調べる
    int size(int A) {
        return -Parent[root(A)];//先祖をrootで取っておきたい。
    }
    
    //AとBをくっ付ける
    bool connect(int A, int B) {
        //AとBを直接つなぐのではなく、root(A)にroot(B)をくっつける
        A = root(A);
        B = root(B);
        if (A == B) {
            //すでにくっついてるからくっ付けない
            return false;
        }
        
        //大きい方(A)に小さいほう(B)をくっ付けたい
        //大小が逆だったらAとBをひっくり返す。
        if (size(A) < size(B)) swap(A, B);
        
        //Aのサイズを更新する
        Parent[A] += Parent[B];
        //Bの親をAに変更する
        Parent[B] = A;
        
        return true;
    }
};

int main(){
  
  string s;
  stirng t;
  cin>>s;
  cin>>t;
  int n=s.size();
  vector<int> image(26,-1);
  vector<int> domain(26,-1);
  int temps,tempt;
  bool flag = true;
  REP(i,n){
    temps = s[i]-'a';
    tempt = t[i]-'a';
    if(image[temps]==-1 && domain[tempt]==-1){
      image[temps]=tempt;
      domain[tempt]=temps;
    }else if(image[temps]==tempt && domain[tempt]==temps){
      continue;
    }else{
      flag = false;
    }
  }
  
  if(flag){
    cout<<"Yes"<<endl;
  }else{
    cout<<"No"<<endl;
  }
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:92:3: error: 'stirng' was not declared in this scope
   92 |   stirng t;
      |   ^~~~~~
a.cc:94:8: error: 't' was not declared in this scope
   94 |   cin>>t;
      |        ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
int main(){
  string S,T;
  cin>>S>>T;
vector<char>A(26,'0');
  vector<char>B(26,'0');
  bool flag=true;
  
  for(int i=0;i<26;i++){
    if(A[S[i]-'a']=='0'){
      A[S[i]-'a']=T[i];
    }
    
    else{
if(A[S[i]-'a']!=T[i]){
  flag=false;
}
    }
  }
  
    for(int i=0;i<26;i++){
    if(B[T[i]-'a']=='0'){
      B[T[i]-'a']=S[i];
    }
    
    else{
if(B[T[i]-'a']!=S[i]){
  flag=false;
}
    }
  }


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

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
int main(){
  string S,T;
  cin>>S>>T;
vector<char>A(26,'0');
  vector<char>B(26,'0');
  bool flag=true;
  
  for(int i=0;i<26;i++){
    if(A[S[i]-'a']=='0'){
      A[S[i]-'a']=T[i];
    }
    
    else{
if(A[S[i]-'a']!=T[i]){
  flag=false;
}
    }
  }
  
    for(int i=0;i<26;i++){
    if(B[T[i]-'a']=='0'){
      B[T[i]-'a']=S[i];
    }
    
    else{
if(B[T[i]-'a']!=S[i]){
  flag=false;
}
    }
  }



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

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
int main(){
  string S,T;
  cin>>S>>T;
  vector<int>alf1(28);
  
  for(ll i=0;i<S.size();i++){
    alf1('b'-'a')++;
  }
  
  cout<<alf1[0]<<endl;
}

    
  
  

Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: no match for call to '(std::vector<int>) (int)'
   10 |     alf1('b'-'a')++;
      |     ~~~~^~~~~~~~~
Language: C++

#include <iostream>
#include <vector>
#include <map>
#include <unordered_map>
#include <queue>
#include <set>
#include <algorithm>
#include <string>
#include <math.h>
#include <limits.h>
#include <stack>
#include <complex>
#include <stdlib.h>
#include <stdio.h>
#include <functional>
#include <cfloat>

#define Rep(i,n) for(int (i)=0;(i)<(int)(n);++(i))
#define Sort(a) sort(a.begin(), a.end())
#define Reverse(a) reverse(a.begin(), a.end())

#define eb emplace_back
#define ef emplace_front
#define dbg(x) cout<<#x" = "<<((x))<<endl
#define fs first
#define sc second
     
using namespace std;
     
     
typedef long long ll;
typedef pair<ll, ll> P;
     
     
int main(){
  string S, T;

  cin >> S >> T;

#ifdef DEBUG
#endif

  vector<int> start(26, -1);
  vector<int> goal(26, -1);

  for(int i = 0; i < S.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;
      } 
    }

    strat[a] = b;
    goal[b] = a;
  } //i 

  cout << "Yes" << endl;
  
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:55:5: error: 'strat' was not declared in this scope; did you mean 'start'?
   55 |     strat[a] = b;
      |     ^~~~~
      |     start
Language: C++

#include <iostream>
#include <stdio.h>
#include <cmath>
#include <algorithm> // sort
#include <map>       // pair
#include <vector>
using namespace std;

#define REP(a,b) for(int i =(a);i < (b);i++)
#define FOR(n) for(int i = 0; i<(n); i++)
#define COUT(c)  cout<<(c)<<endl


const int INF = 100100100;
const int MOD = (int)1e9 +7;
const double EPS = 1e-9; 

typedef long long int ll;

//char in[120];
//ex. pair
//pair<pair<string,int>,int> p[110];

int main(){
    string s,t;
    cin >> s >> t;
    vector<int> s2t(26,-1);
    vector<int> t2a(26,-1);
    for(int i=0; i<s.size();i++){
        int num_s = 0 + s[i];
        int num_t = 0 + t[i];
        if(s2t[num_s]!=-1 || t2s[num_t]!=-1){
            if(s2t[num_s]!=num_t || t2s[num_t]!=num_s){
                cout <<"No"<<endl;
                return 0;
            }
        }
        else{
            s2t[num_s]=num_t;
            t2s[num_t]=num_s;
        }
        cout << "Yes" << endl;
    }

    return 0;    
}

Compiler output:
a.cc: In function 'int main()':
a.cc:32:30: error: 't2s' was not declared in this scope; did you mean 't2a'?
   32 |         if(s2t[num_s]!=-1 || t2s[num_t]!=-1){
      |                              ^~~
      |                              t2a
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define int long long
#define fo(a,b) for(int a=0;a<b;a++)
 int $(int a,int b) {
   if(a%b==0)
     return a/b;
   else
     return a/b+1;
 }
signed main(){
  string a,b;
  cin>>a>>b;
  string c=a;
  int h=a.size();
  char d,e;
  map<char,char> f;
  vector<int> g(26,0)
  for(int j=0;j<h;j++){
    if(g[a[j]]==0){
    f[a[j]]=b[j];
    g[a[j]-'a']=1;
  }
  }
  for(int j=0;j<h;j++)
    c[j]=f[a[j]]
  if(b==c)
    cout<<"Yes"<<endl;
  else
    cout<<"No"<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:19:3: error: expected ',' or ';' before 'for'
   19 |   for(int j=0;j<h;j++){
      |   ^~~
a.cc:19:15: error: 'j' was not declared in this scope
   19 |   for(int j=0;j<h;j++){
      |               ^
a.cc:26:17: error: expected ';' before 'if'
   26 |     c[j]=f[a[j]]
      |                 ^
      |                 ;
   27 |   if(b==c)
      |   ~~             
a.cc:29:3: error: 'else' without a previous 'if'
   29 |   else
      |   ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  cin.tie(0);
  ios::sync_with_stdio(false);
  vector<int> ct(26,0);
  vector<int> cs(26,0);
  string s,t;
  cin>>s>>t;
  int n=s.length();
  for(int i=0;i<n;i++){
    cs[(int)(s.at[i]-'a')]++;
    ct[(int)(t.at[i]-'a')]++;
  }
  sort(ct.begin(),ct.end());
  sort(cs.begin(),cs.end());
  for(int i=0;i<26;i++){
    if(ct[i]!=cs[i]){cout<<"No"<<endl;return 0;}
  }
  cout<<"Yes"<<endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:18: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   12 |     cs[(int)(s.at[i]-'a')]++;
      |                  ^
a.cc:13:18: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   13 |     ct[(int)(t.at[i]-'a')]++;
      |                  ^
Language: C++

#include<iostream>

using namespace std;

int main() {
    string S, T;
    cin >> S >> T;
    int s[26] = {0}, t[26] = {0};
    for (int i = 0; i < (int)S.size(); ++i) {
        s[S[i] - 'a']++;
        t[T[i] - 'a']++;
    }
    sort(s, s + 26);
    sort(t, t + 26);
    for (int i = 0; i < 26; ++i) {
        if (s[i] != t[i]) {
            cout << "No" << endl;
            return 0;
        }
    }
    cout << "Yes" << endl;
}
/*
 aaabb
 abaab
 */


Compiler output:
a.cc: In function 'int main()':
a.cc:13:5: error: 'sort' was not declared in this scope; did you mean 'short'?
   13 |     sort(s, s + 26);
      |     ^~~~
      |     short
Language: C++

#include <bits/stdc++.h>
#define rep(i, n) for(int i = 0; i < n; i++)
#define ll long long
using namespace std;

int main() {
    vector<pair<char,char>> p(100000);
    vector<pair<char,char>> p2(100000);
    bool can = true;
    string S,T; cin >> S >> T;
   
    for(int i=0;i<S.size();i++){
        char a,b;
        a=S.at(i); b=T.at(i);
        p.push_back(make_pair(a,b));
        p2.push_back(make_pair(a,b));
    }
    sort(p.begin(),p.end());
    sort(p2.begin(),p2.end());
    for(int i=0;i<S.size()-1;i++){
        char a=p[i].first;
        char b=p[i+1].first;
        char c=p[i].second
        if(p[i].first == p[i+1].first) {
           if(p[i].second != p[i+1].second)
        {can = false;
         break;}
        }
    }
    for(int i=0;i<S.size()-1;i++){
        if(p2[i].first == p2[i+1].first){
          if(p2[i].second != p2[i+1].second)
        {can = false;
         break;}
        }
    }

    if(can) cout << "Yes" << endl;
    else cout << "No" << endl;

    return 0;
}




Compiler output:
a.cc: In function 'int main()':
a.cc:24:9: error: expected ',' or ';' before 'if'
   24 |         if(p[i].first == p[i+1].first) {
      |         ^~
Language: C++

#include <bits/stdc++.h>
#define rep(i, n) for(int i = 0; i < n; i++)
#define ll long long
using namespace std;

int main() {
    vector<pair<char,char>> p(100000);
    vector<pair<char,char>> p2(100000);
    bool can = true;
    string S,T; cin >> S >> T;
   
    for(int i=0;i<S.size();i++){
        char a,b;
        a=S.at(i); b=T.at(i);
        p.push_back(make_pair(a,b));
        p2.push_back(make_pair(a,b));
    }
    sort(p.begin(),p.end());
    sort(p2.begin(),p2.end());
    for(int i=0;i<S.size()-1;i++){
        char a=p[i].first;
        char b=p[i+1].first;
        char c=p[i].second
        if(p[i].first == p[i+1].first) {
           if(p[i].second != p[i+1].second)
        {can = false;
         break;}
        }
    }
    for(int i=0;i<S.size()-1;i++){
        if(p2[i].first == p2[i+1].first){
             if(p2[i].second != p2[i+1].second)
        {can = false;
         break;}
        }
    }

    if(can) cout << "Yes" << endl;
    else cout << "No" << endl;

    return 0;
}




Compiler output:
a.cc: In function 'int main()':
a.cc:24:9: error: expected ',' or ';' before 'if'
   24 |         if(p[i].first == p[i+1].first) {
      |         ^~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  string s,t;
  cin>>s>>t;
  char box[26]={0};
  for(auto i:s){
    if(box[*i-'a']==0||box[*i-'a']==s[i]){
      box[*i-'a']=s[i];
    }else{
      cout<<"No"<<endl;
      return 0;
    }
  }
  cout<<"Yes"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: invalid type argument of unary '*' (have 'char')
    8 |     if(box[*i-'a']==0||box[*i-'a']==s[i]){
      |            ^~
a.cc:8:28: error: invalid type argument of unary '*' (have 'char')
    8 |     if(box[*i-'a']==0||box[*i-'a']==s[i]){
      |                            ^~
a.cc:9:11: error: invalid type argument of unary '*' (have 'char')
    9 |       box[*i-'a']=s[i];
      |           ^~
Language: C

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

int main() {
	char S[100000], T[100000], flg = 0, word;
	int i, j, soeji[100000], k, flg = 1;

	scanf("%s", S);
	scanf("%s", T);

	for (word = 'a'; word <= 'z' && flg == 1; word++) {
		k = 0;
		for (i = 0; i < strlen(T); i++) {
			if (T[i] == word) {
				soeji[k] = i;
				k++;
			}
		}
		if (k >= 2) {
			for (j = 1; j < k && flg == 1; j++) {
				if (S[soeji[j - 1]] != S[soeji[j]]) {
					flg = 0;
				}
			}
		}
	}

	if (flg == 1) {
		printf("Yes");
	}
	else {
		printf("No");
	}

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:37: error: conflicting types for 'flg'; have 'int'
    6 |         int i, j, soeji[100000], k, flg = 1;
      |                                     ^~~
main.c:5:36: note: previous definition of 'flg' with type 'char'
    5 |         char S[100000], T[100000], flg = 0, word;
      |                                    ^~~
Language: C++

#include <iostream>
#include <fstream>
#include <vector>
#include <algorithm>
#include <cmath>
#include <numeric>
#include <type_traits>
#include <map>
using namespace std;

int main(int argc, const char * argv[]) {
  map<int, int> mp1;
  map<int, int> mp2;
  for(int i = 0; i < s.size(); i++){
    if(mp1[t[i]] == 0){
      mp1[t[i]] = s[i];
    }else{
      if(mp1[t[i]] != s[i]){
        cout << "No" << endl;
        return 0;
      }
    }
    if(mp2[s[i]] == 0){
      mp2[s[i]] = t[i];
    }else{
      if(mp2[s[i]] != t[i]){
        cout << "No" << endl;
        return 0;
      }
    }

  }
  cout << "Yes" << endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:14:22: error: 's' was not declared in this scope
   14 |   for(int i = 0; i < s.size(); i++){
      |                      ^
a.cc:15:12: error: 't' was not declared in this scope
   15 |     if(mp1[t[i]] == 0){
      |            ^
a.cc:24:19: error: 't' was not declared in this scope
   24 |       mp2[s[i]] = t[i];
      |                   ^
a.cc:26:23: error: 't' was not declared in this scope
   26 |       if(mp2[s[i]] != t[i]){
      |                       ^
Language: C++

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

#define int long long

typedef long long li;
typedef long double ld;

void solve();
int32_t main() {
    #ifndef ONLINE_JUDGE
       // freopen("input.txt", "r", stdin);
    #endif
    cin.tie(0); cout.tie(0); ios_base::sync_with_stdio(false);
    int t = 1;
    // cin >> t;
    while (t--) {
        solve();
    }
    return 0;
}

int cnt[26], cntb[26];
void solve() {
    string a;
    cin >> a;
    string b;
    cin >> b;

    for (int i = 0; i < (int) a.size(); ++i) {
    	cnt[a[i] - 'a'] += 1;
    }
    for (int i = 0; i < (int) b.size(); ++i) {
    	cnta[b[i] - 'a'] += 1;
    }
    sort(cnt, cnt + 26);
    sort(cnta, cnta + 26);
    for (int i = 0; i < 26; ++i) {
    	if (cnt[i] != cnta[i]) {
    		cout << "No";
    		return;
    	}
    }
    cout << "Yes";
}

Compiler output:
a.cc: In function 'void solve()':
a.cc:34:9: error: 'cnta' was not declared in this scope; did you mean 'cntb'?
   34 |         cnta[b[i] - 'a'] += 1;
      |         ^~~~
      |         cntb
a.cc:37:10: error: 'cnta' was not declared in this scope; did you mean 'cntb'?
   37 |     sort(cnta, cnta + 26);
      |          ^~~~
      |          cntb
Language: C++

s=input()
t=input()

n=len(s)
az=list('abcdefghijklmnopqrstuvwxyz')
ls=[set() for i in range(26)]
ls2=[set() for i in range(26)]
ans='Yes'
di=dict()
for i in range(n):
    ls[az.index(t[i])].add(s[i])
    ls2[az.index(s[i])].add(t[i])
for i in range(26):
    if len(ls[i])>1:
        ans='No'
    if len(ls2[i])>1:
        ans='No'
print(ans)



Compiler output:
a.cc:5:9: warning: multi-character literal with 26 characters exceeds 'int' size of 4 bytes
    5 | az=list('abcdefghijklmnopqrstuvwxyz')
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
a.cc:8:5: warning: multi-character character constant [-Wmultichar]
    8 | ans='Yes'
      |     ^~~~~
a.cc:15:13: warning: multi-character character constant [-Wmultichar]
   15 |         ans='No'
      |             ^~~~
a.cc:17:13: warning: multi-character character constant [-Wmultichar]
   17 |         ans='No'
      |             ^~~~
a.cc:1:1: error: 's' does not name a type
    1 | s=input()
      | ^
Language: Java

vimport java.util.*;
import java.util.Map.*;

public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        String strS = sc.next();
        String strT = sc.next();
        int n = strS.length();
        
        Map<String, Integer> s = new HashMap<String, Integer>();
        for (int i = 0; i < n; i++) {
            String str = String.valueOf(strS.charAt(i));
            if (s.containsKey(str)) {
                
                s.put(str, s.get(str) + 1);
            } else {
                s.put(str, 1);
            }
        }
        
        Map<String, Integer> t = new HashMap<String, Integer>();
        for (int i = 0; i < n; i++) {
            String str = String.valueOf(strT.charAt(i));
            if (t.containsKey(str)) {
                
                t.put(str, t.get(str) + 1);
            } else {
                t.put(str, 1);
            }
        }
        
        int index = 0;
        int[] aryS = new int[s.size()];
        for (Entry<String, Integer> entry : s.entrySet()) {
            aryS[index] = entry.getValue();
            index++;
        }
        
        index = 0;
        int[] aryT = new int[t.size()];
        for (Entry<String, Integer> entry : t.entrySet()) {
            aryT[index] = entry.getValue();
            index++;
        }
        
        boolean clear = true;
        if (aryS.length != aryT.length) {
            clear = false;
        } else {
            Arrays.sort(aryS);
            Arrays.sort(aryT);
        
            for (int i = 0; i < aryS.length; i++) {
                if (aryS[i] != aryT[i]) {
                    clear = false;
                    break;
                } 
            }
        }

        
        if (clear) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    }
}

Compiler output:
Main.java:1: error: class, interface, enum, or record expected
vimport java.util.*;
^
Main.java:2: error: class, interface, enum, or record expected
import java.util.Map.*;
^
2 errors
Language: Java

import java.util.*;

public class StringTransformation {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        String s = in.next();
        String t = in.next();

        Map<Character, Character> sToT = new HashMap<>();
        Map<Character, Character> tToS = new HashMap<>();

        for (int i = 0; i < s.length(); i++) {
            char curr = s.charAt(i);
            if (sToT.containsKey(curr) && t.charAt(i) != sToT.get(curr)) {
                System.out.println("No");
                return;
            }
            else {
                sToT.put(curr, t.charAt(i));
            }
        }

        for (int i = 0; i < t.length();  i++) {
            char curr = t.charAt(i);
            if (tToS.containsKey(curr) && s.charAt(i) != tToS.get(curr)) {
                System.out.println("No");
                return;
            }
            else {
                tToS.put(curr, s.charAt(i));
            }
        }

        System.out.println("Yes");
    }
}


Compiler output:
Main.java:3: error: class StringTransformation is public, should be declared in a file named StringTransformation.java
public class StringTransformation {
       ^
1 error
Language: C++

using namespace std;

int main() {
	string s, t;
	cin >> s >> t;
	vector<set<char>> table;
	table.resize('z' - 'a' + 1);
	for (int i = 0; i < s.length(); i++) {
		table[s[i] - 'a'].insert(t[i]);
	}
	for (auto& e : table) if (e.size() > 1) {
		cout << "No" << endl;
		return 0;
	}
	cout << "Yes" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:9: error: 'string' was not declared in this scope
    4 |         string s, t;
      |         ^~~~~~
a.cc:1:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
  +++ |+#include <string>
    1 | using namespace std;
a.cc:5:9: error: 'cin' was not declared in this scope
    5 |         cin >> s >> t;
      |         ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | using namespace std;
a.cc:5:16: error: 's' was not declared in this scope
    5 |         cin >> s >> t;
      |                ^
a.cc:5:21: error: 't' was not declared in this scope
    5 |         cin >> s >> t;
      |                     ^
a.cc:6:9: error: 'vector' was not declared in this scope
    6 |         vector<set<char>> table;
      |         ^~~~~~
a.cc:1:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
  +++ |+#include <vector>
    1 | using namespace std;
a.cc:6:16: error: 'set' was not declared in this scope
    6 |         vector<set<char>> table;
      |                ^~~
a.cc:1:1: note: 'std::set' is defined in header '<set>'; this is probably fixable by adding '#include <set>'
  +++ |+#include <set>
    1 | using namespace std;
a.cc:6:20: error: expected primary-expression before 'char'
    6 |         vector<set<char>> table;
      |                    ^~~~
a.cc:7:9: error: 'table' was not declared in this scope; did you mean 'mutable'?
    7 |         table.resize('z' - 'a' + 1);
      |         ^~~~~
      |         mutable
a.cc:12:17: error: 'cout' was not declared in this scope
   12 |                 cout << "No" << endl;
      |                 ^~~~
a.cc:12:17: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:12:33: error: 'endl' was not declared in this scope
   12 |                 cout << "No" << endl;
      |                                 ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | using namespace std;
a.cc:15:9: error: 'cout' was not declared in this scope
   15 |         cout << "Yes" << endl;
      |         ^~~~
a.cc:15:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:15:26: error: 'endl' was not declared in this scope
   15 |         cout << "Yes" << endl;
      |                          ^~~~
a.cc:15:26: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

#include <string>
#include <set>

using namespace std;

int main() {
	string s, t;
	cin >> s >> t;
	int cnt[2][30];
	for (int i = 0; i < 30; i++)cnt[0][i] = cnt[1][i] = 0;
	for (auto e : s) cnt[0][e - 'a']++;
	for (auto e : t) cnt[1][e - 'a']++;
	multiset<int> c[2];
	for (int i = 0; i < 2; i++)for (auto e : cnt[i])c[i].insert(e);
	if (c[0] == c[1]) cout << "Yes" << endl;
	else cout << "No" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: 'cin' was not declared in this scope
    8 |         cin >> s >> t;
      |         ^~~
a.cc:3:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    2 | #include <set>
  +++ |+#include <iostream>
    3 | 
a.cc:15:27: error: 'cout' was not declared in this scope
   15 |         if (c[0] == c[1]) cout << "Yes" << endl;
      |                           ^~~~
a.cc:15:27: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:15:44: error: 'endl' was not declared in this scope
   15 |         if (c[0] == c[1]) cout << "Yes" << endl;
      |                                            ^~~~
a.cc:3:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    2 | #include <set>
  +++ |+#include <ostream>
    3 | 
a.cc:16:14: error: 'cout' was not declared in this scope
   16 |         else cout << "No" << endl;
      |              ^~~~
a.cc:16:14: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:16:30: error: 'endl' was not declared in this scope
   16 |         else cout << "No" << endl;
      |                              ^~~~
a.cc:16:30: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

#include <bits/stdc++.h>
using namespace std;
const int maxn = 456789;
int u[maxn];
int find(int x){
	if(x == u[x]) return x;
  	return u[x] = find(u[x]);
}
int main(){
  iota(u, u + maxn);
  string s, t; cin >> s >> t;
  int len = s.size();
  for(int i = 0; i < len; i++){
  	u[find(s[i])] = find(t[i] + 300);
  }
  set<int> k;
  for(int i = 0; i < len; i++) k.insert(t[i] + 300);
  for(auto u : k){
  	for(auto v : k){
    	if(u == v) continue;
      	if(find(u) == find(v)){
          cout << "No" << endl;
          return 0;
        }
    }
  }
  cout << "Yes" << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:7: error: no matching function for call to 'iota(int [456789], int*)'
   10 |   iota(u, u + maxn);
      |   ~~~~^~~~~~~~~~~~~
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:88:5: note: candidate: 'template<class _ForwardIterator, class _Tp> void std::iota(_ForwardIterator, _ForwardIterator, _Tp)'
   88 |     iota(_ForwardIterator __first, _ForwardIterator __last, _Tp __value)
      |     ^~~~
/usr/include/c++/14/bits/stl_numeric.h:88:5: note:   candidate expects 3 arguments, 2 provided
Language: C++

#include<iostream>
#include<string>
#include<vector>
#include<algorithm>
#include<map>
#include<set>
#include<cstdio>
#include<cmath>
#define repp(i,a,b) for(int i=(int)a;i<(int)b;++i)
#define repm(i,a,b) for(int i=(int)a;i>(int)b;--i)
using ll=long long;
static const ll mod = 1e9;
static const ll INF = 1LL << 50;
using namespace std;

int main() {
	string s, t;
	bool flag = true;
	cin >> s >> t;
	s.push_back('{');
	t.push_back('{');
	vector<int>counts(s.size(), 0), countt(t.size(), 0);
	int j = 0;
	repp(i, 0, s.size() - 1) {
		if (s[i] == s[i + 1])++counts[j];
		else ++j;
	}
	int k = 0;
	repp(i, 0, t.size() - 1) {
		if (t[i] == t[i + 1])++countt[k];
		else ++k;
	}
	repp(i, 0, countt.size()) {
		if (counts[i] != countt[i])flag = false;
	}repp(i, 0, counts.size()) {
		counts[i] = 0; countt[i] = 0;
	}
	sort(s.begin(), s.end()); sort(t.begin(), t.end());
	j = 0, k = 0;
	repp(i, 0, s.size() - 1) {
		#include<iostream>
#include<string>
#include<vector>
#include<algorithm>
#include<map>
#include<set>
#include<cstdio>
#include<cmath>
#define repp(i,a,b) for(int i=(int)a;i<(int)b;++i)
#define repm(i,a,b) for(int i=(int)a;i>(int)b;--i)
using ll=long long;
static const ll mod = 1e9;
static const ll INF = 1LL << 50;
using namespace std;

int main() {
	string s, t;
	bool flag = true;
	int types = 0, typet = 0;
	cin >> s >> t;
	s.push_back('{');
	t.push_back('{');
	vector<int>counts(s.size(),0),countt(t.size(),0);
	int j = 0;
	repp(i, 0,s.size() - 1) {
		if (s[i] == s[i + 1])++counts[j];
		else ++j;
	}
	int k = 0;
	repp(i, 0, t.size() - 1) {
		if (t[i] == t[i + 1])++countt[k];
		else ++k;
	}
	repp(i, 0, countt.size()) {
		if (counts[i] != countt[i])flag = false;
	}repp(i, 0, counts.size()) {
		counts[i] = 0; countt[i] = 0;
	}
	sort(s.begin(), s.end()); sort(t.begin(), t.end());
	j = 0,k=0;
	repp(i, 0, s.size() - 1) {
		if (s[i] != s[i + 1])++types;
		if (s[i] == s[i + 1])++counts[j];
		else ++j;
	}
	repp(i, 0, t.size() - 1) {
		if (t[i] != t[i + 1])++typet;
		if (t[i] == t[i + 1])++countt[k];
		else ++k;
	}
	repp(i, 0, countt.size()) {
		if (counts[i] != countt[i])flag = false;
	}
	if (typet != types)flag = false;
	if (flag)cout << "Yes" << endl;
	else cout << "No" << endl;
	return  0;
}

		if (s[i] == s[i + 1])++counts[j];
		else ++j;
	}
	repp(i, 0, t.size() - 1) {
		if (t[i] == t[i + 1])++countt[k];
		else ++k;
	}
	repp(i, 0, countt.size()) {
		if (counts[i] != countt[i])flag = false;
	}
	if (flag)cout << "Yes" << endl;
	else cout << "No" << endl;
	return  0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:56:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
   56 | int main() {
      |         ^~
a.cc:56:9: note: remove parentheses to default-initialize a variable
   56 | int main() {
      |         ^~
      |         --
a.cc:56:9: note: or replace parentheses with braces to value-initialize a variable
a.cc:56:12: error: a function-definition is not allowed here before '{' token
   56 | int main() {
      |            ^
Language: C++

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

using namespace std;

const int max = 200000;

int main() {
	char s[max], t[max];
	cin >> s >> t;

	int len = strlen(s);

	for (int i = 0; i < len;i++) {
		if (strcmp(s, t) == 0) {
			cout << "Yes" << endl;
			return 0;
		}
		
		char sC = s[i];
		char tC = t[i];

		if (sC == tC) {
			continue;
		}

		for (int j = i; j < len;j++) {
			if (s[j] == sC) {
				s[j] = tC;
			}
		}
	}

	cout << "No" << endl;

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:16: error: reference to 'max' is ambiguous
    9 |         char s[max], t[max];
      |                ^~~
In file included from /usr/include/c++/14/string:51,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: candidates are: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
  303 |     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:257:5: note:                 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
  257 |     max(const _Tp& __a, const _Tp& __b)
      |     ^~~
a.cc:6:11: note:                 'const int max'
    6 | const int max = 200000;
      |           ^~~
a.cc:9:24: error: reference to 'max' is ambiguous
    9 |         char s[max], t[max];
      |                        ^~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: candidates are: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
  303 |     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:257:5: note:                 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
  257 |     max(const _Tp& __a, const _Tp& __b)
      |     ^~~
a.cc:6:11: note:                 'const int max'
    6 | const int max = 200000;
      |           ^~~
a.cc:10:16: error: 's' was not declared in this scope
   10 |         cin >> s >> t;
      |                ^
a.cc:10:21: error: 't' was not declared in this scope; did you mean 'tm'?
   10 |         cin >> s >> t;
      |                     ^
      |                     tm
Language: C++

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

using namespace std;

const int max = 200000;

int main() {
	char s[max], t[max];
	cin >> s >> t;

	int len = strlen(s);

	for (int i = 0; i < len;i++) {
		if (strcmp(s, t) == 0) {
			cout << "Yes" << endl;
			return 0;
		}
		
		char sC = s[i];
		char tC = t[i];

		if (sC == tC) {
			continue;
		}

		for (int j = i; j < len;j++) {
			if (s[j] == sC) {
				s.replace(j, 0, ""+tC);
			}
		}
	}

	cout << "No" << endl;

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:16: error: reference to 'max' is ambiguous
    9 |         char s[max], t[max];
      |                ^~~
In file included from /usr/include/c++/14/string:51,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: candidates are: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
  303 |     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:257:5: note:                 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
  257 |     max(const _Tp& __a, const _Tp& __b)
      |     ^~~
a.cc:6:11: note:                 'const int max'
    6 | const int max = 200000;
      |           ^~~
a.cc:9:24: error: reference to 'max' is ambiguous
    9 |         char s[max], t[max];
      |                        ^~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: candidates are: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
  303 |     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:257:5: note:                 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
  257 |     max(const _Tp& __a, const _Tp& __b)
      |     ^~~
a.cc:6:11: note:                 'const int max'
    6 | const int max = 200000;
      |           ^~~
a.cc:10:16: error: 's' was not declared in this scope
   10 |         cin >> s >> t;
      |                ^
a.cc:10:21: error: 't' was not declared in this scope; did you mean 'tm'?
   10 |         cin >> s >> t;
      |                     ^
      |                     tm
Language: C++

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

using namespace std;

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

	int len = s.length;

	for (int i = 0; i < len;i++) {
		
		if (s._Equal(t)) {
			cout << "Yes" << endl;
			return 0;
		}
		
		char sC = s[i];
		char tC = t[i];

		if (sC == tC) {
			continue;
		}

		for (int j = i; j < len;j++) {
			if (s[j] == sC) {
				s.replace(j, 0, ""+tC);
			}
		}
	}

	cout << "No" << endl;

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:21: error: cannot convert 'std::__cxx11::basic_string<char>::length' from type 'std::__cxx11::basic_string<char>::size_type (std::__cxx11::basic_string<char>::)() const noexcept' {aka 'long unsigned int (std::__cxx11::basic_string<char>::)() const noexcept'} to type 'int'
   10 |         int len = s.length;
      |                     ^~~~~~
a.cc:14:23: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named '_Equal'
   14 |                 if (s._Equal(t)) {
      |                       ^~~~~~
Language: C

package main

import (
	"fmt"
)

func main() {
	var S, T string
	fmt.Scan(&S, &T)
	sm := map[string][]string{}
	tm := map[string][]string{}
	for i := 0; i < len(S); i++ {
		sm[S[i:i+1]] = append(sm[S[i:i+1]], T[i:i+1])
		tm[T[i:i+1]] = append(tm[T[i:i+1]], S[i:i+1])
	}
	for _, v := range sm {
		if len(v) > 1 {
			w := v[0]
			for i := 1; i < len(v); i++ {
				if w != v[i] {
					fmt.Println("No")
					return
				}
			}
		}
	}
	for _, v := range tm {
		if len(v) > 1 {
			w := v[0]
			for i := 1; i < len(v); i++ {
				if w != v[i] {
					fmt.Println("No")
					return
				}
			}
		}
	}
	fmt.Println("Yes")
}

Compiler output:
main.c:1:1: error: unknown type name 'package'
    1 | package main
      | ^~~~~~~
main.c:3:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'import'
    3 | import (
      | ^~~~~~
Language: C++

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

int main() {
    string S, T;
    cin >> S >> T;
    int N = (int)S.size();
    vector<int> s(26), t(26);
    for (int i = 0; i < N; i++) {
        s[S[i] - 'a']++;
        t[T[i] - 'a']++;
    }
    sort(s.begin(), s.end());
    sort(t.begin(), t.end());
    for (int i = 0; i < 26; 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:14:5: error: 'sort' was not declared in this scope; did you mean 'short'?
   14 |     sort(s.begin(), s.end());
      |     ^~~~
      |     short
Language: C++

#include <iostream>
#include <vector>
#include <map>

std::map<char, char> m;
std::map<char, char> w;
std::string s, t;
bool all_same = true;
int main() {
    std::cin >> s >> t;
    for (int i = 0; i < t.size(); i++) {
        auto g = w[s[i]];
        auto p = m[t[i]];
        if (p == '\0') {
            m[t[i]] = s[i];
        }
        if (g = '\0') {
            w[s[i]] = t[i];
        }
        if (p != '\0' && (p != s[i] || g != t[i]) {
            std::cout << "No" << std::endl;
            return 0;
        }
    }
    std::cout << "Yes" << std::endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:20:50: error: expected ')' before '{' token
   20 |         if (p != '\0' && (p != s[i] || g != t[i]) {
      |            ~                                     ^~
      |                                                  )
a.cc:24:5: error: expected primary-expression before '}' token
   24 |     }
      |     ^
Language: C++

#include <iostream>
#include <vector>
#include <map>

using namespace std;

int main(){
  string s, t;
  cin >> s >> t;
  
  int length = s.length();
  
  map<pair<char , char>,int> enigma;
  for(int i = 0; i < length; i++){
  //if(s[i] == t[i]) continue;
  pair<char , char> p;
  p = make_pair(s[i],t[i]);
  enigma[p]++;
  }
  
  string atoz = "abcdefghijklmnopqrstuvwxyz";
  
  int f = 0;
  
  for(int i = 0; i < atoz.length(); i++){
    for(int j = 0; j < atoz.length(); j++){
      //if(i == j) continue;
      pair<char, char> p, q, pp, qq;
      p = make_pair(atoz[i], atoz[j]);
      pp = make_pair(atoz[i], atoz[i]);
      q = make_pair(atoz[j], atoz[i]);
      qq = make_pair(atoz[j], atoz[j]);
      if(enigma.count(p) == 0) continue;
      //cout << enigma[p] << " ";
      if((enigma[p] + enigma[q]) % 2 != 0 && (enigma[p] + enigma[q]) != 1) f = 1;
      else if(eniguma.count(pp) > 0 || eniguma.count(qq) > 0) f = 1;
    }
  }
  if(f) cout << "No";
  else cout << "Yes";
}


Compiler output:
a.cc: In function 'int main()':
a.cc:36:15: error: 'eniguma' was not declared in this scope; did you mean 'enigma'?
   36 |       else if(eniguma.count(pp) > 0 || eniguma.count(qq) > 0) f = 1;
      |               ^~~~~~~
      |               enigma
Language: C++

#include <iostream>
#include <vector>
#include <map>

using namespace std;

int main(){
  string s, t;
  cin >> s >> t;
  
  int length = s.length();
  
  map<pair<char , char>,int> enigma;
  for(int i = 0; i < length; i++){
  if(s[i] == t[i]) continue;
  pair<char , char> p;
  p = make_pair(s[i],t[i]);
  enigma[p]++;
  }
  
  string atoz = "abcdefghijklmnopqrstuvwxyz";
  
  int f = 0;
  
  for(int i = 0; i < atoz.length(); i++){
    for(int j = 0; j < atoz.length(); j++){
      //if(i == j) continue;
      pair<char, char> p, q, pp, qq;
      p = make_pair(atoz[i], atoz[j]);
      pp = make_pair(atoz[i], atoz[i]);
      q = make_pair(atoz[j], atoz[i]);
      qq = make_pair(atoz[j], atoz[j]);
      if(enigma.count(p) == 0) continue;
      //cout << enigma[p] << " ";
      if((enigma[p] + enigma[q]) % 2 != 0 && (enigma[p] + enigma[q]) != 1) f = 1;
      else if(eniguma.count(pp) > 0 || eniguma.count(qq) > 0) f = 1;
    }
  }
  if(f) cout << "No";
  else cout << "Yes";
}


Compiler output:
a.cc: In function 'int main()':
a.cc:36:15: error: 'eniguma' was not declared in this scope; did you mean 'enigma'?
   36 |       else if(eniguma.count(pp) > 0 || eniguma.count(qq) > 0) f = 1;
      |               ^~~~~~~
      |               enigma
Language: C++

#include <iostream>
#include <vector>
#include <map>

using namespace std;

int main(){
  string s, t;
  cin >> s >> t;
  
  int length = s.length;
  
  map<pair<char , char>,int> enigma;
  for(int i = 0; i < length; i++){
  if(s[i] == t[i]) continue;
  pair<char , char> p;
  p = make_pair(s[i],t[i]);
  enigma[p]++;
  }
  
  string atoz = "abcdefghijklmnopqrstuvwxyz";
  
  int f = 0;
  
  for(int i = 0; i < atoz.length(); i++){
    for(int j = 0; j < atoz.length(); j++){
      if(i == j) continue;
      pair<char, char> p;
      p = make_pair(atoz[i], atoz[j]);
      if(enigma.count(p) == 0) continue;
      if(enigma[p] % 2 != 0 && enigma[p] != 1) f = 1;
    }
  }
  if(f) cout << "Yes";
  else cout << "No";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:18: error: cannot convert 'std::__cxx11::basic_string<char>::length' from type 'std::__cxx11::basic_string<char>::size_type (std::__cxx11::basic_string<char>::)() const noexcept' {aka 'long unsigned int (std::__cxx11::basic_string<char>::)() const noexcept'} to type 'int'
   11 |   int length = s.length;
      |                  ^~~~~~
Language: C++

#include <bits/stdc++.h>

using namespace std;

#define int long long
#define MOD 1000000007

#define FOR(i, a, b) for (int i = (a); i < (b); i++)
#define RFOR(i, a, b) for (int i = (b)-1; i >= (a); i--)
#define rep(i, n) for (int i = 0; i < (n); i++)
#define rep1(i, n) for (int i = 1; i < (n); i++)
#define rrep(i, n) for (int i = (n)-1; i >= 0; i--)
#define all(i) (i).begin(), (i).end() å
#define rall(i) (i).begin(), (i).end(), greater<int>()

#define elif else if
#define eb emplace_back
#define pb push_back
#define mp make_pair
#define fst first
#define sec second
template <typename T>
void print(T x)
{
    std::cout << x << '\n';
}

//typedef long long ll;
#define TENNINE 1000000005
#define TENFIVE 100005
//#define int long long

string S, T;

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

    map<char, set<int>> index;

    rep(i,S.size()){
        index[S[i]].insert(i);
    }

    unorderd_set<char> temp;

    rep(i,S.size()){
        if(S[i]!=T[i]){
            if(temp.find(S[i])==temp.end()){
                temp.insert(S[i]);
            }
            else{
                break;
            }
            
            int t=T[i];
            int s=S[i];
            for(auto x:index[S[i]]){
                S[x]=t;
            }
            for(auto x:index[T[i]]){
                T[x]=s;
            }
        }
    }

    if(S==T){
        cout <<"Yes"<<endl;
    }
    else{
        cout<<"No"<<endl;
    }


    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:45:5: error: 'unorderd_set' was not declared in this scope
   45 |     unorderd_set<char> temp;
      |     ^~~~~~~~~~~~
a.cc:45:18: error: expected primary-expression before 'char'
   45 |     unorderd_set<char> temp;
      |                  ^~~~
a.cc:49:16: error: 'temp' was not declared in this scope; did you mean 'tm'?
   49 |             if(temp.find(S[i])==temp.end()){
      |                ^~~~
      |                tm
Language: C++

#include <iostream>
#include <map>
#include <vector>
#include <string>
#include <algorithm>

using namespace std;

#define INF 1e9
#define ll long long
#define vi vector<int>
#define vll vector<long long>
#define rep(i,n) for(int i=0, i##_len=(n); i<i##_len; ++i)

string S, T;
map<int, int> MP_S, MP_T;
vi S_cnt,T_cnt;

bool compare(){
    if(S_cnt.size()!=T_cnt.size())
        return false;

    rep(i, S_cnt.size())
        if(S_cnt[i]!=T_cnt[i]) return false;

    return true;
}

void solve(){
    rep(i, S.size())
        MP_S[S[i]]++;

    for(auto itr=MP_S.begin(); itr!=MP_S.end(); itr++)
        S_cnt.push_back(itr->second);

    sort(S_cnt.begin(), S_cnt.end());

    rep(i, T.size())
        MP_T[T[i]]++;

    for(auto itr=MP_T.begin(); itr!=MP_T.end(); itr++)
        T_cnt.push_back(itr->second);



Compiler output:
a.cc: In function 'void solve()':
a.cc:42:38: error: expected '}' at end of input
   42 |         T_cnt.push_back(itr->second);
      |                                      ^
a.cc:29:13: note: to match this '{'
   29 | void solve(){
      |             ^