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

う　し　た　ぷ　に　き　あ　く　ん　笑

Compiler output:
a.cc:1:1: error: extended character 　 is not valid in an identifier
    1 | う　し　た　ぷ　に　き　あ　く　ん　笑
      | ^
a.cc:1:1: error: extended character 　 is not valid in an identifier
a.cc:1:1: error: extended character 　 is not valid in an identifier
a.cc:1:1: error: extended character 　 is not valid in an identifier
a.cc:1:1: error: extended character 　 is not valid in an identifier
a.cc:1:1: error: extended character 　 is not valid in an identifier
a.cc:1:1: error: extended character 　 is not valid in an identifier
a.cc:1:1: error: extended character 　 is not valid in an identifier
a.cc:1:1: error: extended character 　 is not valid in an identifier
a.cc:1:1: error: '\U00003046\U00003000\U00003057\U00003000\U0000305f\U00003000\U00003077\U00003000\U0000306b\U00003000\U0000304d\U00003000\U00003042\U00003000\U0000304f\U00003000\U00003093\U00003000\U00007b11' does not name a type
    1 | う　し　た　ぷ　に　き　あ　く　ん　笑
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Language: C

    char s[3];
    scanf("%s", s);
    
    if(s[0]=s[1] && s[0]==s[2] && s[1]==s[2]){
    	puts("No");
	}
    else if(s[0]=s[1] && s[0]!=s[2] && s[1]!=s[2]){
    	puts("Yes");
	}
	else if(s[0]=s[2] && s[0]!=s[1] && s[1]!=s[2]){
		puts("Yes");
	}
	else if(s[1]=s[2] && s[0]!=s[1] && s[0]!=s[2]){
		puts("Yes");
    }

Compiler output:
main.c:2:11: error: expected declaration specifiers or '...' before string constant
    2 |     scanf("%s", s);
      |           ^~~~
main.c:2:17: error: expected declaration specifiers or '...' before 's'
    2 |     scanf("%s", s);
      |                 ^
main.c:4:5: error: expected identifier or '(' before 'if'
    4 |     if(s[0]=s[1] && s[0]==s[2] && s[1]==s[2]){
      |     ^~
main.c:7:5: error: expected identifier or '(' before 'else'
    7 |     else if(s[0]=s[1] && s[0]!=s[2] && s[1]!=s[2]){
      |     ^~~~
main.c:10:9: error: expected identifier or '(' before 'else'
   10 |         else if(s[0]=s[2] && s[0]!=s[1] && s[1]!=s[2]){
      |         ^~~~
main.c:13:9: error: expected identifier or '(' before 'else'
   13 |         else if(s[1]=s[2] && s[0]!=s[1] && s[0]!=s[2]){
      |         ^~~~
Language: C++

include <stdio.h>

int main() {
	char A, B, C;
	scanf("%c %c %c", &A, &B, &C);
	
	if(A==B && A!=C)
	puts("Yes");
	
	if(B==C && B!=A)
	puts("Yes");
	
	if(A==C && B!=A)
	puts("Yes");
	
	if(A==B && A==C)
	puts("No");
	
	return 0;
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <stdio.h>
      | ^~~~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:12: error: 's' was not declared in this scope
    7 |         if(s [0] == s[1] && s[1] == s[2]){
      |            ^
Language: C++

int main(){
	
	char S[3];
	
	scanf("%s",S);
	
	if(S[0]==S[1] && S[2]==S[1]){
		printf("No\n");
	}
	else{
		printf("Yes\n");
	}
}	

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

#include <Stdio.h>

int main(){
    char S[10];
    
    scanf("%s", &S);
    
    if (S[1] != S[2]){
        (puts("Yes"));
    }else {
        (puts("No"));
    }
    
    
    
    return 0;
}

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

#include <stdio.h>

int main(){
	char S[10];
	
	scanf("%s", &S);
	
	if(S[1] != S[2]){
		printf("Yes");
	}else {
		("No");
	}
	
	
	
	return 0;


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

#include <stdio.h>

int main(){
	char S[10];
	
	scanf("%s", &S);
	
	if(S[1] != S[2]){
		printf("Yes");
	}else {
		("No")
	}
	
	
	
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:23: error: expected ';' before '}' token
   11 |                 ("No")
      |                       ^
      |                       ;
   12 |         }
      |         ~
Language: C++

#include <Stdio.h>

int main(){
	char S[10];
	
	scanf("%s", &S);
	
	S[2] != S[1] ? printf("Yes") : printf("No");
	
	
	
	return 0;
}

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

#include <Stdio.h>

int main(){
	char S[10];
	
	scanf("%s", &S);
	
	S[2] != S[1] ? (puts("Yes")): (puts("No"));
	
	
	
	return 0;
}

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

#include <Stdio.h>

int main(){
	
	char S[3];
	
	scanf("%s", &S);
	
	if (S[1] != S[2]){
		puts("Yes");
	}else {
		puts("No");
	}
	
	
	
	return 0;
}

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

#include <Stdio.h>

int main(){
	char S[10];
	
	scanf("%s", &S);
	
	if (S[1] != S[2]){
		puts("Yes");
	}else {
		puts("No");
	}
	
	
	
	return 0;
}

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

#include <Stdio.h>

int main(){
	char S[10];
	
	scanf("%s", &S);
	
	S[2] != S[1] ? puts("Yes") : puts("No");
	
	
	
	return 0;
}

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

#include  <stdio.h>

int main(void)
{
    char a[3];
    scanf("%s",&a);
    
    if(a[0]!=a[2] && a[1]!=a[0] && a[1] == a[2]) {
        puts("Yes");
    }
    else if(a[0]!=a[2] && a[1]==a[0] && a[1] != a[2]) {
        puts("Yes");
    }
    else if(a[0]==a[2] && a[1]!=a[0] && a[1] != a[2]) {
        puts("Yes");
    }
    else if(a[0]!=a[2] && a[1]==a[0] && a[1] != a[2]) {
        puts("Yes");
    }
    else if(a[0]==a[2] && a[1]==a[0] && a[1] == a[2]) {
        puts("No");
    }
    
    return 0;

Compiler output:
main.c: In function 'main':
main.c:24:5: error: expected declaration or statement at end of input
   24 |     return 0;
      |     ^~~~~~
Language: C++

#define _USE_MATH_DEFINES
#include  <cmath>
#include <cstdio>
#include <vector>
#include <iostream>
#include <algorithm>
#include <string>
#include<math.h>
#include<iomanip>
#include<stdio.h>
#include <stdlib.h>
#include<stdio.h>
#include <queue>
#include<map>
#include <sstream>
#include<set>
#include<stack>
#include<time.h>
typedef long long int ll;
//#include<bits/stdc++.h>


using namespace std;



int main()
{

    string p;
    cin >> p;
    set<char>t;
    cin >> p;
    for (int i = 0; i < p.size(); i++) {
        t.insert(p[i]);
    }
    if (t.size <= 1)cout << "No" << endl;
    else cout << "Yes" << endl;

    return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:37:11: error: invalid use of member function 'std::set<_Key, _Compare, _Alloc>::size_type std::set<_Key, _Compare, _Alloc>::size() const [with _Key = char; _Compare = std::less<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]' (did you forget the '()' ?)
   37 |     if (t.size <= 1)cout << "No" << endl;
      |         ~~^~~~
      |               ()
Language: C++

#define _USE_MATH_DEFINES
#include  <cmath>
#include <cstdio>
#include <vector>
#include <iostream>
#include <algorithm>
#include <string>
#include<math.h>
#include<iomanip>
#include<stdio.h>
#include <stdlib.h>
#include<stdio.h>
#include <queue>
#include<map>
#include <sstream>
#include<set>
#include<stack>
#include<time.h>
typedef long long int ll;
//#include<bits/stdc++.h>


using namespace std;



int main()
{

    string p;
    cin >> p;
    set<char>t;
    for (int i = 0; i < p.size(); i++) {
        t.insert(p[i]);
    }
    if (t.size <= 1)cout << "No" << endl;
    else cout << "Yes" << endl;

    return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:36:11: error: invalid use of member function 'std::set<_Key, _Compare, _Alloc>::size_type std::set<_Key, _Compare, _Alloc>::size() const [with _Key = char; _Compare = std::less<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]' (did you forget the '()' ?)
   36 |     if (t.size <= 1)cout << "No" << endl;
      |         ~~^~~~
      |               ()
Language: C

#include<stdio.h>

int main(void){
  char s[5];
  scanf("%s",s);
  if(s[0]=='A' && s[1]=='A' && s[2]=='A'){
    printf("No\n");
  }else if(s[0]=='B' && s[1]=='B' && s[2]=='B'){
    printf("No\n");
  }else{
    printf("Yes\n");
  }
  return 0:
}

Compiler output:
main.c: In function 'main':
main.c:13:11: error: expected ';' before ':' token
   13 |   return 0:
      |           ^
      |           ;
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define int long long int
#define pb  push_back
int32_t main()
{
    string  X;
    cin>>X;
    if((X==AAA) || (X==BB))
    cout<<"No";
    else
    cout<<"Yes";
    return 0;
}




Compiler output:
a.cc: In function 'int32_t main()':
a.cc:9:12: error: 'AAA' was not declared in this scope
    9 |     if((X==AAA) || (X==BB))
      |            ^~~
a.cc:9:24: error: 'BB' was not declared in this scope
    9 |     if((X==AAA) || (X==BB))
      |                        ^~
Language: Java

import java.util.Scanner;

fun main (args : Array<String>) {
  val input = Scanner(System.`in`)
  
  while (input.hasNext()) {
    val S = input.next()
    var countA = 0
    var countB = 0
    
    for (c in S) {
      if (c == 'A') {
        ++countA
      }
      
      if (c == 'B') {
        ++countB
      }
    }
    
    if (countA == 3 || countB == 3) {
      println("No")
    } else {
      println("Yes")
    }
  }
}

Compiler output:
Main.java:3: error: unnamed classes are a preview feature and are disabled by default.
fun main (args : Array<String>) {
^
  (use --enable-preview to enable unnamed classes)
Main.java:3: error: <identifier> expected
fun main (args : Array<String>) {
              ^
Main.java:3: error: class, interface, enum, or record expected
fun main (args : Array<String>) {
                      ^
Main.java:4: error: illegal character: '`'
  val input = Scanner(System.`in`)
                             ^
Main.java:4: error: illegal character: '`'
  val input = Scanner(System.`in`)
                                ^
5 errors
Language: C++

#include<bits.stdc++.h>
#define ll long long
#define vll vector<ll>
using namespace std;

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

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

#include <iostream>
#include <string.h>

using namespace std;

int main(void)
{
 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:10:17: error: no match for 'operator||' (operand types are 'bool' and 'std::string' {aka 'std::__cxx11::basic_string<char>'})
   10 |   if(S == "AAA" || S="BBB")
      |      ~~~~~~~~~~ ^~ ~
      |        |           |
      |        bool        std::string {aka std::__cxx11::basic_string<char>}
a.cc:10:17: note: candidate: 'operator||(bool, bool)' (built-in)
   10 |   if(S == "AAA" || S="BBB")
      |      ~~~~~~~~~~~^~~~
a.cc:10:17: note:   no known conversion for argument 2 from 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'bool'
Language: Java

import java.util.Scanner;
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:
Main.java:12: error: reached end of file while parsing
    }
     ^
1 error
Language: C++

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

Compiler output:
a.cc:8:28: error: extended character 　 is not valid in an identifier
    8 |   if (s != "AAA" || "BBB" )　cout << "Yes" << endl;
      |                            ^
a.cc: In function 'int main()':
a.cc:8:28: error: '\U00003000cout' was not declared in this scope
    8 |   if (s != "AAA" || "BBB" )　cout << "Yes" << endl;
      |                            ^~~~~~
Language: C

#include<stdio.h>

int main(void){
   char s[3];
   int i;
   for(i=0;i<3;i++){
      scanf("%c",&a[i]);
   }
   if(s[0]!=s[1]||s[1]!=s[2]){
      printf("Yes");
   } else {
      printf("No");
   }
   return 0;
}


Compiler output:
main.c: In function 'main':
main.c:7:19: error: 'a' undeclared (first use in this function)
    7 |       scanf("%c",&a[i]);
      |                   ^
main.c:7:19: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:4:14: error: 's' undeclared (first use in this function)
    4 |   scanf("%s",s);
      |              ^
main.c:4:14: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
 
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:14:2: error: expected '}' at end of input
   14 | }
      |  ^
a.cc:6:12: note: to match this '{'
    6 | int main() {
      |            ^
Language: C++

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

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

  if (s[0]==s[1] && s[1]==s[2]) {
    cout << "No" << endl;
  }

  else
  cout << "Yes" << endl;
}

Compiler output:
a.cc:1:2: error: stray '#' in program
    1 | v#include <bits/stdc++.h>
      |  ^
a.cc:1:1: error: 'v' does not name a type
    1 | v#include <bits/stdc++.h>
      | ^
a.cc: In function 'int main()':
a.cc:5:3: error: 'string' was not declared in this scope
    5 |   string s;
      |   ^~~~~~
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin >> s;
      |   ^~~
a.cc:6:10: error: 's' was not declared in this scope
    6 |   cin >> s;
      |          ^
a.cc:9:5: error: 'cout' was not declared in this scope
    9 |     cout << "No" << endl;
      |     ^~~~
a.cc:9:21: error: 'endl' was not declared in this scope
    9 |     cout << "No" << endl;
      |                     ^~~~
a.cc:13:3: error: 'cout' was not declared in this scope
   13 |   cout << "Yes" << endl;
      |   ^~~~
a.cc:13:20: error: 'endl' was not declared in this scope
   13 |   cout << "Yes" << endl;
      |                    ^~~~
Language: C++

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

int main() {
  string S; cin >> S;
  string result = "Yes";

  if (S[0] === S[1] === S[2]) result = "No";

  cout << result << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:14: error: expected primary-expression before '=' token
   10 |   if (S[0] === S[1] === S[2]) result = "No";
      |              ^
a.cc:10:23: error: expected primary-expression before '=' token
   10 |   if (S[0] === S[1] === S[2]) result = "No";
      |                       ^
Language: C++

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

int main() {
  string S; cin >> N;
  string result = "Yes";

  if (S[0] == S[1] == S[2]) result = "No";

  cout << result << endl;
  return 0;
}

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

#include<bits/stdc++.h>
using namespace std;
int main(){
	ios_base::sync_with_stdio(0),cin.tie(0),cout.tie(0);
    string s; cin >> s;
    int a = 0,b = 0;
    for(int i=0;i<s.length();i++){
    	if(s[i]=="A")
          	a++;
      	if(s[i]=="B")
          	b++;
    }
  	if(a>0 && b>0)
      	cout << "YES\n";
    else
      	cout << "NO\n";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |         if(s[i]=="A")
a.cc:10:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |         if(s[i]=="B")
Language: C++

#include <iostream>

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


Compiler output:
a.cc: In function 'int main()':
a.cc:5:5: error: 'string' was not declared in this scope
    5 |     string s;
      |     ^~~~~~
a.cc:5: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:6:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |     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:6:12: error: 's' was not declared in this scope
    6 |     cin >> s;
      |            ^
a.cc:8:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |         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:10:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |         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>
#define rep(i,n) for(int i=0;i<(int)n;++i)
#define REP(i,a,b) for(int i=int(a);i<(int)b;++i)
#define Graph vector<vecctor<ll>>
#define pairs vector<pair<ll,ll>>
#define pb push_back



using namespace std;
using ll = long long;
const ll INF = 1e18;
const double PI = acos(-1);

template<class T> inline bool chmin(T& a, T b) {
    if (a > b) {
        a = b;
        return true;
    }
    return false;
}
template<class T> inline bool chmax(T& a, T b) {
    if (a < b) {
        a = b;
        return true;
    }
    return false;
}
const ll mod = 1e9 + 7;

ll modpow(ll p,ll q){
    if(q == 0) return 1;
    if(q%2 == 0){
        ll x = modpow(p,q/2);
        return x*x%mod;
    }else{
        return modpow(p,q-1)*p%mod;
    }
}


int main(void){
    std::cin.tie(nullptr);
    std::ios::sync_with_stdio(false);
    strin s;
    cin >> s;
    if(s[0] == s[1] && s[1] == s[2])cout << "NO" << endl;
    else cout << "Yes" << endl;
    
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:45:5: error: 'strin' was not declared in this scope; did you mean 'stdin'?
   45 |     strin s;
      |     ^~~~~
      |     stdin
a.cc:46:12: error: 's' was not declared in this scope
   46 |     cin >> s;
      |            ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:6:24: error: lvalue required as left operand of assignment
    6 |   if(a[0]==a[1] && a[1]=a[2])
      |                        ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
//#define LOCAL
#define fastIO ios::sync_with_stdio(0), cin.tie(0)
#define endl '\n'
#define ft first
#define sd second
#define sz size()
#define pb push_back
#define pob pop_back()
#define pf push_front
#define pof pop_front()
#define all(x) (x).begin(), (x).end()
typedef long long ll;
typedef pair<int,int> pii;
typedef pair<char,char> pcc;
typedef pair<double,double> pdd;
typedef pair<long long,long long> pll;
//cout << fixed << setprecision(12) <<x<<endl;
const int MAX=1001;
int a[MAX];
int b[MAX];
int main(){
fastIO;
#ifdef LOCAL
     freopen("in.txt", "r", stdin);
#endif

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

}



Compiler output:
a.cc: In function 'int main()':
a.cc:40:42: error: expected ')' before '{' token
   40 |       if((b==2 && a==1) || (b==1 && a==2){
      |         ~                                ^
      |                                          )
a.cc:47:1: error: expected primary-expression before '}' token
   47 | }
      | ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  if(s[0] == s[1] && s[1] == s[2]) cout << "No\n";
  else cout << "Yes\n"
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:23: error: expected ';' before 'return'
    7 |   else cout << "Yes\n"
      |                       ^
      |                       ;
    8 |   return 0;
      |   ~~~~~~
Language: C

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

int main() {
    int n_a = 0, n_b = 0;
    for(int i = 0; i < 3; i++) {
        char c;
        cin >> c;
        if(c == 'A') {
            n_a++;
        }
        else {
            n_b++;
        }
    }    
    if(n_a == 0 || n_b == 0) {
        cout << "No\n";
    }
    else {
        cout << "Yes\n";
    }
    return 0;
}

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

#include <bits/stdc++.h>
// これもおそらく省略形
#define rep(i,n) for (int i = 0; i < (n); ++i)
using namespace std;
//省略形
using ll = long long;
using P = pair<int,int>;


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

if (a === "AAA" || a === "BBB"){
  cout << "NO" << endl
}
else{
  cout << "YES" << endl
}

return 0;
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:9: error: expected primary-expression before '=' token
   14 | if (a === "AAA" || a === "BBB"){
      |         ^
a.cc:14:24: error: expected primary-expression before '=' token
   14 | if (a === "AAA" || a === "BBB"){
      |                        ^
a.cc:15:23: error: expected ';' before '}' token
   15 |   cout << "NO" << endl
      |                       ^
      |                       ;
   16 | }
      | ~                      
a.cc:18:24: error: expected ';' before '}' token
   18 |   cout << "YES" << endl
      |                        ^
      |                        ;
   19 | }
      | ~
Language: C++

//om nama sivaya
#include<bits/stdc++.h>
#define ll long long
#define mod 1000000007
#define pb push_back
#define ff first
#define ss second
#define pb push_back
using namespace std;
void solve(){
    string s;
    cin>>s;
    for(int i=0;i<3;i++)
    if(s[i]=='A')
    c++;
    if(c>=1)
    cout<<"Yes";
    else
    cout<<"No";
}
int main(){
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    cout.tie(NULL);
    int tt=1;
    //cin>>tt;
    while(tt--){
        solve();
    }
}


Compiler output:
a.cc: In function 'void solve()':
a.cc:15:5: error: 'c' was not declared in this scope
   15 |     c++;
      |     ^
a.cc:16:8: error: 'c' was not declared in this scope
   16 |     if(c>=1)
      |        ^
Language: C++

#include<stdlib.h>
int a = cout << ""<<endl;
if (s.find("A") != std::string::npos)
{
	printf("Yes");
}
else
{
	printf("No")
}

Compiler output:
a.cc:2:9: error: 'cout' was not declared in this scope
    2 | int a = cout << ""<<endl;
      |         ^~~~
a.cc:2:21: error: 'endl' was not declared in this scope
    2 | int a = cout << ""<<endl;
      |                     ^~~~
a.cc:3:1: error: expected unqualified-id before 'if'
    3 | if (s.find("A") != std::string::npos)
      | ^~
a.cc:7:1: error: expected unqualified-id before 'else'
    7 | else
      | ^~~~
Language: C++


#include<bits/stdc++.h>
using namespace std;
int main()
{
    int ca=0,cb=0;
    string s;
    cin>>s;
    for(i=0;i<3;i++)
    {
        if(s[i]=='A') ca++;
        if(s[i]=='B') cb++;
    }
    if(ca==2 || cb==2) cout<<"Yes\n";
    else cout<<"No\n";


    return 0;
}


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

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		long n = sc.nextLong();
		long a = sc.nextLong();
		long b = sc.nextLong();
		long ans;
		ans = n / (a + b);
		ans = ans * a;
		n = n % (a + b);
		ans += Math.min(a, n);
		System.out.println(ans);
		sc.close();
	}
}

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

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

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

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

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

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

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

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

int main(){
  vector<stirng> bus(3);
  for(int i=0;i<3;i++){
    cin>>bus(i);
  }
  int Acon=0;
  for(int i=0;i<3;i++){
    if(bus(i)=="A"){
      Acon++;
    }
  }
  if(Acon==1||Acon==2)
    cout<<"Yes"<<endl;
  else
    cout<<"No"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:10: error: 'stirng' was not declared in this scope
    5 |   vector<stirng> bus(3);
      |          ^~~~~~
a.cc:5:16: error: template argument 1 is invalid
    5 |   vector<stirng> bus(3);
      |                ^
a.cc:5:16: error: template argument 2 is invalid
a.cc:7:13: error: 'bus' cannot be used as a function
    7 |     cin>>bus(i);
      |          ~~~^~~
a.cc:11:11: error: 'bus' cannot be used as a function
   11 |     if(bus(i)=="A"){
      |        ~~~^~~
Language: C++

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

#define    ll   long long 
 
int main()
{
   ll  n,a,b;
   cin>>n>>a>>b;
   
   ll times=n/(a+b);
   cout<<(a*times)+min(a,n%(a+b)<<endl;
	
 
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:33: error: invalid operands of types 'long long int' and '<unresolved overloaded function type>' to binary 'operator<<'
   12 |    cout<<(a*times)+min(a,n%(a+b)<<endl;
      |                          ~~~~~~~^~~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
    unsigned long long int n,a,b;
    cin>>n>>a>>b;
    ans=n*a/(a+b);
    rem=n%(a+b);
    ans=ans+min(rem,a);
    cout<<ans;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: 'ans' was not declared in this scope; did you mean 'abs'?
    7 |     ans=n*a/(a+b);
      |     ^~~
      |     abs
a.cc:8:5: error: 'rem' was not declared in this scope; did you mean 'drem'?
    8 |     rem=n%(a+b);
      |     ^~~
      |     drem
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
  int t;
  cin>>t;
  while(t--)
  {
    string s;
    cin>>s;
    if(s[0]==s[2])
      cout<<"Yes"<<endl;
    else
      cout<<"No"<<endl;
  }

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

#include<bits/stdc++.h>
using namespace std;
int main()
{
  int t;
  cin>>t;
  while(t--)
  {
    string s;
    cin>>s;
    if(s[0]==s[2])
      cout<<"Yes"<<endl;
    else
      cout<<"NO"<<endl;
  }

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

#include<bits/stdc++.h>
using namespace std;
int main()
{
  int t;
  cin>>t;
  while(t--)
  {
    char s;
    cin>>s;
    if(s[0]==s[1]&&s[1]==s[2])
      cout<<"No"<<endl;
    else
      cout<<"Yes"<<endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:9: error: invalid types 'char[int]' for array subscript
   11 |     if(s[0]==s[1]&&s[1]==s[2])
      |         ^
a.cc:11:15: error: invalid types 'char[int]' for array subscript
   11 |     if(s[0]==s[1]&&s[1]==s[2])
      |               ^
a.cc:11:21: error: invalid types 'char[int]' for array subscript
   11 |     if(s[0]==s[1]&&s[1]==s[2])
      |                     ^
a.cc:11:27: error: invalid types 'char[int]' for array subscript
   11 |     if(s[0]==s[1]&&s[1]==s[2])
      |                           ^
Language: C++

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

int main () {
  char 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:9:9: error: request for member 'at' in 'S', which is of non-class type 'char'
    9 |   if (S.at(0) == S.at(1) && S.at(1) == S.at(2) ){
      |         ^~
a.cc:9:20: error: request for member 'at' in 'S', which is of non-class type 'char'
    9 |   if (S.at(0) == S.at(1) && S.at(1) == S.at(2) ){
      |                    ^~
a.cc:9:31: error: request for member 'at' in 'S', which is of non-class type 'char'
    9 |   if (S.at(0) == S.at(1) && S.at(1) == S.at(2) ){
      |                               ^~
a.cc:9:42: error: request for member 'at' in 'S', which is of non-class type 'char'
    9 |   if (S.at(0) == S.at(1) && S.at(1) == S.at(2) ){
      |                                          ^~
Language: C++

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

int main(){

	string s;
  	cin >> s;
  	if(s[0]==s[1]==s[2])
      cout << "No";
  else
    cout << "Yes";
   

}

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

import java.util.Scanner;
     
    public class Main {
     
    	public static void main(String[] args) {
    		Scanner sc = new Scanner(System.in);
          String p=sc.next();
          for(int i=0;i<p.length()-1;i++)
          {
            if(p.charAt(i)!=p.charAt(i+1))
              System.out.println("Yes");
            return;
                          System.out.println("No");

            
          }
        }
    }

Compiler output:
Main.java:13: error: unreachable statement
                          System.out.println("No");
                          ^
1 error
Language: Java

import.java.util.*;

public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String S = sc.next();
    if (S.contains("A") && S.contains("B")) {
      System.out.println("Yes");
    }else{
      System.out.println("No");
    }
  }
}

Compiler output:
Main.java:1: error: <identifier> expected
import.java.util.*;
      ^
1 error
Language: C++

#include <iostream>
#include <algorithm>
using namespace std;
int main(void){
    string s;
    cin >> s>;
    
    if(s[0] == s[1] && s[0] == s[2])
        cout << "No" << endl;
        
    else
        cout << "Yes" << endl;
    
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:14: error: expected primary-expression before ';' token
    6 |     cin >> s>;
      |              ^
Language: Java

import java.util.Scanner;
public class Main{
    public static void main(String[] args){
        Scanner scanner = new Scanner(System.in);

        int S = scanner.nextInt();
        
      	if(S == "AAA" || S == "BBB"){
        	System.out.println("No");
        }else{
            System.out.println("Yes");
        }
    }
}

Compiler output:
Main.java:8: error: bad operand types for binary operator '=='
      	if(S == "AAA" || S == "BBB"){
      	     ^
  first type:  int
  second type: String
Main.java:8: error: bad operand types for binary operator '=='
      	if(S == "AAA" || S == "BBB"){
      	                   ^
  first type:  int
  second type: String
2 errors
Language: C

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

int main(void){
    char S[3];
    char A[3];
    char B[3];

    scanf("%s", &S);

    A[0] = A;
    A[1] = A;
    A[2] = A;

    B[0] = B;
    B[1] = B;
    B[2] = B;

    if(strcmp(S, A) == 0){
        printf("No");
    }else if(strcmp(S, B) == 0){
        printf("No")
    }else{
        printf("Yes");
    }

    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:10: error: assignment to 'char' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
   11 |     A[0] = A;
      |          ^
main.c:12:10: error: assignment to 'char' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
   12 |     A[1] = A;
      |          ^
main.c:13:10: error: assignment to 'char' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
   13 |     A[2] = A;
      |          ^
main.c:15:10: error: assignment to 'char' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
   15 |     B[0] = B;
      |          ^
main.c:16:10: error: assignment to 'char' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
   16 |     B[1] = B;
      |          ^
main.c:17:10: error: assignment to 'char' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
   17 |     B[2] = B;
      |          ^
main.c:22:21: error: expected ';' before '}' token
   22 |         printf("No")
      |                     ^
      |                     ;
   23 |     }else{
      |     ~
Language: Java

import java.util.*;

public class codechef {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        char[] ch = s.toCharArray();
        Set<Character> hs = new HashSet<>();
        for (char c : ch)
            hs.add(c);
        if (hs.size() >= 2) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    }
}

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

#include<bits/stdc++.h>
int main() {
  string str;
  cin >> str;
  int a = 0, b = 0;
  for(int i = 0; i < str.length(); i++) {
    if(str[i] == 'A') {
      a++;
    } else {
      b++;
    }
  }
  if(a > 0 && b > 0) cout << "Yes\n";
  else cout << "No\n";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:3: error: 'string' was not declared in this scope
    3 |   string str;
      |   ^~~~~~
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 >> str;
      |   ^~~
      |   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: 'str' was not declared in this scope; did you mean 'std'?
    4 |   cin >> str;
      |          ^~~
      |          std
a.cc:13:22: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   13 |   if(a > 0 && b > 0) cout << "Yes\n";
      |                      ^~~~
      |                      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\n";
      |        ^~~~
      |        std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C

S = input()
if S[0] == S[1] and S[1] == S[2]:
	print('No')
else:
	print('Yes')

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | S = input()
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 'S' [-Wimplicit-int]
main.c:1:5: error: implicit declaration of function 'input' [-Wimplicit-function-declaration]
    1 | S = input()
      |     ^~~~~
main.c:1:5: error: initializer element is not constant
main.c:2:1: error: expected ',' or ';' before 'if'
    2 | if S[0] == S[1] and S[1] == S[2]:
      | ^~
main.c:3:15: warning: multi-character character constant [-Wmultichar]
    3 |         print('No')
      |               ^~~~
main.c:5:15: warning: multi-character character constant [-Wmultichar]
    5 |         print('Yes')
      |               ^~~~~
Language: C

#include <stdio.h>

int main() {
    S = input()
    if S[0] == S[1] and S[1] == S[2]:
    print('No')
    else:
    print('Yes')
    
    
    
    
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:5: error: 'S' undeclared (first use in this function)
    4 |     S = input()
      |     ^
main.c:4:5: note: each undeclared identifier is reported only once for each function it appears in
main.c:4:9: error: implicit declaration of function 'input' [-Wimplicit-function-declaration]
    4 |     S = input()
      |         ^~~~~
main.c:4:16: error: expected ';' before 'if'
    4 |     S = input()
      |                ^
      |                ;
    5 |     if S[0] == S[1] and S[1] == S[2]:
      |     ~~          
main.c:6:11: warning: multi-character character constant [-Wmultichar]
    6 |     print('No')
      |           ^~~~
main.c:8:11: warning: multi-character character constant [-Wmultichar]
    8 |     print('Yes')
      |           ^~~~~
Language: C++

    #include <iostream>
    #include<cmath>
    #include<string>
    using namespace std;
    int main()
    {
         string s;
         cin>>s;
         int a=0,b=0;
      int k=s.length();
      	for(int i=0;i<k;i++)
        {
          if(s[i]=='A')
            a++;
          else
            b++;
        }
      if(a=b+1 || b=a+1)
        cout<<"Yes";
      else
        cout<<"No";
        
    }

Compiler output:
a.cc: In function 'int main()':
a.cc:18:16: error: lvalue required as left operand of assignment
   18 |       if(a=b+1 || b=a+1)
      |            ~~~~^~~~
Language: C++

#include <iostream>
#include<cmath>
#include<string>
using namespace std;
int main()
{
     string s;
     cin>>s;
     int a=0;b=0;
  	for(int i=0;i<s.length();i++)
    {
      if(s[i]=='A')
        a++;
      else
        b++;
    }
  if(a=b+1 || b=a+1)
    cout<<"Yes";
  else
    cout<<"No";
    
}

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

#include<bits/stdc++.h>
using namespaces std;
int main(){
  string s;
  int i=0,c=0,d=0;
  while(s[i]!='\0'){
    if(s[i]=='A')
      c++;
    else
      d++;
    i++;
  }
  if(c!=0 && d!=0)
    cout<<"Yes";
  else
    cout<<"No";
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namespaces'
    2 | using namespaces std;
      |       ^~~~~~~~~~
a.cc: In function 'int main()':
a.cc:4:3: error: 'string' was not declared in this scope
    4 |   string s;
      |   ^~~~~~
a.cc:4: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:9: error: 's' was not declared in this scope
    6 |   while(s[i]!='\0'){
      |         ^
a.cc:14:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   14 |     cout<<"Yes";
      |     ^~~~
      |     std::cout
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146:
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:16:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   16 |     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 <bit/stdc++.h> 
using namespace std;

int main(){
  
  string a;
  cin >> a;
  
  if( a == "AAA" || "BBB" ){
    
    cout << "NO" << endl;
    
  }
  
  else{
    
    cout << "YES" << endl;
    
  }
  
}


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

#include <bits/stdc++.h>
using namespace std;
 
int main(){
     string S;
     cin >> S;

     if(S.at(0)=='A' && S.at(1)=='A' && S.at(2)=='A'){
        cout << "No" << endl;
     }
    if(S.at(0)=='B' && S.at(1)=='B' && S.at(2)=='B'){
        cout << "No" << endl;
     } 
     else{
         cout << "Yes" << endl;
     }


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

#include <bits/stdc++.h>

uisng namespace std;

int main(){
  string s;
  cin >> s;
  cin.ignore();
  if((s == "AAA") || (s == "BBB")){
    cout << "No" << endl;
    return 0;
  }
  cout << "Yes" << endl;
  return 0;
}

Compiler output:
a.cc:3:1: error: 'uisng' does not name a type
    3 | uisng namespace std;
      | ^~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'string' was not declared in this scope
    6 |   string s;
      |   ^~~~~~
a.cc:6: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:7:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |   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:7:10: error: 's' was not declared in this scope
    7 |   cin >> s;
      |          ^
a.cc:10:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |     cout << "No" << endl;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:10:21: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   10 |     cout << "No" << endl;
      |                     ^~~~
      |                     std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:13:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   13 |   cout << "Yes" << endl;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:13:20: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   13 |   cout << "Yes" << endl;
      |                    ^~~~
      |                    std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~