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

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const double EPS = 1e-9;
const int INF = 1e9;
const int MOD = 1e9+7;
const ll LINF = 1e18;
typedef vector<int> vi;
typedef vector<vector<int>> vvi;
typedef pair<int, int> pi;
typedef pair<ll, ll> pll;
typedef map<int, int> mi;
typedef set<int> si;
#define VV(T) vector<vector< T > >
#define dump(x)  cout << #x << " = " << (x) << endl
#define YES(n) cout << ((n) ? "YES" : "NO"  ) << endl
#define Yes(n) cout << ((n) ? "Yes" : "No"  ) << endl
#define POSSIBLE(n) cout << ((n) ? "POSSIBLE" : "IMPOSSIBLE"  ) << endl
#define Possible(n) cout << ((n) ? "Possible" : "Impossible"  ) << endl

#define rep(i, n) REP(i, 0, n)                              // 0, 1, ..., n-1
#define REP(i, x, n) for(int i = x; i < n; i++)             // x, x + 1, ..., n-1
#define FOREACH(x,a) for(auto& (x) : (a) )

#define ALL(v) (v).begin() , (v).end()
#define RALL(v) (v).rbegin(), (v).rend()

#define pb push_back
#define pu push
#define mp make_pair
#define fi first
#define sc second

#define COUT(x) cout << (x) << endl
#define VECCIN(x) for(auto&youso_: (x) )cin>>youso_
#define VECCOUT(x) for(auto&youso_: (x) )cout<<youso_<<" ";cout<<endl

template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; }
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; }


int main(){
    cin.tie(0);
    ios::sync_with_stdio(false);

    string s, t; cin >> s >> t;
    vi start(26, -1)
    vi goal(26, -1);
    rep (i, s.size()) {
        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");
                return 0;
            }
        }
        else {
            start[a] = b;
            goal[b] = a;
        }
    }
    COUT("Yes");
}

Compiler output:
a.cc: In function 'int main()':
a.cc:48:5: error: expected ',' or ';' before 'vi'
   48 |     vi goal(26, -1);
      |     ^~
a.cc:53:31: error: 'goal' was not declared in this scope
   53 |         if (start[a] != -1 || goal[b] != -1) {
      |                               ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main(){
	string s,t;
  	cin>>s>>t;
  	ll i,n=s.size();
  	vector<int>  a(27),b(27);
  
  	
  	for(i=0;i<n;i++){
		a[s[i]-'a']++;
		b[t[i]-'a']++;
    }
  	
  	sort(a.begin(),a.end());
  	sort(b.begin(),b.end());
  
  	for(i=0;i<26;i++){
  		if(a[i]!=b[i]){
			cout<<"No"<<endl;
          	return 0;
    	}else{
			cout<<"Yes"<<endl;
          	return;
  	    }
    }
}



Compiler output:
a.cc: In function 'int main()':
a.cc:25:17: error: return-statement with no value, in function returning 'int' [-fpermissive]
   25 |                 return;
      |                 ^~~~~~
Language: C++

#include <iostream>
#include <string>
#include <vector>
#include <stack>
#include <map>
#include <algorithm>
#include <numeric>
#include <math.h>
#include <stdio.h>
#include <ctype.h>
using namespace std;

#define N_MAX   (100000)
#define LL_MAX_NUM (1LL<<60)
#define INF 1e7

typedef long long ll;
typedef long long int lli;

int main() {
    string S, T;
    cin >> S >> T;
    map<char, char> dictionary1, dictionary2;
    int size = S.size();

    for (int i = 0; i < size; i++) {
        auto itr = dictionary1.find(T[i]);
        auto itr = dictionary2.find(S[i]);
        if (itr == dictionary1.end()) {
            if (T[i] != S[i]) {
                dictionary1[T[i]] = S[i];
            }         
        } else {
            if (dictionary1[T[i]] != S[i]) {
                cout << "No" << endl;
                return 0;
            }
        }
        if (itr == dictionary2.end()) {
            if (T[i] != S[i]) {
                dictionary2[S[i]] = T[i];
            }         
        } else {
            if (dictionary2[S[i]] != T[i]) {
                cout << "No" << endl;
                return 0;
            }
        }
    }
    cout << "Yes" << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:28:14: error: conflicting declaration 'auto itr'
   28 |         auto itr = dictionary2.find(S[i]);
      |              ^~~
a.cc:27:14: note: previous declaration as 'std::_Rb_tree_iterator<std::pair<const char, char> > itr'
   27 |         auto itr = dictionary1.find(T[i]);
      |              ^~~
Language: C++

#include <iostream>
#include <stdio.h>
#include <string.h>
#include <algorithm>
#include <cmath>
#include <vector>
#include <cstdlib>
using namespace std;

int main() {
	vector<int> S, T;
	int buf,tmp, i;
	while ((buf = getchar()) != (int)"\n") {
		S.push_back(buf);
	}
	while ((buf = getchar()) != EOF) {
		T.push_back(buf);
	}
	for (i = 0; i < S.size(); i++) {
		if (S[i] == T[i]) {
			S.erase(S.begin() + i);
			T.erase(T.begin() + i);
			i--;
		}
	}
	for (i = 0; i < S.size(); i++) {
		buf = S[i];
		S[i] = T[i];
		for (int j = 0; j < S.size(); j++) {
			if (j == i)continue;
			if (buf == S[j]) {
				S[j] = T[i];
			}
			else if (T[i] == S[j]) {
				S[j] = buf;
			}
		}
	}
	for (i = 0; i < S.size(); i++) {
		if (S[i] == T[i]) {
			S.erase(S.begin() + i);
			T.erase(T.begin() + i);
			i--;
		}
	}
	if (S.size() == 0)cout << "Yes";
	else cout << "No";
	return(0);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:37: error: cast from 'const char*' to 'int' loses precision [-fpermissive]
   13 |         while ((buf = getchar()) != (int)"\n") {
      |                                     ^~~~~~~~~
Language: C++

#define REP(i,n) for(int i=0;i<(n);i++)
#define ALL(v) (v).begin(),(v).end()
#define SZ(x) ((int)(x).size())
#define int long long
using namespace std;
typedef vector<int>   vint;
typedef pair<int,int> pint;

const int K=26;
int a[K],b[K];

signed main()
{
    REP(i,K) a[i]=b[i]=-1;
    
    string s,t; cin>>s>>t;
    bool ok=true;
    REP(i,SZ(s)){
        int x=s[i]-'a';
        int y=t[i]-'a';

        if(a[x]==-1) a[x]=y;
        else ok&=(a[x]==y);

        if(b[y]==-1) b[y]=x;
        else ok&=(b[y]==x);
    }
    cout<<(ok? "Yes":"No")<<endl;
}


Compiler output:
a.cc:6:9: error: 'vector' does not name a type
    6 | typedef vector<int>   vint;
      |         ^~~~~~
a.cc:7:9: error: 'pair' does not name a type
    7 | typedef pair<int,int> pint;
      |         ^~~~
a.cc: In function 'int main()':
a.cc:16:5: error: 'string' was not declared in this scope
   16 |     string s,t; cin>>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 | #define REP(i,n) for(int i=0;i<(n);i++)
a.cc:16:17: error: 'cin' was not declared in this scope
   16 |     string s,t; 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 | #define REP(i,n) for(int i=0;i<(n);i++)
a.cc:16:22: error: 's' was not declared in this scope
   16 |     string s,t; cin>>s>>t;
      |                      ^
a.cc:16:25: error: 't' was not declared in this scope
   16 |     string s,t; cin>>s>>t;
      |                         ^
a.cc:28:5: error: 'cout' was not declared in this scope
   28 |     cout<<(ok? "Yes":"No")<<endl;
      |     ^~~~
a.cc:28:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:28:29: error: 'endl' was not declared in this scope
   28 |     cout<<(ok? "Yes":"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 | #define REP(i,n) for(int i=0;i<(n);i++)
Language: C++

#[allow(unused_macros)]
macro_rules! input {
    (source = $s:expr, $($r:tt)*) => {
        let mut iter = $s.split_whitespace();
        let mut next = || { iter.next().unwrap() };
        input_inner!{next, $($r)*}
    };
    ($($r:tt)*) => {
        let stdin = std::io::stdin();
        let mut bytes = std::io::Read::bytes(std::io::BufReader::new(stdin.lock()));
        let mut next = move || -> String{
            bytes
                .by_ref()
                .map(|r|r.unwrap() as char)
                .skip_while(|c|c.is_whitespace())
                .take_while(|c|!c.is_whitespace())
                .collect()
        };
        input_inner!{next, $($r)*}
    };
}

#[allow(unused_macros)]
macro_rules! input_inner {
    ($next:expr) => {};
    ($next:expr, ) => {};

    ($next:expr, $var:ident : $t:tt $($r:tt)*) => {
        let $var = read_value!($next, $t);
        input_inner!{$next $($r)*}
    };

    ($next:expr, mut $var:ident : $t:tt $($r:tt)*) => {
        let mut $var = read_value!($next, $t);
        input_inner!{$next $($r)*}
    };
}

#[allow(unused_macros)]
macro_rules! read_value {
    ($next:expr, ( $($t:tt),* )) => {
        ( $(read_value!($next, $t)),* )
    };

    ($next:expr, [ $t:tt ; $len:expr ]) => {
        (0..$len).map(|_| read_value!($next, $t)).collect::<Vec<_>>()
    };

    ($next:expr, chars) => {
        read_value!($next, String).chars().collect::<Vec<char>>()
    };

    ($next:expr, bytes) => {
        read_value!($next, String).into_bytes()
    };

    ($next:expr, usize1) => {
        read_value!($next, usize) - 1
    };

    ($next:expr, $t:ty) => {
        $next().parse::<$t>().expect("Parse error")
    };
}

use std::collections::HashSet;

fn main() {
    input! {
        a: chars,
        b: chars,
    }

    let mut aset = HashSet::new();
    let mut bset = HashSet::new();
    for c in a.iter() {
        aset.insert(c);
    }
    for c in b.iter() {
        bset.insert(c);
    }

    let ans = aset.len() == bset.len();
    println!("{}", if ans == true {"Yes"} else {"No"});

}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #[
    1 | #[allow(unused_macros)]
      |  ^
a.cc:23:2: error: invalid preprocessing directive #[
   23 | #[allow(unused_macros)]
      |  ^
a.cc:39:2: error: invalid preprocessing directive #[
   39 | #[allow(unused_macros)]
      |  ^
a.cc:46:10: error: too many decimal points in number
   46 |         (0..$len).map(|_| read_value!($next, $t)).collect::<Vec<_>>()
      |          ^~~~~~~
a.cc:2:1: error: 'macro_rules' does not name a type
    2 | macro_rules! input {
      | ^~~~~~~~~~~
a.cc:24:1: error: 'macro_rules' does not name a type
   24 | macro_rules! input_inner {
      | ^~~~~~~~~~~
a.cc:40:1: error: 'macro_rules' does not name a type
   40 | macro_rules! read_value {
      | ^~~~~~~~~~~
a.cc:66:1: error: 'use' does not name a type
   66 | use std::collections::HashSet;
      | ^~~
a.cc:68:1: error: 'fn' does not name a type
   68 | fn main() {
      | ^~
Language: C++

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

int main(){
    string S,T;
    cin >> S >> T;
    vector<int> l1(26,-1);
    vector<int> l2(26,-1);
    for(int i=0;i<S.size(),i++){
        int a = S[i] - 'a';
        int b = T[i] = 'a';

        if(l1[a]!=-1 || l2[b]!=-1){
            if(l1[a]!=b || l2[b]!=a){
                cout << "No";
                return 0;
            }
        }
        else{
            l1[a] = b;
            l2[b] = a;
        }
    }
    cout << "Yes";
}

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

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

int main() {
	char s[200010], t[200010];
	cin >> s >> t;
	sort(s, s + strlen(s));
	sort(t, t + strlen(t));
	int count = 1;
	vector<int>s_counts, t_counts;
	for (int i = 1; i < strlen(s); i++) {
		if (s[i - 1] == s[i]) {
			count++;
		}
		else {
			s_counts.push_back(count);
			count = 1;
		}
		if (i == strlen(s) - 1) {
			s_counts.push_back(count);
			count = 1;
		}
	}
	for (int i = 1; i < strlen(t); i++) {
		if (t[i - 1] == t[i]) {
			count++;
		}
		else {
			t_counts.push_back(count);
			count = 1;
		}
		if (i == strlen(t) - 1) {
			t_counts.push_back(count);
			count = 1;
		}
	}
	string ans = "Yes";
	if (s_counts.size() != t_counts.size()) {
		ans = "No";
	}
	else {
		for (int i = 0; i < s_counts.size(); i++) {
			if (s_counts[i] != t_counts[i]) {
				ans = "No";
				break;
			}
		}
	}
	cout << ans << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:21: error: 'strlen' was not declared in this scope
   10 |         sort(s, s + strlen(s));
      |                     ^~~~~~
a.cc:4:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    3 | #include<vector>
  +++ |+#include <cstring>
    4 | #include<string>
Language: C++

#include<cstdio>
#include<cstdlib>
#include<cmath>
#include<iostream>
#include<algorithm>
#include<cstring>
#include<string>
#include<ctime>

using namespace std;
const int Max = 1e6 + 5;

int main(){
	int n, m, i, j, t, k, flag = 0;
	string a, b;
	cin >> a >> b;
	int A[26] = {0}, B[26] = {0};
	for(i = 0; i < a.length(); i++)
		A[a[i] - 'a']++;
	for(i = 0; i < b.length(); i++)
		B[b[i] - 'a']++;
	sort(A, A + 26);
	sort(B, B + 26);
	for(i = 0; i < 26; i++)
		if(A[i] != B[i]) { flag++; break; }
	if(flag) cout << "No" << endl;
	else cout << "Yes" << endl;
	return 0;
}
/

Compiler output:
a.cc:30:1: error: expected unqualified-id before '/' token
   30 | /
      | ^
Language: C++

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

int main(void){
	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[a] != a){
				cout << "No" << endl;
				return 0;
			}
		} else {
			start[a]=b;	
			goal[b]=a;
		}
	}
	cout << "Yes" << endl;
}

Compiler output:
a.cc:3:2: error: invalid preprocessing directive #incluce; did you mean #include?
    3 | #incluce <string>
      |  ^~~~~~~
      |  include
Language: C++

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

int main() {
  std::string s, t;
  std::cin >> s >> t;
  std::vector<int> cs(26, 0), ct(26, 0);
  for (auto c : s) {
      cs[(int)c  - (int)'a']++;
  }
  for (auto c : t) {
      ct[(int)c  - (int)'a']++;
  }
  std::sort(cs.begin(), cs.end());
  std::sort(ct.begin(), ct.end());
  bool ans = true;
  for (int i = 25; i >= 0; i--) {
      if (cs[i] != ct[i]) {
          ans = false;
          break;
      }
  }
  std::cout << (ans ? "Yes" : "No") << std::endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:8: error: 'sort' is not a member of 'std'; did you mean 'qsort'?
   16 |   std::sort(cs.begin(), cs.end());
      |        ^~~~
      |        qsort
a.cc:17:8: error: 'sort' is not a member of 'std'; did you mean 'qsort'?
   17 |   std::sort(ct.begin(), ct.end());
      |        ^~~~
      |        qsort
Language: C++

#include<cstdio>
#include<cstring>
#include<map>
using namespace std;
const int maxn = 2e5 + 5;
struct Node{
	char x,y;
}q[maxn];
 int main()
 {
 	 char a[maxn],b[maxn];
 	 int ans = 0,flag = 0,cnt;
 	 gets(a);
 	 gets(b);
 	 int len = strlen(a);
 	 for( int i = 0; i < len ; i++){
	 	 for( int j = i; j < len; j++){
		 	 if ( a[i] == a[j])
			 {
			 	 cnt = i;
			 	 break;
			 }
		 	 if ( b[i] == b[j]){ 
			 	 cnt = i;
			 	 break;
			 }
		 }
	 }
	 if ( cnt == len ) 
	 {
	 	 printf("Yes\n");
	 	 return 0;
	 }
 	 for( int i = 0; i < len; i++){
	 	 if ( a[i] != b[i] ){
	 	 	 for( int j = 0; j < ans; j++){
			 	 if (( q[j].x == a[i] && q[j].y != b[i] )||( q[j].x != a[i] && q[j].y == b[i] )) 
				 {
				 	 flag = 1;
				 	 break;
				 }
			 }
			if ( flag ) break;
	 	 	 q[ans].x = a[i];
	 	 	 q[ans].y = b[i];
	 	 	 ans++;
		 }
	 }
		 if ( flag ) printf("No\n");
		 else printf("Yes\n");
		 return 0;
 }

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

#include<cstdio>
#include<cstring>
#include<map>
using namespace std;
const int maxn = 2e5 + 5;
struct Node{
	char x,y;
}q[maxn];
 int main()
 {
 	 char a[maxn],b[maxn];
 	 int ans = 0,flag = 0,cnt;
 	 gets(a);
 	 gets(b);
 	 int len = strlen(a);
 	 for( int i = 0; i < len ; i++){
	 	 for( int j = i; j < len; j++){
		 	 if ( a[i] == a[j])
			 {
			 	 cnt = i;
			 	 break;
			 }
		 	 if ( b[i] == b[j]){ 
			 	 cnt = i;
			 	 break;
			 }
		 }
	 }
	 if ( cnt == len ) 
	 {
	 	 printf("Yes\n");
	 	 return 0;
	 }
 	 for( int i = 0; i < len; i++){
	 	 if ( a[i] != b[i] ){
	 	 	 for( int j = 0; j < ans; j++){
			 	 if (( q[j].x == a[i] && q[j].y != b[i] )||( q[j].x != a[i] && q[j].y == b[i] )) 
				 {
				 	 flag = 1;
				 	 break;
				 }
			 }
			if ( flag ) break;
	 	 	 q[ans].x = a[i];
	 	 	 q[ans].y = b[i];
	 	 	 ans++;
		 }
	 }
		 if ( flag ) printf("No\n");
		 else printf("Yes\n");
		 return 0;
 }

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

#include<cstdio>
#include<iostream>
#include<algorithm>
#include<cstring>
using namespace std;
const int maxn = 2e5;

char s[maxn + 5];
char t[maxn + 5];
char a[maxn + 5];
char b[maxn + 5];
bool flag;

int main(){
	scanf("%s", s);
	scanf("%s", t);
	memset(a, '#', sizeof(a));
	int len = strlen(s);
	for(int i = 0; i <= len - 1; i++){
		if(a[s[i] - 'a'] == '#' || a[s[i] - 'a'] == t[i]){
			a[s[i] - 'a'] = t[i];
		}
		else flag = 1;
		if(a[t[i] - 'a'] == '#' || b[t[i] - 'a'] == s[i]){
			a[t[i] - 'a'] = s[i];
		}
		else flag = 1;
		if(flag){
			printf("NO\n");
			return 0;
		}
	}
	printf("YES\n");
	return 0;
}

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

#include<cstdio>
#include<cstring>
using namespace std;
int jud;
char s[200005],x[200005],ch[150],sh[150];
int main(){
	scanf("%s",s);	scanf("%s",x);
	for(int i = 0; i < strlen(s); i++){
		if(ch[s[i]] == '\0')
			ch[s[i]] = x[i];
		if(sh[x[i]] == '\0')
			sh[x[i]] = s[i];
		if(ch[s[i]] != x[i] || sh[x[i]] != s[i]){
			printf("No");
			jud = 1;
			break;
		}
	}
	!jud ? printf("Yes") : ;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:32: error: expected primary-expression before ';' token
   19 |         !jud ? printf("Yes") : ;
      |                                ^
Language: C

#include<cstdio>
#include<cstring>
using namespace std;
int jud;
char s[200005],x[200005],ch[150],sh[150];
int main(){
	gets(s);	gets(x);
	for(int i = 0; i < strlen(s); i++){
		if(ch[s[i]] == '\0'){
			ch[s[i]] = x[i];
		}
		if(sh[x[i]] == '\0'){
			sh[x[i]] = s[i];
		}
		if(ch[s[i]] != x[i] || sh[x[i]] != s[i]){
			printf("No");
			jud = 1;
			break;
		}
	}
	if(!jud) printf("Yes");
}

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

#include<cstdio>
#include<cstring>
using namespace std;
int jud;
char s[200005],x[200005],ch[150],sh[150];
int main(){
	gets(s);	gets(x);
	for(int i = 0; i < strlen(s); i++){
		if(ch[s[i]] == '\0'){
			ch[s[i]] = x[i];
		}
		if(sh[x[i]] == '\0'){
			sh[x[i]] = s[i];
		}
		if(ch[s[i]] != x[i] || sh[x[i]] != s[i]){
			printf("No");
			jud = 1;
			break;
		}
	}
	if(!jud) printf("Yes");
}

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

#include<stdio.h> 
#include<algorithm>
#include<string.h> 
int main()
{int len_a,len_b;
int cnt=0,cen=0;
	char a[1005],b[1005];
	gets(a);
	len_a=strlen(a);
  gets(b);
  len_b=strlen(b);
	
	if(len_a!=len_b)
	printf("NO\n");
	for(int i=1;i<=len_a;i++)
	{for(int j=i;j<=len_a;j++)
	{
	if(a[i]==a[j])	cnt++;
	}
	}
	
	for(int i=1;i<=len_b;i++)
	{for(int j=i;j<=len_b;j++)
	{if(b[i]==b[j]) cen++;
	}
	}
	if(cen!=cnt)
	printf("NO\n");
	else printf("YES\n");
	return 0;
 } 

Compiler output:
main.c:2:9: fatal error: algorithm: No such file or directory
    2 | #include<algorithm>
      |         ^~~~~~~~~~~
compilation terminated.
Language: C++

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

int main() {
    string S,T;
    cin >> S >> T;
    bool ans = true;
    int rs[26], rt[26];
    for(int i=0; i<26; ++i) {
        rs[i] = -1;
        rt[i] = -1;
    }
    for(int i=0; i<S.size(); ++i) {
        if(rs[S[i] - 'a'] == -1) {
            rs[S[i] - 'a'] = T[i] - 'a';
        } else if(T[i] - 'a' != rs[S[i] - 'a']) {
            ans = false;
            break;
        }
        if(rt[T[i] - 'a'] == -1) {
            rt[T[i] - 'a'] = S[i] - 'a';
        } else if(S[i] - 'a' != rt[T[i] - 'a']) {
            ans = false;./
            break;
        }
    }
    if(ans) cout << "Yes" << endl;
    else cout << "No" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:24:25: error: expected primary-expression before '.' token
   24 |             ans = false;./
      |                         ^
a.cc:24:26: error: expected unqualified-id before '/' token
   24 |             ans = false;./
      |                          ^
a.cc:25:13: error: expected primary-expression before 'break'
   25 |             break;
      |             ^~~~~
Language: C

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

#define NUM_ALPHABET (26)

int main()
{
	int aiCountS[NUM_ALPHABET] = {0};
	int aiCountT[NUM_ALPHABET] = {0};
	char strS[2*10^5+1];
	char strT[2*10^5+1];

	scanf("%s", &strS);
	scanf("%s", &strT);

	int L = strlen(S);
	if (strlen(T) != L) {
		printf("No");
		return 0;
	}

	//アルファベット文字をカウント
	int i;
	for (i = 0; i < L; i++) {
		int iCode;

		iCode = strS[i] - 'a';
		if ((iCode < 0) || (NUM_ALPHABET <= iCode)) {
			printf("No");
			return 0;
		}
		aiCountS[iCode]++;

		iCode = strT[i] - 'a';
		if ((iCode < 0) || (NUM_ALPHABET <= iCode)) {
			printf("No");
			return 0;
		}
		aiCountT[iCode]++;
	}

	//照合。一致したら消していく(0にする)。一致するものがなければNo。
	for (i = 0; i < NUM_ALPHABET; i++) {
		int iNum;
		bool bIsFound = False;

		iNum = aiCountS[i];
		if (0 == iNum) {
			continue;
		}

		for (j = 0; j < NUM_ALPHABET; j++) {
			if (iNum == aiCountT[j]) {
				aiCountT[j] = 0;
				bIsFound = True;
				break;
			}
		}

		if (!bIsFound) {
			printf("No");
			return 0;
		}
	}

	printf("Yes");
	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:16:24: error: 'S' undeclared (first use in this function)
   16 |         int L = strlen(S);
      |                        ^
main.c:16:24: note: each undeclared identifier is reported only once for each function it appears in
main.c:17:20: error: 'T' undeclared (first use in this function)
   17 |         if (strlen(T) != L) {
      |                    ^
main.c:45:17: error: unknown type name 'bool'
   45 |                 bool bIsFound = False;
      |                 ^~~~
main.c:3:1: note: 'bool' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
    2 | #include <string.h>
  +++ |+#include <stdbool.h>
    3 | 
main.c:45:33: error: 'False' undeclared (first use in this function)
   45 |                 bool bIsFound = False;
      |                                 ^~~~~
main.c:52:22: error: 'j' undeclared (first use in this function)
   52 |                 for (j = 0; j < NUM_ALPHABET; j++) {
      |                      ^
main.c:55:44: error: 'True' undeclared (first use in this function)
   55 |                                 bIsFound = True;
      |                                            ^~~~
Language: Java

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String S = sc.nextLine();
        String T = sc.nextLine();
        sc.close();
        String[] A = {"a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"};
        boolean res = true;
        for(String s:A){
            int sIdx = S.indexOf(s);
            if(sIdx < 0) continue;
            String t = String.valueOf(T.charAt(sIdx));
            int idx = 0;
            while(idx < S.length() -1){
                if(S.indexOf(s, idx+1) >=0){
                    if(S.indexOf(s, idx+1) != T.indexOf(t, idx+1)){
                        res = false;
                        break;
                    }else{
                        idx = S.indexOf(s, idx+1);
                    }
                } else if(T.indexOf(t, idx+1) >=0){
                    res = false;
                    break;
                }
                else break;
            }
            if(!res) break;
        }
        if(res) System.out.println("Yes");
        else System.out.println("No");

    }

}


Compiler output:
Main.java:4: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class Main
Main.java:4: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
                         ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: C++

#include <iostream>
#include "memory.h"
#include <map>
#include <vector>
using namespace std;
bool cmp(const pair<char,int> &a, const pair<char,int> &b)
{
	return a.second < b.second;
}
int main(int argc, char *argv[])
{
	string a,b;
	while(cin>>a>>b)
	{
		map<char,int> ma,mb;
		int i,j;
		for(i = 0;i < a.length();i++)
		{
			ma[a[i]] +=1;
		}
		for(i = 0;i < b.length();i++)
		{
			mb[b[i]] +=1;
		}
		vector< pair<char,int> > va(ma.begin(),ma.end());
		vector< pair<char,int> > vb(mb.begin(),mb.end());
		
		sort(va.begin(),va.end(), cmp);
		sort(vb.begin(),vb.end(), cmp);
		
		int flag = 0;
		if (va.size() != vb.size())
		{
			flag = 1;
		}
		for(i = 0;i<va.size();i++)
		{
			if (va[i].second!= vb[i].second)
			{
				flag = 1;
				break;
			}
		}
		if (flag)
		{
			cout<<"No"<<endl;	
		}
		else
		{
			cout<<"Yes"<<endl;
		}
	} 
	return 0;
}

Compiler output:
a.cc: In function 'int main(int, char**)':
a.cc:28:17: error: 'sort' was not declared in this scope; did you mean 'short'?
   28 |                 sort(va.begin(),va.end(), cmp);
      |                 ^~~~
      |                 short
Language: Java

import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;

import atCoder.aaa;

public class Main {

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

        Map<String, String> map = new HashMap<>();
        for (int i = 0 ; i < s.length(); i++) {
            String a = s.substring(i, i + 1);
            String b = t.substring(i, i + 1);
            if (map.containsKey(b) && !map.get(b).equals(a)) {
                System.out.println("No");
                return;
            } else if (map.containsValue(a)){
                System.out.println("No");
                return;
            } else {
                map.put(b, a);
            }

        }


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

}

Compiler output:
Main.java:5: error: package atCoder does not exist
import atCoder.aaa;
              ^
1 error
Language: C++

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
const int MOD = 1000000007;

#define REP(i,n) for((i)=0;(i)<(int)(n);(i)++)

int main(){
    string s, t;
    cin >> s >> t;
    int m[26][26];
    for (int i = 0; i < (int)s.size(); i++) m[s[i]][t[i]] = m[t[i]][s[i]] = 1;
    for (int i = 0; i < 26; i++){
        int cnt = 0;
        for (int j = 0; j < 26; j++) cnt += m[i][j];
    }

    if (cnt > 1) cout << "No" << endl;
    else cout << "Yes" << endl;

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:9: error: 'cnt' was not declared in this scope; did you mean 'int'?
   18 |     if (cnt > 1) cout << "No" << endl;
      |         ^~~
      |         int
Language: C++

#include <cstdio>
#include <string>
#include <vector>
#define MAX 200005
using namespace std;

char s[MAX], t[MAX];

int main() {
    scanf("%s", s);
    scanf("%s", t);
    int n = strlen(s);

    vector<int> m[30];
    for (int i = 0; i < n; i++) {
        m[s[i] - 'a'].push_back(i);
    }
    int i = 0;
    for (; i < 26; i++) {
        // printf("%c ", 'a' + i);
        // for (int k = 0; k < m[i].size(); k++) printf("%d ", m[i][k]);
        // printf("\n");

        if (m[i].size() == 0) continue;

        char tmp = t[m[i][0]];
        int j = 0;
        for (; j < m[i].size(); j++) {
            if (tmp != t[m[i][j]]) break;
        }
        if (j != m[i].size()) break;
    }
    if (i == 26) printf("Yes\n");
    else printf("No\n");

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:13: error: 'strlen' was not declared in this scope
   12 |     int n = strlen(s);
      |             ^~~~~~
a.cc:4:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    3 | #include <vector>
  +++ |+#include <cstring>
    4 | #define MAX 200005
Language: C++

#include <iostream>
#include <string>
#include <algorithm>
#include <vector>
#include <map>
#define int long long
using namespace std;
string s, t;
map<char, char>st, ts;
map<char, bool>stbool, tsbool;
signed main() {
	cin >> s >> t;
	for (int i = 0; i < s.size; i++) {
		if (st[s[i]] != t[i] && stbool[s[i]]) {
			puts("No");
			return 0;
		}
		if (ts[t[i]] != s[i] && tsbool[t[i]]) {
			puts("No");
			return 0;
		}
		st[s[i]] = t[i];
		stbool[s[i]] = true;
		ts[t[i]] = s[i];
		tsbool[t[i]] = true;
	}
	puts("Yes");
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:31: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]' (did you forget the '()' ?)
   13 |         for (int i = 0; i < s.size; i++) {
      |                             ~~^~~~
      |                                   ()
Language: C++

#include <iostream>
#include <cmath>
#include <string>
#include <algorithm>
#include <set>
#include <vector>
#include <map>
#include <list>
#include <stack>
#include <cstdio>
#include <cstring>
#include <cstdlib>
#include <queue>
#define prin(num) cout << num << endl
#define max(a, b) ((a)>(b) ? (a):(b))
#define min(a, b) ((a)<(b) ? (a):(b))
#define mp make_pair
#define INF 1000000000000000000
#define MOD 1000000007LL
#define MAX 100005
using namespace std;
typedef long long ll;
typedef pair<ll, ll> P;
typedef map<ll, ll> Map;

int main(void) {
    string s, t;
    cin >> s >> t;
    ll i;
    ll start[26]={}, goal[26]={};
    for(i=0; i<26; i++) {
        start[i]=-1;
        goal[i]=-1;
    }
    
    
    for(i=0; i<s.size(); i++) {
        ll a=s[i]-'a';
        ll b=t[i]-'a';
        
        if(start[a]==-1 && goal[b]==-1) {
            start[a]=b;
            goal[b]=a;
        }else if(goalt[b]!=a) {
            puts("No");
            return 0;
        }
    }
    
    puts("Yes");
    
}

Compiler output:
a.cc: In function 'int main()':
a.cc:44:18: error: 'goalt' was not declared in this scope; did you mean 'goal'?
   44 |         }else if(goalt[b]!=a) {
      |                  ^~~~~
      |                  goal
Language: C++

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

int main(){
	std::map<char, char> substitute;
	std::string s,t;

	std::cin >> s >> t;

	for( int len=s.length(), i=0; i<len; ++i ){
		if( s[i] == t[i] ){ continue;}
		if( substitute.find( s[i] ) != substitute.end() ){
			std::cout << "No" << std::endl;
			return;
		}
		substitute.insert( std::make_pair( s[i], t[i] ));
	}

	std::cout << "Yes" << std::endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:25: error: return-statement with no value, in function returning 'int' [-fpermissive]
   16 |                         return;
      |                         ^~~~~~
Language: C++

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

int main(){
	std::map<char, char> substitute;
	std::string s,t;

	std::cin >> s >> t;

	for( int len=s.length(), i=0; i<len; ++i ){
		if( s[i] == t[i] ){ continue;}
		if( substitute.find( s[i] ) != substitute.end() ){
			std::cout << "No" << std::endl;
			return;
		}
		substitute.insert( std::make_pair( s[i], t[i] ));
	}

	std::cout << "Yes" << std::endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:14: error: 'map' is not a member of 'std'
    6 |         std::map<char, char> substitute;
      |              ^~~
a.cc:3:1: note: 'std::map' is defined in header '<map>'; this is probably fixable by adding '#include <map>'
    2 | #include <vector>
  +++ |+#include <map>
    3 | #include <string>
a.cc:6:18: error: expected primary-expression before 'char'
    6 |         std::map<char, char> substitute;
      |                  ^~~~
a.cc:13:21: error: 'substitute' was not declared in this scope
   13 |                 if( substitute.find( s[i] ) != substitute.end() ){
      |                     ^~~~~~~~~~
a.cc:15:25: error: return-statement with no value, in function returning 'int' [-fpermissive]
   15 |                         return;
      |                         ^~~~~~
a.cc:17:17: error: 'substitute' was not declared in this scope
   17 |                 substitute.insert( std::make_pair( s[i], t[i] ));
      |                 ^~~~~~~~~~
Language: C++

#include <stdio.h>
#include <cstdio>
#include <queue>
#include <set>
using namespace std;

int MAX_L = 200001;

int main(){
  /* read input */
  char S[MAX_L];
  char T[MAX_L];
  scanf("%s", S);
  scanf("%s", T);
  int l = strlen(T);
  
  /* solve problem*/
  int table[26][26]; // S[i] - T[j]
  for(int i = 0; i < 26; i++){
    for(int j = 0; j < 26; j++){
      table[i][j] = 0;
    }
  }
  
  for(int i = 0; i < l; i++){
    table[(int)S[i] - (int)'a'][(int)T[i] - (int)'b'] = 1;
  }
  /*chech table*/
  int check_r = 0;
  int check_c = 0;
  for(int i = 0; i < 26; i++){
    check_r = 0;
    check_c = 0;
    for(int j = 0; j < 26; j++){
      check_c += table[i][j];
      check_r += table[j][i];
    }
    if(check_r > 1 || check_c > 1){ /* if result is negative*/
      printf("No");
      return 0;
    }
  }
  printf("Yes"); /*if cleared all check*/
  
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:11: error: 'strlen' was not declared in this scope
   15 |   int l = strlen(T);
      |           ^~~~~~
a.cc:5:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    4 | #include <set>
  +++ |+#include <cstring>
    5 | using namespace std;
Language: C++

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

using namespace std;

const int MAXN = (int)1e5 + 1;

struct Node {
  vector<int> node;
};

bool cmp(Node x, Node y) {
  if (x.node.size() != y.node.size()) 
    return x.node.size() < y.node.size();
  else {
    for (int i = 0; i < x.node.size(); ++i) {
      if (x.node[i] != y.node[i])
        return x.node[i] < y.node[i];
    }
  }
}

Node a[26], b[26];
char s[MAXN], t[MAXN];

bool solve() {
  int n = strlen(s);
  for (int i = 0; i < n; ++i) {
    a[s[i] - 'a'].node.push_back(i);
  }
  for (int i = 0; i < n; ++i) {
    b[t[i] - 'a'].node.push_back(i);
  }
  for (int i = 0; i < 26; ++i) {
    sort(a[i].node.begin(), a[i].node.end());
    sort(b[i].node.begin(), b[i].node.end());
  }
  sort(a, a + 26, cmp);
  sort(b, b + 26, cmp);
  for (int i = 0; i < 26; ++i) {
    if (a[i].node.size() != b[i].node.size())
      return false;
    for (int j = 0; j < a[i].node.size(); ++j) {
      if (a[i].node[j] != b[i].node[j])
        return false;
    }
  }
  return true;
}

int main() {
  scanf("%s", s);
  scanf("%s", t);
  if (solve()) puts("Yes");
  else puts("No");
  return 0;
}


Compiler output:
a.cc: In function 'bool solve()':
a.cc:28:11: error: 'strlen' was not declared in this scope
   28 |   int n = strlen(s);
      |           ^~~~~~
a.cc:4:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    3 | #include <algorithm>
  +++ |+#include <cstring>
    4 | 
a.cc: In function 'bool cmp(Node, Node)':
a.cc:22:1: warning: control reaches end of non-void function [-Wreturn-type]
   22 | }
      | ^
Language: C++

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

using namespace std;

int main()
{
  string s,t;
  int sm[26] = {0};
  int tm[26] = {0};

  cin >> s >> t;

  for (int i = 0; i < t.length(); i++) {
    tm[t[i] - 'a']++;
  }
  for (int i = 0; i < s.length(); i++) {
    sm[s[i] - 'a']++;
  }

  sort(tm, tm + 26);
  sort(sm, sm + 26);

  for (int i = 0; i < 26; i++) {
    if (tm[i] != sm[i]) {
      cout << "No";
      return 0;
    }
  }

  cout << "Yes";
  return 0
}

Compiler output:
a.cc: In function 'int main()':
a.cc:34:11: error: expected ';' before '}' token
   34 |   return 0
      |           ^
      |           ;
   35 | }
      | ~
Language: C++

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

using namespace std;

int main()
{
  string s,t;
  int sm[26] = {0};
  int tm[26] = {0};

  cin >> s >> t;

  for (int i = 0; i < t.length(); i++) {
    tm[t[i] - 'a']++;
  }
  for (int i = 0; i < s.length(); i++) {
    sm[s[i] - 'a']++;
  }

  sort(tm, tm + 26);
  sort(sm, sm + 26);

  for (int i = 0; i < 26; i++) {
    if (tm[i] != sm[i]) {
      cout << "No";
      return 0;
    }
  }

  cout << "Yes";
  return 0

Compiler output:
a.cc: In function 'int main()':
a.cc:34:11: error: expected ';' at end of input
   34 |   return 0
      |           ^
      |           ;
a.cc:34:11: error: expected '}' at end of input
a.cc:9:1: note: to match this '{'
    9 | {
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int m[26][26];

int main() {
    cin.tie(0);ios::sync_with_stdio(false);
    string s, t; cin >> s >> t;
    for (int i = 0; i < s.size(); i++) {
        m[s[i]-'a'][t[i]-'a'] = 1;
    }    
    for (int i = 0; i < 26; i++) {
        int c = 0;
        for (int j = 0; j < 26; j++)
            if (m[i][j])
                c++;
        if (c >= 2) {
            cout << "No\n";
            return ;
        }
    }

    cout << " Yes\n";
    
    
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:19:13: error: return-statement with no value, in function returning 'int' [-fpermissive]
   19 |             return ;
      |             ^~~~~~
Language: C

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

#define MYSTRINGMAX 200000 // 配列20万分取る
#define SIZE MYSTRINGMAX + 2 // MYSTRINGMAX+2した値をSIZEに入れたものを定義する SIZE = 200002

int main(void) {
	char s[SIZE], t[SIZE];
	char c[SIZE] = 0;

	fgets(s, SIZE, stdin);
	fgets(t, SIZE, stdin);

	int length = strlen(s); // lengthに文字列の長さを返すstrlen関数を配列sにて判定する
	
	for (int i = 0; i < length; i++) {
		int in = s[i] - 'a';
		if (c[in] == 0) {
			c[in] = t[i];
		} else {
			if (c[in] != t[i]) {
				printf("No\n");
				return 0;
			}
		}
	}
	printf("Yes\n"); // それ以外ならYesを実行
	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:9:24: error: invalid initializer
    9 |         char c[SIZE] = 0;
      |                        ^
Language: C

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

#define MYSTRINGMAX 200000 // 配列20万分取る
#define SIZE MYSTRINGMAX + 2 // MYSTRINGMAX+2した値をSIZEに入れたものを定義する SIZE = 200002

int main(void) {
	char s[SIZE], t[SIZE];

	fgets(s, SIZE, stdin);
	fgets(t, SIZE, stdin);

	int length = strlen(s); // lengthに文字列の長さを返すstrlen関数を配列sにて判定する
	
	for (int i = 0; i < length; i++) {
		if (s[i] != t[i]) {
			char c1 = s[i];
			for (int j = 0; j < i; j++) { // 変更し終わった部分を変えてしまう場合は"No"
				if (s[j] == t[i] || s[j] == c1) {
					printf("No\n");
					return 0;
				}
			}
			for (; j < length; j++) {
				if (s[j] == c1) {
					s[j] = t[i];
				}
				else if (s[j] == t[i]) {
					s[j] = c1; 
				}
			}
		}
	}
	printf("Yes\n"); // それ以外ならYesを実行
	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:24:32: error: 'j' undeclared (first use in this function)
   24 |                         for (; j < length; j++) {
      |                                ^
main.c:24:32: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

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

using namespace std;

int main(){

    map<char, int> check1, check2;

    string s, t;

    cin >> s >> t;

    for( int i = 0; i < s.size(); i++){
        check1[s[i]] ++;
        check2[t[i]] ++;
    }

    vector <int> ss, tt;

    for( auto i : check1){
        ss.push_back(i.second);
    }

    for( auto i : check2){
        tt.push_back(i.second);
    }

    sort(ss.begin(), ss.end());
    sort(tt.begin(), tt.end());

    if( ss.size() != tt.size()){
        cout << "No";
        return 0;
    }

    for( int i = 0; i < ss.size(); i++){
        if( ss[i] != tt[i] ){
            cout << "No";
            return 0;
        }
    }

    cout << "Yes";
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:22:5: error: 'vector' was not declared in this scope
   22 |     vector <int> ss, tt;
      |     ^~~~~~
a.cc:6:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    5 | #include <map>
  +++ |+#include <vector>
    6 | 
a.cc:22:13: error: expected primary-expression before 'int'
   22 |     vector <int> ss, tt;
      |             ^~~
a.cc:25:9: error: 'ss' was not declared in this scope; did you mean 's'?
   25 |         ss.push_back(i.second);
      |         ^~
      |         s
a.cc:29:9: error: 'tt' was not declared in this scope; did you mean 't'?
   29 |         tt.push_back(i.second);
      |         ^~
      |         t
a.cc:32:10: error: 'ss' was not declared in this scope; did you mean 's'?
   32 |     sort(ss.begin(), ss.end());
      |          ^~
      |          s
a.cc:33:10: error: 'tt' was not declared in this scope; did you mean 't'?
   33 |     sort(tt.begin(), tt.end());
      |          ^~
      |          t
Language: C++

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

using namespace std;

int main(){

    map<char, int> check1, check2;

    string s, t;

    cin >> s >> t;

    for( int i = 0; i < s.size(); i++){
        check1[s[i]] ++;
        check2[t[i]] ++;
    }
    
    vector <int> ss, tt;
    
    for( auto i : check1){
        ss.push_back(i.second);
    }
    
    for( auto i : check2){
        tt.push_back(i.second);
    }
    
    sort(ss.begin(), ss.end());
    sort(tt.begin(), tt.end());
    
    if( ss.size() != tt.size()){
        cout << "No";
        return 0;
    }
    
    for( int i = 0; i < ss.size(); i++){
        if( ss[i] != tt[i] ){
            cout << "No";
            return 0;
        }
    }
    
    cout << "Yes";
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:5: error: 'map' was not declared in this scope
   10 |     map<char, int> check1, check2;
      |     ^~~
a.cc:5:1: note: 'std::map' is defined in header '<map>'; this is probably fixable by adding '#include <map>'
    4 | #include <cstring>
  +++ |+#include <map>
    5 | 
a.cc:10:9: error: expected primary-expression before 'char'
   10 |     map<char, int> check1, check2;
      |         ^~~~
a.cc:17:9: error: 'check1' was not declared in this scope
   17 |         check1[s[i]] ++;
      |         ^~~~~~
a.cc:18:9: error: 'check2' was not declared in this scope
   18 |         check2[t[i]] ++;
      |         ^~~~~~
a.cc:21:5: error: 'vector' was not declared in this scope
   21 |     vector <int> ss, tt;
      |     ^~~~~~
a.cc:5:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    4 | #include <cstring>
  +++ |+#include <vector>
    5 | 
a.cc:21:13: error: expected primary-expression before 'int'
   21 |     vector <int> ss, tt;
      |             ^~~
a.cc:23:19: error: 'check1' was not declared in this scope
   23 |     for( auto i : check1){
      |                   ^~~~~~
a.cc:24:9: error: 'ss' was not declared in this scope; did you mean 's'?
   24 |         ss.push_back(i.second);
      |         ^~
      |         s
a.cc:27:19: error: 'check2' was not declared in this scope
   27 |     for( auto i : check2){
      |                   ^~~~~~
a.cc:28:9: error: 'tt' was not declared in this scope; did you mean 't'?
   28 |         tt.push_back(i.second);
      |         ^~
      |         t
a.cc:31:10: error: 'ss' was not declared in this scope; did you mean 's'?
   31 |     sort(ss.begin(), ss.end());
      |          ^~
      |          s
a.cc:32:10: error: 'tt' was not declared in this scope; did you mean 't'?
   32 |     sort(tt.begin(), tt.end());
      |          ^~
      |          t
Language: C

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

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

int main(){
    int length, i;
    char A[200001], B[200001];
    scanf("%s %s", A, B);

    //配列の長さを取得
    //while(A[length++] != '\0'); 初期値 length = -1 こちらの方が良いかも
    length = strlen(A);

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

    return 0;
}

//判定関数 引数は文字列2つと文字列の長さ
int compare(char *A, char *B, int length){
    for(int i=0; i<length; i++){
        for(int j=i+1; j<length;j++){
            if(A[i] == A[j]){
                if(B[i] != B[j]) return 0;
            if(B[i] == B[j]){
                if(A[i] != A[j]) return 0;
            }
        }
    }
    return 1;
}


Compiler output:
main.c: In function 'compare':
main.c:33:1: error: expected declaration or statement at end of input
   33 | }
      | ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: 'vector' was not declared in this scope
    8 |         vector<int> start(26,-1);
      |         ^~~~~~
a.cc:2:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    1 | #include <iostream>
  +++ |+#include <vector>
    2 | using namespace std;
a.cc:8:16: error: expected primary-expression before 'int'
    8 |         vector<int> start(26,-1);
      |                ^~~
a.cc:9:16: error: expected primary-expression before 'int'
    9 |         vector<int> goal(26,-1);
      |                ^~~
a.cc:14:20: error: 'start' was not declared in this scope
   14 |                 if(start[a] != -1 || goal[b] != -1){
      |                    ^~~~~
a.cc:14:38: error: 'goal' was not declared in this scope
   14 |                 if(start[a] != -1 || goal[b] != -1){
      |                                      ^~~~
Language: C

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

#define S_STRING_MAX = (200000+1)

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

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

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

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

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


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