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

#include <iostream>
#include <string>

using namespace std;


int main()
{
	string s; cin >> s;
	bool valid = (count(s.begin(), s.end(), 'A') >= 1) and (count(s.begin(), s.end(), 'B') >= 1);
	cout << (valid ? "Yes" : "No");
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:23: error: 'count' was not declared in this scope
   10 |         bool valid = (count(s.begin(), s.end(), 'A') >= 1) and (count(s.begin(), s.end(), 'B') >= 1);
      |                       ^~~~~
Language: C++

#include <iostream>

using namespace std;

int main() {
  string s;
  cin >> s;
  int a, b = 0;
  for (int i = 0; i < 3; i++) {
    if (s[i] == 'A') {
      a = 1;
    } else if (s[i] == 'B') {
      b = 1;
    }
  }
  
  if (a == 1 && b == 1) {
    cout << "Yes";
  } else {
    cout << "No";
}

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

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

int main() {
  string S;

  if (S == BBB || S == AAA) {
    cout << "No" << endl;
  }
  else {
    cout << "Yes" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:12: error: 'BBB' was not declared in this scope
    7 |   if (S == BBB || S == AAA) {
      |            ^~~
a.cc:7:24: error: 'AAA' was not declared in this scope
    7 |   if (S == BBB || S == AAA) {
      |                        ^~~
Language: C++

#include <bits/stdc++.h>
#include<vector>
using namespace std;
 
int main() {
  char a,b,c;
  cin>>a>>b>>c;
  if(a!==b||b!==c)cout<<"Yes";
  else cout<<"No";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: expected primary-expression before '=' token
    8 |   if(a!==b||b!==c)cout<<"Yes";
      |         ^
a.cc:8:16: error: expected primary-expression before '=' token
    8 |   if(a!==b||b!==c)cout<<"Yes";
      |                ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
    cin.sync_with_stdio(false);
    string a;
    cin>>a;
    if((a[0]=='A'&&a[1]=='A'&&a[2]=='B')||(a[0]=='A'&&a[2]=='A'&&a[1]=='B')||(a[2]=='A'&&a[1]=='A'&&a[1]=='B')||(a[0]=='B'&&a[1]=='B'&&a[2]=='A')||(a[0]=='B'&&a[2]=='B'&&a[1]=='A')||(a[2]=='B'&&a[1]=='B'&&a[1]=='A'))
    cout<<"Yes";
    else cout<<"No";
    RE 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:5: error: 'RE' was not declared in this scope
   11 |     RE 0;
      |     ^~
Language: Java

class Main{
    public static void main(String[] args) {
        
        try(Scanner sc = new Scanner(System.in);){

            //int ans = Integer.valueOf(sc.next());
            String input1 = sc.next();
            String input2 = sc.next();
            String input3 = sc.next(); 

            if(input1.equals(input2) && input1.equals(input3)){
                System.out.println("no");
            }else{
                System.out.println("yes");
            }


        }catch(Exception e){
            e.printStackTrace();
        }        
    }
}

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

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

int main() {

  string str1;
  cin >> str1;

  if(str1==AAA || str1=BBB){
  cout << Yes << endl; 
  }

  else{
  cout << No << endl;
}
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:12: error: 'AAA' was not declared in this scope
    9 |   if(str1==AAA || str1=BBB){
      |            ^~~
a.cc:9:24: error: 'BBB' was not declared in this scope
    9 |   if(str1==AAA || str1=BBB){
      |                        ^~~
a.cc:10:11: error: 'Yes' was not declared in this scope
   10 |   cout << Yes << endl;
      |           ^~~
a.cc:14:11: error: 'No' was not declared in this scope
   14 |   cout << No << endl;
      |           ^~
Language: C++

#include<iostream>
using namespace std;
int main(){
	string s;
  	cin>>s;
  	if(s=="AAA"||s=="BBB") cout<<"No";
  	else cout<<"Yes;
}

Compiler output:
a.cc:7:20: warning: missing terminating " character
    7 |         else cout<<"Yes;
      |                    ^
a.cc:7:20: error: missing terminating " character
    7 |         else cout<<"Yes;
      |                    ^~~~~
a.cc: In function 'int main()':
a.cc:8:1: error: expected primary-expression before '}' token
    8 | }
      | ^
Language: C++

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

int main() {
  stinrg S;
  cin >> S;
  char c = S.at(0);
  bool can = false;
  if (c == S.at(1) && c == S.at(2)) can = true;
  
  if (can) cout << "Yes" << endl;
  else cout << "No" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'stinrg' was not declared in this scope
    5 |   stinrg S;
      |   ^~~~~~
a.cc:6:10: error: 'S' was not declared in this scope
    6 |   cin >> S;
      |          ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define X first
#define Y second
#define PB push_back
#define LL long long
#define pii pair<LL,LL>
#define MEM(x,y) memset(x,y,sizeof(x))
#define bug(x) cout<<"debug "#x" is "<<x<<endl;
#define FIO ios::sync_with_stdio(false);
#define ALL(x) x.begin(),x.end()
#define LOG 20
#define lson(x) ((x)<<1)
#define rson(x) ((x)<<1|1)
const int maxn=2e5;


int main(){
    FIO;
    cin>>S;
    if(S=="BBB")cout<<"No"<<endl;
    else{
        if(S.count('C')) cout<<"No\n";
        else cout<<"Yes\n";
    }
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:20:10: error: 'S' was not declared in this scope
   20 |     cin>>S;
      |          ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
using ll = long long;
using ull = unsigned long long;
#define re(i,n) for(ll i=0;i<n;++i)
#define ocut cout
#define ouct cout
#define itn int
struct Union{
  vector<int> par;
  Union(int a){
  par=vector<int>(a,-1);
  }
  int find(int a){
    if(par[a]<0){
      return a;
    }
    else{
      return par[a]=find(par[a]);
    }
  }
  bool same(int a,int b){
    return (find(a)==find(b));
  }
  int size(int a){
    return -par[find(a)];
  }
  void unite(int a,int b){
    int c=find(a),d=find(b);
    if(c==d)
      return;
    if(size(c)<size(d)){
      swap(c,d);
    }
    par[c]+=par[d];
    par[d]=c;
  }
};
int main(void){
    string s;
    cin >> s;
    if(s=="AAA"|||s=="BBB")cout << "Yes";
    else cout << "No";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:42:18: error: expected primary-expression before '|' token
   42 |     if(s=="AAA"|||s=="BBB")cout << "Yes";
      |                  ^
Language: Java

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        boolean f = true;
        char temp;
        temp = s.charAt(0);

        for(int i=1;i<s.length();i++){
            if(temp == s.charAt(i)){
                continue;
            }else{
                System.out.println("Yes");
                System.exit(0);
            }
        }
        System.out.println("No");
    }

}

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

import java.util.*;


public class Main {
	public static void main (String[] args){
		Scanner sc =  new Scanner(System.in);
		String S = sc.next();
		if(S.equals("AAA")||S.equals("BBB")) {
			System.out.println("No");
		}
		else {
			System.out.println("Yes");
		}
	}
}

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.*;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:4:1: error: expected unqualified-id before 'public'
    4 | public class Main {
      | ^~~~~~
Language: C++

#incldue <bits/stdc++.h>
using namespace std;
int main ( )
{
	char a,b,c;
	cin>>a>>b>>c;
	if(a==b&&b==c)
	{
		cout<<"No";
	}
	else
	{
		cout<<"Yes";
	}
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #incldue; did you mean #include?
    1 | #incldue <bits/stdc++.h>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:6:9: error: 'cin' was not declared in this scope
    6 |         cin>>a>>b>>c;
      |         ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #incldue <bits/stdc++.h>
a.cc:9:17: error: 'cout' was not declared in this scope
    9 |                 cout<<"No";
      |                 ^~~~
a.cc:9:17: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:13:17: error: 'cout' was not declared in this scope
   13 |                 cout<<"Yes";
      |                 ^~~~
a.cc:13:17: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: Java

public class Main {
    static Scanner sc = new Scanner(System.in);

    public static void main(String[] args) {
        String s = sc.next();
        if(s.equals("AAA") && s.equals("BBB")){
            System.out.println("No");
        } else {
            System.out.println("Yes");
        }
        
    }
}

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

import java.util.*;

import java.io.*;

public class dsu {

	static int n;
	static long memo[][];
	static int p;
	static int pl[][];
	static pair[] a;
	static int k;

	public static long dp(int msk, int idx) {
		if (idx == n)
			return 0;
		if (memo[msk][idx] != -1)
			return memo[msk][idx];
		long max = k - (idx - Integer.bitCount(msk)) > 0 ? dp(msk, idx + 1) + a[idx].x : dp(msk, idx + 1);

		for (int i = 0; i < p; i++) {
			if (((msk >> i) & 1) == 0) {
				max = Math.max(max, pl[a[idx].y][i] + dp(msk | 1 << i, idx + 1));
			}
		}
		return memo[msk][idx] = max;

	}

	public static void main(String[] args) throws NumberFormatException, IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		PrintWriter pw = new PrintWriter(System.out);
		StringTokenizer st = new StringTokenizer(br.readLine());
		char c[] = br.readLine().toCharArray();
		int a=0;
		int b=0;
		for (int i = 0; i < c.length; i++) {
			if(c[i]=='A')
				a++;
			else
				b++;
		}
		if(a==0||b==0)
			System.out.println("NO");
		else
			System.out.println("YES");
	}

	static int gcd(int a, int b) {
		if (b == 0)
			return a;
		return gcd(b, a % b);
	}

	static class pair {
		int x;
		int y;

		pair(int r, int t) {
			x = r;
			y = t;
		}

		public String toString() {
			return "(" + x + "," + y + ")";
		}

	}
}

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

#include<iostream>
#include<string>

using namespace std;

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

    if(s.find("AB") != string::npos || s.find("BA") != std::npos)
        puts("Yes");
    else
        puts("No");
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:61: error: 'npos' is not a member of 'std'; did you mean 'fpos'?
   10 |     if(s.find("AB") != string::npos || s.find("BA") != std::npos)
      |                                                             ^~~~
      |                                                             fpos
Language: Java

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

            //int ans = Integer.valueOf(sc.next());
            String input1 = sc.next();
            String input2 = sc.next();
            String input3 = sc.next(); 

            if(input1.equals(input2) && input1.equals(input3)){
                System.out.println("no");
            }else{
                System.out.println("yes");
            }


        }catch(Exception e){
            e.printStackTrace();
        }        
    }

Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
    public static void main(String[] args) {
                  ^
  (use --enable-preview to enable unnamed classes)
1 error
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
    cin>>s;
    if(s=="AAA"||s=="BBB")
        cout<<"Yes";
    else
        cout<<"No";
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:10: error: 's' was not declared in this scope
    5 |     cin>>s;
      |          ^
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main()
{
    string s;
    cin>>s;
    
    int cnta=0,cntb=0
    for(int i=0;i<s.length();i++)
    {
        if(s[i]=='A')
            cnta++;
        else
            cntb++;
    }
    
    if(cnta>0 && cntb>0)
        cout<<"Yes";
    else
         cout<<"No";

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:5: error: expected ',' or ';' before 'for'
   11 |     for(int i=0;i<s.length();i++)
      |     ^~~
a.cc:11:17: error: 'i' was not declared in this scope
   11 |     for(int i=0;i<s.length();i++)
      |                 ^
Language: Java

import java.util.Scanner;
 
public class Main {
 
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in) ;
		int n = Integer.parseInt();
		System.out.println(calculate(sc.next()));
	}
	static String calculate(String s){
		int a = 0;
		int b = 0;
		for(char c: s.toCharArray()){
			a += c == 'A'? 1 : 0;
			b += c == 'B'? 1 : 0;
		}
		if(a == 2 && b == 1) return "Yes";
		if(a == 1 && b == 2) return "Yes";
		return "No";
	}
 
}

Compiler output:
Main.java:7: error: no suitable method found for parseInt(no arguments)
		int n = Integer.parseInt();
		               ^
    method Integer.parseInt(String,int) is not applicable
      (actual and formal argument lists differ in length)
    method Integer.parseInt(CharSequence,int,int,int) is not applicable
      (actual and formal argument lists differ in length)
    method Integer.parseInt(String) is not applicable
      (actual and formal argument lists differ in length)
1 error
Language: C++

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

int main(){
 string s,t,q;
  cin >>s>>t>>q;
  if(s==t==q){
    cout << "No" << endl;
  }
    else{
      cout << "Yes" << endl;
    }
}

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


#include <iostream>
#include <string>
#include <vector>
#include <cstdio>
#include <algorithm>
#include <array>
#include <cmath>

using namespace std;

using ll = long long int;

// GCDを計算します
template <typename NumType>
NumType calcGCD(NumType a, NumType b) {
    if (a < b) {
        NumType tmp = a;
        a = b;
        b = tmp;
    }

    NumType r = a % b;
    while (r != 0) {
        a = b;
        b = r;
        r = a % b;
    }

    return b;
}

// 約数を数えます
template <typename NumType>
NumType cntDivisor(const NumType & num) {
    NumType cnt = 0;
    for(NumType i = 1; i * i <= num; ++i) {
        if(num % i == 0) {
            cnt++;
            if(i * i != num) cnt++;
        }
    }

    return cnt;
}

// [beg, end)の範囲を，添え字indexでループするfor文に置換します
#define FOR_RANGE(index, beg, end)     for (ll index = beg; index < N; ++index)

#define DEBUG(x)     std::cout << #x << " : " << x << "\n"

ll powMod(ll a, ll n, ll mod){
    if(n == 0) return 1;
    if(n%2 == 0)
        return powMod(a, n/2, mod) * powMod(a, n/2, mod) % mod;
    else
        return a * powMod(a, n-1, mod)% mod;
}

ll ncrMod(ll n, ll r, ll mod){
    ll x=1, y=1;
    for(ll i = 1; i <= r; ++i){
        x *= n-i+1;
        x %= mod;
        y *= i;
        y %= mod;
    }
    return x * powMod(y, mod-2, mod) % mod;
}

int main() {
    string S;

    cin >> S;

    int a_cnt = 0, b_cnt = 0;

    for (const auto c : S) {
        if (c == 'A') a_cnt++;
        if (c == 'B') b_cnt++;
    }

    if (a_cnt == S.length() || b_cnt == S.length()) cout << "No";
    else cout << "Yes";`


    return 0;
}



Compiler output:
a.cc:84:24: error: stray '`' in program
   84 |     else cout << "Yes";`
      |                        ^
Language: Java

public class Main {
    static Scanner sc = new Scanner(System.in);

    public static void main(String[] args) {
        String s = sc.nextLine();
        if(s.equals("AAA") && s.equals("BBB")){
            System.out.println("No");
        } else {
            System.out.println("Yes");
        }
        
    }
}

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

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

int main(){
	string s;
	cin >> s;
	if((s.at(0)='A'&&s.at(2)='A'&&s.at(2)='A')||(s.at(0)='B'&&s.at(2)='B'&&s.at(2)='B')){
		cout << "No" << endl;
	}else{
		cout << "Yes" << endl;
	}
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:37: error: lvalue required as left operand of assignment
    7 |         if((s.at(0)='A'&&s.at(2)='A'&&s.at(2)='A')||(s.at(0)='B'&&s.at(2)='B'&&s.at(2)='B')){
      |                                  ~~~^~~~~~~~~
a.cc:7:78: error: lvalue required as left operand of assignment
    7 |         if((s.at(0)='A'&&s.at(2)='A'&&s.at(2)='A')||(s.at(0)='B'&&s.at(2)='B'&&s.at(2)='B')){
      |                                                                           ~~~^~~~~~~~~
Language: C++

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

#define int long long
#define ffor(i,n) for(int i = 0;i < (n); ++i)
#define all(v) v.begin(),v.end()
#define vi vector<int>
#define vvi vector<vi>
#define pii pair<int,int>
#define vpii vector<pii>
#define ff first
#define ss second


signed main(){
    ios_base::sync_with_stdio(0);
    cin.tie(0);
    mt19937 rng(chrono::steady_clock::now().time_since_epoch().count());
    string s;
    cin >> s;
    bool a = false,b = false;
    ffor(i,s.length()){
        if(s[i] == 'A')a = true;
        else if(s[i] == 'B')b = true;
    }    
    if(a&b){
        cout << "Yes";
    }else{
        cout << "No"
    }
}		

Compiler output:
a.cc: In function 'int main()':
a.cc:30:21: error: expected ';' before '}' token
   30 |         cout << "No"
      |                     ^
      |                     ;
   31 |     }
      |     ~
Language: C++

#include <bits/stdc++.h>
#define pb push_back
#define sz(v) ((int)(v).size())
#define all(v) (v).begin(),(v).end()
#define mp make_pair
#define forn(i, n) for (int i = 0; i < (int)(n); ++i)
#define for1(i, n) for (int i = 1; i <= (int)(n); ++i)
#define ford(i, n) for (int i = (int)(n) - 1; i >= 0; --i)
#define fore(i, a, b) for (int i = (int)(a); i <= (int)(b); ++i)
using namespace std;

typedef long long int64;

class AStationAndBus {
 public:
  void solveOne(std::istream &in, std::ostream &out) {
    string s;
    in >> s;
    set<char> S(all(s));

    out << (S.size() == 2 ? "Yes" : "No") << endl;
  }
  void solve(std::istream &in, std::ostream &out) {
    int nt = 1;
    for (int i = 0; i < nt; ++i)
      solveOne(in, out);
  }
};


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++

#iclude<iostream>
using namespace std;
int main(){
  string s;
  cin>>s;
  if(s[0]!=s[1]or s[1]!=s[2])
    cout<<"Yes\n";
  cout<<"No\n";
  return 0;
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #iclude; did you mean #include?
    1 | #iclude<iostream>
      |  ^~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:4:3: error: 'string' was not declared in this scope
    4 |   string s;
      |   ^~~~~~
a.cc:1:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
  +++ |+#include <string>
    1 | #iclude<iostream>
a.cc:5:3: error: 'cin' was not declared in this scope
    5 |   cin>>s;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #iclude<iostream>
a.cc:5:8: error: 's' was not declared in this scope
    5 |   cin>>s;
      |        ^
a.cc:7:5: error: 'cout' was not declared in this scope
    7 |     cout<<"Yes\n";
      |     ^~~~
a.cc:7:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:8:3: error: 'cout' was not declared in this scope
    8 |   cout<<"No\n";
      |   ^~~~
a.cc:8:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define FOR(i,o,n) for(long long i = o;i<n;i++)
#define oneforall ios::sync_with_stdio(false);cin.tie(0);
#define all(v) (v).begin(),(v).end()
#define ini(...) int __VA_ARGS__; in(__VA_ARGS__)
#define inl(...) long long __VA_ARGS__; in(__VA_ARGS__)
#define ins(...) string __VA_ARGS__; in(__VA_ARGS__)
const long long INF=1e18;
void in(){} template <typename T,class... U> void in(T &t,U &...u){ cin >> t; in(u...);}
void out(){cout << "\n";} template <typename T,class... U> void out(const T &t,const U &...u){ cout << t; if(sizeof...(u)) cout << " "; out(u...);}
typedef vector<int> vi;
typedef vector<long long> vl;
typedef long long ll;
typedef vector<pair<long,long>> vpll;
typedef vector<pair<int,int>> vpii;
int main() {
	oneforall
	oneforall
	oneforall
	oneforall
	oneforall
	oneforall
	oneforall
	oneforall
	oneforall
	oneforall
	oneforall
	oneforall
	oneforall
	oneforall

	ins(a);
	if(a == "AAA" or a == "BBB")out("No");
	else{
		out("Yes")
	}
	return 0 ;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:36:27: error: expected ';' before '}' token
   36 |                 out("Yes")
      |                           ^
      |                           ;
   37 |         }
      |         ~
Language: C++

#include<bits/stdc++.h> 
using namespace std;
typedef unsigned long long ull;
typedef long long ll;
#define ifor(n) for(int i=0;i<n;i++) 
#define jfor(n) for(int j=0;j<n;j++)
#define Ifor(n) for(int i=1;i<n;i++) 
#define Jfor(n) for(int j=1;j<n;j++)
const int inf=0x3f3f3f3f;
int main(){
	char s[3];
	gets(s);
	int a=0;
	ifor(3){
		if(s[i]=='A')a++;
	}
	if(a==0||a==3)cout<<"No"<<endl;
	else cout<<"Yes"<<endl;
} 

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

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

int solution (vector<vector<char> > A, int K) {
   // Write your code here
}

int hassh[27];

int main() {

    ios::sync_with_stdio(0);
    cin.tie(0);
    string s;
    cin>>s;
    
    for(auto ss : s){
        hassh[ss-'a']++;
    }
    
    if(hassh[0]&&hassh[1]){
        cout<<"Yes";
    }
    else{
        cout<<<"No";
    }
    
}

Compiler output:
a.cc: In function 'int solution(std::vector<std::vector<char> >, int)':
a.cc:6:1: warning: no return statement in function returning non-void [-Wreturn-type]
    6 | }
      | ^
a.cc: In function 'int main()':
a.cc:25:15: error: expected primary-expression before '<' token
   25 |         cout<<<"No";
      |               ^
Language: Java

import com.sun.tools.jdeprscan.scan.Scan;

import java.util.*;

public class Main {
    public static void main(String[] args){
        Scanner scanner = new Scanner(System.in);
        String s = scanner.next();
        Set<String> campanies = new HashSet<>();
        for(char c : s.toCharArray()){
            campanies.add(String.valueOf(c));
        }

        System.out.println(campanies.size() > 1 ? "Yes" : "No");
    }
}


Compiler output:
Main.java:1: error: package com.sun.tools.jdeprscan.scan is not visible
import com.sun.tools.jdeprscan.scan.Scan;
                              ^
  (package com.sun.tools.jdeprscan.scan is declared in module jdk.jdeps, which is not in the module graph)
1 error
Language: C++

#include <iostream>

using namespace std;

int main()
{
    string s;
    cin>>s;
    
    int cnta=0,cntb=0
    for(int i=0;i<n;i++)
    {
        if(s[i]=='A')
            cnta++;
        else
            cntb++;
    }
    
    if(cnta>0 && cntb>0)
        cout<<"Yes";
    else
         cout<<"No";

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:5: error: expected ',' or ';' before 'for'
   11 |     for(int i=0;i<n;i++)
      |     ^~~
a.cc:11:17: error: 'i' was not declared in this scope
   11 |     for(int i=0;i<n;i++)
      |                 ^
a.cc:11:19: error: 'n' was not declared in this scope
   11 |     for(int i=0;i<n;i++)
      |                   ^
Language: Java

import java.util.Scanner;
 
public class Main {
 
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in) ;
		int n = Integer.parseInt();
		System.out.println(calculate(sc.next()));
	}
	static String calculate(String s){
		int a = 0;
		int b = 0;
		for(char c: s.toCharArray()){
			a += c == 'A'? 1 : 0;
			b += c == 'B'? 1 : 0;
		}
		if(a == 2 && b == 1) return 'Yes';
		if(a == 1 && b == 2) return 'Yes';
		return 'No'
	}
 
}

Compiler output:
Main.java:17: error: unclosed character literal
		if(a == 2 && b == 1) return 'Yes';
		                            ^
Main.java:17: error: unclosed character literal
		if(a == 2 && b == 1) return 'Yes';
		                                ^
Main.java:17: error: not a statement
		if(a == 2 && b == 1) return 'Yes';
		                              ^
Main.java:18: error: unclosed character literal
		if(a == 1 && b == 2) return 'Yes';
		                            ^
Main.java:18: error: unclosed character literal
		if(a == 1 && b == 2) return 'Yes';
		                                ^
Main.java:18: error: not a statement
		if(a == 1 && b == 2) return 'Yes';
		                              ^
Main.java:19: error: unclosed character literal
		return 'No'
		       ^
Main.java:19: error: illegal line end in character literal
		return 'No'
		          ^
Main.java:19: error: not a statement
		return 'No'
		         ^
9 errors
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
	char a,b,c;
  cin >> a >> b >> c;
  string answer = "Yes";
  if((a==b) && (b==c)
     answer = "No";
     cout << answer << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:22: error: expected ';' before 'answer'
    8 |   if((a==b) && (b==c)
      |                      ^
      |                      ;
    9 |      answer = "No";
      |      ~~~~~~           
a.cc:10:28: error: expected ')' before ';' token
   10 |      cout << answer << endl;
      |                            ^
      |                            )
a.cc:8:5: note: to match this '('
    8 |   if((a==b) && (b==c)
      |     ^
Language: C++

#include<bits/stdc++.h>

using namespace std;


int main()
{
    string s;
    int a,b;
    cin>>s;
    for(i=0;i<=2;i++)
    {
        if(s[i]=='A')a++;
        else b++;
    }
    if(a>0 && b>0)cout<<"Yes"<<endl;
    else cout<<"No"<<endl;



    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:9: error: 'i' was not declared in this scope
   11 |     for(i=0;i<=2;i++)
      |         ^
Language: C++

#include<iostream>
#include<String>
using namespace std;
 
int main() {
  string S;
  cin>>S;
  if(S == "AAA" || S == "BBB"){
      cout<<"No";
  }else{
      cout<<"Yes";
  }
  return 0;
}

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

#include <bits/stdc++.h>
using namespace std;
#define FOR(i,o,n) for(long long i = o;i<n;i++)
#define oneforall ios::sync_with_stdio(false);cin.tie(0);
#define all(v) (v).begin(),(v).end()
#define ini(...) int __VA_ARGS__; in(__VA_ARGS__)
#define inl(...) long long __VA_ARGS__; in(__VA_ARGS__)
#define ins(...) string __VA_ARGS__; in(__VA_ARGS__)
const long long INF=1e18;
void in(){} template <typename T,class... U> void in(T &t,U &...u){ cin >> t; in(u...);}
void out(){cout << "\n";} template <typename T,class... U> void out(const T &t,const U &...u){ cout << t; if(sizeof...(u)) cout << " "; out(u...);}
typedef vector<int> vi;
typedef vector<long long> vl;
typedef long long ll;
typedef vector<pair<long,long>> vpll;
typedef vector<pair<int,int>> vpii;
int main() {
	oneforall
	oneforall
	oneforall
	oneforall
	oneforall
	oneforall
	oneforall
	oneforall
	oneforall
	oneforall
	oneforall
	oneforall
	oneforall
	oneforall

	ins(a);
	if(a == "AAA" or "BBB")out("No");
	else{
		out("Yes")
	}
	return 0 ;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:36:27: error: expected ';' before '}' token
   36 |                 out("Yes")
      |                           ^
      |                           ;
   37 |         }
      |         ~
Language: C++

#include <bits/stdc++.h>
using  namespace std;
int main(){
    string s;
    cin >> s;
    int a = 0;
    int b = 0;
    for(auto c: s){
        if(c == 'A') a ++;
        else b ++;
    }
    if(a && b) {
        cout << "Yes" << endl;
    } else {
        cout << "No" << endl;ABA
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:30: error: 'ABA' was not declared in this scope
   15 |         cout << "No" << endl;ABA
      |                              ^~~
Language: C++

//158 A - Station and Bus 2020/3/7

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

int main(){
    string s;
    ans = true;
    if (s[0]==s[1] && s[1]==s[2]) ans = false;
    cout << (ans ? "Yes" : "No" ) << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:5: error: 'ans' was not declared in this scope; did you mean 'abs'?
   11 |     ans = true;
      |     ^~~
      |     abs
Language: C++

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

int main() {
  string s;
  cin >> s;
  if (s == "AAA" || S == "BBB") {
    cout << "No" << endl;
  } else {
    cout << "Yes" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:21: error: 'S' was not declared in this scope
    7 |   if (s == "AAA" || S == "BBB") {
      |                     ^
Language: Java

import java.util.*;

public class Main{
  public static void main(String[] args){
	Scanner sc = new Scanner(System.in);
    String S = sc.next();
    char[] C = S.toCharArray();
    if (C[0] == C[1] == C[2]) System.out.println("No");
    else System.out.println("Yes");
    
  }
}

Compiler output:
Main.java:8: error: incomparable types: boolean and char
    if (C[0] == C[1] == C[2]) System.out.println("No");
                     ^
1 error
Language: Java

// No sorceries shall prevail. //           
import java.util.*;
import java.io.*;

public class InVoker {
	
	static long gcd(long a, long b) { 
	      if (b == 0) 
	        return a; 
	      return gcd(b, a % b);  
	    }
	static int gcd(int a, int b) { 
	      if (b == 0) 
	        return a; 
	      return gcd(b, a % b);  
	    }
	
	static long mod = 1000000007;
	
	public static void main(String args[]) {
		Scanner inp=new Scanner(System.in);
		PrintWriter out=new PrintWriter(System.out);
		
		String s=inp.next();
		out.println(s.charAt(0)==s.charAt(1) && s.charAt(1)==s.charAt(2)?"No":"Yes");
		
		out.close();
		inp.close();
	}
}


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

//Author: AnandRaj doubleux
#include <bits/stdc++.h>
using namespace std;

int main()
{
	string s;
	cin>>s;
	sort(all(s));
	if(s[0]!=s[1]||s[1]!=s[2]) cout<<"Yes"<<endl;
	else cout<<"No"<<endl;
}		

Compiler output:
a.cc: In function 'int main()':
a.cc:9:14: error: 'all' was not declared in this scope; did you mean 'std::filesystem::perms::all'?
    9 |         sort(all(s));
      |              ^~~
      |              std::filesystem::perms::all
In file included from /usr/include/c++/14/filesystem:51,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:200,
                 from a.cc:2:
/usr/include/c++/14/bits/fs_fwd.h:158:7: note: 'std::filesystem::perms::all' declared here
  158 |       all               =  0777,
      |       ^~~
Language: C++

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

int main(){
  string str;
  cin >> str;
  if(str=="AAA"||str=="BBB"){
    cout << "No" << endl;
    return 0:
  }
  else{
    cout << "Yes" << endl;
    return 0;
  }
}
    

Compiler output:
a.cc: In function 'int main()':
a.cc:10:13: error: expected ';' before ':' token
   10 |     return 0:
      |             ^
      |             ;
a.cc:10:13: error: expected primary-expression before ':' token
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  string S;
  cin >> S;
  if((S==AAA)||(S==BBB)){
      cout << "No" << endl;
  }
  else{
      cout << "Yes" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:10: error: 'AAA' was not declared in this scope
    6 |   if((S==AAA)||(S==BBB)){
      |          ^~~
a.cc:6:20: error: 'BBB' was not declared in this scope
    6 |   if((S==AAA)||(S==BBB)){
      |                    ^~~
Language: C++

#include <functional>
#include <algorithm>
#include <iostream>
#include <cstring>
#include <cstdlib>
#include <iomanip>
#include <vector>
#include <string>
#include <cstdio>
#include <queue>
#include <stack>
#include <cmath>
#include <map>
#include <set>
#if __cplusplus >= 201103L
#include <unordered_map>
#include <unordered_set>
#endif
#define ls x<<1
#define rs x<<1|1
#define fi first
#define se second
#define ll long long
#define pb push_back
#define mp make_pair
#define fun function
#define vi vector<int>
#define lowbit(x) x&(-x)
#define pii pair<int,int>
#define all(x) x.begin(),x.end()
#define mem(a,b) memset(a,b,sizeof(a))
#define IOS ios_base::sync_with_stdio(0); cin.tie(0);cout.tie(0);

using namespace std;

const int INF = 0x3f3f3f3f;


int main() {
	IOS;
#ifdef xiaofan
	freopen("1.in","r",stdin);
	freopen("1.out","w",stdout);
#endif

	strins s;
	cin>>s;
	if(s=="AAA"||s=="BBB")
		cout<<"No"<<endl;
	else
		cout<<"Yes"<<endl; 




	return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:46:9: error: 'strins' was not declared in this scope; did you mean 'stdin'?
   46 |         strins s;
      |         ^~~~~~
      |         stdin
a.cc:47:14: error: 's' was not declared in this scope; did you mean 'rs'?
   47 |         cin>>s;
      |              ^
      |              rs
Language: C++

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

#define int long long
#define ffor(i,n) for(int i = 0;i < (n); ++i)
#define all(v) v.begin(),v.end()
#define vi vector<int>
#define vvi vector<vi>
#define pii pair<int,int>
#define vpii vector<pii>
#define ff first
#define ss second


signed main(){
    ios_base::sync_with_stdio(0);
    cin.tie(0);
    mt19937 rng(chrono::steady_clock::now().time_since_epoch().count());
    string s;
    cin >> s;
    bool a = false,b = false;
    ffor(i,s.length()){
        if(s[i] == "A")a = true;
        else if(s[i] == "B")b = true;
    }    
    cout << (a&b);
}		

Compiler output:
a.cc: In function 'int main()':
a.cc:24:17: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   24 |         if(s[i] == "A")a = true;
a.cc:25:22: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   25 |         else if(s[i] == "B")b = true;
Language: C++

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

int main() {
  string s;
  cin >> s;
  
  if(s[0] == s[1] && s[0] == s2[2]){
    cout << "No" << endl;
  }else{
    cout << "Yes" << endl;
  }

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:30: error: 's2' was not declared in this scope; did you mean 's'?
    8 |   if(s[0] == s[1] && s[0] == s2[2]){
      |                              ^~
      |                              s
Language: Java

import java.util.*;

public class MainA {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		String s = sc.next();

		if (s.equals("AAA") || s.equals("BBB"))
			System.out.println("No");
		else 
			System.out.println("Yes");
	}
}

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

//R<3S
#include <bits/stdc++.h>
#define FAST std::ios_base::sync_with_stdio(false);cin.tie(0);cout.tie(0);
#define DECIMAL(n)  std::cout << std::fixed;std::cout << std::setprecision(n);
#define hell 1000000007
#define PI 3.14159265358979323844
#define mp make_pair
#define pb push_back
#define fi first 
#define se second
#define ALL(v) v.begin(), v.end()
#define SORT(v) sort(ALL(v))  
#define REVERSE(v) reverse(ALL(v))
#define endl "\n"
#define maxc(v) max_element(all(v))
#define minc(v) min_element(all(v))
#define GCD(m,n) __gcd(m,n)
#define LCM(m,n) m*(n/GCD(m,n))
#define inputarr(a,n) for(int i=0;i<n;++i) cin>>a[i]
#define initarr(a,n,x) for (int i=0;i<n;++i) a[i]=x
#define rep(i, n)    for(int i = 0; i < (n); ++i)
#define repA(i, a, n)  for(int i = a; i <= (n); ++i)
#define repD(i, a, n)  for(int i = a; i >= (n); --i)
#define trav(a, x) for(auto& a : x)
#define sz(a) (int)a.size()
#define sl(a) (int)a.length()
#define invect(data,n,commands) for(int i = 0;i<n;i++){int tmp;cin>>tmp;data.pb(tmp);commands}
#define inset(data,n,commands) for(int i = 0;i<n;i++){int tmp;cin>>tmp;data.insert(tmp);commands}
#define ll long long
#define ld long double 
#define pii std::pair<int, int> 
#define pll std::pair<ll, ll>  
#define vi vector<int>  
#define vvi vector<vi > 
#define vii vector<pii >
#define mii map<int,int>
#define trace1(x)                cerr<<#x<<": "<<x<<endl
#define trace2(x, y)             cerr<<#x<<": "<<x<<" | "<<#y<<": "<<y<<endl
#define trace3(x, y, z)          cerr<<#x<<":" <<x<<" | "<<#y<<": "<<y<<" | "<<#z<<": "<<z<<endl
#define trace4(a, b, c, d)       cerr<<#a<<": "<<a<<" | "<<#b<<": "<<b<<" | "<<#c<<": "<<c<<" | "<<#d<<": "<<d<<endl
#define trace5(a, b, c, d, e)    cerr<<#a<<": "<<a<<" | "<<#b<<": "<<b<<" | "<<#c<<": "<<c<<" | "<<#d<<": "<<d<<" | "<<#e<< ": "<<e<<endl
#define trace6(a, b, c, d, e, f) cerr<<#a<<": "<<a<<" | "<<#b<<": "<<b<<" | "<<#c<<": "<<c<<" | "<<#d<<": "<<d<<" | "<<#e<< ": "<<e<<" | "<<#f<<": "<<f<<endl


using namespace std;

void solve()
  {

    string s;
    cin>>s;
    int len=sz(s);
    rep(i,n-1)
    {
      if((s[i+1]=='A'&&s[i]=='B')||(s[i+1]=='B'&&s[i]=='A')){cout<<"Yes";return;}
    }
    cout<<"No";
  }



int main()
{
   FAST
   #ifndef ONLINE_JUDGE
     freopen("input.txt","r",stdin);
     freopen("output.txt","w",stdout);
   #endif
   int t;
   t=1;
   //cin>>t;
   while(t--)
  {
      solve();
  }


   return 0;
}


Compiler output:
a.cc: In function 'void solve()':
a.cc:53:11: error: 'n' was not declared in this scope
   53 |     rep(i,n-1)
      |           ^
a.cc:21:42: note: in definition of macro 'rep'
   21 | #define rep(i, n)    for(int i = 0; i < (n); ++i)
      |                                          ^
Language: C++

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

int main() {
  string s;
  cin>>s;
  if(s[0]=="A"){
    cout<<"Yes"<<endl;
  }
  else if(s[1]=="A"){
    cout<<"Yes"<<endl;
  }
  else if(s[2]=="A"){
    cout<<"Yes"<<edl;
  }
  else{
    cout<<"No"<<endl;
  }
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |   if(s[0]=="A"){
a.cc:10:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |   else if(s[1]=="A"){
a.cc:13:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   13 |   else if(s[2]=="A"){
a.cc:14:18: error: 'edl' was not declared in this scope
   14 |     cout<<"Yes"<<edl;
      |                  ^~~
Language: C++

s = input()
dic = {"A":False,"B":False}
for c in s:
    dic[c] = True
if dic["A"] and dic["B"]:
    print("Yes")
else:
    print("No")

Compiler output:
a.cc:1:1: error: 's' does not name a type
    1 | s = input()
      | ^
a.cc:3:1: error: expected unqualified-id before 'for'
    3 | for c in s:
      | ^~~
Language: C++

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

int main() {
  string s;
  cin>>s;
  string ans="No";
  for(int i=0;i<=1;i++){
    if(S[i]!=S[i+1]){
      ans="Yes";
      break;
    }
  }
  cout<<ans<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:8: error: 'S' was not declared in this scope
    9 |     if(S[i]!=S[i+1]){
      |        ^
Language: C++

#include <bits/stdc++.h>
#define _ ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL);
#define int long long
#define sz(i) (int)(i.size())
#define F first
#define S second
#define L long double
#define P pair<int, int>
const int inf = 0x3f3f3f3f3f3f3f3LL;
const int mod = (int)1e9 + 7;
using namespace std;
#if LOCAL
#include "../../tr.h"
#else
#define tr(...)
#define endl '\n'
#endif
template<class T> void smin(T& a, T val) {if (a > val) a = val;}template<class T> void smax(T& a, T val) {if (a < val) a = val;}
const int N = 5*(int)1e5 + 10;

int n, a[N];

int32_t main(){_
         
      string s;
   cin >> s;

   bool a = false, b = false;

   for(auto it: s){
      a |= it == 'A';
   }
   
   for(auto it: s){
      b |= it == 'A';A
   }

   if (a and b){
      cout<<"Yes\n";
   }
   else{
      cout<<"No\n";
   }

   return 0;
}

Compiler output:
a.cc: In function 'int32_t main()':
a.cc:35:22: error: 'A' was not declared in this scope
   35 |       b |= it == 'A';A
      |                      ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define ll long long 
ll mod =1000000007;
/*"itob" int to "N"base */           template<typename TypeInt> string itob(const TypeInt v, int base){static const char table[] = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";string ret;static numeric_limits<TypeInt> t;TypeInt n = v;if (t.is_signed) {if (v < 0) n *= -1;}while (n >= base) {ret += table[n%base];n /= base;}ret += table[n];if (t.is_signed) {if (v < 0 && base == 10) ret += '-';}reverse(ret.begin(), ret.end());return ret;}
/*"chmin" a = MAX*/                  template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return true; } return false; }
/*"chmax" a = MIN*/                  template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return true; } return false; }
/*"ctoi"  char to int*/              int ctoi(char c) {return c-'0';}
/*"gcd"   MAX*/                      int gcd(ll a,ll b){return b?gcd(b,a%b):a;}
/*"lcm"   MIN*/                      int lcm(ll a,ll b){return a*b/gcd(a,b);}
/*"primecheck"If prime,return true.*/bool primecheck(ll n){if(n < 2) return false;else{for(int i = 2; i * i <= n; i++){if(n % i == 0) return false;}return true;}}
string  reverserange(string s,ll a,ll b){reverse(s.begin()+a-1,s.begin()+b); return s;}
int main(){
string s;
cin >> s;
sort(s.begin(),s.end());
int a=0,b=0;
for(int i=0;i<s.size();i++){
    if(s.at(i)=='A')a++;
    else b++;
}
if(a==2&&b==1){
cout << "Yes"<<endl;
}
else if(b==2&&a==1)cout<<"Yes"<<endl;
}
else cout<<"No"<<endl;





Compiler output:
a.cc:27:1: error: expected unqualified-id before 'else'
   27 | else cout<<"No"<<endl;
      | ^~~~
Language: C++

#include<bits/stdc++.h>
#include<string>
using namespace std;
#define int long long
#define double long double
#define fo(a,b) for(int a=0;a<b;a++)
#define Sort(a) sort(a.begin(),a.end())
#define rev(a) reverse(a.begin(),a.end())
#define fi first
#define se second
#define pb push_back
#define pp() pop_back()
#define V vector
#define P pair
#define yuko(a) setprecision(a)
#define uni(a) a.erase(unique(a.begin(),a.end()),a.end())
#define Q queue
#define all(a)  (a).begin(),(a).end()
#define elif else if

signed main(){
  string s;
  cin>>s;
  fo(i,3){
    if(s[i]=='A')
      a++;
    else
      b++;

  }
  if(a&&b)
    cout<<"Yes"<<endl;
  else
    cout<<"No"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:26:7: error: 'a' was not declared in this scope
   26 |       a++;
      |       ^
a.cc:28:7: error: 'b' was not declared in this scope
   28 |       b++;
      |       ^
a.cc:31:6: error: 'a' was not declared in this scope
   31 |   if(a&&b)
      |      ^
a.cc:31:9: error: 'b' was not declared in this scope
   31 |   if(a&&b)
      |         ^
Language: C++

#include<bits/stdc++.h>
#define ll long long
#define inf 0x3f3f3f3f
#define mod 1000000007
#define PI acos(-1)
#define fi first
#define se second
#define lowbit(x) (x&(-x))
#define mp make_pair
#define pb push_back
#define ins insert
#define si size()
#define E exp(1.0)
#define fixed cout.setf(ios::fixed)
#define fixeds(x) setprecision(x)
#pragma GCC optimize(2)
using namespace std;
inline ll read(){ll s=0,w=1;char ch=getchar();
while(ch<'0'||ch>'9'){if(ch=='-')w=-1;ch=getchar();}
while(ch>='0'&&ch<='9') s=s*10+ch-'0',ch=getchar();
return s*w;}void put1(){ puts("Yes") ;}void put2(){ puts("No") ;}
void debug(){printf("T   A   T\n");}void put3(){ puts("-1"); }ll qpf(ll a, ll b, ll p)
{ll ret = 0;while(b){if(b & 1) ret = (ret + a) % p;a = (a + a) % p;b >>= 1;}
return ret % p ;}ll qp(ll a, ll n, ll p){ll ret = 1;while(n){if(n & 1) ret = qpf(ret, a, p);
a = qpf(a, a, p);n >>= 1;}return ret % p ;}//��=acos(L/2R);
//void say(){ cout<<"I CAN AC"<<endl;}

const int manx=1e6+5;
const double eps =1e-8;


int main()
{
    string s; cin>>s;
    ll a=0,b=0
    for(int i=0;i<s.si;i++){
        if(s[i]=='A') a++;
        else b++;
    }
    if(a&&b) put1();
    else put2();
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:36:5: error: expected ',' or ';' before 'for'
   36 |     for(int i=0;i<s.si;i++){
      |     ^~~
a.cc:36:17: error: 'i' was not declared in this scope
   36 |     for(int i=0;i<s.si;i++){
      |                 ^
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		
		String s = sc.next();
        String b = "Yes";
		if(s.equals("AAA") || s.equals("BBB"){b = "No";}
		System.out.println(b);
	}
}


Compiler output:
Main.java:8: error: ')' expected
		if(s.equals("AAA") || s.equals("BBB"){b = "No";}
		                                     ^
1 error
Language: C++

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

int main(){
	stirng s;
	cin >> s;
	if((s.at(0)='A'&&s.at(2)='A'&&s.at(2)='A')||(s.at(0)='B'&&s.at(2)='B'&&s.at(2)='B')){
		cout << "No" << endl;
	}else{
		cout << "Yes" << endl;
	}
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'stirng' was not declared in this scope
    5 |         stirng s;
      |         ^~~~~~
a.cc:6:16: error: 's' was not declared in this scope
    6 |         cin >> s;
      |                ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  string s;
  cin >> s;
  if(s==AAA||s==BBB){
    cout << "No" << endl;
  }
  else{
    cout << "Yes" << endl;
  }
   

  }
 

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'AAA' was not declared in this scope
    6 |   if(s==AAA||s==BBB){
      |         ^~~
a.cc:6:17: error: 'BBB' was not declared in this scope
    6 |   if(s==AAA||s==BBB){
      |                 ^~~
Language: C++

import java.util.*;

public class Main {
    public static void main(String args[]){
        Scanner sc = new Scanner(System.in);
        String S = sc.next();
        if(S.equals("AAA") || S.equals("BBB")){
            System.out.println("No");
        }else{
            System.out.println("Yes");
        }
    }
}


Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.*;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: expected unqualified-id before 'public'
    3 | public class Main {
      | ^~~~~~