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

#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
#include <stack>
#include <queue>
#include <set>
#include <map>
#include <cmath>
#include <iomanip>
using namespace std;
//typedef __int64 LL;
typedef pair<LL,LL> P;
const int INF=1000000000;
const int MOD_2=998244353;

int main()
{
	string s;
	cin>>s;
	if(s=="AAA" || s=="BBB")cout<<"No"<<"\n";
	else cout<<"Yes"<<"\n";	
	return 0;
}
	

Compiler output:
a.cc:16:14: error: 'LL' was not declared in this scope
   16 | typedef pair<LL,LL> P;
      |              ^~
a.cc:16:17: error: 'LL' was not declared in this scope
   16 | typedef pair<LL,LL> P;
      |                 ^~
a.cc:16:19: error: template argument 1 is invalid
   16 | typedef pair<LL,LL> P;
      |                   ^
a.cc:16:19: error: template argument 2 is invalid
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:31: error: expected ')' before '{' token
    6 |   if(s.at(1)==s.at(2)==s.at(3){
      |     ~                         ^
      |                               )
a.cc:12:1: error: expected primary-expression before '}' token
   12 | }
      | ^
Language: C++

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

int main() {
  string S;
  cin >> S;
  char x = S.at(0);
  char y = S.at(1);
  char z = S.at(2);
  cin >> x >> y >> z;
  if (x == y == z == A) {
    cout << "No" << endl;
  }
  else if (x == y == z == B) {
    cout << "No" << endl;
  }
  else {
    cout << "Yes" << endl;
  }

}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:22: error: 'A' was not declared in this scope
   11 |   if (x == y == z == A) {
      |                      ^
a.cc:14:27: error: 'B' was not declared in this scope
   14 |   else if (x == y == z == B) {
      |                           ^
Language: C++

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

int main() {
  string S;
  cin >> S;
  char x = S.at(0);
  char y = S.at(1);
  char z = S.at(2);
  cin >> x >> y >> z;
  if (x == y == z == "A") {
    cout << "No" << endl;
  }
  else if (x == y == z == "B") {
    cout << "No" << endl;
  }
  else {
    cout << "Yes" << endl;
  }

}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |   if (x == y == z == "A") {
      |       ~~~~~~~~~~~~^~~~~~
a.cc:14:24: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   14 |   else if (x == y == z == "B") {
      |            ~~~~~~~~~~~~^~~~~~
Language: C++

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

int main() {
  string S;
  cin >> S;
  x = S.at(0);
  y = S.at(1);
  z = S.at(2);
  cin >> x >> y >> z;
  if (x == y == z) {
    cout << "No" << endl;
  }
  else {
    cout << "Yes" << endl;
  }

}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'x' was not declared in this scope
    7 |   x = S.at(0);
      |   ^
a.cc:8:3: error: 'y' was not declared in this scope
    8 |   y = S.at(1);
      |   ^
a.cc:9:3: error: 'z' was not declared in this scope
    9 |   z = S.at(2);
      |   ^
Language: C++

#include <bits/stdc++.h>
#include <cstdio>
#include <cstring>
#include <cmath>
#include <cstring>
#include <chrono>
#include <complex>
#define endl "\n"
#define ll long long int
#define vi vector<int>
#define vll vector<ll>
#define vvi vector < vi >
#define pii pair<int,int>
#define pll pair<long long, long long>
#define mod 1000000007
#define inf 1000000000000000001;
#define all(c) c.begin(),c.end()
#define mp(x,y) make_pair(x,y)
#define mem(a,val) memset(a,val,sizeof(a))
#define eb emplace_back
#define pb push_back
#define f first
#define s second

using namespace std;
int main(){
	std::ios::sync_with_stdio(false);
	tput_temp.txt", "w", stdout);
	#endif
	string s;
	cin >> s;
	if(s=="AAA" || s=="BBB")
		cout << "No" << endl;
	else
		cout << "Yes" << endl;
	return 0;
}

Compiler output:
a.cc:28:27: warning: missing terminating " character
   28 |         tput_temp.txt", "w", stdout);
      |                           ^
a.cc:28:27: error: missing terminating " character
   28 |         tput_temp.txt", "w", stdout);
      |                           ^~~~~~~~~~~
a.cc:29:10: error: #endif without #if
   29 |         #endif
      |          ^~~~~
a.cc: In function 'int main()':
a.cc:28:9: error: 'tput_temp' was not declared in this scope
   28 |         tput_temp.txt", "w", stdout);
      |         ^~~~~~~~~
a.cc:23:11: error: 'second' was not declared in this scope
   23 | #define s second
      |           ^~~~~~
a.cc:31:16: note: in expansion of macro 's'
   31 |         cin >> s;
      |                ^
Language: C++

import java.util.Scanner;

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

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.Scanner;
      | ^~~~~~
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 {
      | ^~~~~~
Language: C

#include<stdio.h>
int main(){
  char s[3];
  scanf("%s", s);
  if(s[0]==s[1]&&s[1]==s[2])
    printf("No");
  else
    prinf("Yes");
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:5: error: implicit declaration of function 'prinf'; did you mean 'printf'? [-Wimplicit-function-declaration]
    8 |     prinf("Yes");
      |     ^~~~~
      |     printf
Language: C

#include<stdio.h>
int main(){
  char s[3];
  scanf("%s", s);
  if(s[0]==s[1]&&s[1]==s[2]){printf("No")};
  else{prinf("Yes")};
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:42: error: expected ';' before '}' token
    5 |   if(s[0]==s[1]&&s[1]==s[2]){printf("No")};
      |                                          ^
      |                                          ;
main.c:6:3: error: 'else' without a previous 'if'
    6 |   else{prinf("Yes")};
      |   ^~~~
main.c:6:8: error: implicit declaration of function 'prinf'; did you mean 'printf'? [-Wimplicit-function-declaration]
    6 |   else{prinf("Yes")};
      |        ^~~~~
      |        printf
main.c:6:20: error: expected ';' before '}' token
    6 |   else{prinf("Yes")};
      |                    ^
      |                    ;
Language: C++

#include<iostream>
#include<string>

using namespace std;

string s;

int main(){
    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:13:30: error: expected ';' before '}' token
   13 |         cout << "Yes" << endl
      |                              ^
      |                              ;
   14 |     }
      |     ~
Language: C++

#include<iostream>
#include<string>

using namespace std;

string s;

int main(){
  cin >> s;
  if(s=="AAA" || s=="BBB") return "NO";
  return "Yes";
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:35: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
   10 |   if(s=="AAA" || s=="BBB") return "NO";
      |                                   ^~~~
      |                                   |
      |                                   const char*
a.cc:11:10: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
   11 |   return "Yes";
      |          ^~~~~
      |          |
      |          const char*
Language: C++

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

int main(){
  int A,B;
  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:8:9: error: 'AAA' was not declared in this scope
    8 |   if(S==AAA ||S==BBB){
      |         ^~~
a.cc:8:18: error: 'BBB' was not declared in this scope
    8 |   if(S==AAA ||S==BBB){
      |                  ^~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |   if (S[0] == "A" && S[1] == "A" && S[2] == "A" || S[0] == "B" && S[1] == "B" && S[2] == "B") {
a.cc:8:27: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |   if (S[0] == "A" && S[1] == "A" && S[2] == "A" || S[0] == "B" && S[1] == "B" && S[2] == "B") {
a.cc:8:42: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |   if (S[0] == "A" && S[1] == "A" && S[2] == "A" || S[0] == "B" && S[1] == "B" && S[2] == "B") {
a.cc:8:57: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |   if (S[0] == "A" && S[1] == "A" && S[2] == "A" || S[0] == "B" && S[1] == "B" && S[2] == "B") {
a.cc:8:72: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |   if (S[0] == "A" && S[1] == "A" && S[2] == "A" || S[0] == "B" && S[1] == "B" && S[2] == "B") {
a.cc:8:87: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |   if (S[0] == "A" && S[1] == "A" && S[2] == "A" || S[0] == "B" && S[1] == "B" && S[2] == "B") {
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:29: error: 'A' was not declared in this scope
    9 |   if(S[0] == S[1] == S[2] ==A || S[0] == S[1] == S[2] ==B) {
      |                             ^
a.cc:9:57: error: 'B' was not declared in this scope
    9 |   if(S[0] == S[1] == S[2] ==A || S[0] == S[1] == S[2] ==B) {
      |                                                         ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main(int argc, const char * argv[]) {
 
 
 
    cin.tie(0);
    ios::sync_with_stdio(false);
 
    /////////////////////
    // Write code below /
    /////////////////////
    string S;
  
  	cin >>S;
  
  	if(S = "AAA" || "BBB"){
      cout <<"No"<<endl;
    }
  	else{
      cout <<"Yes"<<endl;
    }
 
 
    return 0;
}
#include <bits/stdc++.h>
using namespace std;

int main(int argc, const char * argv[]) {



    cin.tie(0);
    ios::sync_with_stdio(false);

    /////////////////////
    // Write code below /
    /////////////////////
    string 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(int, const char**)':
a.cc:18:14: error: could not convert 'S.std::__cxx11::basic_string<char>::operator=(((int)((char)((((const char*)"AAA") != 0) || (((const char*)"BBB") != 0)))))' from 'std::__cxx11::basic_string<char>' to 'bool'
   18 |         if(S = "AAA" || "BBB"){
      |            ~~^~~~~~~~~~~~~~~~
      |              |
      |              std::__cxx11::basic_string<char>
a.cc: At global scope:
a.cc:31:5: error: redefinition of 'int main(int, const char**)'
   31 | int main(int argc, const char * argv[]) {
      |     ^~~~
a.cc:4:5: note: 'int main(int, const char**)' previously defined here
    4 | int main(int argc, const char * argv[]) {
      |     ^~~~
Language: C++

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

int main(int argc, const char * argv[]) {



    cin.tie(0);
    ios::sync_with_stdio(false);

    /////////////////////
    // Write code below /
    /////////////////////
    string S;
  
  	cin >>S;
  
  	if(S = "AAA" || "BBB"){
      cout <<"No"<<endl;
    }
  	else{
      cout <<"Yes"<<endl;
    }


    return 0;
}


Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:18:14: error: could not convert 'S.std::__cxx11::basic_string<char>::operator=(((int)((char)((((const char*)"AAA") != 0) || (((const char*)"BBB") != 0)))))' from 'std::__cxx11::basic_string<char>' to 'bool'
   18 |         if(S = "AAA" || "BBB"){
      |            ~~^~~~~~~~~~~~~~~~
      |              |
      |              std::__cxx11::basic_string<char>
Language: C

#include <bits/stdc++.h>
using namespace std;
#ifdef DEBUG
#define FPEN freopen("in.txt", "r", stdin);
#define debug(...)                                                             \
    { cerr << "# " << __VA_ARGS__ << "\n"; }
#else
#define debug(...)
#define FPEN
#endif
const int maxn = 200009;
typedef long long i64;
typedef pair<i64, i64> pi64;
typedef pair<int, int> pi;
const i64 MOD = 119 << 23 | 1;
class {
  public:
    void solve() {
        string s;
        cin >> s;
        if (s == "AAA" || s == "BBB") {
            cout << "No\n";
        } else {
            cout << "Yes\n";
        }
    }
} NSPACE;
int main() {
    FPEN;
    ios_base::sync_with_stdio(false);
    cout.tie(0);
    cin.tie(0);
    NSPACE.solve();
}

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

import java.util.*;

/**
 * test
 */
public class main {

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

        String s = sc.next();
        if (s.equals("AAA")){
            System.out.println("No");
        } else if(s.equals("BBB")){
            System.out.println("No");
        } else {
            System.out.println(s.equals("Yes"));
        }
}
}


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

import java.util.*;

import javax.lang.model.util.ElementScanner6;
/**
 * test
 */
public class main {

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

        String s = sc.next();
        if (s.equals("AAA")){
            System.out.println("No");
        } else if(s.equals("BBB")){
            System.out.println("No");
        } else {
            System.out.println(s.equals("Yes"));
        }
}
}


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

import java.util.*;

import javax.lang.model.util.ElementScanner6;
/**
 * test
 */
public class class Main {

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

        String s = sc.next();
        if (s.equals("AAA")){
            System.out.println("No");
        } else if(s.equals("BBB")){
            System.out.println("No");
        } else {
            System.out.println(s.equals("Yes"));
        }
}
}


Compiler output:
Main.java:7: error: <identifier> expected
public class class Main {
            ^
1 error
Language: Java

import java.util.*;

import javax.lang.model.util.ElementScanner6;
/**
 * test
 */
public class test {

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

        String s = sc.next();
        if (s.equals("AAA")){
            System.out.println("No");
        } else if(s.equals("BBB")){
            System.out.println("No");
        } else {
            System.out.println(s.equals("Yes"));
        }
}
}


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

using System;

namespace A
{
	class Program
	{
		static void Main(string[] args)
		{
			string s = Console.ReadLine();

			if (s[0] == s[1] && s[1] == s[2])
			{
				Console.WriteLine("No");
			}
			else
			{
				Console.WriteLine("Yes");
			}
		}
	}
}


Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:7:34: error: 'string' has not been declared
    7 |                 static void Main(string[] args)
      |                                  ^~~~~~
a.cc:7:43: error: expected ',' or '...' before 'args'
    7 |                 static void Main(string[] args)
      |                                           ^~~~
a.cc:20:10: error: expected ';' after class definition
   20 |         }
      |          ^
      |          ;
a.cc: In static member function 'static void A::Program::Main(int*)':
a.cc:9:25: error: 'string' was not declared in this scope
    9 |                         string s = Console.ReadLine();
      |                         ^~~~~~
a.cc:11:29: error: 's' was not declared in this scope
   11 |                         if (s[0] == s[1] && s[1] == s[2])
      |                             ^
a.cc:13:33: error: 'Console' was not declared in this scope
   13 |                                 Console.WriteLine("No");
      |                                 ^~~~~~~
a.cc:17:33: error: 'Console' was not declared in this scope
   17 |                                 Console.WriteLine("Yes");
      |                                 ^~~~~~~
Language: C++

//  RAKSHIT KADAM
 #include <bits/stdc++.h>
 
// #include <ext/pb_ds/assoc_container.hpp>
// #include <ext/pb_ds/tree_policy.hpp>
// using namespace __gnu_pbds;
// #define ordered_set tree< int ,  null_type ,  less<int> ,  rb_tree_tag ,  tree_order_statistics_node_update>
 #warning !!!check the size of arrayss!!!
 #define ll long long
 #define int long long
 #define MOD  1000000007
 #define newMOD  998244353
 #define MAX 300006
 #define P(gg) for(auto rax:gg){cout<<rax<<" ";}cout<<endl;
 #define Need_for_speed(activated) ios_base :: sync_with_stdio(0);cin.tie(NULL);cout.tie(NULL)
 #define satisfy ll t; cin>> t; while(t--)
 #define inp(n) int n;cin >> n
 #define mp make_pair
 #define pb push_back
 #define endl "\n"
 #define x first
 #define y second
 #define fore(i,a,b) for(ll i=a;i<b;i++)
 #define forci(i,n) for(ll i=0;i<n;i++)
 #define INF 2000000000000000005

 #define vi vector<ll>
#define pi 3.1415926535897932384626433832795
#define Endl endl
#define lb lower_bound
#define ub upper_bound

using namespace std;
//ll gcd(ll a, ll b){if (b == 0)return a;return gcd(b, a % b);}
//int power(int x, unsigned int y, unsigned int m){ if (y == 0) return 1;int p = power(x, y/2, m) % m;  p = (p * p) % m;                                                  return (y%2 == 0)? p : (x * p) % m;}
 //ddfdsfdfs

//ll modInverse(int a, int m){ return power(a, m-2, m);} // if a and m are relativelyprime

void solve()
{
    string s;cin>>s;
    ll a=0,b=0;
    for(ll i=0;i<3;i++)
    {
        if(a[i]=='A')a++;
        else b++;
    }
    if(a&b)cout<<"YES"<<endl;
    else cout<<"NO"<<endl;
}
signed main()
{
 
   
    Need_for_speed(activated);
//satisfy
//    {
//   solve();
//    }


 solve();
    return 0;
}


Compiler output:
a.cc:8:3: warning: #warning !!!check the size of arrayss!!! [-Wcpp]
    8 |  #warning !!!check the size of arrayss!!!
      |   ^~~~~~~
a.cc: In function 'void solve()':
a.cc:46:13: error: invalid types 'long long int[long long int]' for array subscript
   46 |         if(a[i]=='A')a++;
      |             ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
typedef long long ll;
int main() {
  string s;
  cin >> s;
  if (s.at(0)==s.at(1)$$s.at(1)==s.at(2)) cout << "No" << endl;
  else cout << "Yes" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:23: error: expected ')' before '$$s'
    8 |   if (s.at(0)==s.at(1)$$s.at(1)==s.at(2)) cout << "No" << endl;
      |      ~                ^~~
      |                       )
Language: C++

//13:33~
#include <iostream>

using namespace std;

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

    return 0;
}

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

#include<iostream>

using namespace std;

int main()
{
  string s;
  cin >> s;
  bool allA = S[0] == 'A' && S[1] == 'A' && S[2] == 'A';
  bool allB = S[0] == 'B' && S[1] == 'B' && S[2] == 'B';
  
  if (allA || allB)
  {
    cout << "No" << endl;
  }
  else
  {
    cout << "Yes" << endl;
  }
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:15: error: 'S' was not declared in this scope
    9 |   bool allA = S[0] == 'A' && S[1] == 'A' && S[2] == 'A';
      |               ^
Language: C++

#include<bits/stdc++.h>

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


Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'string' was not declared in this scope
    5 |   string s;
      |   ^~~~~~
a.cc:5:3: note: suggested alternatives:
In file included from /usr/include/c++/14/string:41,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52,
                 from a.cc:1:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:6:15: error: 's' was not declared in this scope
    6 |   std::cin >> s;
      |               ^
Language: C++

#include<bits/stdc++.h>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'string' was not declared in this scope
    5 |   string s;
      |   ^~~~~~
a.cc:5:3: note: suggested alternatives:
In file included from /usr/include/c++/14/string:41,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52,
                 from a.cc:1:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin >> s;
      |   ^~~
      |   std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:6:10: error: 's' was not declared in this scope
    6 |   cin >> s;
      |          ^
a.cc:13:19: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   13 |   if(a==3 || b==3)cout << "Yes";
      |                   ^~~~
      |                   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:14:8: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   14 |   else cout << "No";
      |        ^~~~
      |        std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define int long long 
#define alpha_size 26



int32_t main(){
    ios_base::sync_with_stdio(false);
    cin.tie(nullptr); cout.tie(nullptr);    
    
    set<char> s;
    for (int i = 0; i < 3; i++){
      char c;
      cin >> c;
      s.insert(c);
    }
    if (s.size() == 2)
      cout << "Yes" << endl;
    else
      cout << "No" << endl;
}

#include <bits/stdc++.h>
using namespace std;
#define int long long 
#define alpha_size 26



int32_t main(){
    ios_base::sync_with_stdio(false);
    cin.tie(nullptr); cout.tie(nullptr);    
    
    set<char> s;
    for (int i = 0; i < 3; i++){
      char c;
      cin >> c;
      s.insert(c);
    }
    if (s.size() == 2)
      cout << "Yes" << endl;
    else
      cout << "No" << endl;
}



Compiler output:
a.cc:31:9: error: redefinition of 'int32_t main()'
   31 | int32_t main(){
      |         ^~~~
a.cc:8:9: note: 'int32_t main()' previously defined here
    8 | int32_t main(){
      |         ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
 ios::sync_with_stdio(0);
 cin.tie(0);
 lomg long n,a,b;
 cin>>n>>a>>b;
 cout<<n/(a+b)*a+min(n%(a+b),a);
}
	

Compiler output:
a.cc: In function 'int main()':
a.cc:6:2: error: 'lomg' was not declared in this scope; did you mean 'long'?
    6 |  lomg long n,a,b;
      |  ^~~~
      |  long
a.cc:7:7: error: 'n' was not declared in this scope; did you mean 'yn'?
    7 |  cin>>n>>a>>b;
      |       ^
      |       yn
a.cc:7:10: error: 'a' was not declared in this scope
    7 |  cin>>n>>a>>b;
      |          ^
a.cc:7:13: error: 'b' was not declared in this scope
    7 |  cin>>n>>a>>b;
      |             ^
Language: C++

#include <cstdio.h>

int main(void)
{
  char st[4];
  
  scanf("%s", st);
  
  if((st[0] == st[0])&&(st[0] == st[2]))
  {
    printf("No");
  }
  else
  {
    printf("Yes");
  }
  
  return 0;
}


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

int main(void)
{
  char st[4];
  
  scanf("%s", st);
  
  if((st[0] == st[0])&&(st[0] == st[2]))
  {
    printf("No");
  }
  else
  {
    printf("Yes");
  }
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'scanf' was not declared in this scope
    5 |   scanf("%s", st);
      |   ^~~~~
a.cc:9:5: error: 'printf' was not declared in this scope
    9 |     printf("No");
      |     ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main(void)
a.cc:13:5: error: 'printf' was not declared in this scope
   13 |     printf("Yes");
      |     ^~~~~~
a.cc:13:5: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
Language: C++

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

int main() {
stsring S;
  cin>>S;
  if(S[0]==S[1]&&S[1]==S[2]&&S[2]==S[0]) cout<<"Yes";
   else cout<<"No";
    
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:1: error: 'stsring' was not declared in this scope
    6 | stsring S;
      | ^~~~~~~
a.cc:7:8: error: 'S' was not declared in this scope
    7 |   cin>>S;
      |        ^
Language: C

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

int main(){
  int c;
	string S;
  cin >> S;
  
  rep(i,N){
    if(S.at(i)=='A')
      c++;
  }
  if(c==3 || c==0)
    cout << "Yes" << endl;
  else
    cout << "No"　　<< endl;
    
}


  

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

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

string s;
deque<char> d;
int q;
int main()
{
    ios::sync_with_stdio(false);
    cin.tie(0);
    
    cin>>s;
    int n = s.length();
    for(int i = 0; i < n; i++){
        d.push_back(s[i]);
    }
    int flag = 1;
    cin>>q;
    while(q--){
        int inst;
        cin>>inst;
        if(inst == 2){
            int order;
            cin>>order;
            char nxt;
            cin>>nxt;
            if(order == 1){
                if(flag == 1) d.push_front(nxt);
                else d.push_back(nxt);
            } else {
                if(flag == 1) d.push_back(nxt);
                else d.push_front(nxt);
            }
        } else {
            if(flag == 1) flag = 2;
            else flag = 1;
        }
        
    }
    string ans = "";
    while(!d.empty()){
        if(flag == 1) {
            ans += d.front();
            d.pop_front();
        } else {
            ans += d.back();
            d.pop_back();
        }
    }
    cout<<ans<<endl;
    return 0;
}

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

#include<bits/stdc++.h>
using namespace std;
int main(){
  string s;
  cin>>s;
  set<char>st;
  for(int i=0;i<s.size();i++)
    st.insert(s[i])
    if(st.size()==2)
      cout<<"Yes";
  else
    cout<<"No";
    
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:20: error: expected ';' before 'if'
    8 |     st.insert(s[i])
      |                    ^
      |                    ;
    9 |     if(st.size()==2)
      |     ~~              
a.cc:11:3: error: 'else' without a previous 'if'
   11 |   else
      |   ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define lvector vector<ll> 
#define P pair<ll,ll>
#define ALL(a) (a).begin(),(a).end()
#define YESNO(i) if((i)) puts("YES");else puts("NO");
#define YesNo(i) if((i)) puts("Yes");else puts("No");
#define yesno(i) if((i)) puts("yes");else puts("no");
#define rep(i,n) for(ll (i)=0; (i)<(n); ++(i))
#define print(a) cout << (a) << endl

int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  string cin>>s;
  YesNo(s=="AAA"||s=="BBB");
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:13: error: expected initializer before '>>' token
   16 |   string cin>>s;
      |             ^~
a.cc:17:9: error: 's' was not declared in this scope
   17 |   YesNo(s=="AAA"||s=="BBB");
      |         ^
a.cc:8:22: note: in definition of macro 'YesNo'
    8 | #define YesNo(i) if((i)) puts("Yes");else puts("No");
      |                      ^
Language: C++

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

int main()
{
	int n,a,b,blue,rem;
 	blue=0;
	cin>>n>>a>>b;
	if(a+b==n)
	{
		cout<<a;
	}
	else if(a+b<n)
	{
		blue=(n/(a+b))*a;
		rem=n%(a+b);
		while(rem>0)
		{
			if(a>0)
			{
				a--;
				blue++;
			}
			rem--;	
		}
		cout<<blue;
	}
	else if(a+b>n)
	{
		rem=a+b;
		while(rem>0)
		{
			if(a>0)
			{
				a--;
				blue++;
			}
			rem--;	
		}
      	cout<<blue;
	}
}

Compiler output:
a.cc:3:1: error: expected unqualified-id before 'using'
    3 | using namespace std;
      | ^~~~~
a.cc: In function 'int main()':
a.cc:9:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    9 |         cin>>n>>a>>b;
      |         ^~~
      |         std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:12:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   12 |                 cout<<a;
      |                 ^~~~
      |                 std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:27:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   27 |                 cout<<blue;
      |                 ^~~~
      |                 std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:41:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   41 |         cout<<blue;
      |         ^~~~
      |         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#include <buts/stdc++.h>

using namespace std;

int main()
{
	vector<char> S(3);
	int i;
	for(i=0 ; i<3 ; i++)
	{
		cin>>S[i];
	}
	if(S[1]==S[2] && S[2]==S[3])
	{
		cout<<"No";
	}
	else
	{
		cout<<"Yes";
	}
	return 0;
}

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

#include <iostream>
#include <string>

int main() {
    std::string S;
    cin >> S;

    if(S[0] == S[2]){
        printf("Yes");
    } else {
        printf("No");
    }
}       
        


Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |     cin >> S;
      |     ^~~
      |     std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
Language: C++

#include <iostream>

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

    if(S[0] == S[2]){
        printf("Yes");
    } else {
        printf("No");
    }
}     

Compiler output:
a.cc: In function 'int main()':
a.cc:4:5: error: 'string' was not declared in this scope
    4 |     string S;
      |     ^~~~~~
a.cc:4:5: note: suggested alternatives:
In file included from /usr/include/c++/14/iosfwd:41,
                 from /usr/include/c++/14/ios:40,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
In file included from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44:
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:5:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |     cin >> S;
      |     ^~~
      |     std::cin
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:5:12: 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;
  if (S.at[0] == S.at[1] && S.at[1] == S.at[2]){
    cout << "Yes" << endl;
  }
  else {
    cout << "No" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:11: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
    7 |   if (S.at[0] == S.at[1] && S.at[1] == S.at[2]){
      |           ^
a.cc:7:22: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
    7 |   if (S.at[0] == S.at[1] && S.at[1] == S.at[2]){
      |                      ^
a.cc:7:33: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
    7 |   if (S.at[0] == S.at[1] && S.at[1] == S.at[2]){
      |                                 ^
a.cc:7:44: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
    7 |   if (S.at[0] == S.at[1] && S.at[1] == S.at[2]){
      |                                            ^
Language: C++

#include cstdio
using namespace std

int main(void)
{
  char st[3];
  scanf("%s" ,&st);
  if((st[0] == st[1])&&(st[0] == st[2]))
  {
    printf("No");
  }
  else
  {
    printf("yes");
  }
  return 0;
}


Compiler output:
a.cc:1:10: error: #include expects "FILENAME" or <FILENAME>
    1 | #include cstdio
      |          ^~~~~~
a.cc:2:20: error: expected ';' before 'int'
    2 | using namespace std
      |                    ^
      |                    ;
    3 | 
    4 | int main(void)
      | ~~~                 
a.cc: In function 'int main()':
a.cc:7:3: error: 'scanf' was not declared in this scope
    7 |   scanf("%s" ,&st);
      |   ^~~~~
a.cc:10:5: error: 'printf' was not declared in this scope
   10 |     printf("No");
      |     ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | #include cstdio
a.cc:14:5: error: 'printf' was not declared in this scope
   14 |     printf("yes");
      |     ^~~~~~
a.cc:14:5: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
Language: C++

#include cstdio

int main(void)
{
  char st[3];
  scanf("%s" ,&st);
  if((st[0] == st[1])&&(st[0] == st[2]))
  {
    printf("No");
  }
  else
  {
    printf("yes");
  }
  return 0;
}


Compiler output:
a.cc:1:10: error: #include expects "FILENAME" or <FILENAME>
    1 | #include cstdio
      |          ^~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'scanf' was not declared in this scope
    6 |   scanf("%s" ,&st);
      |   ^~~~~
a.cc:9:5: error: 'printf' was not declared in this scope
    9 |     printf("No");
      |     ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | #include cstdio
a.cc:13:5: error: 'printf' was not declared in this scope
   13 |     printf("yes");
      |     ^~~~~~
a.cc:13:5: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
Language: C++

#include stdio
int main(void)
{
  char st[3];
  scanf("%s" ,&st);
  if((st[0] == st[1])&&(st[0] == st[2]))
  {
    printf("No");
  }
  else
  {
    printf("yes");
  }
  return 0;
}


Compiler output:
a.cc:1:10: error: #include expects "FILENAME" or <FILENAME>
    1 | #include stdio
      |          ^~~~~
a.cc: In function 'int main()':
a.cc:5:3: error: 'scanf' was not declared in this scope
    5 |   scanf("%s" ,&st);
      |   ^~~~~
a.cc:8:5: error: 'printf' was not declared in this scope
    8 |     printf("No");
      |     ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | #include stdio
a.cc:12:5: error: 'printf' was not declared in this scope
   12 |     printf("yes");
      |     ^~~~~~
a.cc:12:5: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
Language: C++

int main(void)
{
  char st[3];
  scanf("%s" ,&st);
  if((st[0] == st[1])&&(st[0] == st[2]))
  {
    printf("No");
  }
  else
  {
    printf("yes");
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'scanf' was not declared in this scope
    4 |   scanf("%s" ,&st);
      |   ^~~~~
a.cc:7:5: error: 'printf' was not declared in this scope
    7 |     printf("No");
      |     ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main(void)
a.cc:11:5: error: 'printf' was not declared in this scope
   11 |     printf("yes");
      |     ^~~~~~
a.cc:11:5: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
Language: C++

int main(void)
{
	if((S.strcmp("AAA"))||(S.strcmp("BBB")))
    {
      printf("No");
      return 0;
    }
  else
  {
    printf("yes");
    return 1;
  }
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:3:13: error: 'S' was not declared in this scope
    3 |         if((S.strcmp("AAA"))||(S.strcmp("BBB")))
      |             ^
a.cc:5:7: error: 'printf' was not declared in this scope
    5 |       printf("No");
      |       ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main(void)
a.cc:10:5: error: 'printf' was not declared in this scope
   10 |     printf("yes");
      |     ^~~~~~
a.cc:10:5: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
Language: C++

int main(void)
{
	if((S.strcmp("AAA"))||(S.strcmp("BBB")))
    {
      printf("No");
    }
  else
  {
    printf("yes");
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:13: error: 'S' was not declared in this scope
    3 |         if((S.strcmp("AAA"))||(S.strcmp("BBB")))
      |             ^
a.cc:5:7: error: 'printf' was not declared in this scope
    5 |       printf("No");
      |       ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main(void)
a.cc:9:5: error: 'printf' was not declared in this scope
    9 |     printf("yes");
      |     ^~~~~~
a.cc:9:5: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
Language: C++

void main()
{
  switch(S)
    case "AAA":
  	case "BBB":
  		printf("No");
  		break;
  
  default:
  	printf("No");
  break;
}

Compiler output:
a.cc:1:1: error: '::main' must return 'int'
    1 | void main()
      | ^~~~
a.cc: In function 'int main()':
a.cc:3:10: error: 'S' was not declared in this scope
    3 |   switch(S)
      |          ^
a.cc:6:17: error: 'printf' was not declared in this scope
    6 |                 printf("No");
      |                 ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | void main()
a.cc:7:17: error: break statement not within loop or switch
    7 |                 break;
      |                 ^~~~~
a.cc:9:3: error: case label not within a switch statement
    9 |   default:
      |   ^~~~~~~
a.cc:10:9: error: 'printf' was not declared in this scope
   10 |         printf("No");
      |         ^~~~~~
a.cc:10:9: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
a.cc:11:3: error: break statement not within loop or switch
   11 |   break;
      |   ^~~~~
Language: C++

int main(void)
{
  switch(S)
    case "AAA":
  	case "BBB":
  		printf("No");
  		break;
  	default:
  		printf("yes");
  		break;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:10: error: 'S' was not declared in this scope
    3 |   switch(S)
      |          ^
a.cc:6:17: error: 'printf' was not declared in this scope
    6 |                 printf("No");
      |                 ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main(void)
a.cc:7:17: error: break statement not within loop or switch
    7 |                 break;
      |                 ^~~~~
a.cc:8:9: error: case label not within a switch statement
    8 |         default:
      |         ^~~~~~~
a.cc:9:17: error: 'printf' was not declared in this scope
    9 |                 printf("yes");
      |                 ^~~~~~
a.cc:9:17: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
a.cc:10:17: error: break statement not within loop or switch
   10 |                 break;
      |                 ^~~~~
Language: C++

#include <bits/stdc++.h>
int main() {
  string S;
  cin << S;
  bool allA = true;
  bool allB = false;
  for (int i=0; i < 3; i++) {
    if (S[i] == 'B')
      allA = false;
    if (S[i] == 'A')
      allB = false;
  }
  if (allA || allB) {
	cout << "No";
  }
  else 	cout << "Yes";
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:3: error: 'string' was not declared in this scope
    3 |   string S;
      |   ^~~~~~
a.cc:3:3: note: suggested alternatives:
In file included from /usr/include/c++/14/string:41,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52,
                 from a.cc:1:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:4:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |   cin << S;
      |   ^~~
      |   std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:4:10: error: 'S' was not declared in this scope
    4 |   cin << S;
      |          ^
a.cc:14:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   14 |         cout << "No";
      |         ^~~~
      |         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:16:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   16 |   else  cout << "Yes";
      |         ^~~~
      |         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#include <iostream>
int main() {
  string S;
  cin << S;
  bool allA = true;
  bool allB = false;
  for (int i=0; i < 3; i++) {
    if (S[i] == 'B')
      allA = false;
    if (S[i] == 'A')
      allB = false;
  }
  if (allA || allB) {
	cout << "No";
  }
  else 	cout << "Yes";
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:3: error: 'string' was not declared in this scope
    3 |   string S;
      |   ^~~~~~
a.cc:3:3: note: suggested alternatives:
In file included from /usr/include/c++/14/iosfwd:41,
                 from /usr/include/c++/14/ios:40,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
In file included from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44:
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:4:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |   cin << S;
      |   ^~~
      |   std::cin
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:4:10: error: 'S' was not declared in this scope
    4 |   cin << S;
      |          ^
a.cc:14:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   14 |         cout << "No";
      |         ^~~~
      |         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:16:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   16 |   else  cout << "Yes";
      |         ^~~~
      |         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

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

int main(){
  string j;
  getline(cin, j);
  
  int a = 0;
  int b = 0;
  for(int i =0; i<4; i++){
    if(j[i] == 'A'){
    	a++;
    }
    else{
		b++;
    }
  }
  if(sum == 3){
  	cout << "No";
  }else{
    cout << "Yes";
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:6: error: 'sum' was not declared in this scope
   18 |   if(sum == 3){
      |      ^~~