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

#include<iostream>
#include<string>
#include<vector>
#include<cmath>
#include<cstdio>
#include<utility>
using namespace std;
#define rep(i,x,n) for(int i=x;i<n;i++)
#define all(L) L.begin(),L.end()
using ll=long long;
#define RO 1
#define SI 2
#define PA 3

int N,M;
string S,T;

void dfs(int m,int bits,int &count){
    if(m>N) return;
    if(bits==0b111) count++;
    dfs(10*m+7,bits|0b100,count);
    dfs(10*m+5,bits|0b010,count);
    dfs(10*m+3,bits|0b001,count);
}

int main(){
    cin>>S>>T;
    bool flag=true;
    int n=S.size();
    vector<char> al(26,'!');
    rep(i,0,n){
        if(al[S[i]-'a']=='!') al[S[i]-'a']=T[i];
        else if((al[S[i]-'a']!='!')&&al[S[i]-'a']!=T[i]){
            flag=false;break;
        }
    }
    vector<char> al(26,'!');
    rep(i,0,n){
        if(al[T[i]-'a']=='!') al[T[i]-'a']=S[i];
        else if((al[T[i]-'a']!='!')&&al[T[i]-'a']!=S[i]){
            flag=false;break;
        }
    }    
    if(flag) cout<<"Yes"<<endl;
    else cout<<"No"<<endl;
}    



Compiler output:
a.cc: In function 'int main()':
a.cc:37:18: error: redeclaration of 'std::vector<char> al'
   37 |     vector<char> al(26,'!');
      |                  ^~
a.cc:30:18: note: 'std::vector<char> al' previously declared here
   30 |     vector<char> al(26,'!');
      |                  ^~
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define int long long
signed main(){
    string S, T;
    cin >> S >> T;
    unordered_map<char,int> a = {0};
    unordered_map<char,int> b;
    string t, s;
    for(int i = 0;i < S.length();i++){
        a[S[i]]++;
        b[T[i]]++;
    }
    for(int i = 0;i < S.length();i++){
        s += a[S[i]];
    }

    for(int i = 0;i < S.length();i++){
        t += b[T[i]];
    }

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:35: error: converting to 'std::unordered_map<char, long long int>' from initializer list would use explicit constructor 'std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::unordered_map(size_type, const hasher&, const key_equal&, const allocator_type&) [with _Key = char; _Tp = long long int; _Hash = std::hash<char>; _Pred = std::equal_to<char>; _Alloc = std::allocator<std::pair<const char, long long int> >; size_type = long unsigned int; hasher = std::hash<char>; key_equal = std::equal_to<char>; allocator_type = std::allocator<std::pair<const char, long long int> >]'
    7 |     unordered_map<char,int> a = {0};
      |                                   ^
In file included from /usr/include/c++/14/unordered_map:41,
                 from /usr/include/c++/14/functional:63,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:53,
                 from a.cc:1:
/usr/include/c++/14/bits/unordered_map.h:158:7: note: 'std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::unordered_map(size_type, const hasher&, const key_equal&, const allocator_type&) [with _Key = char; _Tp = long long int; _Hash = std::hash<char>; _Pred = std::equal_to<char>; _Alloc = std::allocator<std::pair<const char, long long int> >; size_type = long unsigned int; hasher = std::hash<char>; key_equal = std::equal_to<char>; allocator_type = std::allocator<std::pair<const char, long long int> >]' declared here
  158 |       unordered_map(size_type __n,
      |       ^~~~~~~~~~~~~
Language: C++

#include <bits/stdc++.h>
#define rep(i, a) for(auto i=0; i<a; i++)
#define rep1(i, a, b) for(auto i=a; i<b; i++)
#define p_b push_back
using namespace std;
typedef long long ll;
typedef vector<ll> vi;
typedef vector<vi> vvi;

int main() {
    string a, b;
	cin>>c>>b;
	vi v(30, -1);
	rep(i, a.length()){
		if(v[a[i]-'a']==-1 && v[b[i] - 'a']==-1){
			v[a[i] - 'a'] = b[i] - 'a';
			v[b[i] - 'a'] = a[i] - 'a';
		}
		if(v[a[i] - 'a'] != v[b[i] - 'a']){
			cout<<"No";
			return;
		}
	}
	cout<<"Yes";
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:14: error: 'c' was not declared in this scope
   12 |         cin>>c>>b;
      |              ^
a.cc:21:25: error: return-statement with no value, in function returning 'int' [-fpermissive]
   21 |                         return;
      |                         ^~~~~~
Language: C++

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

#define ll long long
#define ld long double
#define rep(i, n) for(int i = 0; i < (int)(n); i++)
#define PI 3.14159265358979323846
#define sz(x) ((int)(x).size())

const int INF = 1e9;
const int MOD = 1e9 + 7;
const ll LINF = 1e18;
int main()
{
    string s,t;
    cin >> s >> t;
    map<char,char> stot;
    int len = sz(s);
    for (int i = 0; i < len; i++)
    {
        if(stot.count(s[i]))
        {
            if (stot[s[i]]!=t[i])
            {
                cout << "No" << endl;
                return 0;
            }
            continue;
        }

        stot[s[i]] = t[i];
    }
    map<char, char> ttos;
    for (int i = 0; i < len; i++)
    {
        if (ttos.count(t[i]))
        {
            if (ttos[t[i]] != s[i])
            {
                cout << "No" << endl;
                return 0;
            }
            continue;
        }

        _LIBCPP_METHOD_TEMPLATE_IMPLICIT_INSTANTIATION_VIS[t[i]] = s[i];
    }

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

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

#include <bits/stdc++.h>
#define rep(i, n) for(int i = 0; i < n; ++i)
#define rrep(i, n) for(int i = n-1; i >= 0; --i)
#define fi first
#define se second
using namespace std;
using lint = long long;
using uint = unsigned int;
using ulint = unsigned long long;
using ldouble = long double;
using pii = pair<int, int>;
using pli = pair<lint, lint>;
using pdd = pair<double, double>;
using pld = pair<ldouble, ldouble>;
using v1i = vector<int>;
using v1li = vector<lint>;
using v2i = vector<vector<int>>;
using v2li = vector<vector<lint>>;
using v3i = vector<vector<vector<int>>>;
using v3li = vector<vector<vector<lint>>>;
using v1b = vector<bool>;
using v2b = vector<vector<bool>>;
using v3b = vector<vector<vector<bool>>>;
using v1c = vector<char>;
using v2c = vector<vector<char>>;
using v3c = vector<vector<vector<char>>>;
constexpr lint mod1 = 1e9+7;

int main() {
  string s, t;
  cin >> s >> t;
  v2c v(26);
  unordered_set<char> a, b;
  vector<pair<char, char>> e;
  bool c = 1;
  rep(i, s.size()){
    bool d = 1;
    rep(j, v[s[i]-'a'].size()){
      if(v[s[i]-'a'][j] == t[i]){
        d = 0;
        break;
      }
    }
    if(d) v[s[i]-'a'].push_back(t[i]);
  }
  rep(i, 26){
    if(v[i].size() > 1){
      c = 0;
      break;
    }
  }
  if(c){
    rep(i, 26) if(v[i].size() > 0) e.push_back(v[i][0], (char)('a'+i));
    sort(e.begin(), e.end());
    int f = 1;
    rep(i, e.size()){
      if(i < e.size()-1 && e[i].fi == e[i+1].fi) ++f;
      else f = 1;
      if(a.count(e[i].fi)) --f;
      if(f > 1){
        c = 0;
        break;
      }
    }
  }
  if(c) cout << "Yes" << endl;
  else cout << "No" << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:53:47: error: no matching function for call to 'std::vector<std::pair<char, char> >::push_back(__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type&, char)'
   53 |     rep(i, 26) if(v[i].size() > 0) e.push_back(v[i][0], (char)('a'+i));
      |                                    ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/vector:66,
                 from /usr/include/c++/14/functional:64,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:53,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_vector.h:1283:7: note: candidate: 'void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = std::pair<char, char>; _Alloc = std::allocator<std::pair<char, char> >; value_type = std::pair<char, char>]'
 1283 |       push_back(const value_type& __x)
      |       ^~~~~~~~~
/usr/include/c++/14/bits/stl_vector.h:1283:7: note:   candidate expects 1 argument, 2 provided
/usr/include/c++/14/bits/stl_vector.h:1300:7: note: candidate: 'void std::vector<_Tp, _Alloc>::push_back(value_type&&) [with _Tp = std::pair<char, char>; _Alloc = std::allocator<std::pair<char, char> >; value_type = std::pair<char, char>]'
 1300 |       push_back(value_type&& __x)
      |       ^~~~~~~~~
/usr/include/c++/14/bits/stl_vector.h:1300:7: note:   candidate expects 1 argument, 2 provided
Language: C++

int main()
{
    string s,t;
    cin>>s>>t;
cout<<"Yes"<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:3:5: error: 'string' was not declared in this scope
    3 |     string s,t;
      |     ^~~~~~
a.cc:4:5: error: 'cin' was not declared in this scope
    4 |     cin>>s>>t;
      |     ^~~
a.cc:4:10: error: 's' was not declared in this scope
    4 |     cin>>s>>t;
      |          ^
a.cc:4:13: error: 't' was not declared in this scope
    4 |     cin>>s>>t;
      |             ^
a.cc:5:1: error: 'cout' was not declared in this scope
    5 | cout<<"Yes"<<endl;
      | ^~~~
a.cc:5:14: error: 'endl' was not declared in this scope
    5 | cout<<"Yes"<<endl;
      |              ^~~~
Language: C++

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

int main() {
  string s, t;
  cin >> s >> t;
  vector<unordered_set<char>> v(26);
  bool b = 1;
  rep(i, s.size()) v[s[i]-'a'].insert(t[i]);
  rep(i, 26){
    if(v[i].size() > 1){
      b = 0;
      break;
  }
  if(b) cout << "Yes" << endl;
  else cout << "No" << endl;
  return 0;
}

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

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

int main(){
    string s, t; cin >> s >> t;
    vector<int> salpha(26, 0), talpha(26, 0);
    for(int i = 0; i < s.size(); i++){
        salpha[s[i]-'a']++;
        talpha[t[i]-'a']++;
    }
    vector<int> lis1(3*1e5, 0), lis2(3*1e5, 0);
    for(int i = 0; i < 26; i++){
        lis1[salpha[i]]++;
        lis2[talpha[i]]++;
    }
    for(int i = 0; i < lis1.size(); i++){
        if(!(lis1[i] == lis2[i])){
            cout << "No" << endl;
            retrun 0;
        }
    }
    cout << "Yes" << endl;
    return 0;
}
  

Compiler output:
a.cc: In function 'int main()':
a.cc:20:13: error: 'retrun' was not declared in this scope
   20 |             retrun 0;
      |             ^~~~~~
Language: C++

#include "pch.h"
#include <iostream>
#include <string>
#include <map>
#include <set>
#include <vector>

using namespace std;

map<char, vector<int> > SerchChractorIndex(const string &s)
{
  map<char, vector<int> > chara_indexs;
  set<int> ignore_indexs;

  for (int i = 0; i < s.size(); ++i)
  {
    //探索済みの文字は調べない
    if (chara_indexs.count(s[i]) != 0) continue;

    vector<int> indexs;
    for (int j = 0; j < s.size(); ++j)
    {
      //すでに探索済みのindexは見ない
      if (ignore_indexs.count(j) != 0) continue;

      if (s[i] == s[j])
      {
        indexs.push_back(j);
        ignore_indexs.insert(j);
      }
    }
    chara_indexs.insert(make_pair(s[i], indexs));
    delete &indexs;
  }
  ignore_indexs.clear();
  return chara_indexs;
}

void C_110()
{
  string S, T;
  cin >> S >> T;

  //map<char, vector<int> > S_chraIndexs;
  //set<int> ignore_indexs;
  //for (int i = 0; i < S.size(); ++i)
  //{
  //  //探索済みの文字は調べない
  //  if (S_chraIndexs.count(S[i]) != 0) continue;
  //  
  //  vector<int> indexs;
  //  for (int j = 0; j < S.size(); ++j)
  //  {
  //    //すでに探索済みのindexは見ない
  //    if (ignore_indexs.count(j) != 0) continue;

  //    if (S[i] == S[j])
  //    {
  //      indexs.push_back(j);
  //      ignore_indexs.insert(j);
  //    }
  //  }
  //  S_chraIndexs.insert(make_pair(S[i], indexs));
  //  delete &indexs;
  //}

  //map<char, vector<int> > T_chraIndexs;
  //ignore_indexs.clear();
  //for (int i = 0; i < T.size(); ++i)
  //{
  //  //探索済みの文字は調べない
  //  if (T_chraIndexs.count(T[i]) != 0) continue;

  //  vector<int> indexs;
  //  for (int j = 0; j < T.size(); ++j)
  //  {
  //    //すでに探索済みのindexは見ない
  //    if (ignore_indexs.count(j) != 0) continue;

  //    if (T[i] == T[j])
  //    {
  //      indexs.push_back(j);
  //      ignore_indexs.insert(j);
  //    }
  //  }
  //  T_chraIndexs.insert(make_pair(T[i], indexs));
  //  delete &indexs;
  //  delete &ignore_indexs;
  //}

  map<char, vector<int> > S_chraIndexs = SerchChractorIndex(S);
  map<char, vector<int> > T_chraIndexs = SerchChractorIndex(T);

  bool flag = false;
  for (auto itr_S = S_chraIndexs.begin(); itr_S != S_chraIndexs.end(); ++itr_S)
  {
    for (auto itr_T = T_chraIndexs.begin(); itr_T != T_chraIndexs.end(); ++itr_T)
    {
      if (itr_S->second == itr_T->second) 
      {
        flag = true;
        break;
      }
    }

    if(flag == false)
    {
      cout << "NO" << endl;
      return;
    }
    else flag = false;

  }
  cout << "YES" << endl;
  return ;
}

int main()
{
  C_110();
  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 <bits/stdc++.h>
using namespace std;

int main(){
  string S,T;
  cin>>S>>T;
  
  bool flag=true;
  int n=S.size()
  for(int i=0;i<n-1;i++){
    int a=i;
    while(S.at(i)==S.at(i+1)){
      i++;
      if(i==n-1){
        break;
      }
    }
    int b=i;
    for(int j=a;j<b;j++){
      if(T.at(j)!=T.at(j+1)){
        flag=false;
        break;
      }
    }
    
    if(!flag){
      break;
    }
  }
  
  if(flag){
    cout<<"Yes"<<endl;
  }else{
    cout<<"No"<<endl;
  }
}
        
      

Compiler output:
a.cc: In function 'int main()':
a.cc:10:3: error: expected ',' or ';' before 'for'
   10 |   for(int i=0;i<n-1;i++){
      |   ^~~
a.cc:10:15: error: 'i' was not declared in this scope
   10 |   for(int i=0;i<n-1;i++){
      |               ^
Language: C++

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

vector<int> a(n),b(n);

int main()
{
  string s,t;
  cin>>s>>t;
  for(auto i:s)
    a[i-'a']++;
  for(auto i:t)
    b[i-'a']++;
  if(a==b)
    cout<<"Yes";
  else
    cout<<"No";
  
  
  return 0;
}

Compiler output:
a.cc:4:15: error: 'n' was not declared in this scope; did you mean 'yn'?
    4 | vector<int> a(n),b(n);
      |               ^
      |               yn
a.cc:4:20: error: 'n' was not declared in this scope; did you mean 'yn'?
    4 | vector<int> a(n),b(n);
      |                    ^
      |                    yn
Language: C++

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

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

    vector<pair<char, char>> st;
    rep(i, s.size()){
        st.push_back(make_pair(t.at(i), s.at(i)));
    }
    sort(st.begin(), st.end());

    for(ll i=0; i<s.size()-1; i++){
        if(st.at(i).first == st.at(i+1).first){
            if(st.at(i).second == st.at(i+1).second) continue;
            else {
                cout << "No" << endl;
                return 0;
            }
        }
    }

    cout << "Yes" << endl;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:3:23: error: 'longlong' was not declared in this scope
    3 | #define rep(i, N) for(longlong i=0; i<N; i++)
      |                       ^~~~~~~~
a.cc:11:5: note: in expansion of macro 'rep'
   11 |     rep(i, s.size()){
      |     ^~~
a.cc:11:9: error: 'i' was not declared in this scope
   11 |     rep(i, s.size()){
      |         ^
a.cc:3:37: note: in definition of macro 'rep'
    3 | #define rep(i, N) for(longlong i=0; i<N; i++)
      |                                     ^
Language: C++

include <bits/stdc++.h>
#define rep(i,n) for(int i=0;i<n;i++)
#define FOR(i,start,end) for(int i=start;i<=end;i++)
const int INF = 1001001001;
using namespace std;
typedef long long ll;

int main()
{
  char s[210000], t[210000];
  int res=0;
  cin >> s >> t;
  int dict1[26], dict2[26];

  rep(i,26) dict1[i] = -1;
  rep(i,26) dict2[i] = -1;

  rep(i,strlen(s)){
    int idx1 = s[i] - 'a';
    int idx2 = t[i] - 'a';
    if(dict1[idx1]==-1 && dict2[idx2]==-1){
      dict1[idx1] = idx2;
      dict2[idx2] = idx1;
    }
    else{
      if(dict1[idx1]!= idx2|| dict2[idx2]!=idx1){
        cout << "No" << endl;
        return 0;
      }
    }
  }

  cout << "Yes" << endl;

}


Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:12:3: error: 'cin' was not declared in this scope
   12 |   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 | include <bits/stdc++.h>
a.cc:18:9: error: 'strlen' was not declared in this scope
   18 |   rep(i,strlen(s)){
      |         ^~~~~~
a.cc:2:32: note: in definition of macro 'rep'
    2 | #define rep(i,n) for(int i=0;i<n;i++)
      |                                ^
a.cc:1:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
  +++ |+#include <cstring>
    1 | include <bits/stdc++.h>
a.cc:27:9: error: 'cout' was not declared in this scope
   27 |         cout << "No" << endl;
      |         ^~~~
a.cc:27:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:27:25: error: 'endl' was not declared in this scope
   27 |         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 | include <bits/stdc++.h>
a.cc:33:3: error: 'cout' was not declared in this scope
   33 |   cout << "Yes" << endl;
      |   ^~~~
a.cc:33:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:33:20: error: 'endl' was not declared in this scope
   33 |   cout << "Yes" << endl;
      |                    ^~~~
a.cc:33:20: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

#include <iostream>
#include <algorithm>
#include <string>
#include <cmath>
#include <cstring>
#include <cstdio>
#define mst(a,b) memset(a,b,sizeof(a))
#define rev(x) reverse(x,x+strlen(x))
using namespace std;
const int inf=1<<29;
typedef long long ll;
char s[200005],t[200005];
int main()
{
    int f=0;
    cin>>s>>t;
    mst(vis,0);
    mst(a,0);
    for(int i=0;i<strlen(s);i++){
        a[s[i]-96]=(int)(t[i]-96);
        a[t[i]-96]=(int)(s[i]-96);
        if(s[i]!=t[i]&&a[s[i]-96]!=(int)(t[i]-96)){
            printf("No\n");
            f=1;
            break;
        }
        else continue;
    }
    if(!f) printf("Yes\n");
    return 0;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:9: error: 'vis' was not declared in this scope
   17 |     mst(vis,0);
      |         ^~~
a.cc:7:25: note: in definition of macro 'mst'
    7 | #define mst(a,b) memset(a,b,sizeof(a))
      |                         ^
a.cc:18:9: error: 'a' was not declared in this scope
   18 |     mst(a,0);
      |         ^
a.cc:7:25: note: in definition of macro 'mst'
    7 | #define mst(a,b) memset(a,b,sizeof(a))
      |                         ^
Language: C++

#include <iostream>
#include <algorithm>
#include <string>
#include <cmath>
#include <cstring>
#include <cstdio>
#define mst(a,b) memset(a,b,sizeof(a))
#define rev(x) reverse(x,x+strlen(x))
using namespace std;
const int inf=1<<29;
typedef long long ll;
char s[200005],t[200005];
int vis[30],a[30];
int main()
{
    int f=0;
    cin>>s>>t;
    mst(vis,0);
    mst(a,0);
    for(int i=0;i<strlen(s);i++){
        if(s[i]!=t[i]&&vis[s[i]-96]==0){
            a[s[i]-96]=(int)(t[i]-96);
            a[t[i]-96]=(int)(s[i]-96);
            vis[s[i]-96]=1;
            vis[t[i]-96]=1;
            }
        else if(vis[s[i]-96]==1&&a[s[i]-96]!=(int)(t[i]-96){
            printf("No\n");
            f=1;
            break;
        }
        else continue;
    }
    if(!f) printf("Yes\n");
    return 0;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:27:60: error: expected ';' before '{' token
   27 |         else if(vis[s[i]-96]==1&&a[s[i]-96]!=(int)(t[i]-96){
      |                                                            ^
      |                                                            ;
a.cc:32:9: error: expected primary-expression before 'else'
   32 |         else continue;
      |         ^~~~
a.cc:31:10: error: expected ')' before 'else'
   31 |         }
      |          ^
      |          )
   32 |         else continue;
      |         ~~~~
a.cc:27:16: note: to match this '('
   27 |         else if(vis[s[i]-96]==1&&a[s[i]-96]!=(int)(t[i]-96){
      |                ^
Language: C++

#include <iostream>
#include <algorithm>
#include <string>
#include <cmath>
#include <cstring>
#include <cstdio>
#define mst(a,b) memset(a,b,sizeof(a))
#define rev(x) reverse(x,x+strlen(x))
using namespace std;
const int inf=1<<29;
typedef long long ll;
char s[200005],t[200005];
int vis[30],a[30];
int main()
{
    int f=0;
    cin>>s>>t;
    mst(vis,0);
    mst(a,0);
    for(int i=0;i<strlen(s);i++){
        if(s[i]!=t[i]&&vis[s[i]-96]==0){
            a[s[i]-96]=(int)(t[i]-96);
            a[t[i]-96]=(int)(s[i]-96);
            vis[s[i]-96]=1;
            vis[t[i]-96]=1;
            }
        else if(s[i]!=t[i]&&vis[s[i]-96]==1&&a[s[i]-96]!=(int)(t[i]-96){
            printf("No\n");
            f=1;
            break;
        }
        else continue;
    }
    if(!f) printf("Yes\n");
    return 0;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:27:72: error: expected ';' before '{' token
   27 |         else if(s[i]!=t[i]&&vis[s[i]-96]==1&&a[s[i]-96]!=(int)(t[i]-96){
      |                                                                        ^
      |                                                                        ;
a.cc:32:9: error: expected primary-expression before 'else'
   32 |         else continue;
      |         ^~~~
a.cc:31:10: error: expected ')' before 'else'
   31 |         }
      |          ^
      |          )
   32 |         else continue;
      |         ~~~~
a.cc:27:16: note: to match this '('
   27 |         else if(s[i]!=t[i]&&vis[s[i]-96]==1&&a[s[i]-96]!=(int)(t[i]-96){
      |                ^
Language: C++

#include <iostream>
#include <algorithm>
#include <string>
#include <cmath>
#include <cstring>
#include <cstdio>
#define mst(a,b) memset(a,b,sizeof(a))
#define rev(x) reverse(x,x+strlen(x))
using namespace std;
const int inf=1<<29;
typedef long long ll;
char s[200005],t[200005];
int vis[30],a[30];
int main()
{
    int f=0;
    cin>>s>>t;
    mst(vis,0);
    mst(a,0);
    for(int i=0;i<strlen(s);i++){
        if(s[i]!=t[i]&&vis[s[i]-96]==0){
            a[s[i]-96]=t[i]-96;
            a[t[i]-96]=s[i]-96;
            vis[s[i]-96]=1;
            vis[t[i]-96]=1;
        }
        else if((s[i]!=t[i]&&vis[s[i]-96]==1&&a[s[i]-96]!=a[t[i]-96])||
                (s[i]!=t[i]&&vis[s[i]-96]==1&&a[t[i]-96]!=a[s[i]-96]){
            printf("No\n");
            f=1;
            break;
        }
        else continue;
    }
    if(!f) printf("Yes\n");
    return 0;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:28:70: error: expected ';' before '{' token
   28 |                 (s[i]!=t[i]&&vis[s[i]-96]==1&&a[t[i]-96]!=a[s[i]-96]){
      |                                                                      ^
      |                                                                      ;
a.cc:33:9: error: expected primary-expression before 'else'
   33 |         else continue;
      |         ^~~~
a.cc:32:10: error: expected ')' before 'else'
   32 |         }
      |          ^
      |          )
   33 |         else continue;
      |         ~~~~
a.cc:27:16: note: to match this '('
   27 |         else if((s[i]!=t[i]&&vis[s[i]-96]==1&&a[s[i]-96]!=a[t[i]-96])||
      |                ^
Language: C++

#include<stdio.h>
#include<stdlib.h>
#include<string.h>
const int N=200005;
struct node
{
	char a;
	char b;
}stringss[N];
int inc1(const void *a, const void *b)
{
    struct node m = *(struct node *)a;
    struct node n = *(struct node *)b;
    return m.a-n.a;
}
int inc2(const void *a, const void *b)
{
    struct node m = *(struct node *)a;
    struct node n = *(struct node *)b;
    return m.b-n.b;
}
int main()
{
	char str1[N],str2[N];
	gets(str1);
	gets(str2);
	int len=strlen(str1);
	for(int i=0;i<len;i++)
	{
		stringss[i].a=str1[i];
		stringss[i].b=str2[i];
	}
	qsort(stringss,len,sizeof(struct node),inc1);
	for(int i=0;i<len;i++)
	{
		if(stringss[i].a==stringss[i+1].a&&stringss[i].b!=stringss[i+1].b)
		{
			printf("No\n");
			return 0;
		}
	}
	qsort(stringss,len,sizeof(struct node),inc2);
	for(int i=0;i<len;i++)
	{
		if(stringss[i].b==stringss[i+1].b&&stringss[i].a!=stringss[i+1].a)
		{
			printf("No\n");
			return 0;
		}
	}
	printf("Yes\n");
}

Compiler output:
a.cc: In function 'int main()':
a.cc:25:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
   25 |         gets(str1);
      |         ^~~~
      |         getw
Language: C

#include<stdio.h>
#include<stdlib.h>
#include<string.h>
const int N=200005;
struct node
{
	char a;
	char b;
}strings[N];
int inc1(const void *a, const void *b)
{
    struct node m = *(struct node *)a;
    struct node n = *(struct node *)b;
    return m.a-n.a;
}
int inc2(const void *a, const void *b)
{
    struct node m = *(struct node *)a;
    struct node n = *(struct node *)b;
    return m.b-n.b;
}
int main()
{
	char str1[N],str2[N];
	gets(str1);
	gets(str2);
	int len=strlen(str1);
	for(int i=0;i<len;i++)
	{
		strings[i].a=str1[i];
		strings[i].b=str2[i];
	}
	qsort(strings,len,sizeof(struct node),inc1);
	for(int i=0;i<len;i++)
	{
		if(strings[i].a==strings[i+1].a&&strings[i].b!=strings[i+1].b)
		{
			printf("No\n");
			return 0;
		}
	}
	qsort(strings,len,sizeof(struct node),inc2);
	for(int i=0;i<len;i++)
	{
		if(strings[i].b==strings[i+1].b&&strings[i].a!=strings[i+1].a)
		{
			printf("No\n");
			return 0;
		}
	}
	printf("Yes\n");
}

Compiler output:
main.c:9:2: error: variably modified 'strings' at file scope
    9 | }strings[N];
      |  ^~~~~~~
main.c: In function 'main':
main.c:25:9: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
   25 |         gets(str1);
      |         ^~~~
      |         fgets
Language: C++

#include <iostream>
using namespace std;
int scnt[26], tcnt[26];
int main() {
  string s, t;
  cin >> s >> t;
  for (char c = 'a'; c <= 'z'; c++) {
    for (int i = 0; i < s.length(); i++) {
      int cur = c - 'a';
      if (s.at(i) == c) scnt[cur] += 1;
      if (t.at(i) == c) tcnt[cur] += 1;
    }
  }

  sort(scnt, scnt + 26);
  sort(tcnt, tcnt + 26);
  for (int i = 0; i < 26; i++) {
    if (scnt[i] != tcnt[i]) {
      cout << "No" << endl;
      return 0;
    }
  }

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

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

#include<bits/stdc++.h>
using namespace std;
int main()
{
	int num[100005];
	string a,b;
	cin>>a>>b;
	int len=a.size();
	memset(num,-1,sizeof(num));
	for(int i=0;i<len;i++)
	{
		if(num[a[i]]==-1)
		{
			num[a[i]]=b[i];
		}
		else
		{
			if(num[a[i]]!=b[i])
			{
				cout<<"No"<<endl;
				return 0;
			}
		}
	}
	memset(num,-1,sizeof(num));
	for(int i=0;i<len;i++)
	{
		if(num[b[i]]==-1)
		{
			num[b[i]]=a[i];
		}
		else
		{
			if(num[b[i]]!=a[i])
			{
				cout<<"No"<<endl;
				return 0;
			}
		}
	}
	cout<<"Yes"<<endl;
	return 0;
}

Compiler output:
main.c:1:9: fatal error: bits/stdc++.h: No such file or directory
    1 | #include<bits/stdc++.h>
      |         ^~~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include<iostream>
#include<cstring>
#include<string>
#include<cstdlib>
using namespace std;
#define MAX 1e5+7
int num[MAX];
int main()
{    
	string stra; 
	string strb;   
	cin>>stra>>strb;  
	int len=stra.size();  
	memset(num,1,sizeof(num)); 
	for(int i=0;i<len;i++)  
	{      
		if(num[stra[i]]==1)   
		{    
			num[stra[i]]=strb[i];   
		}      
		else     
		{         
			if(num[stra[i]]!=strb[i])      
			{        
				cout<<"No"<<endl;      
				return 1;        
			}        
		}   
	}   
	memset(num,1,sizeof(num)); 
	for(int i=0;i<len;i++)  
	{     
		if(num[strb[i]]==1)    
		{     
			num[strb[i]]=stra[i];   
		}     
		else     
		{     
			if(num[strb[i]]!=stra[i])     
			{        
				cout<<"No"<<endl;    
				return 1;      
			}   
		}
	}   
	cout<<"Yes"<<endl;   
	return 0;
}

Compiler output:
a.cc:6:16: error: conversion from 'double' to 'long unsigned int' in a converted constant expression
    6 | #define MAX 1e5+7
      |             ~~~^~
a.cc:7:9: note: in expansion of macro 'MAX'
    7 | int num[MAX];
      |         ^~~
a.cc:6:16: error: could not convert '(1.0e+5 + (double)7)' from 'double' to 'long unsigned int'
    6 | #define MAX 1e5+7
      |             ~~~^~
      |                |
      |                double
a.cc:7:9: note: in expansion of macro 'MAX'
    7 | int num[MAX];
      |         ^~~
a.cc:6:16: error: size of array 'num' has non-integral type 'double'
    6 | #define MAX 1e5+7
      |             ~~~^~
a.cc:7:9: note: in expansion of macro 'MAX'
    7 | int num[MAX];
      |         ^~~
Language: C++

#include<bits/stdc++.h>using namespace std;const int maxn=1e5+7;int num[maxn];int main(){    string stra;    string strb;    cin>>stra>>strb;    int len=stra.size();    memset(num,-1,sizeof(num));    for(int i=0;i<len;i++)    {        if(num[stra[i]]==-1)        {            num[stra[i]]=strb[i];        }        else        {            if(num[stra[i]]!=strb[i])            {                cout<<"No"<<endl;                return 0;            }        }    }    memset(num,-1,sizeof(num));    for(int i=0;i<len;i++)    {        if(num[strb[i]]==-1)        {            num[strb[i]]=stra[i];        }        else        {            if(num[strb[i]]!=stra[i])            {                cout<<"No"<<endl;                return 0;            }        }    }    cout<<"Yes"<<endl;    return 0;}


Compiler output:
a.cc:1:30: warning: extra tokens at end of #include directive
    1 | #include<bits/stdc++.h>using namespace std;const int maxn=1e5+7;int num[maxn];int main(){    string stra;    string strb;    cin>>stra>>strb;    int len=stra.size();    memset(num,-1,sizeof(num));    for(int i=0;i<len;i++)    {        if(num[stra[i]]==-1)        {            num[stra[i]]=strb[i];        }        else        {            if(num[stra[i]]!=strb[i])            {                cout<<"No"<<endl;                return 0;            }        }    }    memset(num,-1,sizeof(num));    for(int i=0;i<len;i++)    {        if(num[strb[i]]==-1)        {            num[strb[i]]=stra[i];        }        else        {            if(num[strb[i]]!=stra[i])            {                cout<<"No"<<endl;                return 0;            }        }    }    cout<<"Yes"<<endl;    return 0;}
      |                              ^~~~~~~~~
a.cc:1:9: fatal error: bits/stdc++.h>usin: No such file or directory
    1 | #include<bits/stdc++.h>using namespace std;const int maxn=1e5+7;int num[maxn];int main(){    string stra;    string strb;    cin>>stra>>strb;    int len=stra.size();    memset(num,-1,sizeof(num));    for(int i=0;i<len;i++)    {        if(num[stra[i]]==-1)        {            num[stra[i]]=strb[i];        }        else        {            if(num[stra[i]]!=strb[i])            {                cout<<"No"<<endl;                return 0;            }        }    }    memset(num,-1,sizeof(num));    for(int i=0;i<len;i++)    {        if(num[strb[i]]==-1)        {            num[strb[i]]=stra[i];        }        else        {            if(num[strb[i]]!=stra[i])            {                cout<<"No"<<endl;                return 0;            }        }    }    cout<<"Yes"<<endl;    return 0;}
      |         ^~~~~~~~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main(){
  string s,t;
  cin >> s >> t;
  int n=s.length();
  map<char,bool> m;
  map<char,char> p;
  map<char,bool> q;
  map<char,char> r;
  bool flag=true;
  for(int i=0;i<n;i++){
    if(m[s[i]]){
      if(p[s[i]]!=t[i]){
        flag=false;
        break;
      }
    }
    else{
      p[s[i]]=t[i];
      m[s[i]]=true;
    }
  }
  for(int i=0;i<n;i++){
    if(q[t[i]]){
      if(r[t[i]]!=s[i]){
        flag=false;
        break;
      }
    }
    else{
      r[t[i]]=s[i];
      q[t[i]]=true;
    }
  }
  if(flag){
    cout << "Yes" << endl;
  }

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

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

int main() {
  string S, T;
  cin >> S >> T;
  bool ok = true;
  map<char,char> s_map, t_map;
  for (int i = 0; i < S.size(); ++i) {
    char s = S[i], t = T[i];
    if (s_map.count(s)) if (s_map[s] != t) ok = false;
    if (t_map.count(t)) if (tß_map[t] != s) ok = false;
    s_map[s] = t; t_map[t] = s;
  }
  if (ok) puts("Yes");
  else puts("No");
}

/**
 * 嘘解法
int main(){
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);

  string S,T; cin>>S>>T;
  // int型のvectorを要素数26, 値0で初期化
  vector<int> c1(26,0), c2(26,0);
  for(int i = 0; i<S.length(); i++ ) c1[S[i]-'a']++;
  for(int i = 0; i<T.length(); i++ ) c2[T[i]-'a']++;
  sort(c1.begin(), c1.end());
  sort(c2.begin(), c2.end());
  if( c1 == c2 ) cout<<"Yes\n";
  else cout<<"No\n";
  return 0;
}
*/

Compiler output:
a.cc: In function 'int main()':
a.cc:16:29: error: 't\U000000df_map' was not declared in this scope; did you mean 't_map'?
   16 |     if (t_map.count(t)) if (tß_map[t] != s) ok = false;
      |                             ^~~~~~
      |                             t_map
Language: C++

#include <stdio.h>  
#include <algorithm>  
#include <assert.h>
#include <bitset>
#include <cmath>  
#include <complex>  
#include <deque>  
#include <functional>  
#include <iostream>  
#include <limits.h>  
#include <map>  
#include <math.h>  
#include <queue>  
#include <deque>
#include <set>  
#include <stdlib.h>  
#include <string.h>  
#include <string>  
#include <time.h>  
#include <unordered_map>  
#include <unordered_set>  
#include <vector>  
#include <chrono>
#include <random>
#include <time.h>
#include <fstream>
#define ll long long
#define rep2(i,a,b) for(ll i=a;i<=b;++i)
#define rep(i,n) for(ll i=0;i<n;i++)
#define rep3(i,a,b) for(ll i=a;i>=b;i--)
#define pii pair<int,int>
#define pll pair<ll,ll>
//#define pq priority_queue<int>
#define pqg priority_queue<int,vector<int>,greater<int>>
#define pb push_back
#define vec vector<int>
#define vecll vector<ll>
#define vecpii vector<pii>
#define endl "\n"
#define all(c) begin(c),end(c)
using namespace std;
int in() {int x;scanf("%d",&x);return x;}
ll lin() {ll x;scanf("%lld",&x);return x;}
void print(vec v){for(auto e:v)cout<<e<<" ";cout<<endl;}
void print(vecll v){for(auto e:v)cout<<e<<" ";cout<<endl;}
void print(map<int,int> mp){for(auto e:mp)cout<<e.first<<" "<<e.second<<endl;cout<<endl;}


const ll MOD=1e9+7;
const int N=500000;


main(){
    string s,t;
    cin>>s>>t;
    map<int,int> mp;
    rep(i,n){
        char e=s[i];
        if(mp[e]==0)mp[e]=t[i];
        else{
            if(t[i]!=mp[e]){
                cout<<"No";return 0;
            }
        }
    }
    cout<<"Yes";return  0;
}

Compiler output:
a.cc:53:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
   53 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:57:11: error: 'n' was not declared in this scope
   57 |     rep(i,n){
      |           ^
a.cc:29:31: note: in definition of macro 'rep'
   29 | #define rep(i,n) for(ll i=0;i<n;i++)
      |                               ^
Language: C++

#include <bits/stdc++.h>
#define rep( i, n, m ) for(int i = ( n ); i < ( m ); i++)

int main( void ){
	std::string str, exp;
	std::cin >> str;
	std::cin >> exp;
	int array[ 26 ] = {};
	int rra[ 26 ] = {};
	rep( i, 0, 26 ){
		array[ i ] = -1;
		rra[ i ] = -1;
	}
	int length = str.length();
	rep( i, 0, length ){
		int a = (( int )exp[ i ] ) - ( int )'a';
		int b = (( int )str[ i ] ) - ( int )'a';
		if (array[ a ] != -1 && array[ a ] != b)){
			printf("No\n");
			return 0;
		}
		if (exp[ i ] != str[ i ]){
			if (array[ a ] != -1 && array[ a ] != b || rra[ b ] != -1 && array[ a ] != b){
				printf( "No\n" );
				return 0;
			}
			array[ a ] = b;
			rra[ b ] = a;
		}
	}
	printf( "Yes\n" );
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:57: error: expected primary-expression before ')' token
   18 |                 if (array[ a ] != -1 && array[ a ] != b)){
      |                                                         ^
Language: C++

#include<bits/stdc++.h>
#define all(x) (x).begin(),(x).end()
using namespace std;
typedef long long ll;
ll gcd(ll a,ll b){return b!=0?gcd(b,a%b):a;}
ll lcm(ll a,ll b){return a*b/gcd(a,b);}

int main(){
    string s,t;
    cin>>s>>t;
    char[26]={} cs,ct;
    for(ll i=0;i<s.size();i++){
        cs[s[i]-'a']++;
    }
    for(ll i=0;i<t.size();i++){
        ct[t[i]-'a']++;
    }
    for(ll i=0;i<26;i++){
        if(cs[i]!=ct[i]){
            cout<<"No"<<endl;
            break;
        }
        if(i==25) cout<<"Yes"<<endl;
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:10: error: expected identifier before numeric constant
   11 |     char[26]={} cs,ct;
      |          ^~
a.cc:11:10: error: expected ']' before numeric constant
   11 |     char[26]={} cs,ct;
      |          ^~
      |          ]
a.cc:11:9: error: structured binding declaration cannot have type 'char'
   11 |     char[26]={} cs,ct;
      |         ^
a.cc:11:9: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:11:9: error: empty structured binding declaration
a.cc:13:9: error: 'cs' was not declared in this scope; did you mean 's'?
   13 |         cs[s[i]-'a']++;
      |         ^~
      |         s
a.cc:16:9: error: 'ct' was not declared in this scope; did you mean 't'?
   16 |         ct[t[i]-'a']++;
      |         ^~
      |         t
a.cc:19:12: error: 'cs' was not declared in this scope; did you mean 's'?
   19 |         if(cs[i]!=ct[i]){
      |            ^~
      |            s
a.cc:19:19: error: 'ct' was not declared in this scope; did you mean 't'?
   19 |         if(cs[i]!=ct[i]){
      |                   ^~
      |                   t
Language: C++

/*Function Template*/
#include<bits/stdc++.h>
using namespace std;
typedef long long int ll;
const int mod = 1000000007;
#define rep(i, n) for(ll i = 0; i < (n); i++)
#define ALL(a)  (a).begin(),(a).end()
#define IOS ios::sync_with_stdio(0); cin.tie(0); cout.tie(0);


ll Len(ll n) {
  ll s=0;
  while(n!=0) s++, n/=10;
  return s;
}


ll Sint(ll n) {
  ll m=0,s=0,a=n;
  while(a!=0) s++, a/=10;
  for(ll i=s-1;i>=0;i--) m+=n/((ll)pow(10,i))-(n/((ll)pow(10,i+1)))*10;
  return m;
}


ll Svec(vector<ll> v){
  ll n=0;
  for(ll i=0;i<v.size();i++) n+=v[i];
  return n;
}


ll GCD(ll a,ll b){
  ll r,tmp;
/*自然数 a > b を確認・入替*/
  if(a<b){
    tmp=a,a=b,b=tmp;
  }
/*ユークリッドの互除法*/
  r=a%b;
  while(r!=0){
    a=b,b=r,r=a%b;
  }
  return b;
}


ll LCM(ll a,ll b){
  ll c=a,d=b,r,tmp;
/*自然数 a > b を確認・入替*/
  if(a<b){
    tmp=a,a=b,b=tmp;
  }
/*ユークリッドの互除法*/
  r=a%b;
  while(r!=0){
    a=b,b=r,r=a%b;
  }
  return c/b*d;
}


ll Factorial(ll n){
  ll m=1;
  while(n>=1) m*=n,n--;
  return m;
}

vector<pair<char,ll>> runlength(string s,vector<pair<char,ll>> p){
  ll x=1;
  if(s.size()==1){
    p.push_back(pair<char,ll>(s[0],1));
    return p;
  }
  for(ll i=0;i<s.size()-1;i++){
    if(s[i]==s[i+1]){
      x++;
      if(i==s.size()-2){
        p.push_back(pair<char,ll>(s[i],x));
      }
    }else{
      p.push_back(pair<char,ll>(s[i],x));
      x=1;
      if(i==s.size()-2){
        p.push_back(pair<char,ll>(s[s.size()-1],x));
      }
    }
  }
  return p;
}



/*↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓*/
int main() {
  IOS;
  string s,t;
  cin>>s>>t;
  vector<ll> v1=(26,0);
  vector<ll> v2=(26,0);
  rep(i,s.size()){
    ll si=s[i]-'a';
    ll ti=t[i]-'a';
    v1[si]++;
    v2[ti]++;
    if(v1[si]!=v2[ti]){
      cout<<"No"<<endl;
      return 0;
    }
  }
  cout<<"Yes"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:99:21: error: conversion from 'int' to non-scalar type 'std::vector<long long int>' requested
   99 |   vector<ll> v1=(26,0);
      |                     ^
a.cc:100:21: error: conversion from 'int' to non-scalar type 'std::vector<long long int>' requested
  100 |   vector<ll> v2=(26,0);
      |                     ^
Language: C++

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

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<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;
         
         return 0;
       }
     }
       start[a] = b;
       goal[b] =a;
  }
  
  cout << "Yes" << endl;
}
     
  
  
  

Compiler output:
a.cc:6:20: error: expected ';' before ':' token
    6 | using namespace std:
      |                    ^
      |                    ;
a.cc:6:20: error: expected unqualified-id before ':' token
Language: C++

int main(){
  int d[30];
string a,b;
  cin >>a;
  cin >>b;
  
 
  for(int i=0;i<a.size();i++){
    d[a[i]-'a']++;
    d[b[i]-'a']++;
  }
 
  for(int i=0;i<a.size();i++){
    if(d[i]%2 !=0){
      cout << "No" << endl;
      return 0;
    }
  }
  
  cout << "Yes" << endl;
  
  return 0;
}
  


Compiler output:
a.cc: In function 'int main()':
a.cc:3:1: error: 'string' was not declared in this scope
    3 | string a,b;
      | ^~~~~~
a.cc:4:3: error: 'cin' was not declared in this scope
    4 |   cin >>a;
      |   ^~~
a.cc:4:9: error: 'a' was not declared in this scope
    4 |   cin >>a;
      |         ^
a.cc:5:9: error: 'b' was not declared in this scope
    5 |   cin >>b;
      |         ^
a.cc:15:7: error: 'cout' was not declared in this scope
   15 |       cout << "No" << endl;
      |       ^~~~
a.cc:15:23: error: 'endl' was not declared in this scope
   15 |       cout << "No" << endl;
      |                       ^~~~
a.cc:20:3: error: 'cout' was not declared in this scope
   20 |   cout << "Yes" << endl;
      |   ^~~~
a.cc:20:20: error: 'endl' was not declared in this scope
   20 |   cout << "Yes" << endl;
      |                    ^~~~
Language: C++

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

int main() {
    string S, T;
    cin  >> S >> T;
    map<char, int> dictS, dictT;
    for (int i = 0; i < S.length(); i++){
        dictS[S[i]] = dictS[S[i]] + 1;
        dictT[T[i]] = dictT[T[i]] + 1;
    }
    bool flag = true;
    string l = "abcdefghijklmnopqrstuvwxyz";
    for (int i = 0; i < 26; i++){
        if (dictT[l[i]].count()){
        if (dictS[l[i]] != dictT[l[i]] && dictS[l[i]] != 0){
            flag = false;
            break;
        }
        }
    }
    if (flag) {
        cout << "Yes" << endl;
    }
    else{
        cout << "No" << endl;
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:25: error: request for member 'count' in 'dictT.std::map<char, int>::operator[]((*(const std::map<char, int>::key_type*)(& l.std::__cxx11::basic_string<char>::operator[](((std::__cxx11::basic_string<char>::size_type)i)))))', which is of non-class type 'std::map<char, int>::mapped_type' {aka 'int'}
   17 |         if (dictT[l[i]].count()){
      |                         ^~~~~
Language: C++

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

int main() {
    string S, T;
    cin  >> S >> T;
    map<char, int> dictS, dictT;
    for (int i = 0; i < S.length(); i++){
        dictS[S[i]] = dictS[S[i]] + 1;
        dictT[T[i]] = dictT[T[i]] + 1;
    }
    bool flag = true;
    string l = "abcdefghijklmnopqrstuvwxyz";
    for (int i = 0; i < 26; i++){
        if (dictT.count()){
        if (dictS[l[i]] != dictT[l[i]] && dictS[l[i]] != 0){
            flag = false;
            break;
        }
        }
    }
    if (flag) {
        cout << "Yes" << endl;
    }
    else{
        cout << "No" << endl;
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:24: error: no matching function for call to 'std::map<char, int>::count()'
   17 |         if (dictT.count()){
      |             ~~~~~~~~~~~^~
In file included from /usr/include/c++/14/map:63,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:152,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_map.h:1270:9: note: candidate: 'template<class _Kt> decltype (((const std::map<_Key, _Tp, _Compare, _Alloc>*)this)->std::map<_Key, _Tp, _Compare, _Alloc>::_M_t._M_count_tr(__x)) std::map<_Key, _Tp, _Compare, _Alloc>::count(const _Kt&) const [with _Key = char; _Tp = int; _Compare = std::less<char>; _Alloc = std::allocator<std::pair<const char, int> >]'
 1270 |         count(const _Kt& __x) const -> decltype(_M_t._M_count_tr(__x))
      |         ^~~~~
/usr/include/c++/14/bits/stl_map.h:1270:9: note:   candidate expects 1 argument, 0 provided
/usr/include/c++/14/bits/stl_map.h:1264:7: note: candidate: 'std::map<_Key, _Tp, _Compare, _Alloc>::size_type std::map<_Key, _Tp, _Compare, _Alloc>::count(const key_type&) const [with _Key = char; _Tp = int; _Compare = std::less<char>; _Alloc = std::allocator<std::pair<const char, int> >; size_type = long unsigned int; key_type = char]'
 1264 |       count(const key_type& __x) const
      |       ^~~~~
/usr/include/c++/14/bits/stl_map.h:1264:7: note:   candidate expects 1 argument, 0 provided
Language: C++

#include <iostream>
#include <string>
#include <vector>
#include <utility>

using namespace std;

bool cmp(pair<int, int> a, pair<int, int> b) {
    if(a.second!=b.second) {
        return a.second<b.second;
    } else {
        return a.first<b.first;
    }
}

int main() {
    string S, T;
    cin >> S >> T;
    
    vector<pair<int, int> > s, t;
    for(int i=0; i<S.size(); i++) {
        int ss=S[i];
        ss %= 26;
        int tt=T[i];
        tt %= 26;
        bool flags=true, flagt=true;
        for(int j=0; j<s.size(); j++) {
            if(s[j].first==ss) {
                s[j].second++;
                flags=false;
            }
            if(t[j].first==tt) {
                t[j].second++;
                flagt=false;
            }
        }
        if(flags) {
            s.push_back(make_pair(ss, 1));
        }
        if(flagt) {
            t.push_back(make_pair(tt, 1));
        }
    }
    
    sort(s.begin(), s.end(), cmp);
    sort(t.begin(), t.end(), cmp);
    
    bool flag=true;
    for(int i=0; i<s.size(); i++) {
        if(s[i].second==t[i].second) {
            continue;
        } else {
            flag=false;
            break;
        }
    }
    
    if(flag) {
        cout << "Yes" << endl;
    } else {
        cout << "No" << endl;
    }

    return 0;
    
}

Compiler output:
a.cc: In function 'int main()':
a.cc:45:5: error: 'sort' was not declared in this scope; did you mean 'short'?
   45 |     sort(s.begin(), s.end(), cmp);
      |     ^~~~
      |     short
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(){
  < cout<<"No"<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:19:3: error: expected primary-expression before '<' token
   19 |   < cout<<"No"<<endl;
      |   ^