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

#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 s;
rep(i,3){
	cin>>s[i];
}


if(s[0]=='A' && s[1]=='A'&& s[2]=='A')
	{cout<<"No"<<endl;}
if(s[0]=='B' && s[1]=='B'&& s[2]=='B')
{
	cout<<"No"<<endl;
}
else{
	cout<<"Yes"<<endl;
}
  return 0;
}


Compiler output:
a.cc:4:11: error: 'pair' does not name a type
    4 | using P = pair<int,int>;
      |           ^~~~
a.cc: In function 'int main()':
a.cc:10:1: error: 'string' was not declared in this scope
   10 | string s;
      | ^~~~~~
a.cc:1:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
  +++ |+#include <string>
    1 | #define rep(i,n) for (int i = 0; i < (n); ++i)
a.cc:12:9: error: 'cin' was not declared in this scope
   12 |         cin>>s[i];
      |         ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #define rep(i,n) for (int i = 0; i < (n); ++i)
a.cc:12:14: error: 's' was not declared in this scope
   12 |         cin>>s[i];
      |              ^
a.cc:16:4: error: 's' was not declared in this scope
   16 | if(s[0]=='A' && s[1]=='A'&& s[2]=='A')
      |    ^
a.cc:17:10: error: 'cout' was not declared in this scope
   17 |         {cout<<"No"<<endl;}
      |          ^~~~
a.cc:17:10: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:17:22: error: 'endl' was not declared in this scope
   17 |         {cout<<"No"<<endl;}
      |                      ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #define rep(i,n) for (int i = 0; i < (n); ++i)
a.cc:18:4: error: 's' was not declared in this scope
   18 | if(s[0]=='B' && s[1]=='B'&& s[2]=='B')
      |    ^
a.cc:20:9: error: 'cout' was not declared in this scope
   20 |         cout<<"No"<<endl;
      |         ^~~~
a.cc:20:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:20:21: error: 'endl' was not declared in this scope
   20 |         cout<<"No"<<endl;
      |                     ^~~~
a.cc:20:21: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
a.cc:23:9: error: 'cout' was not declared in this scope
   23 |         cout<<"Yes"<<endl;
      |         ^~~~
a.cc:23:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:23:22: error: 'endl' was not declared in this scope
   23 |         cout<<"Yes"<<endl;
      |                      ^~~~
a.cc:23:22: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

#include <stdio.h>

int main(){
    char str[100];
    int count=0;
    int i;
    int length;

    scanf("%s", str);
    length = strlen(str);
    if(length!=3){
        return 0;
    }

    for(i=0; i<3; i++){
        if(str[i]=='A'){
            count++;
        }else if(str[i]=='B'){
            count--;
        }
    }


    if((-3<count && count<3) && count!=0){
        printf("YES\n");
    }else{
        printf("NO\n");
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:14: error: 'strlen' was not declared in this scope
   10 |     length = strlen(str);
      |              ^~~~~~
a.cc:2:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    1 | #include <stdio.h>
  +++ |+#include <cstring>
    2 |
Language: Java

import java.util.*;
 static class MAIN
{ public static void main(String args[])
  { Scanner sc=new Scanner (System.in);
   int n=sc.nextInt();int s=0;int f=0;
   int b=sc.nextInt();int i=1;
   int r=sc.nextInt();
   while(n>s)
   {for(i=1;i<=b;i++)
       { if(n>s)
           s=s+1;
         else
         break;
        }if(b==0)
         f=0;
         else
        f=f+i-1;
        for(i=1;i<=r;i++)
        { if(n>s)
            s=s+1;
            else
            break;
        }
        
   }
   System.out.println(f);
}
}


Compiler output:
Main.java:2: error: modifier static not allowed here
 static class MAIN
        ^
1 error
Language: C++

#include <iostream>
using namespace std;

int main(){
  string s;
  cin >> s;
  string ans = "No";
  if(s[0] == s[1] and s[1] == s[2]) ans = "Yes";
  puts(ans);
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:8: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'const char*'
    9 |   puts(ans);
      |        ^~~
      |        |
      |        std::string {aka std::__cxx11::basic_string<char>}
In file included from /usr/include/c++/14/cstdio:42,
                 from /usr/include/c++/14/ext/string_conversions.h:45,
                 from /usr/include/c++/14/bits/basic_string.h:4154,
                 from /usr/include/c++/14/string:54,
                 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,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/stdio.h:714:30: note:   initializing argument 1 of 'int puts(const char*)'
  714 | extern int puts (const char *__s);
      |                  ~~~~~~~~~~~~^~~
Language: C++

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

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inclue; did you mean #include?
    1 | #inclue<bits/stdc++.h>
      |  ^~~~~~
      |  include
a.cc:9:14: warning: missing terminating ' character
    9 |     if(s[i]=='A)a++;
      |              ^
a.cc:9:14: error: missing terminating ' character
    9 |     if(s[i]=='A)a++;
      |              ^~~~~~~
a.cc: In function 'int main()':
a.cc:5:3: error: 'string' was not declared in this scope
    5 |   string s;
      |   ^~~~~~
a.cc:1:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
  +++ |+#include <string>
    1 | #inclue<bits/stdc++.h>
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin>>s;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #inclue<bits/stdc++.h>
a.cc:6:8: error: 's' was not declared in this scope
    6 |   cin>>s;
      |        ^
a.cc:10:8: error: expected primary-expression before 'else'
   10 |        else b++;
      |        ^~~~
a.cc:11:8: error: expected primary-expression before '}' token
   11 |        }
      |        ^
a.cc:10:17: error: expected ')' before '}' token
   10 |        else b++;
      |                 ^
      |                 )
   11 |        }
      |        ~         
a.cc:9:7: note: to match this '('
    9 |     if(s[i]=='A)a++;
      |       ^
a.cc:11:8: error: expected primary-expression before '}' token
   11 |        }
      |        ^
a.cc:12:20: error: 'cout' was not declared in this scope
   12 |        if(a>0&&b>0)cout<<"Yes"<<endl;
      |                    ^~~~
a.cc:12:20: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:12:33: error: 'endl' was not declared in this scope
   12 |        if(a>0&&b>0)cout<<"Yes"<<endl;
      |                                 ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #inclue<bits/stdc++.h>
a.cc:13:13: error: 'cout' was not declared in this scope
   13 |        else cout<<"No"<<endl;
      |             ^~~~
a.cc:13:13: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:13:25: error: 'endl' was not declared in this scope
   13 |        else cout<<"No"<<endl;
      |                         ^~~~
a.cc:13:25: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C

#include <stdio.h>
#include <conio.h>
void main()
{
  int i,a=0,b=0;
  char s[5];
  scanf("%s",s);
  for(i=0;i<3;i++)
  {
      if(s[i]=='A')
        a++;

      if(s[i]=='B')
        b++;

  }
  if(a>0 && b>0)
    printf("YES");

  else
    printf("NO");
getch();
}


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

int main(){
  char s[4];
  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:3:3: error: 'scanf' was not declared in this scope
    3 |   scanf("%s",s);
      |   ^~~~~
a.cc:4:29: error: 'printf' was not declared in this scope
    4 |   if(s[0]==s[1]&&s[1]==s[2])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:5:8: error: 'printf' was not declared in this scope
    5 |   else printf("Yes\n");
      |        ^~~~~~
a.cc:5:8: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
Language: Java

import java.util.*;
public class MAIN
{ public static void main(String args[])
  { Scanner sc=new Scanner (System.in);
   int n=sc.nextInt();int s=0;int f=0;
   int b=sc.nextInt();int i=1;
   int r=sc.nextInt();
   while(n>s)
   {for(i=1;i<=b;i++)
       { if(n>s)
           s=s+1;
         else
         break;
        }if(b==0)
         f=0;
         else
        f=f+i-1;
        for(i=1;i<=r;i++)
        { if(n>s)
            s=s+1;
            else
            break;
        }
        
   }
   System.out.println(f);
}
}


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

#include<stdio.h>

int main(){
  int a, b;
  int S(i);
  
  printf("S(1):");
  scanf("%d", &S(1));
  printf("S(2):");
  scanf("%d", &S(2));
  printf("S(3):");
  scanf("%d", &S(3));
  
  if(S(1) || S(2) || S(3)){
    printf("Yes");
  }
  else{
    printf("No");
  }
  
  return 0;
}
  
   

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'i' was not declared in this scope
    5 |   int S(i);
      |         ^
a.cc:8:17: error: 'S' cannot be used as a function
    8 |   scanf("%d", &S(1));
      |                ~^~~
a.cc:10:17: error: 'S' cannot be used as a function
   10 |   scanf("%d", &S(2));
      |                ~^~~
a.cc:12:17: error: 'S' cannot be used as a function
   12 |   scanf("%d", &S(3));
      |                ~^~~
a.cc:14:7: error: 'S' cannot be used as a function
   14 |   if(S(1) || S(2) || S(3)){
      |      ~^~~
a.cc:14:15: error: 'S' cannot be used as a function
   14 |   if(S(1) || S(2) || S(3)){
      |              ~^~~
a.cc:14:23: error: 'S' cannot be used as a function
   14 |   if(S(1) || S(2) || S(3)){
      |                      ~^~~
Language: C++

#include <stdio.h>

void main() {
    char palavra[3];
    fgets(palavra, 255, stdin);
    if(palavra[0] == 'A' && palavra[1] == 'B' || palavra[1] == 'B' && palavra[2] == 'A' || palavra[0] == 'B' && palavra[2] == 'A' || palavra[0] == 'B'&& palavra[1] == 'A' || palavra[1] == 'A' && palavra[2] == 'B'){
        printf("Yes\n");   
    }
    else{
        printf("No\n");
    }

}


Compiler output:
a.cc:3:1: error: '::main' must return 'int'
    3 | void main() {
      | ^~~~
Language: C

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:5:3: error: 's' undeclared (first use in this function)
    5 |   s[3];
      |   ^
main.c:5:3: note: each undeclared identifier is reported only once for each function it appears in
Language: Java

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

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

#include <bits/stdc++.h>
#define per(i,a,n) for(int i=a;i<=n;i++)
using namespace std;
typedef long long ll;
typedef vector<ll>vec;
typedef vector<vector<ll>> mat;
set<int>s;
int a[5];
vector<int>a[5];
int main()
{
  string s;
  cin>>s;
  for(int i=0;i<s.size();i++){
    if(s[i]=='A')a[1]++;
    else  a[2]++;
  }
  if(a[1]&&a[2]) cout<<"Yes"<<endl;
  else cout<<"No"<<endl;
  return 0;
}



Compiler output:
a.cc:9:12: error: conflicting declaration 'std::vector<int> a [5]'
    9 | vector<int>a[5];
      |            ^
a.cc:8:5: note: previous declaration as 'int a [5]'
    8 | int a[5];
      |     ^
Language: C++

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

int main() {
  float n,a,b,c;
  cin >> n >> a >> b;
  c = n / (a + b);
  n = n % (a + b);
  if (n > a){
      cout << a * (c + 1) << endl;
  }
  else{
    cout << c * a + n  << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: invalid operands of types 'float' and 'float' to binary 'operator%'
    8 |   n = n % (a + b);
      |       ~ ^ ~~~~~~~
      |       |      |
      |       float  float
Language: C

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

}


Compiler output:
main.c: In function 'main':
main.c:11:5: error: implicit declaration of function 'intf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   11 |     intf("No\n");
      |     ^~~~
      |     printf
Language: Java

import java.util.*;
class Station
{
  public static void main(String[] args)
  {
    Scanner sc=new Scanner(System.in);
    String str=sc.hasNext();
    int l=str.length();
    String result="";
    for(int i=0;i<l;i++)
    {
      Char ch=str.charAt(i);
      result=result+ch;
    }
    if(result.equals("AAA")||result.equals("BBB"))
    {
      System.out.println("Yes");
    }
    else
    {
      System.out.println("No");
    }
  }
}
      
      
      
    
    

Compiler output:
Main.java:7: error: incompatible types: boolean cannot be converted to String
    String str=sc.hasNext();
                         ^
Main.java:12: error: cannot find symbol
      Char ch=str.charAt(i);
      ^
  symbol:   class Char
  location: class Station
2 errors
Language: C++

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

}


Compiler output:
a.cc:17:1: error: expected declaration before '}' token
   17 | }
      | ^
Language: C++

#include<bits/stdc++.h>

using namespace std;

int main(){

    string s;

    cin >> s;
    if(s.compare("AAA") == 0 || s.compare("BBB") == 0);
        cout << "No\n";
    else
        cout<< "Yes\n";
    
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:5: error: 'else' without a previous 'if'
   12 |     else
      |     ^~~~
Language: C++

#include<iostream.h>
using namespace std;

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


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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:25: error: expected ';' before 'else'
    9 |             cout << "No"
      |                         ^
      |                         ;
   10 |         else
      |         ~~~~
Language: Java

Scanner sc = new Scanner(System.in);
String input = sc.next();
if(input.equals("AAA") || input.equals("BBB")){
  System.out.println("No");
} else {
  System.out.println("YES");
}


Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
Scanner sc = new Scanner(System.in);
^
  (use --enable-preview to enable unnamed classes)
Main.java:3: error: class, interface, enum, or record expected
if(input.equals("AAA") || input.equals("BBB")){
^
Main.java:5: error: class, interface, enum, or record expected
} else {
^
Main.java:7: error: class, interface, enum, or record expected
}
^
4 errors
Language: C++

#include<iostream.h>
using namespace std;

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

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

int main(void){
  char stat[4];
  stat = gets();
  if(stat == 'AAA' | stat == 'BBB'){
    printf("No\n");
  } else {
    printf("Yes\n");
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:3:10: error: implicit declaration of function 'gets' [-Wimplicit-function-declaration]
    3 |   stat = gets();
      |          ^~~~
main.c:3:8: error: assignment to expression with array type
    3 |   stat = gets();
      |        ^
main.c:4:14: warning: multi-character character constant [-Wmultichar]
    4 |   if(stat == 'AAA' | stat == 'BBB'){
      |              ^~~~~
main.c:4:11: warning: comparison between pointer and integer
    4 |   if(stat == 'AAA' | stat == 'BBB'){
      |           ^~
main.c:4:30: warning: multi-character character constant [-Wmultichar]
    4 |   if(stat == 'AAA' | stat == 'BBB'){
      |                              ^~~~~
main.c:4:27: warning: comparison between pointer and integer
    4 |   if(stat == 'AAA' | stat == 'BBB'){
      |                           ^~
main.c:5:5: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    5 |     printf("No\n");
      |     ^~~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'printf'
  +++ |+#include <stdio.h>
    1 | int main(void){
main.c:5:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
    5 |     printf("No\n");
      |     ^~~~~~
main.c:5:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:7:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
    7 |     printf("Yes\n");
      |     ^~~~~~
main.c:7:5: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
	string a;
  cin>>a;
  if(a=="AAB"||"BBA"||"ABA"||"BAB"||"ABB"||"BAA') cout<<"YES"<<endl;
  else cout<<"NO"<<endl;
}

Compiler output:
a.cc:6:61: warning: missing terminating " character
    6 |   if(a=="AAB"||"BBA"||"ABA"||"BAB"||"ABB"||"BAA') cout<<"YES"<<endl;
      |                                                             ^
a.cc:6:61: error: missing terminating " character
    6 |   if(a=="AAB"||"BBA"||"ABA"||"BAB"||"ABB"||"BAA') cout<<"YES"<<endl;
      |                                                             ^~~~~~~~
a.cc: In function 'int main()':
a.cc:6:44: error: unable to find string literal operator 'operator""YES' with 'const char [13]', 'long unsigned int' arguments
    6 |   if(a=="AAB"||"BBA"||"ABA"||"BAB"||"ABB"||"BAA') cout<<"YES"<<endl;
      |                                            ^~~~~~~~~~~~~~~~~
a.cc:8:1: error: expected primary-expression before '}' token
    8 | }
      | ^
a.cc:7:25: error: expected ')' before '}' token
    7 |   else cout<<"NO"<<endl;
      |                         ^
      |                         )
    8 | }
      | ~                        
a.cc:6:5: note: to match this '('
    6 |   if(a=="AAB"||"BBA"||"ABA"||"BAB"||"ABB"||"BAA') cout<<"YES"<<endl;
      |     ^
a.cc:8:1: error: expected primary-expression before '}' token
    8 | }
      | ^
Language: C++

#include<iostream>
#include<stdio.h>
#include<string>
using namespace std;
int main()
{char S[4];
int i,a=0,b=0;
gets(S);
for(i=0;i<3;i++)
if(S[i]=='A')
a++;
else if(S[i]=='B')
b++;
if(a>0&&b>0)
cout<<"Yes";
else
cout<<"No";
}

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


#include<iostream>
#include<cmath>
#include<string>
#define ll long long 
using namespace std;

int main()
{
    string str;
    cin>>str;
    int k=0,p=0;
    for(int i=0;i<str.size();i++)
    {
    	if(str[i]=="A")k++;
    	else p++;
    	
    }
    if(k&&p)cout<<"Yes";
    else cout<<"No";
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   15 |         if(str[i]=="A")k++;
Language: C

#include<stdio.h>
int main(){
 int i,j,k,b,c;
  char a;
  int x[2]={0};
  for(i=0;i<3;i++)
  {
    scanf("%c",&a);
    if(a=='A'){
    x[0]+=1
    else if(a=='B'){
    x[1]+=1
    }
    
  }
  if(x[0]==2 || x[1]==2)
    printf("Yes\n");
  else
    printf("No\n");
  
}

Compiler output:
main.c: In function 'main':
main.c:10:12: error: expected ';' before 'else'
   10 |     x[0]+=1
      |            ^
      |            ;
   11 |     else if(a=='B'){
      |     ~~~~    
main.c:21:1: error: expected declaration or statement at end of input
   21 | }
      | ^
Language: C++

#include <iostream>
#include <cstdio>
#include <iostream>
#include <string>
#include <fstream>
#include <queue>
#include <cmath>
using namespace std;

int main(){
  int a;
  string s;
  cin>>s;
  if(s[0]==s[1]==s[2])puts("No");
  ekse puts("Yes");
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:3: error: 'ekse' was not declared in this scope
   15 |   ekse puts("Yes");
      |   ^~~~
Language: C++

//author-jayesh parmar
#include <bits/stdc++.h>
#define ll 					long long
#define abs(x) 				x>0?x:(-x)
#define pb                  push_back
#define pf                  push_front
#define eb                  emplace_back
#define popb                pop_back
#define popf                pop_front
#define mp                  make_pair
#define mt                  make_tuple
#define ff                  first
#define ss                  second
#define vll                 vector<ll>
#define vvl                 vector<vll>
#define pll                 pair<ll,ll>
#define mll                 map<ll,ll>
#define ub                  upper_bound
#define lb                  lower_bound
#define bs                  binary_search
#define all(x)              x.begin(),x.end()
#define rall(x)             x.rbegin(),x.rend()
#define get(tup,ind)        get<ind>(tup)
#define sv(i,s,e,v) for(ll i=(s);i<(e);i++){int ip;,cin>>ip;,v.pb(ip);}   
#define fast ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL);
using namespace std;
int32_t main() 
{
	fast
	string s;
	int a=0,b=0
	cin >> s;
	for(int i=0;i<s.size();i++)
	{
		if(s[i]=='A')
			a++;
		else
			b++;
	}
	if(a && b)
		cout << "Yes"; 
	else
		cout << "No";

	return 0; 
}

Compiler output:
a.cc: In function 'int32_t main()':
a.cc:32:9: error: expected ',' or ';' before 'cin'
   32 |         cin >> s;
      |         ^~~
Language: C

#include<stdio.h>
int main(){
 int i,j,k,a,b,c;
  int x[2]={0};
  for(i=0;i<3;i++)
  {
    scanf("%c",&a);
    if(a=='A'){
    x[0]+=1
    else if(a=='B'){
    x[1]+=1
    }
    
  }
  if(x[0]==2 || x[1]==2)
    printf("Yes\n");
  else
    printf("No\n");
  
}

Compiler output:
main.c: In function 'main':
main.c:9:12: error: expected ';' before 'else'
    9 |     x[0]+=1
      |            ^
      |            ;
   10 |     else if(a=='B'){
      |     ~~~~    
main.c:20:1: error: expected declaration or statement at end of input
   20 | }
      | ^
Language: C++

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

int main() {
  string s;
  cin >> s;
  bool kusa = false;
   for (int = 0; i < 2; i++){
     if (s.at(i) != s.at(i + 1)){
       kusa = true;
     }
     if (kusa){break;}
   }
  if (kusa){
    cout << "Yes" << endl;
  }
  else {
    cout << "No" << endl;
    
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:13: error: expected unqualified-id before '=' token
    8 |    for (int = 0; i < 2; i++){
      |             ^
a.cc:8:12: error: expected ';' before '=' token
    8 |    for (int = 0; i < 2; i++){
      |            ^~
      |            ;
a.cc:8:13: error: expected primary-expression before '=' token
    8 |    for (int = 0; i < 2; i++){
      |             ^
a.cc:8:18: error: 'i' was not declared in this scope
    8 |    for (int = 0; i < 2; i++){
      |                  ^
a.cc:8:23: error: expected ')' before ';' token
    8 |    for (int = 0; i < 2; i++){
      |        ~              ^
      |                       )
a.cc:8:25: error: 'i' was not declared in this scope
    8 |    for (int = 0; i < 2; i++){
      |                         ^
a.cc:20:2: error: expected '}' at end of input
   20 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

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

}


Compiler output:
a.cc:1:2: error: extended character   is not valid in an identifier
    1 | #include <string>
      |  ^
a.cc:1:2: error: invalid preprocessing directive #include\U000000a0
    1 | #include <string>
      |  ^~~~~~~~
a.cc: In function 'int main()':
a.cc:5:3: error: 'string' was not declared in this scope
    5 |   string S;
      |   ^~~~~~
a.cc:1:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
  +++ |+#include <string>
    1 | #include <string>
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin >> S;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #include <string>
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:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:9:21: error: 'endl' was not declared in this scope
    9 |     cout << "No" << endl;
      |                     ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #include <string>
a.cc:12:5: error: 'cout' was not declared in this scope
   12 |     cout << "No" << endl;
      |     ^~~~
a.cc:12:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:12:21: error: 'endl' was not declared in this scope
   12 |     cout << "No" << endl;
      |                     ^~~~
a.cc:12:21: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
a.cc:15:5: error: 'cout' was not declared in this scope
   15 |     cout << "Yes" << endl;
      |     ^~~~
a.cc:15:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:15:22: error: 'endl' was not declared in this scope
   15 |     cout << "Yes" << endl;
      |                      ^~~~
a.cc:15:22: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

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

}


Compiler output:
a.cc:2:2: error: extended character   is not valid in an identifier
    2 | #include <string>
      |  ^
a.cc:2:2: error: invalid preprocessing directive #include\U000000a0
    2 | #include <string>
      |  ^~~~~~~~
a.cc: In function 'int main()':
a.cc:9:9: error: could not convert 'S.std::__cxx11::basic_string<char>::operator=(((const char*)"AAA"))' from 'std::__cxx11::basic_string<char>' to 'bool'
    9 |   if (S ="AAA") {
      |       ~~^~~~~~
      |         |
      |         std::__cxx11::basic_string<char>
a.cc:12:9: error: could not convert 'S.std::__cxx11::basic_string<char>::operator=(((const char*)"BBB"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   12 |   if (S ="BBB") {
      |       ~~^~~~~~
      |         |
      |         std::__cxx11::basic_string<char>
Language: C++

#include<bits/stdc++.h>

using namespace std;

int main(){

    string s;

    cin >> s;
    if(s.compare("AAA") || s.compare("BBB"));
        cout << "No\n";
    else{
        cout<< "Yes\n";
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:5: error: 'else' without a previous 'if'
   12 |     else{
      |     ^~~~
Language: C++

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

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

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

int main() {
  std:string x,a,b;
  cin >> x;
  string a = "AAA";
  string b = "BBB";

  if (x == a || x == b) {
    cout << "No" << endl;
  }

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:10: error: redeclaration of 'std::string a'
    7 |   string a = "AAA";
      |          ^
a.cc:5:16: note: 'std::string a' previously declared here
    5 |   std:string x,a,b;
      |                ^
a.cc:8:10: error: redeclaration of 'std::string b'
    8 |   string b = "BBB";
      |          ^
a.cc:5:18: note: 'std::string b' previously declared here
    5 |   std:string x,a,b;
      |                  ^
Language: C

#include<stdio.h>
int main(void){
  int i;
  double a,b;
  scanf("%lf%lf",&a,&b);
  for(i=1;i<10000;i++){
    if((int)a%0.08==0&&(int)b%0.1==0){
          printf("%d",i);
      return 0;
    }
    printf("-1");
    return 0;
  }

Compiler output:
main.c: In function 'main':
main.c:7:14: error: invalid operands to binary % (have 'int' and 'double')
    7 |     if((int)a%0.08==0&&(int)b%0.1==0){
      |        ~~~~~~^
      |        |
      |        int
main.c:7:30: error: invalid operands to binary % (have 'int' and 'double')
    7 |     if((int)a%0.08==0&&(int)b%0.1==0){
      |                        ~~~~~~^
      |                        |
      |                        int
main.c:13:3: error: expected declaration or statement at end of input
   13 |   }
      |   ^
Language: C++


// C++ program for implementation of Ford Fulkerson algorithm 
#include <iostream> 
#include <limits.h> 
#include <string.h> 
#include <queue> 
#include <set>
using namespace std; 

#include <stdio.h>

int main () {
   int tot;
   cin>>tot;
   set<char>k;

   char* inp;
    while(tot!=0)
   {
      cin>>inp;
      --tot;
     while(inp!='\0')
     {
       k.insert(*inp);
     }
     if(k.count==1){
        cout<<"Yes";
        
     }else{
        cout<<"No";
     }

   } 



   return(0);
}
   

Compiler output:
a.cc: In function 'int main()':
a.cc:22:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   22 |      while(inp!='\0')
      |            ~~~^~~~~~
a.cc:26:16: error: invalid operands of types '<unresolved overloaded function type>' and 'int' to binary 'operator=='
   26 |      if(k.count==1){
      |         ~~~~~~~^~~
      |           |      |
      |           |      int
      |           <unresolved overloaded function type>
Language: C++

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

int main() {
  string x,a,b;
  cin >> x;
  std:string a = "AAA";
  std:string b = "BBB";

  if (x == a || x == b) {
    cout << "No" << endl;
  }

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:14: error: redeclaration of 'std::string a'
    7 |   std:string a = "AAA";
      |              ^
a.cc:5:12: note: 'std::string a' previously declared here
    5 |   string x,a,b;
      |            ^
a.cc:8:3: error: duplicate label 'std'
    8 |   std:string b = "BBB";
      |   ^~~
a.cc:8:14: error: redeclaration of 'std::string b'
    8 |   std:string b = "BBB";
      |              ^
a.cc:5:14: note: 'std::string b' previously declared here
    5 |   string x,a,b;
      |              ^
Language: C

#include<stdio.h>
int main()
{
	char S[3],a,b,c;
	scanf("%s",s);
	for(i=0;i<3;i++)
	{
	if(s[i]='A'||s[i]='B')
	if(i=0)
	{
		a=s[i];
		b=s[i+1];
		c=s[i+2];
	}
	}
	if(a=b)
	if(b=c)
	{
		printf("NO");
	}
	else
	printf("YES");
}

Compiler output:
main.c: In function 'main':
main.c:5:20: error: 's' undeclared (first use in this function)
    5 |         scanf("%s",s);
      |                    ^
main.c:5:20: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:13: error: 'i' undeclared (first use in this function)
    6 |         for(i=0;i<3;i++)
      |             ^
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main() {
  string S;
  S.size() = 3;
  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 if (S.at(0) == 'A' || S.at(1) == 'A' || S.at(2) == 'A') {
    cout << "Yes" << endl;
  }

}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: lvalue required as left operand of assignment
    7 |   S.size() = 3;
      |   ~~~~~~^~
Language: C++

#include <bits / stdc ++. h>

usando el espacio de nombres estándar;

int main ()
{
  cuerda a;
  cin >> a;
  para (int i = 0; i <3; i ++)
    {
       if (a [i] == 'A' && a [i + 1] == 'B')
         {
         cout << "Sí";
         volver 0;
          }
       más
         {if (a [i] == 'B' && a [i + 1] == 'A')
         {
         cout << "Sí";
         volver 0;
          }}
    }
  cout << "No";
}


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

#include<stdio.h>
int main(){
    char s[3];
    gets(s);
    int a=0,b=0;
    for(int i=0;i<2;i++){
       if(s[i]=='A') a++;
       else if(s[i]=='B') b++;

    }
    if(a==3) printf("No\n");
    else if(b==3) printf("No\n");
    else printf("Yes\n");
}

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

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

int main() {
  string x,a,b;
  cin >> x;
  string a = "AAA";
  string b = "BBB";

  if (x == a || x == b) {
    cout << "No" << endl;
  }

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:10: error: redeclaration of 'std::string a'
    7 |   string a = "AAA";
      |          ^
a.cc:5:12: note: 'std::string a' previously declared here
    5 |   string x,a,b;
      |            ^
a.cc:8:10: error: redeclaration of 'std::string b'
    8 |   string b = "BBB";
      |          ^
a.cc:5:14: note: 'std::string b' previously declared here
    5 |   string x,a,b;
      |              ^
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:5:6: error: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration]
    5 |   if(strcmp(s[0],A)==0){
      |      ^~~~~~
main.c:2:1: note: include '<string.h>' or provide a declaration of 'strcmp'
    1 | #include<stdio.h>
  +++ |+#include <string.h>
    2 | int main(void){
main.c:5:14: error: subscripted value is neither array nor pointer nor vector
    5 |   if(strcmp(s[0],A)==0){
      |              ^
main.c:5:18: error: 'A' undeclared (first use in this function)
    5 |   if(strcmp(s[0],A)==0){
      |                  ^
main.c:5:18: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:16: error: subscripted value is neither array nor pointer nor vector
    6 |     if(strcmp(s[1],B)==0)
      |                ^
main.c:6:20: error: 'B' undeclared (first use in this function)
    6 |     if(strcmp(s[1],B)==0)
      |                    ^
main.c:8:16: error: subscripted value is neither array nor pointer nor vector
    8 |     if(strcmp(s[2],B)==0)
      |                ^
main.c:13:14: error: subscripted value is neither array nor pointer nor vector
   13 |   if(strcmp(s[1],A)==0){
      |              ^
main.c:14:16: error: subscripted value is neither array nor pointer nor vector
   14 |     if(strcmp(s[0],B)==0)
      |                ^
main.c:16:16: error: subscripted value is neither array nor pointer nor vector
   16 |     if(strcmp(s[2],B)==0)
      |                ^
main.c:21:14: error: subscripted value is neither array nor pointer nor vector
   21 |   if(strcmp(s[2],A)==0){
      |              ^
main.c:22:16: error: subscripted value is neither array nor pointer nor vector
   22 |     if(strcmp(s[0],B)==0)
      |                ^
main.c:24:16: error: subscripted value is neither array nor pointer nor vector
   24 |     if(strcmp(s[1],B)==0)
      |                ^
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:5:6: error: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration]
    5 |   if(strcmp(s[0],A)==0){
      |      ^~~~~~
main.c:2:1: note: include '<string.h>' or provide a declaration of 'strcmp'
    1 | #include<stdio.h>
  +++ |+#include <string.h>
    2 | int main(void){
main.c:5:14: error: subscripted value is neither array nor pointer nor vector
    5 |   if(strcmp(s[0],A)==0){
      |              ^
main.c:5:18: error: 'A' undeclared (first use in this function)
    5 |   if(strcmp(s[0],A)==0){
      |                  ^
main.c:5:18: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:17: error: subscripted value is neither array nor pointer nor vector
    6 |     if(!strcmp(s[1],B)==0)
      |                 ^
main.c:6:21: error: 'B' undeclared (first use in this function)
    6 |     if(!strcmp(s[1],B)==0)
      |                     ^
main.c:8:17: error: subscripted value is neither array nor pointer nor vector
    8 |     if(!strcmp(s[2],B)==0)
      |                 ^
main.c:13:15: error: subscripted value is neither array nor pointer nor vector
   13 |   if(!strcmp(s[1],A)==0){
      |               ^
main.c:14:17: error: subscripted value is neither array nor pointer nor vector
   14 |     if(!strcmp(s[0],B)==0)
      |                 ^
main.c:16:17: error: subscripted value is neither array nor pointer nor vector
   16 |     if(!strcmp(s[2],B)==0)
      |                 ^
main.c:21:15: error: subscripted value is neither array nor pointer nor vector
   21 |   if(!strcmp(s[2],A)==0){
      |               ^
main.c:22:17: error: subscripted value is neither array nor pointer nor vector
   22 |     if(!strcmp(s[0],B)==0)
      |                 ^
main.c:24:17: error: subscripted value is neither array nor pointer nor vector
   24 |     if(!strcmp(s[1],B)==0)
      |                 ^
Language: C++

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

int main() {
  string x,a,b;
  cin >> x;
  int a = "AAA";
  int b = "BBB";

  if (x == a || x == b) {
    cout << "No" << endl;
  }

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:7: error: conflicting declaration 'int a'
    7 |   int a = "AAA";
      |       ^
a.cc:5:12: note: previous declaration as 'std::string a'
    5 |   string x,a,b;
      |            ^
a.cc:8:7: error: conflicting declaration 'int b'
    8 |   int b = "BBB";
      |       ^
a.cc:5:14: note: previous declaration as 'std::string b'
    5 |   string x,a,b;
      |              ^
Language: C++

#include <iostream>
#include <string>

using namespace std;

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

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

    cout << "Yes" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:13: error: too few arguments to function 'void exit(int)'
   12 |         exit();
      |         ~~~~^~
In file included from /usr/include/c++/14/cstdlib:79,
                 from /usr/include/c++/14/ext/string_conversions.h:43,
                 from /usr/include/c++/14/bits/basic_string.h:4154,
                 from /usr/include/c++/14/string:54,
                 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,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/stdlib.h:756:13: note: declared here
  756 | extern void exit (int __status) __THROW __attribute__ ((__noreturn__));
      |             ^~~~
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:5:7: error: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration]
    5 |   if(!strcmp(s[0],A)){
      |       ^~~~~~
main.c:2:1: note: include '<string.h>' or provide a declaration of 'strcmp'
    1 | #include<stdio.h>
  +++ |+#include <string.h>
    2 | int main(void){
main.c:5:15: error: subscripted value is neither array nor pointer nor vector
    5 |   if(!strcmp(s[0],A)){
      |               ^
main.c:5:19: error: 'A' undeclared (first use in this function)
    5 |   if(!strcmp(s[0],A)){
      |                   ^
main.c:5:19: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:17: error: subscripted value is neither array nor pointer nor vector
    6 |     if(!strcmp(s[1],B))
      |                 ^
main.c:6:21: error: 'B' undeclared (first use in this function)
    6 |     if(!strcmp(s[1],B))
      |                     ^
main.c:8:17: error: subscripted value is neither array nor pointer nor vector
    8 |     if(!strcmp(s[2],B))
      |                 ^
main.c:13:15: error: subscripted value is neither array nor pointer nor vector
   13 |   if(!strcmp(s[1],A)){
      |               ^
main.c:14:17: error: subscripted value is neither array nor pointer nor vector
   14 |     if(!strcmp(s[0],B))
      |                 ^
main.c:16:17: error: subscripted value is neither array nor pointer nor vector
   16 |     if(!strcmp(s[2],B))
      |                 ^
main.c:21:15: error: subscripted value is neither array nor pointer nor vector
   21 |   if(!strcmp(s[2],A)){
      |               ^
main.c:22:17: error: subscripted value is neither array nor pointer nor vector
   22 |     if(!strcmp(s[0],B))
      |                 ^
main.c:24:17: error: subscripted value is neither array nor pointer nor vector
   24 |     if(!strcmp(s[1],B))
      |                 ^
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main() {
  string S;
  S.size() = 3;
  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:7:9: error: lvalue required as left operand of assignment
    7 |   S.size() = 3;
      |   ~~~~~~^~
Language: C++

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

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

#include <bits/stdc++.h>

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:14:18: error: expected ';' before '}' token
   14 |          return 0
      |                  ^
      |                  ;
   15 |           }
      |           ~       
a.cc:20:18: error: expected ';' before '}' token
   20 |          return 0
      |                  ^
      |                  ;
   21 |           }}
      |           ~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:30: error: expected primary-expression before '=' token
    7 |         if(s == "AAA" || s === "BBB") cout << "No";
      |                              ^
Language: C++

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

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

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