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

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

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

  if (S == AAB) {
    cout << "Yes" << endl;
  }
 if (S == ABA) {
    cout << "YES" << endl;
  }

 if (S == BAA) {
    cout << "Yes" << endl;
  }

 if (S == ABB) {
    cout << "Yes" << endl;
  }

 if (S == BAB) {
    cout << "Yes" << endl;
  }

 if (S == BBA) {
    cout << "Yes" << endl;
  }
 
  else{
    cout << "No" << endl;
  }

}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: 'AAB' was not declared in this scope
    8 |   if (S == AAB) {
      |            ^~~
a.cc:11:11: error: 'ABA' was not declared in this scope
   11 |  if (S == ABA) {
      |           ^~~
a.cc:15:11: error: 'BAA' was not declared in this scope
   15 |  if (S == BAA) {
      |           ^~~
a.cc:19:11: error: 'ABB' was not declared in this scope
   19 |  if (S == ABB) {
      |           ^~~
a.cc:23:11: error: 'BAB' was not declared in this scope
   23 |  if (S == BAB) {
      |           ^~~
a.cc:27:11: error: 'BBA' was not declared in this scope
   27 |  if (S == BBA) {
      |           ^~~
Language: C

#include<stdio.h>
int main(void)
{
  int a;
  scanf("%s",&a);
  if(a=AAA)
  {
    printf("No");
  }
  else if(a=BBB)
  {
    printf("No");
  }
  else
  {
    printf("Yes");
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:8: error: 'AAA' undeclared (first use in this function)
    6 |   if(a=AAA)
      |        ^~~
main.c:6:8: note: each undeclared identifier is reported only once for each function it appears in
main.c:10:13: error: 'BBB' undeclared (first use in this function)
   10 |   else if(a=BBB)
      |             ^~~
Language: C++

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

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

  if (S == AAB) {
    cout << "Yes" << endl;
  }
 if (S == ABA) {
    cout << "YES" << endl;
  }

 if (S == BAA) {
    cout << "Yes" << endl;
  }

 if (S == ABB) {
    cout << "Yes" << endl;
  }

 if (S == BAB) {
    cout << "Yes" << endl;
  }

 if (S == BBA) {
    cout << "Yes" << endl;
  }
 
  else{
    cout << "No" << endl;


}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: 'AAB' was not declared in this scope
    8 |   if (S == AAB) {
      |            ^~~
a.cc:11:11: error: 'ABA' was not declared in this scope
   11 |  if (S == ABA) {
      |           ^~~
a.cc:15:11: error: 'BAA' was not declared in this scope
   15 |  if (S == BAA) {
      |           ^~~
a.cc:19:11: error: 'ABB' was not declared in this scope
   19 |  if (S == ABB) {
      |           ^~~
a.cc:23:11: error: 'BAB' was not declared in this scope
   23 |  if (S == BAB) {
      |           ^~~
a.cc:27:11: error: 'BBA' was not declared in this scope
   27 |  if (S == BBA) {
      |           ^~~
a.cc:35:2: error: expected '}' at end of input
   35 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  string s1,s2,s3;
  cin>>s1>>s2>>s3;
  if(s1==A || s1==B){
    if(s1==s2 && s2==s3){
      cout<< "No" <<endl;
    }
    else cout<< "Yes" <<endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:10: error: 'A' was not declared in this scope
    6 |   if(s1==A || s1==B){
      |          ^
a.cc:6:19: error: 'B' was not declared in this scope
    6 |   if(s1==A || s1==B){
      |                   ^
Language: C

#include<stdio.h>
int main()
{char a[10];
int i;
gets(a);

    if((a[0]=='A'&&a[1]=='A'&&a[2]=='B')||(a[0]=='A'&&a[2]=='A'&&a[1]=='B')||(a[2]=='A'&&a[1]=='A'&&a[1]=='B')||a[0]=='A'&&a[1]=='B'&&a[2]=='B')||a[1]=='A'&&a[2]=='B'&&a[0]=='B')||a[2]=='A'&&a[1]=='B'&&a[0]=='B'))
        printf("Yes\n");
    else
        printf("No\n");



    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:5:1: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
    5 | gets(a);
      | ^~~~
      | fgets
main.c:7:145: error: expected expression before '||' token
    7 |     if((a[0]=='A'&&a[1]=='A'&&a[2]=='B')||(a[0]=='A'&&a[2]=='A'&&a[1]=='B')||(a[2]=='A'&&a[1]=='A'&&a[1]=='B')||a[0]=='A'&&a[1]=='B'&&a[2]=='B')||a[1]=='A'&&a[2]=='B'&&a[0]=='B')||a[2]=='A'&&a[1]=='B'&&a[0]=='B'))
      |                                                                                                                                                 ^~
main.c:7:178: error: expected statement before ')' token
    7 |     if((a[0]=='A'&&a[1]=='A'&&a[2]=='B')||(a[0]=='A'&&a[2]=='A'&&a[1]=='B')||(a[2]=='A'&&a[1]=='A'&&a[1]=='B')||a[0]=='A'&&a[1]=='B'&&a[2]=='B')||a[1]=='A'&&a[2]=='B'&&a[0]=='B')||a[2]=='A'&&a[1]=='B'&&a[0]=='B'))
      |                                                                                                                                                                                  ^
main.c:7:179: error: expected expression before '||' token
    7 |     if((a[0]=='A'&&a[1]=='A'&&a[2]=='B')||(a[0]=='A'&&a[2]=='A'&&a[1]=='B')||(a[2]=='A'&&a[1]=='A'&&a[1]=='B')||a[0]=='A'&&a[1]=='B'&&a[2]=='B')||a[1]=='A'&&a[2]=='B'&&a[0]=='B')||a[2]=='A'&&a[1]=='B'&&a[0]=='B'))
      |                                                                                                                                                                                   ^~
main.c:7:212: error: expected statement before ')' token
    7 |     if((a[0]=='A'&&a[1]=='A'&&a[2]=='B')||(a[0]=='A'&&a[2]=='A'&&a[1]=='B')||(a[2]=='A'&&a[1]=='A'&&a[1]=='B')||a[0]=='A'&&a[1]=='B'&&a[2]=='B')||a[1]=='A'&&a[2]=='B'&&a[0]=='B')||a[2]=='A'&&a[1]=='B'&&a[0]=='B'))
      |                                                                                                                                                                                                                    ^
main.c:7:213: error: expected statement before ')' token
    7 |     if((a[0]=='A'&&a[1]=='A'&&a[2]=='B')||(a[0]=='A'&&a[2]=='A'&&a[1]=='B')||(a[2]=='A'&&a[1]=='A'&&a[1]=='B')||a[0]=='A'&&a[1]=='B'&&a[2]=='B')||a[1]=='A'&&a[2]=='B'&&a[0]=='B')||a[2]=='A'&&a[1]=='B'&&a[0]=='B'))
      |                                                                                                                                                                                                                     ^
main.c:9:5: error: 'else' without a previous 'if'
    9 |     else
      |     ^~~~
Language: C++

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

#define rep(i,n) for(int i=0;i<n;++i)
#define rep1(i,n) for(int i=1;i<=n;++i)
#define all(x) x.begin(),x.end()
#define pb push_back
#define mp make_pair
#define fi first
#define se second
typedef long long ll;
typedef long double ld;
typedef pair<ll,ll> P;
typedef pair<int,int> Pi;


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




Compiler output:
a.cc:28:2: error: 'A' does not name a type
   28 | }A
      |  ^
Language: C++

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

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

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

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


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

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  string a;
  cin >> a;
  
  if (a == AAA) {
    cout << No << endl;
  }
  else if (a == AAB) {
    cout << Yes << endl;
  }
  else if (a == ABA) {
    cout << Yes << endl;
  }
  else if (a == ABB) {
    cout << Yes << endl;
  }
  else if (a == BBB) {
    cout << No << endl;
  }
  else if (a == BBA) {
    cout << Yes << endl;
  }
  else if (a == BAB) {
    cout << Yes << endl;
  }
  else if (a == BAA) {
    cout << Yes << endl;
  }

Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: 'AAA' was not declared in this scope
    8 |   if (a == AAA) {
      |            ^~~
a.cc:9:13: error: 'No' was not declared in this scope
    9 |     cout << No << endl;
      |             ^~
a.cc:11:17: error: 'AAB' was not declared in this scope
   11 |   else if (a == AAB) {
      |                 ^~~
a.cc:12:13: error: 'Yes' was not declared in this scope
   12 |     cout << Yes << endl;
      |             ^~~
a.cc:14:17: error: 'ABA' was not declared in this scope
   14 |   else if (a == ABA) {
      |                 ^~~
a.cc:15:13: error: 'Yes' was not declared in this scope
   15 |     cout << Yes << endl;
      |             ^~~
a.cc:17:17: error: 'ABB' was not declared in this scope
   17 |   else if (a == ABB) {
      |                 ^~~
a.cc:18:13: error: 'Yes' was not declared in this scope
   18 |     cout << Yes << endl;
      |             ^~~
a.cc:20:17: error: 'BBB' was not declared in this scope
   20 |   else if (a == BBB) {
      |                 ^~~
a.cc:21:13: error: 'No' was not declared in this scope
   21 |     cout << No << endl;
      |             ^~
a.cc:23:17: error: 'BBA' was not declared in this scope
   23 |   else if (a == BBA) {
      |                 ^~~
a.cc:24:13: error: 'Yes' was not declared in this scope
   24 |     cout << Yes << endl;
      |             ^~~
a.cc:26:17: error: 'BAB' was not declared in this scope
   26 |   else if (a == BAB) {
      |                 ^~~
a.cc:27:13: error: 'Yes' was not declared in this scope
   27 |     cout << Yes << endl;
      |             ^~~
a.cc:29:17: error: 'BAA' was not declared in this scope
   29 |   else if (a == BAA) {
      |                 ^~~
a.cc:30:13: error: 'Yes' was not declared in this scope
   30 |     cout << Yes << endl;
      |             ^~~
a.cc:31:4: error: expected '}' at end of input
   31 |   }
      |    ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

#include <bits/stdc++.h> //全てのヘッダファイルをインクルード

//ループ
#define REP(i, n) for(int i = 0; i < n; i++) //普通のループ
#define REPR(i, n) for(int i = n; i >= 0; i--) //逆ループ
#define FOR(i, m, n) for(int i = m; i < n; i++) //最初の数値を指定したループ

//型名省略
typedef long long ll;

using namespace std;

#include "./lib/math.h"

int main(){
}

Compiler output:
a.cc:13:10: fatal error: ./lib/math.h: No such file or directory
   13 | #include "./lib/math.h"
      |          ^~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include <bits/stdc++.h> //全てのヘッダファイルをインクルード

//ループ
#define REP(i, n) for(int i = 0; i < n; i++) //普通のループ
#define REPR(i, n) for(int i = n; i >= 0; i--) //逆ループ
#define FOR(i, m, n) for(int i = m; i < n; i++) //最初の数値を指定したループ

//型名省略
typedef long long ll;

using namespace std;

#include "./lib/math.h"

int main(){
    string S;
}

Compiler output:
a.cc:13:10: fatal error: ./lib/math.h: No such file or directory
   13 | #include "./lib/math.h"
      |          ^~~~~~~~~~~~~~
compilation terminated.
Language: C++

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

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

  if (S == AAB) {
    cout << "YES" << endl;
  }
 if (S == ABA) {
    cout << "YES" << endl;
  }

 if (S == BAA) {
    cout << "YES" << endl;
  }

 if (S == ABB) {
    cout << "YES" << endl;
  }

 if (S == BAB) {
    cout << "YES" << endl;
  }

 if (S == BBA) {
    cout << "YES" << endl;
  }
 
  else{
    cout << "no" << endl;


}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: 'AAB' was not declared in this scope
    8 |   if (S == AAB) {
      |            ^~~
a.cc:11:11: error: 'ABA' was not declared in this scope
   11 |  if (S == ABA) {
      |           ^~~
a.cc:15:11: error: 'BAA' was not declared in this scope
   15 |  if (S == BAA) {
      |           ^~~
a.cc:19:11: error: 'ABB' was not declared in this scope
   19 |  if (S == ABB) {
      |           ^~~
a.cc:23:11: error: 'BAB' was not declared in this scope
   23 |  if (S == BAB) {
      |           ^~~
a.cc:27:11: error: 'BBA' was not declared in this scope
   27 |  if (S == BBA) {
      |           ^~~
a.cc:35:2: error: expected '}' at end of input
   35 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

#include <bits/stdc++.h> //全てのヘッダファイルをインクルード

//ループ
#define REP(i, n) for(int i = 0; i < n; i++) //普通のループ
#define REPR(i, n) for(int i = n; i >= 0; i--) //逆ループ
#define FOR(i, m, n) for(int i = m; i < n; i++) //最初の数値を指定したループ

//型名省略
typedef long long ll;

using namespace std;

#include "./lib/math.h"

int main(){
    string S;
    int mode=0;
    cin >> S;
    //cout << S << S.length();
    if(S.length()<1 || S.length()>3){
        mode=1;
    }

    REP(i,3){
        if(S[i]!='A' && S[i]!='B'){
            mode=1;
        }
    }

}

Compiler output:
a.cc:13:10: fatal error: ./lib/math.h: No such file or directory
   13 | #include "./lib/math.h"
      |          ^~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include <bits/stdc++.h> //全てのヘッダファイルをインクルード

//ループ
#define REP(i, n) for(int i = 0; i < n; i++) //普通のループ
#define REPR(i, n) for(int i = n; i >= 0; i--) //逆ループ
#define FOR(i, m, n) for(int i = m; i < n; i++) //最初の数値を指定したループ

//型名省略
typedef long long ll;

using namespace std;

#include "./lib/math.h"

int main(){
    string S;
    int mode=0;
    cin >> S;
    //cout << S << S.length();
    if(S.length()<1 || S.length()>3){
        mode=1;
    }

    REP(i,3){
        if(S[i]!='A' && S[i]!='B'){
            mode=1;
        }
    }

    if(mode==1){
        cout << "No";
        return 1;
    }

    if(S=="AAA" || S=="BBB"){
        cout << "No";
        return 1;
    }

    cout << "Yes";

    return 0;
}

Compiler output:
a.cc:13:10: fatal error: ./lib/math.h: No such file or directory
   13 | #include "./lib/math.h"
      |          ^~~~~~~~~~~~~~
compilation terminated.
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:7:12: error: 'A' undeclared (first use in this function)
    7 |   if(S[0]==A && S[1]==A){
      |            ^
main.c:7:12: note: each undeclared identifier is reported only once for each function it appears in
main.c:13:17: error: 'B' undeclared (first use in this function)
   13 |   else if(S[0]==B && S[1]==B){
      |                 ^
Language: C++

#include <bits/stdc++.h> //全てのヘッダファイルをインクルード

//ループ
#define REP(i, n) for(int i = 0; i < n; i++) //普通のループ
#define REPR(i, n) for(int i = n; i >= 0; i--) //逆ループ
#define FOR(i, m, n) for(int i = m; i < n; i++) //最初の数値を指定したループ

//型名省略
typedef long long ll;

using namespace std;

#include "./lib/math.h"

int main(){
    string S;
    int mode=0;
    cin >> S;
    //cout << S << S.length();
    if(S.length()<1 || S.length()>3){
        mode=1;
    }

    REP(i,3){
        if(S[i]!='A' && S[i]!='B'){
         mode=1;
        }
    }

    if(mode==1){
        cout << "No";
        return 1;
    }

    if(S=="AAA" || S=="BBB"){
        cout << "No";
        return 1;
    }

    cout << "Yes";

    return 0;
}

Compiler output:
a.cc:13:10: fatal error: ./lib/math.h: No such file or directory
   13 | #include "./lib/math.h"
      |          ^~~~~~~~~~~~~~
compilation terminated.
Language: C++

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


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

#include<stdio.h>
int main(void)
{
  int a
  scanf("%s",&a);
  if(a=AAA)
  {
    printf("No");
  }
  else if(a=BBB)
  {
    printf("No");
  }
  else
  {
    printf("Yes");
  }
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:5:3: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'scanf'
    5 |   scanf("%s",&a);
      |   ^~~~~
main.c:5:15: error: 'a' undeclared (first use in this function)
    5 |   scanf("%s",&a);
      |               ^
main.c:5:15: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:8: error: 'AAA' undeclared (first use in this function)
    6 |   if(a=AAA)
      |        ^~~
main.c:10:13: error: 'BBB' undeclared (first use in this function)
   10 |   else if(a=BBB)
      |             ^~~
Language: C++

#include <bits/stdc++.h> //全てのヘッダファイルをインクルード

//ループ
#define REP(i, n) for(int i = 0; i < n; i++) //普通のループ
#define REPR(i, n) for(int i = n; i >= 0; i--) //逆ループ
#define FOR(i, m, n) for(int i = m; i < n; i++) //最初の数値を指定したループ

//型名省略
typedef long long ll;

using namespace std;

#include "./lib/math.h"

int main(){
    string S;
    int mode=0;
    
    cin >> S;
    //cout << S << S.length();
    if(S.length()<1 || S.length()>3){
        mode=1;
    }

    REP(i,3){
        if(S[i]!='A' && S[i]!='B'){
         mode=1;
        }
    }

    if(mode==1){
        cout << "No";
        return 1;
    }

    if(S=="AAA" || S=="BBB"){
        cout << "No";
        return 1;
    }

    cout << "Yes";


    return 0;
}

Compiler output:
a.cc:13:10: fatal error: ./lib/math.h: No such file or directory
   13 | #include "./lib/math.h"
      |          ^~~~~~~~~~~~~~
compilation terminated.
Language: C++

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

int main() {
  int a;
  cin >> a;
  
  if (a == AAA) {
    cout << No << endl;
  }
  else if (a == AAB) {
    cout << Yes << endl;
  }
  else if (a == ABA) {
    cout << Yes << endl;
  }
  else if (a == ABB) {
    cout << Yes << endl;
  }
  else if (a == BBB) {
    cout << No << endl;
  }
  else if (a == BBA) {
    cout << Yes << endl;
  }
  else if (a == BAB) {
    cout << Yes << endl;
  }
  else if (a == BAA) {
    cout << Yes << endl;
  }

Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: 'AAA' was not declared in this scope
    8 |   if (a == AAA) {
      |            ^~~
a.cc:9:13: error: 'No' was not declared in this scope
    9 |     cout << No << endl;
      |             ^~
a.cc:11:17: error: 'AAB' was not declared in this scope
   11 |   else if (a == AAB) {
      |                 ^~~
a.cc:12:13: error: 'Yes' was not declared in this scope
   12 |     cout << Yes << endl;
      |             ^~~
a.cc:14:17: error: 'ABA' was not declared in this scope
   14 |   else if (a == ABA) {
      |                 ^~~
a.cc:15:13: error: 'Yes' was not declared in this scope
   15 |     cout << Yes << endl;
      |             ^~~
a.cc:17:17: error: 'ABB' was not declared in this scope
   17 |   else if (a == ABB) {
      |                 ^~~
a.cc:18:13: error: 'Yes' was not declared in this scope
   18 |     cout << Yes << endl;
      |             ^~~
a.cc:20:17: error: 'BBB' was not declared in this scope
   20 |   else if (a == BBB) {
      |                 ^~~
a.cc:21:13: error: 'No' was not declared in this scope
   21 |     cout << No << endl;
      |             ^~
a.cc:23:17: error: 'BBA' was not declared in this scope
   23 |   else if (a == BBA) {
      |                 ^~~
a.cc:24:13: error: 'Yes' was not declared in this scope
   24 |     cout << Yes << endl;
      |             ^~~
a.cc:26:17: error: 'BAB' was not declared in this scope
   26 |   else if (a == BAB) {
      |                 ^~~
a.cc:27:13: error: 'Yes' was not declared in this scope
   27 |     cout << Yes << endl;
      |             ^~~
a.cc:29:17: error: 'BAA' was not declared in this scope
   29 |   else if (a == BAA) {
      |                 ^~~
a.cc:30:13: error: 'Yes' was not declared in this scope
   30 |     cout << Yes << endl;
      |             ^~~
a.cc:31:4: error: expected '}' at end of input
   31 |   }
      |    ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:7:12: error: 'A' undeclared (first use in this function)
    7 |   if(S[0]==A && S[1]==A){
      |            ^
main.c:7:12: note: each undeclared identifier is reported only once for each function it appears in
main.c:13:17: error: 'B' undeclared (first use in this function)
   13 |   else if(S[0]==B && S[1]==B){
      |                 ^
Language: Java

import java.util.*;import java.io.*;import java.math.*;
public class StationandBus
{
    public static void process()throws IOException
    {
        String s = nln();
        int c = 0;
        for(int i = 0; i < 3; i++){
            if(s.charAt(i) == 'A')
                c++;
        }
        if(c == 3 || c == 0)
            pn("NO");
        else
            pn("YES");
    }
   
    static AnotherReader sc;
    static PrintWriter out;
    public static void main(String[]args)throws IOException
    {
        boolean oj = true;
        if(oj){sc=new AnotherReader();out=new PrintWriter(System.out);}
        else{sc=new AnotherReader(100);out=new PrintWriter("output.txt");}
        int t=1;
        //t=ni();
        while(t-->0) {process();}
        out.flush();out.close();  
    }
 
    static void pn(Object o){out.println(o);}
    static void p(Object o){out.print(o);}
    static void pni(Object o){out.println(o);out.flush();}
    static int ni()throws IOException{return sc.nextInt();}
    static long nl()throws IOException{return sc.nextLong();}
    static double nd()throws IOException{return sc.nextDouble();}
    static String nln()throws IOException{return sc.nextLine();}
    static int[] nai(int N)throws IOException{int[]A=new int[N];for(int i=0;i!=N;i++){A[i]=ni();}return A;}
    static long[] nal(int N)throws IOException{long[]A=new long[N];for(int i=0;i!=N;i++){A[i]=nl();}return A;}
    static long gcd(long a, long b)throws IOException{return (b==0)?a:gcd(b,a%b);}
    static int gcd(int a, int b)throws IOException{return (b==0)?a:gcd(b,a%b);}
    static int bit(long n)throws IOException{return (n==0)?0:(1+bit(n&(n-1)));}
 
/////////////////////////////////////////////////////////////////////////////////////////////////////////
 
    static class AnotherReader{BufferedReader br; StringTokenizer st;
    AnotherReader()throws FileNotFoundException{
    br=new BufferedReader(new InputStreamReader(System.in));}
    AnotherReader(int a)throws FileNotFoundException{
    br = new BufferedReader(new FileReader("input.txt"));}
    String next()throws IOException{
    while (st == null || !st.hasMoreElements()) {try{
    st = new StringTokenizer(br.readLine());}
    catch (IOException  e){ e.printStackTrace(); }}
    return st.nextToken(); } int nextInt() throws IOException{
    return Integer.parseInt(next());}
    long nextLong() throws IOException
    {return Long.parseLong(next());}
    double nextDouble()throws IOException { return Double.parseDouble(next()); }
    String nextLine() throws IOException{ String str = ""; try{
    str = br.readLine();} catch (IOException e){
    e.printStackTrace();} return str;}}
   
/////////////////////////////////////////////////////////////////////////////////////////////////////////////
}

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

 #include <bits/stdc++.h> 
 using namespace std; 
 int main() { 
   int i ;
   String S;
   for(int i=0;i<3;i++) {
   cin>> S[i];
   }
   string Ans="Yes";
   
   if(S[0]=='A' && S[1]=='A' && S[2]=='A') Ans="No";
   if(S[0]=='B' && S[1]=='B' && S[2]=='B') Ans="No";
   
   cout<<Ans<<endl;
   return 0; 
 }


Compiler output:
a.cc: In function 'int main()':
a.cc:5:4: error: 'String' was not declared in this scope
    5 |    String S;
      |    ^~~~~~
a.cc:7:10: error: 'S' was not declared in this scope
    7 |    cin>> S[i];
      |          ^
a.cc:11:7: error: 'S' was not declared in this scope
   11 |    if(S[0]=='A' && S[1]=='A' && S[2]=='A') Ans="No";
      |       ^
a.cc:12:7: error: 'S' was not declared in this scope
   12 |    if(S[0]=='B' && S[1]=='B' && S[2]=='B') Ans="No";
      |       ^
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;
  }
  else  {
    cout << "Yes" << endl;
  }

}


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

#include <iostream>
#include <string>


using namespace std;

void main() {
	string inp;
	cin>>inp;
	if (inp[0]!=inp[1]){
		cout<<"Yes"<<endl;
	}else if(inp[0]!=inp[2]){
		cout<<"Yes"<<endl;
	}else {cout<<"No"<<endl;}
}

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

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

Compiler output:
main.c: In function 'main':
main.c:7:12: error: 'A' undeclared (first use in this function)
    7 |   if(S[0]==A && S[1]==A){
      |            ^
main.c:7:12: note: each undeclared identifier is reported only once for each function it appears in
main.c:13:17: error: 'B' undeclared (first use in this function)
   13 |   else if(S[0]==B && S[1]==B){
      |                 ^
Language: C++

					#include<bits/stdc++.h>

					using namespace std;
					int main()
					{
                      char c[3]
                      cin >> c;
                      int a = 0, b = 0;
                      a += c[0] == 'A';
                      b += c[0] == 'B';
                      a += c[1] == 'A';
                      b += c[1] == 'B';
                      a += c[2] == 'A';
                      b += c[2] == 'B';
                      if(a && b)
                        cout << "Yes";
                      else cout << "No";	 
                    }

Compiler output:
a.cc: In function 'int main()':
a.cc:7:23: error: expected initializer before 'cin'
    7 |                       cin >> c;
      |                       ^~~
a.cc:9:28: error: 'c' was not declared in this scope
    9 |                       a += c[0] == 'A';
      |                            ^
Language: C++

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

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

#include <iostream>
#include <string>

using namespace 
int main()
{
    string s;
    if(s=="AAA"||s=="BBB")
        cout<<"Yes"<<endl;
    else
        cout<<"No"<<endl;
    return 0;
}

Compiler output:
a.cc:5:1: error: expected identifier before 'int'
    5 | int main()
      | ^~~
a.cc:4:16: error: expected ';' before 'int'
    4 | using namespace
      |                ^
      |                ;
    5 | int main()
      | ~~~             
a.cc: In function 'int main()':
a.cc:7:5: error: 'string' was not declared in this scope
    7 |     string s;
      |     ^~~~~~
a.cc:7: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:8:8: error: 's' was not declared in this scope
    8 |     if(s=="AAA"||s=="BBB")
      |        ^
a.cc:9:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |         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:9:22: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |         cout<<"Yes"<<endl;
      |                      ^~~~
      |                      std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:11:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |         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:11:21: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   11 |         cout<<"No"<<endl;
      |                     ^~~~
      |                     std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

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

int main()
{
  char a,b,c;
  cin>>a>>b>>c;
  if(a==b&&b==c&&&c==a)
    cout<<"No\n";
  else
    cout<<"Yes\n";
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:20: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |   if(a==b&&b==c&&&c==a)
      |                  ~~^~~
Language: Java

import java.util.*;
class Main{
  public static void main(String[] args){
      Scanner sc = new Scanner(System.in);
      String s = sc.next();
      int c = 0;
      for(int i = 0; i < 3; i++){
        if(s.charAt(i) == 'A')
          c++;
      }
      if(c == 0 || c == 3)
        System.out.println("NO");
      else
        System.out.ptintln("YES");
  }
}

Compiler output:
Main.java:14: error: cannot find symbol
        System.out.ptintln("YES");
                  ^
  symbol:   method ptintln(String)
  location: variable out of type PrintStream
1 error
Language: Java

import java.util.Scanner;

public class atCoder20200307 {
  public static void main(String[] args ) throws Exception {
    Scanner sc = new Scanner(System.in);
    String station = sc.nextLine();
    String station1 = station.substring(0,1);
    String station2 = station.substring(1,2);
    String station3 = station.substring(2, 3);

    if(station1.equals(station2) && station2.equals(station3)) {
    	System.out.println("No");
    } else {
    	System.out.println("Yes");
    }

  }
}

Compiler output:
Main.java:3: error: class atCoder20200307 is public, should be declared in a file named atCoder20200307.java
public class atCoder20200307 {
       ^
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.equals.("AAA") || S.equals.("BBB")){
        	System.out.print("No");
        }else{
          System.out.print("Yes");
        }
    }
}

Compiler output:
Main.java:8: error: <identifier> expected
        if(S.equals.("AAA") || S.equals.("BBB")){
                    ^
Main.java:8: error: <identifier> expected
        if(S.equals.("AAA") || S.equals.("BBB")){
                                        ^
2 errors
Language: Java

package yy;
import java.util.*;
public class Bus {

	public static void main(String[] args) {
		Scanner s=new Scanner(System.in);
		String str=s.nextLine();
		if(str.contains("A") && str.contains("B")  )
		{
			System.out.println("Yes");
		}
		else
		{
			System.out.println("No");
		}

	}

}


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

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

Compiler output:
main.c: In function 'main':
main.c:5:16: error: lvalue required as left operand of assignment
    5 |   if(S="AAA"||S="BBB"){
      |                ^
Language: C++

#include <iostream>
using namespace std;
int main () {
  char[] line;
  cin >> line;
  if (line == "AAA" || line = "BBB") cout << "No" << endl;
  else cout << "Yes" << endl; 
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:7: error: structured binding declaration cannot have type 'char'
    4 |   char[] line;
      |       ^~
a.cc:4:7: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:4:7: error: empty structured binding declaration
a.cc:4:10: error: expected initializer before 'line'
    4 |   char[] line;
      |          ^~~~
a.cc:5:10: error: 'line' was not declared in this scope
    5 |   cin >> line;
      |          ^~~~
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:9:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |   if (S.at(0) == "A" && S.at(1) == "A" && S.at(2) == "A") {
      |       ~~~~~~~~^~~~~~
a.cc:9:33: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |   if (S.at(0) == "A" && S.at(1) == "A" && S.at(2) == "A") {
      |                         ~~~~~~~~^~~~~~
a.cc:9:51: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |   if (S.at(0) == "A" && S.at(1) == "A" && S.at(2) == "A") {
      |                                           ~~~~~~~~^~~~~~
a.cc:13:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   13 |   if (S.at(0) == "B" && S.at(1) == "B" && S.at(2) == "B") {
      |       ~~~~~~~~^~~~~~
a.cc:13:33: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   13 |   if (S.at(0) == "B" && S.at(1) == "B" && S.at(2) == "B") {
      |                         ~~~~~~~~^~~~~~
a.cc:13:51: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   13 |   if (S.at(0) == "B" && S.at(1) == "B" && S.at(2) == "B") {
      |                                           ~~~~~~~~^~~~~~
Language: C++

#include<iostream>
#include<string>
#include<cstdio>
#include<vector>
#include<cmath>
#include<queue>
#include<stack>
#include<set>
#include<map>

using namespace std;

int main()
{
	char s[16];	
	gets(s); 
	if (s[1]!=s[0]||s[1]!=s[2]) cout<<"Yes";
	else cout<<"No";
	return 0;
} 


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

#include<stdio.h>
#include <string>
int main(){
  char[3] a,b,c;
  b='AAA';
  c='BBB';
  scanf("&s",a);
  if(a==b){
    printf("No");
  }else if(a==c){
    printf("No");
  }else{
    printf("Yes");
  }
}

Compiler output:
a.cc:5:5: warning: multi-character character constant [-Wmultichar]
    5 |   b='AAA';
      |     ^~~~~
a.cc:6:5: warning: multi-character character constant [-Wmultichar]
    6 |   c='BBB';
      |     ^~~~~
a.cc: In function 'int main()':
a.cc:4:8: error: expected identifier before numeric constant
    4 |   char[3] a,b,c;
      |        ^
a.cc:4:8: error: expected ']' before numeric constant
    4 |   char[3] a,b,c;
      |        ^
      |        ]
a.cc:4:7: error: structured binding declaration cannot have type 'char'
    4 |   char[3] a,b,c;
      |       ^
a.cc:4:7: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:4:7: error: empty structured binding declaration
a.cc:4:11: error: expected initializer before 'a'
    4 |   char[3] a,b,c;
      |           ^
a.cc:5:3: error: 'b' was not declared in this scope
    5 |   b='AAA';
      |   ^
a.cc:6:3: error: 'c' was not declared in this scope
    6 |   c='BBB';
      |   ^
a.cc:7:14: error: 'a' was not declared in this scope
    7 |   scanf("&s",a);
      |              ^
Language: C++

#include<stdio.h>
#include <string>
int main(){
  char a[3],b[3],c[3];
  b='AAA';
  c='BBB';
  scanf("&s",a);
  if(a==b){
    printf("No");
  }else if(a==c){
    printf("No");
  }else{
    printf("Yes");
  }
}

Compiler output:
a.cc:5:5: warning: multi-character character constant [-Wmultichar]
    5 |   b='AAA';
      |     ^~~~~
a.cc:6:5: warning: multi-character character constant [-Wmultichar]
    6 |   c='BBB';
      |     ^~~~~
a.cc: In function 'int main()':
a.cc:5:4: error: incompatible types in assignment of 'int' to 'char [3]'
    5 |   b='AAA';
      |   ~^~~~~~
a.cc:6:4: error: incompatible types in assignment of 'int' to 'char [3]'
    6 |   c='BBB';
      |   ~^~~~~~
Language: C++

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

int main() {
  char a,b,c;
  cin >> a >> b >> c;
  
  if (a==b && b==c && c==a) cout << "No" << endl;
  else  cout << "Yes" << endl;

Compiler output:
a.cc:2:1: error: 'usingnamespace' does not name a type
    2 | usingnamespace std;
      | ^~~~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin >> a >> b >> c;
      |   ^~~
      |   std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:8:29: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |   if (a==b && b==c && c==a) 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:8:45: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |   if (a==b && b==c && c==a) 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:9:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |   else  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:9:26: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |   else  cout << "Yes" << endl;
      |                          ^~~~
      |                          std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:9:31: error: expected '}' at end of input
    9 |   else  cout << "Yes" << endl;
      |                               ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

#include <iostream>
#include <math.h>

using namespace std;

int main(int argc, char const* argv[])
{
	char S[100];
	scanf("%s", S);
	if(strlen(S) == 3)
	{
		if(S[0] ^ S[1] ^ S[2] == 1)
		{
			cout << "Yes" << endl;
		}
		else
		{
			cout << "No" << endl;
		}
	}

	return 0;
}


Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:10:12: error: 'strlen' was not declared in this scope
   10 |         if(strlen(S) == 3)
      |            ^~~~~~
a.cc:3:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    2 | #include <math.h>
  +++ |+#include <cstring>
    3 |
Language: C++

#include <stdio.h>
#include <string.h>
#include <iostream>
using namespace std;
int main(void){
    
    int s;
    const char a[] = "A";
    const char b[] = "B";
    
    cin >> s;
    
    if ( strstr(s,a) && strstr(s,b) ) {
        cout << "Yes" << endl;   
    } else {
    	cout << "No" << endl;
    }
    
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:16: error: no matching function for call to 'strstr(int&, const char [2])'
   13 |     if ( strstr(s,a) && strstr(s,b) ) {
      |          ~~~~~~^~~~~
In file included from a.cc:2:
/usr/include/string.h:330:14: note: candidate: 'char* strstr(char*, const char*)' (near match)
  330 | extern char *strstr (char *__haystack, const char *__needle)
      |              ^~~~~~
/usr/include/string.h:330:14: note:   conversion of argument 1 would be ill-formed:
a.cc:13:17: error: invalid conversion from 'int' to 'char*' [-fpermissive]
   13 |     if ( strstr(s,a) && strstr(s,b) ) {
      |                 ^
      |                 |
      |                 int
/usr/include/string.h:332:20: note: candidate: 'const char* strstr(const char*, const char*)' (near match)
  332 | extern const char *strstr (const char *__haystack, const char *__needle)
      |                    ^~~~~~
/usr/include/string.h:332:20: note:   conversion of argument 1 would be ill-formed:
a.cc:13:17: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
   13 |     if ( strstr(s,a) && strstr(s,b) ) {
      |                 ^
      |                 |
      |                 int
a.cc:13:31: error: no matching function for call to 'strstr(int&, const char [2])'
   13 |     if ( strstr(s,a) && strstr(s,b) ) {
      |                         ~~~~~~^~~~~
/usr/include/string.h:330:14: note: candidate: 'char* strstr(char*, const char*)' (near match)
  330 | extern char *strstr (char *__haystack, const char *__needle)
      |              ^~~~~~
/usr/include/string.h:330:14: note:   conversion of argument 1 would be ill-formed:
a.cc:13:32: error: invalid conversion from 'int' to 'char*' [-fpermissive]
   13 |     if ( strstr(s,a) && strstr(s,b) ) {
      |                                ^
      |                                |
      |                                int
/usr/include/string.h:332:20: note: candidate: 'const char* strstr(const char*, const char*)' (near match)
  332 | extern const char *strstr (const char *__haystack, const char *__needle)
      |                    ^~~~~~
/usr/include/string.h:332:20: note:   conversion of argument 1 would be ill-formed:
a.cc:13:32: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
   13 |     if ( strstr(s,a) && strstr(s,b) ) {
      |                                ^
      |                                |
      |                                int
Language: Java

import java.util.*;
public class contest1
{ public static void main(String args[])
    { Scanner sc=new Scanner(System.in);
       String s=sc.next();int f=0;
       s=s.toUpperCase();
       for(int i=0;i<2;i++)
       { char ch=s.charAt(i);
          if(ch=='A')
          { if(s.charAt(i+1)=='B')
             {  f=1;break;}
              
            }
            else
            { if(s.charAt(i+1)=='A')
                { f=1;
                    break;
                }
            }
        }
        if(f==1)
        System.out.println("Yes");
        else
        System.out.println("No");
    }
}

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

 #include <bits/stdc++.h> 
 using namespace std; 
 int main() { 
   int i ;
   String S;
   for(int i=0;i<3;i++) {
   cin>> S[i];
   }
   String Ans="Yes";
   for(int i=0;i<3;i++){
   if(S[i]=='A') Ans="No";
     if(S[i]=='B') Ans="No";
   }
   cout<<Ans<<endl;
   return 0; 
 }

Compiler output:
a.cc: In function 'int main()':
a.cc:5:4: error: 'String' was not declared in this scope
    5 |    String S;
      |    ^~~~~~
a.cc:7:10: error: 'S' was not declared in this scope
    7 |    cin>> S[i];
      |          ^
a.cc:9:10: error: expected ';' before 'Ans'
    9 |    String Ans="Yes";
      |          ^~~~
      |          ;
a.cc:11:7: error: 'S' was not declared in this scope
   11 |    if(S[i]=='A') Ans="No";
      |       ^
a.cc:11:18: error: 'Ans' was not declared in this scope
   11 |    if(S[i]=='A') Ans="No";
      |                  ^~~
a.cc:12:9: error: 'S' was not declared in this scope
   12 |      if(S[i]=='B') Ans="No";
      |         ^
a.cc:12:20: error: 'Ans' was not declared in this scope
   12 |      if(S[i]=='B') Ans="No";
      |                    ^~~
a.cc:14:10: error: 'Ans' was not declared in this scope
   14 |    cout<<Ans<<endl;
      |          ^~~
Language: C++

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

int main() {
  string S;
  cin >>S;
  bool s = false;
  for (int i =0;i<2;i++){
    if(S.at(i) == S.at(i+1)){      
      s = true;
      break;
    }
    }
  }











}


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

#include<bits/stdc++.h>
#define ll long long
using namespace std;
int main()
{
    char a[4]
    cin<<a;
    if(a[0]==a[1]==a[2])
        printf("No\n");
    else
        printf("Yes\n");
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: expected initializer before 'cin'
    7 |     cin<<a;
      |     ^~~
a.cc:8:8: error: 'a' was not declared in this scope
    8 |     if(a[0]==a[1]==a[2])
      |        ^