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

#include <iostream>
#include <algorithm>
#include <cmath>
#include <limits>
#include <vector>
#include <cstdio>
#include <bits/stdc++.h>
#include <set>
#include <map>
#include <stdio.h>
#include <stack>
#include <queue>
#include <deque>
#include <numeric>
#include<bits/stdc++.h>
#include <utility>

#define ALL(obj) (obj).begin(), (obj).end()
#define FOR(i,a,b) for(int i = (a); i < (b); i++)
#define RFOR(i,a,b) for(int i = (a); (b) <= i; i--)
#define REP(i,n) for(int i = 0; i < (n); i++)
#define RREP(i,n) for(int i = n; n <= i; i--)
#define ABS(a) ((a < 0) ? ((-1)*(a)) : (a))
#define elif else if
#define MOD 1000000007
#define INF (1<<29)

using namespace std;
using ll = long long;
map <int ,int> mpa,mpb;
typedef pair<ll, ll> P;
priority_queue<P, vector<P>, greater<P>> pque;

int main(){
  ios::sync_with_stdio(false);
  cin.tie(NULL);
  int N,M,X,Y;
  cin >> N >> M >> X >> Y;
  int x[N],y[N];
  for(int i=0;i<N;i++){
    cin >> x[i];
  }
  for(int i=0;i<M;i++){
    cin >> y[i];
  }
  bool flag =false;
  sort(x,x+N);
  sort(y,y+M);
  for(int Z=X+1;Z<=Y;Z++){
    for(int i=0;i<N;i++){
      for(int j=0;j<M;j++){
        if(x[i]<Z && Z<=Y[j]){
          flag =true;
          break;
        }
      }
    }
  }
  if(flag){
    cout << "No War"<< endl;
  }else{
    cout << "War" << endl;
  }
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:52:26: error: invalid types 'int[int]' for array subscript
   52 |         if(x[i]<Z && Z<=Y[j]){
      |                          ^
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main() {
	int n, m, X, Y;
	vector<int> x(100, 0), y(100, 99999);
	cin >> n >> m >> X >> Y;
	for (int i = 0; i < n; i++) {
		cin >> x[i];
	}
	for (int i = 0; i < m; i++) {
		cin >> y[i];
	}
	int xm = *max_element(x.begin(), x.end()), ym = *min_element(y.begin(), y.end());
	if (xm < ym && X < ym && Y => xm) {
		cout << "No War";
	} else {
		cout << "War";
	}
	
	
	return 0;
}




Compiler output:
a.cc: In function 'int main()':
a.cc:16:37: error: expected primary-expression before '>' token
   16 |         if (xm < ym && X < ym && Y => xm) {
      |                                     ^
Language: C++

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

int main(void){
  int N,M;
  cin >> N >> M;

  int X,Y;
  cin >> X >> Y;
  
  int x[N] = {0};
  int y[M] = {0};

  for(int i = 0; i < N; ++i){
    cin >> x[i];
  }
  for(int i = 0; i < M; ++i){
    cin >> y[i];
  }

  sort(x, x + N, greater<int>());
  sort(y, y + M);

  if(y[0] - x[0] =< 0){
    cout << "War" << endl;
  } else if(y[0] <= X){
    cout << "War" << endl;
  } else {
    cout << "No War" << endl;
  }
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:25:19: error: expected primary-expression before '<' token
   25 |   if(y[0] - x[0] =< 0){
      |                   ^
Language: C++


using namespace std;
int main(){
    int n,m;
    int x,y;
    cin>>n>>m>>x>>y;
    int a[n],b[m];
    for(int i=0;i<n;i++){
        cin>>a[i];
    }
    for(int k=0;k<m;k++){
        cin>>b[k];
    }
    a[n]=x;
    b[m]=y;
    sort(a,a+n+1);
    sort(b,b+m+1);
    if(a[n]>=b[0]){
        cout<<"War"<<endl;
    }
    else cout<<"No War"<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: 'cin' was not declared in this scope
    6 |     cin>>n>>m>>x>>y;
      |     ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | 
a.cc:16:5: error: 'sort' was not declared in this scope; did you mean 'short'?
   16 |     sort(a,a+n+1);
      |     ^~~~
      |     short
a.cc:19:9: error: 'cout' was not declared in this scope
   19 |         cout<<"War"<<endl;
      |         ^~~~
a.cc:19:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:19:22: error: 'endl' was not declared in this scope
   19 |         cout<<"War"<<endl;
      |                      ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | 
a.cc:21:10: error: 'cout' was not declared in this scope
   21 |     else cout<<"No War"<<endl;
      |          ^~~~
a.cc:21:10: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:21:26: error: 'endl' was not declared in this scope
   21 |     else cout<<"No War"<<endl;
      |                          ^~~~
a.cc:21:26: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

#include<cstdio>
#include<algorithm>
using namespace std;
int main()
{
    int n,m,x,y;
    scanf("%d%d%d%d",&n,&m,&x,&y);
    int ma=-1e9,mi=1e9,k;
    while(n--)
    {
        scanf("%d",&k);
        ma=max(ma,k);
    }
    while(m--)
    {
        scanf("%d",&k);
        mi=min(mi,k);
    }
    if(ma<mi) 
    {
        bool flag=false;
        for(int i=x+1;i<=y;i++)
        if(i>ma&&&i<=mi) {flag=true;break;}
        if(flag)
            printf("No War\n");
        else printf("Wat\n")
    }
    else printf("War\n");
}


Compiler output:
a.cc: In function 'int main()':
a.cc:23:20: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   23 |         if(i>ma&&&i<=mi) {flag=true;break;}
      |                  ~~^~~~
a.cc:26:29: error: expected ';' before '}' token
   26 |         else printf("Wat\n")
      |                             ^
      |                             ;
   27 |     }
      |     ~
Language: C

#!/usr/bin/tcc -run

#include <stdio.h>

int main(void)
{
	int X, Y, min, max, N, M, i;
	scanf("%d%d%d%d", &N, &M, &X, &Y);
	min = X + 1;
	for (i = 0; i < N; ++i) {
		int x;
		scanf("%d", &x);
		if (x >= min) min = x + 1;
	}
	max = Y;
	for (i = 0; i < M; ++i) {
		int x;
		scanf("%d", &x);
		if (x < max) max = x;
	}

	if (min <= max) puts("No War");
	else puts("War");

	return 0;
}


Compiler output:
main.c:1:2: error: invalid preprocessing directive #!
    1 | #!/usr/bin/tcc -run
      |  ^
Language: C++

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

int main(){
	int N,M,X,Y;
	cin >> N >> M >> X >> Y;
	vector<int> x(N);
	vector<int> y(M);
	for(int i=0;i<N;i++){
		cin >> x.at(i);
	}
	for(int i=0;i<M;i++){
		cin >> y.at(i);
	}
	sort(x.begin(),x.end());
	sort(y.begin(),y.end());
	if(X+1<Y && y.at(0) > X && x.at(N-1)+1<=Y &&){
		cout << "No ";
	}
	cout << "War" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:53: error: expected primary-expression before ')' token
   17 |         if(X+1<Y && y.at(0) > X && x.at(N-1)+1<=Y &&){
      |                                                     ^
Language: C++

#include <iostream>
using namespace std;

void bubbleSort(int numbers[], int array_size){
  int i, j, temp;
  for (i = 0; i < (array_size - 1); i++) {
    for (j = (array_size - 1); j > i; j--) {
      if (numbers[j-1] > numbers[j]) {
        temp = numbers[j-1];
        numbers[j-1] = numbers[j];
        numbers[j] = temp;
      }
    }
  }
}

int main(){
    int N, M, X, Y;
    int x[101], y[101];
    cin >> N >> M >> X >> Y;
    for(int i = 0; i < N; i++){
        cin >> x[i];
    }
    bubbleSort(x[], N);
    for(int i = 0; i < M; i++){
        cin >> y[i];
    }
    bubbleSort(y[], M);
    bool wars = false;
    for(int i = X; i <= Y; i++){
        if(x[N-1] <= i && i <= y[0]){
            wars = true;
            break;
        }
    }
    if(wars) cout << "No War" << endl;
    else cout << "Wars" << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:24:18: error: expected primary-expression before ']' token
   24 |     bubbleSort(x[], N);
      |                  ^
a.cc:28:18: error: expected primary-expression before ']' token
   28 |     bubbleSort(y[], M);
      |                  ^
Language: C++

#include <cstdio>
#include <algorithm>
using namespace std;

#define FOR(i, a, b) for (int i = (a); i < (b); i++)
#define MAX 110

int main() {
	int n, m, x, y, X[MAX], Y[MAX]; 
	scanf("%d %d %d %d", &n, &m, &x, &y);
	FOR(i, 0, n) scanf("%d", &X[i]); 
	FOR(i, 0, m) scanf("%d", &Y[i]);

	sort(X, X + n); sort(Y, Y + m);

	bool isWar = true;

	if (X[n - 1] > Y[0]) {
		printf("War\n"); return 0;
	}

	for (int i = X[n - 1] + 1; i <= Y[0]; i++) {
		if (x < i && i <= y) {
			isWar = false; break;
		}
	}

	if (isWar) printf("War\n");
	else printf("No War\n");

	return 0;

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

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

int main(){
    int N, M, X, Y;
    cin >> N >> M >> X >> Y;
    int x[N], y[M];
    for (int i=0; i<N; i++) {
        cin >> x[i];
    }
    for (int i=0; i<M; i++) {
        cin >> y[i];
    }

    sort(x, x+N);
    sort(y, y+M);

    if (x[N-1] < y[0]) {
        if (x[N-1] < Y && X < y[0]) {
            cout << "No War" << endl;
            return 0;
        }
    }

    cout << "War" << endl;
    return 0;

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

# coding: utf-8
# Your code here!

N,M,X,Y = [int(i) for i in input().split()]

x = [int(i) for i in input().split()]
y = [int(i) for i in input().split()]
flag = False

if min(y) > max(x):

    for i in range(max(x)+1,min(y)+1):

        if Y >= i > X:
            flag = True

if flag:
    print('No War')
else:
    print('War')

Compiler output:
a.cc:1:3: error: invalid preprocessing directive #coding
    1 | # coding: utf-8
      |   ^~~~~~
a.cc:2:3: error: invalid preprocessing directive #Your
    2 | # Your code here!
      |   ^~~~
a.cc:18:11: warning: multi-character literal with 6 characters exceeds 'int' size of 4 bytes
   18 |     print('No War')
      |           ^~~~~~~~
a.cc:20:11: warning: multi-character character constant [-Wmultichar]
   20 |     print('War')
      |           ^~~~~
a.cc:4:1: error: 'N' does not name a type
    4 | N,M,X,Y = [int(i) for i in input().split()]
      | ^
Language: C++

#include<iostream>
#include<algorithm>
#include<vector>
using namespace std;
int main(){
  int N,M,X,Y;
  cin>>N>>M>>X>>Y;
  vector<int> x(N);
  vector<int> y(M);
  for(int i=0; i<N;i++){
  	cin>>x[i];
  }
  for(int i=0; i<M;i++){
  	cin>>y[i];
  }
  x.sort();
  y.sort();
  if(X<Y){
    if(x.back()<y.front()) cout<<"No War"<<endl;return 0;
  }else{
    if(y.back()<x.front()) cout<<"No War"<<endl;return 0;
  }
  cout<<"War"<<endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:5: error: 'class std::vector<int>' has no member named 'sort'
   16 |   x.sort();
      |     ^~~~
a.cc:17:5: error: 'class std::vector<int>' has no member named 'sort'
   17 |   y.sort();
      |     ^~~~
Language: C++

#include<bits/stdc++.h>

using namespace std;

int main(){
  int x1,y1,tmp;
  int n,m;
  cin >> n >> m;
  cin >> x1 >> y1;
  if(x1>=y){
    cout << "War" << endl;
    return 0;
  }
  int x[100];
  int y[100];
  for(int i=0; i<n; ++i){
    cin >> x[i];
  }
  for(int i=0; i<m; ++i){
    cin >> y[i];
  }
  for (int i=0; i<n; ++i) {
    for (int j=i+1; j<n; ++j) {
      if (x[i] < x[j]) {
        tmp =  x[i];
        x[i] = x[j];
        x[j] = tmp;
      }
    }
  }
  for (int i=0; i<m; ++i) {
    for (int j=i+1; j<m; ++j) {
      if (y[i] < y[j]) {
        tmp =  y[i];
        y[i] = y[j];
        y[j] = tmp;
      }
    }
  }
  if(x[0]<y){
    if(y[m-1]>x){
      cout << "No War" << endl;
    }
    else{
      cout << "War" << endl;
    }
  }
  else{
    cout << "War" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:10: error: 'y' was not declared in this scope
   10 |   if(x1>=y){
      |          ^
a.cc:40:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   40 |   if(x[0]<y){
      |      ~~~~^~
a.cc:41:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   41 |     if(y[m-1]>x){
      |        ~~~~~~^~
Language: C++

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

#define FOR(i,a,b) for(i=(a);i<(b);++i) 
#define FORR(i,a,b) for(i=(a);i>(b);--i)
#define REP(i,n) for(i=0;i<(n);++i)
#define REPR(i,n) for(i=(n);i>0;--i)
#define ll long long
#define INT_MAX 2147483647
#define LL_MAX 9223372036854775807

using namespace std;

long long GCD(long long a, long long b) {
	if (a < b)
		swap(a, b);
	if (b == 0) return a;
	else return GCD(b, a % b);
}
bool sosuu_check(int num) {
	int i;
	for (i = 2; i <= sqrt(num); ++i) {
		if (num%i == 0)
			return false;
	}
	return (num < 2) ? false : true;
}
int main() {
	int N, M, X, Y, i, xmax = -100, xmin = 100, ymax = -100, ymin = 100, x, y;
	cin >> N >> M >> X >> Y;
	REP(i, N) {
		cin >> x;
		xmax = max(xmax, x);
		xmin = min(xmin, x);
	}
	REP(i, M) {
		cin >> y;
		ymax = max(ymax, y);
		ymin = min(ymin, y);
	}
	xmax = max(X, amax);
	ymin = min(Y, ymin);
	if (xmax < ymin) {
		cout << "No War" << endl;
		return 0;
	} 
	else {
		cout << "War" << endl;
		return 0;
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:45:23: error: 'amax' was not declared in this scope; did you mean 'ymax'?
   45 |         xmax = max(X, amax);
      |                       ^~~~
      |                       ymax
Language: Java

import java.util.Scanner;
import java.util.Arrays;

public class B{
    public static void main(String args[]){
        
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int m = sc.nextInt();
        int a[] = new int[n + 1];
        int b[] = new int[m + 1];
        
        int x = sc.nextInt();
        int y = sc.nextInt();
        a[0] = x;
        b[0] = y;
        for(int i = 1; i < n + 1; i++){
            a[i] = sc.nextInt();
        }
        for(int i = 1; i < m + 1; i++){
            b[i] = sc.nextInt();
        }
        Arrays.sort(a);
        Arrays.sort(b);
        
        System.out.println(a[n] < b[0] ? "No War" : "War");
    }
}

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

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

using namespace std;

int main() {
  int n, m, x, y;
  cin >> n >> m >> x >> y;

  int el;
  int maxx = -100;
  for (int i=0; i<n; ++i) {
    cin >> el;
    maxx = max(maxx,el);
  }
  int miny = 100;
  for (int i=0; i<m; ++i) {
    cin >> el;
    miny = min(miny,el);
  }
  
  for (int i=x+1; i<=y; ++i) {
    if (maxx<i && miny>=i) {
      cout << "No War" << endl;
      return;
    }
  }
  
  cout << "War" << endl;  
}


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

#include <bits/stdc++.h>
using namespace std;
int main(){
	int n,m,x[100],y[100];
	cin>>n>>m;
	for(int i=0;i<n;i++){
		cin>>x[i];
	}
	for(int i=0;i<m;i++){
		cin>>y[i];
	}
	sort(x,x+n;);
	sort(y,y+m);
	if(x[n-1]<y[0])cout<<"No War"<<endl;
	else cout<<"War"<<endl;

	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:19: error: expected ')' before ';' token
   12 |         sort(x,x+n;);
      |             ~     ^
      |                   )
a.cc:12:20: error: expected primary-expression before ')' token
   12 |         sort(x,x+n;);
      |                    ^
Language: C++

#include<bits/stdc++.h>
#define reps(i,j,k) for(int i=j;i<k;i++)
#define rep(i,j) reps(i,0,j)
#define fs first
#define sc second 

using namespace std;

typedef pair<int, int> pii;
typedef vector<int> vi;
typedef long long ll;

int main(){
	int n,m,x,y;
	cin >> n >> m >> x >> y;
	int x=-111, y=111, t;
	rep(i,n){
		cin >> t;
		x = max(x, t);
	}
	rep(i,m){
		cin >> t;
		y = min(y, t);
	}
	cout << (x < y? "No War" : "War") << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:13: error: redeclaration of 'int x'
   16 |         int x=-111, y=111, t;
      |             ^
a.cc:14:17: note: 'int x' previously declared here
   14 |         int n,m,x,y;
      |                 ^
a.cc:16:21: error: redeclaration of 'int y'
   16 |         int x=-111, y=111, t;
      |                     ^
a.cc:14:19: note: 'int y' previously declared here
   14 |         int n,m,x,y;
      |                   ^
Language: C++

#include <iostream>
#include <vector>
#include <cmath>
#include <string>
#include <iomanip>
#include <set>
#include <unordered_set>
#include <map>
#include <unordered_map>
#include <queue>
#include <stack>
#include <functional>
#include <algorithm>
#include <climits>
#include <sstream>
#include <complex>

using namespace std;

using ii = pair<int, int>;
using vi = vector<int>;
using vii = vector<ii>;
using vvi = vector<vi>;
using iii = pair<int, ii>;
using viii = vector<iii>;

using ll = long long int;
using vc = vector<char>;
using vb = vector<bool>;
using ib = pair<int, bool>;
using vib = vector<ib>;

#define MOD 1000 * 1000 * 1000 + 7
#define INF 1000 * 1000 * 1000
#define EMPTY -10
#define mp(a, b) make_pair(a,b)

bool resuelveCaso() {
	int n;
	cin >> n;
	if (!cin) return false;
	int m, x, y;
	cin >> m >> x >> y;

	vi v1(n);
	vi v2(m);

	for (int i = 0; i < n; ++i) cin >> v1[i];
	for (int i = 0; i < m; ++i) cin >> v2[i];

	sort(v1.begin(), v1.end());
	sort(v2.begin(), v2.end());

	if (min(v2[0], y) > max(v1[n - 1], x)) cout << "No War\n";
	else cout << "War\n";

	return true;
}

Compiler output:
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C++

#include<bits/stdc++.h>
using namespace std;
using ll = long long;
using product = pair<ll,ll>;
using vvll = vector<vector<ll>>;
using vll = vector<ll>;

int main()
{
    string s,t;
    cin>>s>>t;
    vector<char> shiftS(26,' ');// tのアルファベットはsのどのアルファベットに対応する？
    vector<char> shiftT(26,' ');// 逆
    string res="Yes";
    ll length=s.size();
    for(ll i=0;i<length;i++)
    {
        ll numS=s[i]-'a';
        ll numT=t[i]-'a';
        if(shiftS[numS]!=t[i] && shiftS[numS]!=' ')
        {
            res="No";break;
        }
        if(shiftT[numT]!=s[i] && shiftT[numT]!=' ')
        {
            res="No";break;
        }
        shiftS[numS]=t[i];
        shiftT[numT]=s[i];
    }
    cout<<res;

Compiler output:
a.cc: In function 'int main()':
a.cc:31:15: error: expected '}' at end of input
   31 |     cout<<res;
      |               ^
a.cc:9:1: note: to match this '{'
    9 | {
      | ^
Language: C++

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

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

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

int main() {
    cin.tie(nullptr);
    ios_base::sync_with_stdio(false);

    string s, t;
    cin >> s >> t;

    vector<int> s_table(26, -1);
    vector<int> t_tbale(26, -1);

    rep(i, s.size()) {
        int a = s[i] - 'a';
        int b = t[i] - 'a';

        if(s_table[b] != -1 || t_table[a] != -1) {
            if(s_table[b] != a || t_table[a] != b) {
                cout << "No" << endl;
                return 0;
            }
        }

        s_table[b] = a;
        t_table[a] = b;
    }
    cout << "Yes" << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:36:32: error: 't_table' was not declared in this scope; did you mean 't_tbale'?
   36 |         if(s_table[b] != -1 || t_table[a] != -1) {
      |                                ^~~~~~~
      |                                t_tbale
a.cc:44:9: error: 't_table' was not declared in this scope; did you mean 't_tbale'?
   44 |         t_table[a] = b;
      |         ^~~~~~~
      |         t_tbale
Language: C++

set <int >a[26], b[26];
 
int main()
{
	int n;
	string y,x;
	cin >> x >> y;
	for (int i = 0; i < x.size(); i++)
	{
		a[x[i] - 'a'].insert(y[i] - 'a');
		b[y[i] - 'a'].insert(x[i] - 'a');
	}
	for (int i = 0; i <= 25; i++)
	{
		if (a[i].size() > 1 || b[i].size() > 1)
		{
			cout << "No" << endl;
			return 0;
		}
	}
	cout << "Yes" << endl;
}

Compiler output:
a.cc:1:1: error: 'set' does not name a type
    1 | set <int >a[26], b[26];
      | ^~~
a.cc: In function 'int main()':
a.cc:6:9: error: 'string' was not declared in this scope
    6 |         string y,x;
      |         ^~~~~~
a.cc:7:9: error: 'cin' was not declared in this scope
    7 |         cin >> x >> y;
      |         ^~~
a.cc:7:16: error: 'x' was not declared in this scope
    7 |         cin >> x >> y;
      |                ^
a.cc:7:21: error: 'y' was not declared in this scope
    7 |         cin >> x >> y;
      |                     ^
a.cc:10:17: error: 'a' was not declared in this scope
   10 |                 a[x[i] - 'a'].insert(y[i] - 'a');
      |                 ^
a.cc:11:17: error: 'b' was not declared in this scope
   11 |                 b[y[i] - 'a'].insert(x[i] - 'a');
      |                 ^
a.cc:15:21: error: 'a' was not declared in this scope
   15 |                 if (a[i].size() > 1 || b[i].size() > 1)
      |                     ^
a.cc:15:40: error: 'b' was not declared in this scope
   15 |                 if (a[i].size() > 1 || b[i].size() > 1)
      |                                        ^
a.cc:17:25: error: 'cout' was not declared in this scope
   17 |                         cout << "No" << endl;
      |                         ^~~~
a.cc:17:41: error: 'endl' was not declared in this scope
   17 |                         cout << "No" << endl;
      |                                         ^~~~
a.cc:21:9: error: 'cout' was not declared in this scope
   21 |         cout << "Yes" << endl;
      |         ^~~~
a.cc:21:26: error: 'endl' was not declared in this scope
   21 |         cout << "Yes" << endl;
      |                          ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
typedef pair<ll,ll> P;
typedef pair<int,int> Pi;
#define rep(i,n) for(ll i=0;i<n;i++)
#define FOR(i,a,b) for(ll i=a;i<b;i++)
#define fi first
#define se second
#define endl "\n"

template<typename T> inline bool chmax(T &a, T b){if(a<b){a=b;return true;}return false;}
template<typename T> inline bool chmin(T &a, T b){if(a>b){a=b;return true;}return false;}
template<typename T> ostream& operator<<(ostream& s,const complex<T>& d) {return s<<"("<<d.real()<<", "<<d.imag()<< ")";}
template<typename T1, typename T2> ostream& operator<<(ostream& s,const pair<T1,T2>& d) {return s<<"("<<d.first<<", "<<d.second<<")";}
template<typename T> ostream& operator<<(ostream& s, const vector<T>& d){int len=d.size();rep(i,len){s<<d[i];if(i<len-1) s<<" ";}return s;}
template<typename T> ostream& operator<<(ostream& s,const vector<vector<T>>& d){int len=d.size();rep(i,len){s<<d[i]<<endl;}return s;}
template<typename T> ostream& operator<<(ostream& s,const set<T>& v){s<<"{ ";for(auto itr=v.begin();itr!=v.end();++itr) {if (itr!=v.begin()) {s<< ", ";}s<<(*itr);}s<<" }";return s;}
template<typename T> ostream& operator<<(ostream& s,const multiset<T>& v){s<<"{ ";for(auto itr=v.begin();itr!=v.end();++itr) {if (itr!=v.begin()) {s<< ", ";}s<<(*itr);}s<<" }";return s;}
template<typename T1, typename T2> ostream& operator<<(ostream& s,const map<T1,T2>& m){s<<"{"<<endl;for(auto itr=m.begin();itr!=m.end();++itr){s<<" "<<(*itr).first<<" : "<<(*itr).second<<endl;}s<<"}"<<endl;return s;}

const ll mod=1'000'000'007;
const ll inf=1'000'000'000'000'000'00;
const int INF=1'000'000'000;
const double EPS=1e-10;
const double PI=acos(-1);

int main(){
	cin.tie(0);ios::sync_with_stdio(false);
	string s,t;
	cin>>s>>t;
	int n=s.size();
	map<char,char> mp1,mp2;
	rep(i,n){
		if(mp1.count(s[i])){
			if(mp1[s[i]]!=t[i]){
				cout<<"No"<<endl;
				return 0;
			}
		}
		mp1[s[i]]=t[i];
		if(mp2.count(t[i])){
			if(mp2[t[i]]!=s[i]){
				cout<<"No"<<endl;
				return 0;
			}
		}
		mp2[t[i]]=s[i]
	}
	cout<<"Yes"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:49:31: error: expected ';' before '}' token
   49 |                 mp2[t[i]]=s[i]
      |                               ^
      |                               ;
   50 |         }
      |         ~
Language: Java

import java.io.*;
import java.util.*;

public class Solution {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String s = sc.next(), t = sc.next();
    int N = s.length();
    TreeMap<Character, Character> StoT = new TreeMap<>();
    TreeMap<Character, Character> TtoS = new TreeMap<>();
    for(int i = 0; i<N; i++){
      //First Observation for every character in S they can only map to one unique character of T
      if(StoT.containsKey(s.charAt(i)) && StoT.get(s.charAt(i)) != t.charAt(i)){
        System.out.println("No");
        System.exit(0);
      }
      //Second Observation for every character in T they can only map to one unique character of S
      if(TtoS.containsKey(t.charAt(i)) && TtoS.get(t.charAt(i)) != s.charAt(i)){
        System.out.println("No");
        System.exit(0);
      }   
      StoT.put(s.charAt(i), t.charAt(i));
      TtoS.put(t.charAt(i), s.charAt(i));
    }
    System.out.println("Yes");
  }
}


Compiler output:
Main.java:4: error: class Solution is public, should be declared in a file named Solution.java
public class Solution {
       ^
1 error
Language: Java

/*
 * Click `Run` to execute the snippet below!
 */

import java.io.*;
import java.util.*;

/*
 * To execute Java, please define "static void main" on a class
 * named Solution.
 *
 * If you need more classes, simply define them inline.
 */

public class Mainn {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String s = sc.next(), t = sc.next();
    int N = s.length();
    TreeMap<Character, Character> StoT = new TreeMap<>();
    TreeMap<Character, Character> TtoS = new TreeMap<>();
    for(int i = 0; i<N; i++){
      //First Observation for every character in S they can only map to one unique character of T
      if(StoT.containsKey(s.charAt(i)) && StoT.get(s.charAt(i)) != t.charAt(i)){
        System.out.println("No");
        System.exit(0);
      }
      //Second Observation for every character in T they can only map to one unique character of S
      if(TtoS.containsKey(t.charAt(i)) && TtoS.get(t.charAt(i)) != s.charAt(i)){
        System.out.println("No");
        System.exit(0);
      }   
      StoT.put(s.charAt(i), t.charAt(i));
      TtoS.put(t.charAt(i), s.charAt(i));
    }
    System.out.println("Yes");
  }
}


Compiler output:
Main.java:15: error: class Mainn is public, should be declared in a file named Mainn.java
public class Mainn {
       ^
1 error
Language: Java

import java.io.*;
import java.util.*;

public class Solution {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String s = sc.next(), t = sc.next();
    int N = s.length();
    TreeMap<Character, Character> StoT = new TreeMap<>();
    TreeMap<Character, Character> TtoS = new TreeMap<>();
    for(int i = 0; i<N; i++){
      if(StoT.containsKey(s.charAt(i)) && StoT.get(s.charAt(i)) != t.charAt(i)){
        System.out.println("No");
        System.exit(0);
      }
      if(TtoS.containsKey(t.charAt(i)) && TtoS.get(t.charAt(i)) != s.charAt(i)){
        System.out.println("No");
        System.exit(0);
      }   
      StoT.put(s.charAt(i), t.charAt(i));
      TtoS.put(t.charAt(i), s.charAt(i));
    }
    System.out.println("Yes");
  }
}


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

#include <bits/stdc++.h>
using namespace std;
struct Fast {
    Fast() {
        cin.tie(0);
        ios::sync_with_stdio(false);
        cout << fixed << setprecision(20);
    }
} fast;
template <typename A, size_t N, typename T> void Fill(A (&array)[N], const T& val) {
    std::fill((T*)array, (T*)(array + N), val);
}
// long long mod = 998244353;
#define REP(i, n) for (long long i = 0; i < (n); i++)
#define rep(i, a, n) for (long long i = a; i < (n); i++)
typedef long long ll;
typedef pair<ll, ll> P;
long long mod = 1000000007;
long long modpow(long long m, long long n, long long modvalue) {
    if (n == 0) return 1;
    if (n % 2 == 0) {
        long long t = modpow(m, n / 2, modvalue);
        return t * t % modvalue;
    } else {
        return modpow(m, n - 1, modvalue) * m % modvalue;
    }
}

long long moddiv(long long a, long long b, ll modvalue) { return (a * modpow(b, mod - 2, modvalue)) % modvalue; }

const ll INF = 1LL << 60;

string change_binary(long long a) {
    string ret;
    for (int i = 31; i >= 0; i--) {
        ret += (a >> i & 1) + '0';
    }
    return ret;
}

ll nCkmod(ll n, ll k, ll modvalue) {
    ll numera = 1;
    for (int i = n; i > n - k; i--) {
        numera *= i;
        numera %= modvalue;
    }
    ll denomi = 1;
    REP(i, k) {
        denomi *= (i + 1);
        denomi %= modvalue;
    }
    return moddiv(numera, denomi, modvalue);
}

map<ll, ll> cnt;
void primeFactors(long long n) {
    while (n % 2 == 0) {
        cnt[2]++;
        n = n / 2;
    }
    for (int i = 3; i <= sqrt(n); i = i + 2) {
        while (n % i == 0) {
            cnt[i]++;
            n = n / i;
        }
    }
    if (n > 2) {
        cnt[n]++;
    }
}

bool check(string s, string t){
	
    map<char, char> cnt;
    REP(i, s.size()) {
        if (cnt[s[i]] == 0) {
            cnt[s[i]] = t[i];
        } else if (t[i] != cnt[s[i]]) {
            return false;
        }
    }
  return true;
}
int main() {
    string s, t;
    cin >> s >> t;
  	if(check(s,t) && check(t,s))
	    cout << "Yes" << endl;
  	else 
     	cout << "No << endl;
}


Compiler output:
a.cc:90:17: warning: missing terminating " character
   90 |         cout << "No << endl;
      |                 ^
a.cc:90:17: error: missing terminating " character
   90 |         cout << "No << endl;
      |                 ^~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:91:1: error: expected primary-expression before '}' token
   91 | }
      | ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
using ll = long long;
#define rep(i,n) for(ll i=0;i<n;i++)
#define repl(i,l,r) for(ll i=(l);i<(r);i++)
#define per(i,n) for(ll i=n-1;i>=0;i--)
#define perl(i,r,l) for(ll i=r-1;i>=l;i--)
#define fi first
#define se second
#define pb push_back
#define ins insert
#define all(x) (x).begin(),(x).end()
using vl=vector<ll>;
using vvl=vector<vector<ll>>;
const ll MOD=1000000007;
const ll MOD9=998244353;
const int inf=1e9+10;
const ll INF=4e18;
const ll dy[8]={1,0,-1,0,1,1,-1,-1};
const ll dx[8]={0,-1,0,1,1,-1,1,-1};
using Graph = vector<vector<int>>;
const double pi=acos(-1);
double nCk(int n, int k) {
double res=1.0;
for(int i=0; i<n; i++){
res*=0.5;}
for(int i=0; i<k; i++){
res*=(double)(n-i);
res/=(double)(k-i);
}
return res;}
 
int main() {
//cout << fixed << setprecision(12);
string s,t;
cin>>s>>t;
ll ca=0;
ll cb=0;
ll n = s.size();
ll a[30]={};
ll b[30]={};
char q;
rep(i,n){
ll k = t.at(i)-'a';
//cout << k << endl;
a[i]=k;}
rep(i,30){
rep(j,n){
if(a[j]==i&&ca==0){
ca++;
q = s.at(j);
//cout << q << endl;}
else if(a[j]==i&&s.at(j)!=q){
cb++;
break;}
}
ca=0;
}
if(cb>0){
cout << "No" << endl;}
else{
cout << "Yes" << endl;}}


Compiler output:
a.cc: In function 'int main()':
a.cc:53:1: error: expected '}' before 'else'
   53 | else if(a[j]==i&&s.at(j)!=q){
      | ^~~~
a.cc:49:19: note: to match this '{'
   49 | if(a[j]==i&&ca==0){
      |                   ^
Language: C++

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

int main() {
    string S, T;
    cin >> S >> T;
    bool flag = true;
    map<char,char> A, iA;
    for (int i = 0; i < S.size(); ++i) {
        char s = S[i], t = T[i];
        if (A.count(s) && A[s] != t) flag = false;
        if (iA.count(t) && iA[t] != s) flag = false;
        ma[s] = t; ima[t] = s;
    }
    cout << (flag?"Yes":"no") << endl; 
}

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

#include <bits/stdc++.h>
using namespace std;
#define MOD 1000000007
typedef long long ll;
typedef pair<int, int> P;

int main(){
    string s,t;
    cin >> s;
    cin >> t;
    int alphabet[26];
    for(int i = 0; i < 26; i++){
        alpahbet[i]  = -1;
    }
    bool ok = true;
    for(int i = 0; i < s.size();i++){
        int index1,temp1;
        index1 = s[i] - 'a';
        temp1 = t[i] - 'a';
        if(alphabet[i] == -1){
            alphabet[i] = temp1;
        }
        if(alphabet[i] != temp1){
            ok = false;
            break;
        }
    }
    if(ok){
        cout << "yes" << endl;
    }
    else{
        cout << "no" << endl;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:9: error: 'alpahbet' was not declared in this scope; did you mean 'alphabet'?
   13 |         alpahbet[i]  = -1;
      |         ^~~~~~~~
      |         alphabet
Language: C

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

int max(int a, int b){
  if(a > b) return a;
  else return b;
}

long long int min(long long int a, long long int b){
  if(a < b) return a;
  else return b;
}

int sort(const void *a, const void *b){
  return *(int*)a - *(int*)b;
}

int main(){

  char s[200001];
  char t[200001];

  scanf("%s %s",s,t);
  int len = strlen(s);

  for(int i = 0; i < len-1; ++i){
    for(int j = i; j < len; ++j){
      if(s[i] == s[j]){
        if(t[i] != t[j]){
          printf("No");
          return 0;
        }

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

#include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
#define FOR(i,l,r) for(i=l;i<r;i++)
#define REP(i,n) FOR(i,0,n)
#define ALL(x) x.begin(),x.end()
#define P pair<ll,ll>
#define F first
#define S second
signed main(){
  ll N,i,j,ans=1;string S,T;cin>>S>>T;
  vector<char>X(26,'#');
  queue<char>AN;
  REP(i,S.size()){
    if(X.at(S.at(i)-'a')=='#'){
      X.at(S.at(i)-'a')=T.at(i);
      if(S.at(i)==T.at(i))AN.push(S.at(i));
    else if(X.at(S.at(i)-'a')!=T.at(i))ans=0;
  }
  REP(i,AN.size())REP(j,S.size())if(S.at(j)==AN.at(i)&&T.at(j)!=AN.at(i))ans=0;
  if(ans)cout<<"Yes"<<endl;
  else cout<<"No"<<endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:49: error: 'class std::queue<char>' has no member named 'at'
   20 |   REP(i,AN.size())REP(j,S.size())if(S.at(j)==AN.at(i)&&T.at(j)!=AN.at(i))ans=0;
      |                                                 ^~
a.cc:20:68: error: 'class std::queue<char>' has no member named 'at'
   20 |   REP(i,AN.size())REP(j,S.size())if(S.at(j)==AN.at(i)&&T.at(j)!=AN.at(i))ans=0;
      |                                                                    ^~
a.cc:24:2: error: expected '}' at end of input
   24 | }
      |  ^
a.cc:10:14: note: to match this '{'
   10 | signed main(){
      |              ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
#define FOR(i,l,r) for(i=l;i<r;i++)
#define REP(i,n) FOR(i,0,n)
#define ALL(x) x.begin(),x.end()
#define P pair<ll,ll>
#define F first
#define S second
signed main(){
  ll N,i,j,ans=1;string S,T;cin>>S>>T;
  vector<char>X(26,'#');
  queue<char>AN;
  REP(i,S.size()){
    if(X.at(S.at(i)-'a')=='#'){
      X.at(S.at(i)-'a')=T.at(i);
      if(S.at(i)==T.at(i))AN.push(S.at(i));
    else if(X.at(S.at(i)-'a')!=T.at(i))ans=0;
  }
  REP(i,AN.size())REP(j,S.size())if(S.at(j)==AN.at(i)&&T.at(j)!=AN.at(i))ans=0;
  }
  if(ans)cout<<"Yes"<<endl;
  else cout<<"No"<<endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:49: error: 'class std::queue<char>' has no member named 'at'
   20 |   REP(i,AN.size())REP(j,S.size())if(S.at(j)==AN.at(i)&&T.at(j)!=AN.at(i))ans=0;
      |                                                 ^~
a.cc:20:68: error: 'class std::queue<char>' has no member named 'at'
   20 |   REP(i,AN.size())REP(j,S.size())if(S.at(j)==AN.at(i)&&T.at(j)!=AN.at(i))ans=0;
      |                                                                    ^~
Language: C++

//#include "bits/stdc++.h"
#include <iostream>

using namespace std;

int main() {
    string S, T;
    cin >> S >> T;
    int N = S.length();

    bool ans = true;
    for (int i = 0; i < N; ++i) {
        auto cntS = count(S.begin(), S.end(), T[i]);
        auto cntT = count(T.begin(), T.end(), T[i]);
        if (cntS == 0 || cntS == cntT)
            continue;
        else {
            ans = false;
            break;
        }
    }

    cout << (ans ? "Yes" : "No") << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:21: error: 'count' was not declared in this scope
   13 |         auto cntS = count(S.begin(), S.end(), T[i]);
      |                     ^~~~~
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=(int)(s);i<(int)(n);i++)
typedef long long ll;
const int INF = 1e+9+7;
const int H_MAX = 510;
const int W_MAX = 510;
int H,W;
vector<vector<int>> a(H_MAX,vector<int>(W_MAX,0));

int main(){
    string S,T;
    cin >> S >> T;
    vector<int> cnt_s(26),cnt_t(26);
    rep(i,S.size()){
        cnt_s[S[i]-'a']++;
        cnt_t[T[i]-'a']++;
    }
    sort(cnt_s.begin(),cnt_s.end());
    sort(cnt_e.begin(),cnt_e.end());
    rep(i,26){
        if(cnt_s[i]!=cnt_e[i]){
            cout << "No" << endl;  
            return 0;
        }
    }

    cout << "Yes" << endl;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:21:10: error: 'cnt_e' was not declared in this scope; did you mean 'cnt_t'?
   21 |     sort(cnt_e.begin(),cnt_e.end());
      |          ^~~~~
      |          cnt_t
Language: C++

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

int main(){
	cin.tie(0),ios::sync_with_stdio(false);
	string s,t; cin>>s>>t;
	vector<int>ss(s.size(),1e9),tt(t.size(),1e9);
	for(int i=0;i<s.size();++i){
		char j=s.at(i),k=t.at(i);
		for(int l=i;l<s.size();++l){
			if(ss.at(l)==1e9&&s.at(l)==j)ss.at(l)=i;
			if(tt.at(l)==1e9&&t.at(l)==k)tt.at(l)=i;
		}
	}
	cout<<(ss=tt?"Yes"s:"No"s)<<"\n"s;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:19: error: could not convert 'tt' from 'std::vector<int>' to 'bool'
   15 |         cout<<(ss=tt?"Yes"s:"No"s)<<"\n"s;
      |                   ^~
      |                   |
      |                   std::vector<int>
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
string s,t;
  cin>>s>>t;
  map<char,char>M;
  int N=s.size();
  bool x=true;
  for(int i=0;i<N;i++){
  if(!M.count(s.at(i))
     M.count(s.at(i))=t.at(i);
     else{
     if(t.at(i)!=M.at(s.at(i))){
      x=false; break;
     }
     }
  
  }if(!x)
     cout<<"No"<<endl;
     else{
     set<char>S;
       for(auto p:M){
       auto k=p.first;
         auto v=p.second;
         S.insert(v);
       }
       int m=M.size();
       int n=S.size();
       if(m==n)
         cout<<"Yes"<<endl;
       else
         cout<<"N0"<<endl;
           }
   return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:23: error: expected ';' before 'M'
   10 |   if(!M.count(s.at(i))
      |                       ^
      |                       ;
   11 |      M.count(s.at(i))=t.at(i);
      |      ~                 
a.cc:12:6: error: expected primary-expression before 'else'
   12 |      else{
      |      ^~~~
a.cc:11:31: error: expected ')' before 'else'
   11 |      M.count(s.at(i))=t.at(i);
      |                               ^
      |                               )
   12 |      else{
      |      ~~~~                      
a.cc:10:5: note: to match this '('
   10 |   if(!M.count(s.at(i))
      |     ^
a.cc:18:3: error: expected primary-expression before '}' token
   18 |   }if(!x)
      |   ^
Language: C++

#include<bits/std++.h>
using namespace std;
int main(){
  string s1,s2;
  for(int i=0;i<n;i++){
    cin>>s1[i]>>s2[i];
  }
  for(int i=0;i<n-1;i++){
      if(s1[i]!=s2[i]){
        for(int i=0;i<n-1;i++){
          for(int j=i+1;j<n;j++){
            if(s1[j]==s2[i]){
              swap(s1[i],s1[j]);
            }
            else{
              s1[i]=s2[i];
            }
          }
        }
        else{
          continue;
        }
      }
    for(int i=0;i<n;i++){
      if(s1[i]==s2[i]){
        cout<<"Yes";
      }
      else{
        cout<<"No";
      }
    }
    return 0;
  }

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

#include <iostream>
#include <string>
#include <vector>
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;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:25: 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 '()' ?)
   11 |   for (int i = 0; i < S.size; i++) {
      |                       ~~^~~~
      |                             ()
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
int main(){
  string s,t;
  cin >> s >> t;
  char u='a';
  vector<char> k(26,'0');
  rep(i,s.size()){
    int q=(s[i]-'a');
    if(k[q]=='0'){
      k[q]=u;
      s[i]=u;
      u++;
    }
    else{
      s[i]=k[q];
    } 
  }
  char o='a';
  vector<char> w(26,'0');
  rep(i,t.size()){
    int p=(t[i]-'a');
    if(w[p]=='0'){
      w[p]=o;
      t[i]=o;
      t++;
    }
    else{
      t[i]=w[p];
    } 
  }
  if(s==t)cout << "Yes" << endl;
  else cout << "No" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:27:8: error: no 'operator++(int)' declared for postfix '++' [-fpermissive]
   27 |       t++;
      |       ~^~
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main() {
  string S, T;
  bool ans = true;
  
  cin >> S >> T;
  
  map<char, char> maps;
  
  for (int i = 0; i < S.length(); i++) {
    if (maps.find(S[i]) == maps.end()) {
      maps[S[i]] = T[i];
    }
    
    if (maps[S[i]] != T[i]) {
      ans = false;
      break;
    }
  }
  
  cout << ans ? "Yes" : "No" << endl;
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:24:30: error: invalid operands of types 'const char [3]' and '<unresolved overloaded function type>' to binary 'operator<<'
   24 |   cout << ans ? "Yes" : "No" << endl;
      |                         ~~~~~^~~~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main() {
  string a, b; cin >> a >> b;
  map<char, char> ab;
  for (int i = 0; i < a.size(); i++) {
    if (ab[a[i]] && ab[a[i]] != b[i]) {
      cout << "No" << endl;
      return 0;
    } else m[a[i]] = b[i];
  }
  cout << "Yes" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:12: error: 'm' was not declared in this scope
   10 |     } else m[a[i]] = b[i];
      |            ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main() {
  string a, b; cin >> a >> b;
  map<char, char> ab;
  for (int i = 0; i < s.size(); i++) {
    if (ab[a[i]] && ab[a[i]] != b[i]) {
      cout << "No" << endl;
      return 0;
    } else m[a[i]] = b[i];
  }
  cout << "Yes" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:23: error: 's' was not declared in this scope
    6 |   for (int i = 0; i < s.size(); i++) {
      |                       ^
a.cc:10:12: error: 'm' was not declared in this scope
   10 |     } else m[a[i]] = b[i];
      |            ^
Language: C++

s=input()
t=input()
dict_s = {}
dict_t = {}
ans = 0

for i in range(len(s)):
    s1 = s[i]
    if s1 in dict_s.keys():
        dict_s[s1] += 1
    else:
        dict_s[s1] = 1

for i in range(len(t)):
    t1 = t[i]
    if t1 in dict_t.keys():
        dict_t[t1] += 1
    else:
        dict_t[t1] = 1

for i in range(len(s)):
    if dict_s[s[i]] != dict_t[t[i]]:
        ans = 1
        break

print("Yes" if ans==0 else "No")


Compiler output:
a.cc:1:1: error: 's' does not name a type
    1 | s=input()
      | ^
a.cc:4:1: error: 'dict_t' does not name a type
    4 | dict_t = {}
      | ^~~~~~
a.cc:5:1: error: 'ans' does not name a type
    5 | ans = 0
      | ^~~
Language: C++

def main():
    s, t = input(), input()
    u = [chr(i) for i in range(97, 97 + 26)]
    v = [[] for _ in range(26)]

    for i in range(len(s)):
        a, b = s[i], t[i]
        k = u.index(a)
        v[k].append(b)

    f = all(len(set(i)) <= 1 for i in v)
    print('Yes' if f else 'No')


if __name__ == '__main__':
    main()


Compiler output:
a.cc:12:11: warning: multi-character character constant [-Wmultichar]
   12 |     print('Yes' if f else 'No')
      |           ^~~~~
a.cc:12:27: warning: multi-character character constant [-Wmultichar]
   12 |     print('Yes' if f else 'No')
      |                           ^~~~
a.cc:15:16: warning: multi-character literal with 8 characters exceeds 'int' size of 4 bytes
   15 | if __name__ == '__main__':
      |                ^~~~~~~~~~
a.cc:1:1: error: 'def' does not name a type
    1 | def main():
      | ^~~
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> als(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> alt(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:32:12: error: 'al' was not declared in this scope; did you mean 'als'?
   32 |         if(al[S[i]-'a']=='!') al[S[i]-'a']=T[i];
      |            ^~
      |            als
a.cc:39:12: error: 'al' was not declared in this scope; did you mean 'alt'?
   39 |         if(al[T[i]-'a']=='!') al[T[i]-'a']=S[i];
      |            ^~
      |            alt