criyle/codenet-compile-errors huggingface dataset:
Language: Java

import java.util.*;

public class Main {
 	public static void main(String[] args) {
      
      Scanner sc = new Scanner(System.in);
      
      String str;
      str = sc.next();
      
      char [] arr = new char [3];
      
      for(int i = 0; i < 3; i++) {
          arr[i] = str(i);
      }
      
      
      

	}
}

Compiler output:
Main.java:14: error: cannot find symbol
          arr[i] = str(i);
                   ^
  symbol:   method str(int)
  location: class Main
1 error
Language: C

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

#define ARRAY_SIZE 5
int main()
{
	char inputN[ARRAY_SIZE];

	scanf("%s", &inputN);

	if (strcmp(inputN, "AAA") == 0 || strcmp(inputN, "BBB") == 0)
	{
		printf("No \n");
	}
	else
	{
		printf("Yes \n");
	}
	
	return 0;
}

Compiler output:
main.c:1:10: fatal error: stdafx.h: No such file or directory
    1 | #include "stdafx.h"
      |          ^~~~~~~~~~
compilation terminated.
Language: C++

#include<iostream>
int main()
{
	std::string s;
  	std::cin >> s;
  	if(s[0] == s[1] == s[2])
      std::cout << "Yes\n";
  	else
      std::cout << "No\n"
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:26: error: expected ';' before '}' token
    9 |       std::cout << "No\n"
      |                          ^
      |                          ;
   10 | }
      | ~
Language: C++

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

int main() {
  string s;
  cin >> s;
  if (s.at(0) != s.at(1)) || s.at(1) != s.at(2)) {
    cout << "Yes" << endl;
  }
  else {
    cout << "No" << endl;
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:27: error: expected primary-expression before '||' token
    7 |   if (s.at(0) != s.at(1)) || s.at(1) != s.at(2)) {
      |                           ^~
Language: C++

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

  return 0;
}

Compiler output:
a.cc:8:11: warning: missing terminating " character
    8 |     cout<<"Yes;
      |           ^
a.cc:8:11: error: missing terminating " character
    8 |     cout<<"Yes;
      |           ^~~~~
a.cc:10:11: warning: missing terminating " character
   10 |     cout<<"No;
      |           ^
a.cc:10:11: error: missing terminating " character
   10 |     cout<<"No;
      |           ^~~~
a.cc: In function 'int main()':
a.cc:9:3: error: expected primary-expression before 'else'
    9 |   else
      |   ^~~~
Language: C

program SaB
    implicit none
    character(3) s
    read *,s
    if(s(1:1) == s(2:2) .and. s(2:2) == s(3:3)) then
        print *,"No"
    else
        print *,"Yes"
    endif
end program SaB

Compiler output:
main.c:1:1: error: unknown type name 'program'
    1 | program SaB
      | ^~~~~~~
main.c:2:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'implicit'
    2 |     implicit none
      |     ^~~~~~~~
main.c:2:5: error: unknown type name 'implicit'
Language: C++

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

    return 0;
}


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

#include<bits/stdc++.h>
using namespace std;
int main()
{
    char s[100];
    gets(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:6:5: error: 'gets' was not declared in this scope; did you mean 'getw'?
    6 |     gets(s);
      |     ^~~~
      |     getw
Language: C++

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

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

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

#include<iostream>
using namespace std;
int main(){
  string input;
  int countA=0 , countB=0;
  cin>>s;
  for(int i=0;i<3;i++){
   	 if(s[i] == 'A') countA++;
    else countB++;
  }
  if(countA==0 || countB==0)
    cout<<"Yes";
  else
    cout<<"No";
}

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

#include <bits/stdc++.h>
typedef long long int ll;
using namespace std;
int main(){
	ios_base::sync_with_stdio(false);  
	cin.tie(NULL);
	string s;cin>>s;
	int count=0; int count2=0;
	for(int i=0;i<3;i++)
		if(s[i]=='A'){
			count1++;
		}
		else{
			count2++;
		}
	}
	if(count1>0 && count2>0){
		cout<<"Yes"<<endl;
	}
	else{
		cout<<"No"<<endl;
	}
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:25: error: 'count1' was not declared in this scope; did you mean 'count2'?
   11 |                         count1++;
      |                         ^~~~~~
      |                         count2
a.cc: At global scope:
a.cc:17:9: error: expected unqualified-id before 'if'
   17 |         if(count1>0 && count2>0){
      |         ^~
a.cc:20:9: error: expected unqualified-id before 'else'
   20 |         else{
      |         ^~~~
a.cc:23:1: error: expected declaration before '}' token
   23 | }
      | ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define endl '\n'

int main(int argc, char const *argv[])
{
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    cout.tie(0);
    string s;
  	cin>>s;
  	if(s.count('A')==0 or s.count('A')==3)
      cout<<"Yes"<<endl;
  	else
      cout<<"NO"<<endl;
    
}

Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:12:14: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'count'
   12 |         if(s.count('A')==0 or s.count('A')==3)
      |              ^~~~~
a.cc:12:33: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'count'
   12 |         if(s.count('A')==0 or s.count('A')==3)
      |                                 ^~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:8: error: expected unqualified-id before '=' token
    5 | string = S;
      |        ^
a.cc:6:10: error: 'S' was not declared in this scope
    6 |   cin >> S;
      |          ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:8: error: expected unqualified-id before '=' token
    5 | string = S;
      |        ^
a.cc:6:6: error: 'S' was not declared in this scope
    6 |   if(S.at(0) == S.at(1) == S.at(2)){
      |      ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:8: error: expected unqualified-id before '=' token
    5 | string = S;
      |        ^
a.cc:6:6: error: 'S' was not declared in this scope
    6 |   if(S.at(0) == S.at(1) == S.at(2)){
      |      ^
a.cc:10:20: error: expected primary-expression before '}' token
   10 |   cout << "Yes" << }
      |                    ^
Language: C++

#include <iostream>
#include <string>
using namespace std;

void A()
{
    string S;
    cin >> S;
    
    string answer = "Yes";
    if( S[0] == S[1] && S[1] == S[2] )
        ans = "No";
    
    cout << answer << endl;
}

int main()
{
    A();
    return 0;
}

Compiler output:
a.cc: In function 'void A()':
a.cc:12:9: error: 'ans' was not declared in this scope; did you mean 'abs'?
   12 |         ans = "No";
      |         ^~~
      |         abs
Language: C

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

//using namespace std;
int main(){
    int i,n;
    char s[3];
    scanf("%d", &n);
    
        for(int j = 0; i<3; j++){
            scanf("%s", s[j]);
            if(s[j] == "AAA" || s[j] == "BBB"){
                printf("NO\n");
            }else{
                printf("YES\n");
            }
        }
        
        
    }
    
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:12:21: warning: comparison between pointer and integer
   12 |             if(s[j] == "AAA" || s[j] == "BBB"){
      |                     ^~
main.c:12:38: warning: comparison between pointer and integer
   12 |             if(s[j] == "AAA" || s[j] == "BBB"){
      |                                      ^~
main.c: At top level:
main.c:22:5: error: expected identifier or '(' before 'return'
   22 |     return 0;
      |     ^~~~~~
main.c:23:1: error: expected identifier or '(' before '}' token
   23 | }
      | ^
Language: C++

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

int main(){
  string s;
  cin>>s;
  int isA = 0, isB = 0;
  for(char c : S){
    if(c=='A) isA = 1;
    if(c=='B) isB = 1;
   }
  if(isA && isB) cout<<"Yes";
  else cout<<"No";
  return 0;
}
       

Compiler output:
a.cc:9:11: warning: missing terminating ' character
    9 |     if(c=='A) isA = 1;
      |           ^
a.cc:9:11: error: missing terminating ' character
    9 |     if(c=='A) isA = 1;
      |           ^~~~~~~~~~~~
a.cc:10:11: warning: missing terminating ' character
   10 |     if(c=='B) isB = 1;
      |           ^
a.cc:10:11: error: missing terminating ' character
   10 |     if(c=='B) isB = 1;
      |           ^~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:8:16: error: 'S' was not declared in this scope
    8 |   for(char c : S){
      |                ^
a.cc:10:5: error: expected primary-expression before 'if'
   10 |     if(c=='B) isB = 1;
      |     ^~
a.cc:9:11: error: expected ')' before 'if'
    9 |     if(c=='A) isA = 1;
      |       ~   ^
      |           )
   10 |     if(c=='B) isB = 1;
      |     ~~     
a.cc:11:4: error: expected primary-expression before '}' token
   11 |    }
      |    ^
Language: C++

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

int main(){
  ll N, i, flag = 1;
  String S, ans = "No";
  cin >> S;
  rep(i, S.size() - 1){
    if(S[i] == S[i + 1]){
      flag = 0;
      break;
    }
  }
  if(flag){
    ans = "Yes";
  }

  cout << ans << endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:3: error: 'String' was not declared in this scope
   10 |   String S, ans = "No";
      |   ^~~~~~
a.cc:11:10: error: 'S' was not declared in this scope
   11 |   cin >> S;
      |          ^
a.cc:19:5: error: 'ans' was not declared in this scope; did you mean 'abs'?
   19 |     ans = "Yes";
      |     ^~~
      |     abs
a.cc:22:11: error: 'ans' was not declared in this scope; did you mean 'abs'?
   22 |   cout << ans << endl;
      |           ^~~
      |           abs
Language: C++

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

int main() {
  string S;
  char a=S.at(0);
  char b=S.at(1);
  char c=S.at(2);
  
  if(a=b&&b=c){
    cout<<No<< endl;
  }
  else{
    cout<<Yes<< endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: lvalue required as left operand of assignment
   10 |   if(a=b&&b=c){
      |        ~^~~
a.cc:11:11: error: 'No' was not declared in this scope
   11 |     cout<<No<< endl;
      |           ^~
a.cc:14:11: error: 'Yes' was not declared in this scope
   14 |     cout<<Yes<< endl;
      |           ^~~
Language: C++

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

#define ll long long
#define ar array

int main() {
        ios::sync_with_stdio(0);
        cin.tio(0);
        
        string s;
        cin >> s;
        sort(s.begin(), s.end());
        if (s[0]==s[2])
                cout << "No";
        else
                cout << "Yes";
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:13: error: 'std::istream' {aka 'class std::basic_istream<char>'} has no member named 'tio'; did you mean 'tie'?
    9 |         cin.tio(0);
      |             ^~~
      |             tie
Language: C++

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

#define ll long long
#define ar array

int main() {
        ios::sync_with_stdio(0)
        cin.tio(0);
        
        string s;
        cin >> s;
        sort(s.begin(), s.end());
        if (s[0]==s[2])
                cout << "No";
        else
                cout << "Yes;
}


Compiler output:
a.cc:17:25: warning: missing terminating " character
   17 |                 cout << "Yes;
      |                         ^
a.cc:17:25: error: missing terminating " character
   17 |                 cout << "Yes;
      |                         ^~~~~
a.cc: In function 'int main()':
a.cc:8:32: error: expected ';' before 'cin'
    8 |         ios::sync_with_stdio(0)
      |                                ^
      |                                ;
    9 |         cin.tio(0);
      |         ~~~                     
a.cc:18:1: error: expected primary-expression before '}' token
   18 | }
      | ^
Language: C++

#include<bits/stdc++.h>
#define forn(i,n)
#define fi first
#define se second
using namespace std;
string s;
int a, b;
int main(){
	cin >> s;
	forn(i,3){
		s[i] == 'A'? a++: b++;
	}
	if(a&&b) cout << "Yes\n";
	else cout << "No\n";
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:19: error: 'i' was not declared in this scope
   11 |                 s[i] == 'A'? a++: b++;
      |                   ^
Language: C++

#include <bits/stdc++.h>

using namespace std;

typedef long long int64;
typedef vector<int> vi;
typedef pair<int, int> pii;

const int oo = 0x3f3f3f3f;
const double pi = acos(-1);
const double eps = 1e-9;

#define endl '\n'


int main() {
	ios_base::sync_with_stdio(0);
	cin.tie(0);

	string s;
	cin >> s;

	if (s[0] != s[1] || s[1] != s[2])
		cout << "Yes" << ednl;
	else
		cout << "No" << endl;

	// int n, p;

	// cin >> n >> p;

	// string s;
	// cin >> s;

	// vector<vi> dp(n + 1, vi(p));

	// dp[n][0] = 1;

	// for (int i = n - 1; i >= 0; --i){
	// 	for (int j = 0; j < p; ++j){
	// 		dp[i][j] = dp[]
	// 	}
	// }


	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:24:34: error: 'ednl' was not declared in this scope; did you mean 'endl'?
   24 |                 cout << "Yes" << ednl;
      |                                  ^~~~
      |                                  endl
Language: Java

import java.util.Collection;
import java.util.HashMap;
import java.util.Scanner;
public class Main {
	public static void main(String[] args){
		Scanner as = new Scanner(System.in);
		//int n = Integer.parseInt(as.next());
		String st = as.next();
      if('AAA'==st || 'BBB' == st){
		System.out.println('NO');
      }else{System.out.println('YES');
      }
	}
}

Compiler output:
Main.java:9: error: unclosed character literal
      if('AAA'==st || 'BBB' == st){
         ^
Main.java:9: error: unclosed character literal
      if('AAA'==st || 'BBB' == st){
             ^
Main.java:9: error: not a statement
      if('AAA'==st || 'BBB' == st){
           ^
Main.java:9: error: unclosed character literal
      if('AAA'==st || 'BBB' == st){
                      ^
Main.java:9: error: not a statement
      if('AAA'==st || 'BBB' == st){
                   ^
Main.java:9: error: unclosed character literal
      if('AAA'==st || 'BBB' == st){
                          ^
Main.java:9: error: not a statement
      if('AAA'==st || 'BBB' == st){
                        ^
Main.java:9: error: not a statement
      if('AAA'==st || 'BBB' == st){
                               ^
Main.java:9: error: ';' expected
      if('AAA'==st || 'BBB' == st){
                                 ^
Main.java:10: error: unclosed character literal
		System.out.println('NO');
		                   ^
Main.java:10: error: unclosed character literal
		System.out.println('NO');
		                      ^
Main.java:10: error: not a statement
		System.out.println('NO');
		                     ^
Main.java:11: error: unclosed character literal
      }else{System.out.println('YES');
                               ^
Main.java:11: error: unclosed character literal
      }else{System.out.println('YES');
                                   ^
Main.java:11: error: not a statement
      }else{System.out.println('YES');
                                 ^
Main.java:11: error: 'else' without 'if'
      }else{System.out.println('YES');
       ^
16 errors
Language: C++

#include <iostream>
#include<vector>
#include<map>
#include<set>
#include<stack>
#include<queue>
#include<algorithm>
#include<cmath>
#define ll long long
#define pb push_back
#define pii pair<int,int>
#define vi vector<ll>

#define pll pair<long long,long long>
#define pis pair<int,string>
#define mp make_pair
#define F first
#define S second
#define T int tt; cin>>tt; while(tt--)
#define fastio ios_base::sync_with_stdio(false);

#define endl '\n'
#define all(a) (a).begin(), (a).end()
#define display(x) for(auto i : x) cout << i << " "; cout << '\n';
#define input(x) for(int i = 0; i < n; i++) cin >> x[i];
#define make(x,y) memset(a, y, sizeof(x))
#define FO1(i,n) for (int i = 1; i <= n; i++)
#define FO(i,n) for (int i = 0; i < n; i++)
#define mod 1000000007
#define Y cout<<"YES"<<endl;
#define N cout<<"NO"<<endl;

using namespace std;

int main()
{
    fastio
    cin.tie(NULL); cout.tie(0);
    string s; cin>>s;
    if(s=="BAB" s=="ABA")  cout<<"YES";
    else cout<<"NO";
   	return 0;
}














Compiler output:
a.cc: In function 'int main()':
a.cc:40:16: error: expected ')' before 's'
   40 |     if(s=="BAB" s=="ABA")  cout<<"YES";
      |       ~        ^~
      |                )
Language: Java

import java.util.Scanner;

public class station {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String S = sc.next();
		boolean A=S.equals("BBB");
		boolean B=S.equals("AAA");
		System.out.println(A||B?"NO":"YES");
	}
}


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

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

		String s = sc.next();

			if (s.charAt(0)==s.charAt(1)&&s.charAt(0)==s.charAt(2)) {
				System.out.println("No");
			}else{
				System.out.println("Yes");
			}

	}
}


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

#include <iostream>
using namespace std;
int main(){
int a=0,b=0;
  string s;
  cin>>s;
  string z;
  z="B"
  for(int i=0;i<3;i++){
  if(s[i]==z){
  b+=1;
  }
    else{
    a+=1;
    }
  }
  if (a>0 && b>0){
  cout<<"Yes";
  }
  else{
  cout<<"No";
  }
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:8: error: expected ';' before 'for'
    8 |   z="B"
      |        ^
      |        ;
    9 |   for(int i=0;i<3;i++){
      |   ~~~   
a.cc:9:15: error: 'i' was not declared in this scope
    9 |   for(int i=0;i<3;i++){
      |               ^
Language: C++

#include <iostream>
using namespace std;
int main(){
int a=0,b=0;
  string s;
  cin>>s;
  for(int i=0;i<3;i++){
  if(s[i]=="B"){
  b+=1;
  }
    else{
    a+=1;
    }
  }
  if (a>0 && b>0){
  cout<<"Yes";
  }
  else{
  cout<<"No";
  }
  return 0;
}


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

#include<stdio.h>
int main(){
    char s[3];
    int i,count=0,m;
    scanf("%s",s);
    for(i=1;i<=3;i++){
        if(s[i]=='A'){
            count++;
        }
    }
    m=3-count;

    if(count==3 || m==3){
        printf("No\n");
    }
    else{
        printf("Yes\n");
    }

return 0;


Compiler output:
main.c: In function 'main':
main.c:20:1: error: expected declaration or statement at end of input
   20 | return 0;
      | ^~~~~~
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 a = sc.nextInt(); int b = sc.nextInt();
        System.out.println((n/(a+b))*a + Math.min(a,n%(a+b)));}
}

Compiler output:
Main.java:1: error: cannot find symbol
import java.util;
           ^
  symbol:   class util
  location: package java
Main.java:4: error: cannot find symbol
        Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int a = sc.nextInt(); int b = sc.nextInt();
        ^
  symbol:   class Scanner
  location: class Main
Main.java:4: error: cannot find symbol
        Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int a = sc.nextInt(); int b = sc.nextInt();
                         ^
  symbol:   class Scanner
  location: class Main
3 errors
Language: C++

int main (void){
  int a;
  
  scanf("%d", a);
  
  if(a == aaa){
    printf(NO);
  }
  
  if(a == bbb){
   printf(NO); 
  }

  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'scanf' was not declared in this scope
    4 |   scanf("%d", a);
      |   ^~~~~
a.cc:6:11: error: 'aaa' was not declared in this scope
    6 |   if(a == aaa){
      |           ^~~
a.cc:7:12: error: 'NO' was not declared in this scope
    7 |     printf(NO);
      |            ^~
a.cc:7:5: error: 'printf' was not declared in this scope
    7 |     printf(NO);
      |     ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main (void){
a.cc:10:11: error: 'bbb' was not declared in this scope
   10 |   if(a == bbb){
      |           ^~~
a.cc:11:11: error: 'NO' was not declared in this scope
   11 |    printf(NO);
      |           ^~
a.cc:11:4: error: 'printf' was not declared in this scope
   11 |    printf(NO);
      |    ^~~~~~
a.cc:11:4: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
Language: C

#include(stdio.h)
int main(void){
    int S,s1,s2,s3;
    scanf("s1,s2,s3");
    if(s1==s2&&s2==s3){
        printf("NO");
    }
    eles{
        printf("YES");
    }

return 0;
}

Compiler output:
main.c:1:9: error: #include expects "FILENAME" or <FILENAME>
    1 | #include(stdio.h)
      |         ^
main.c: In function 'main':
main.c:4:5: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    4 |     scanf("s1,s2,s3");
      |     ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | #include(stdio.h)
main.c:4:5: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    4 |     scanf("s1,s2,s3");
      |     ^~~~~
main.c:4:5: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:6:9: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    6 |         printf("NO");
      |         ^~~~~~
main.c:6:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:6:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:6:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:8:5: error: 'eles' undeclared (first use in this function)
    8 |     eles{
      |     ^~~~
main.c:8:5: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:9: error: expected ';' before '{' token
    8 |     eles{
      |         ^
      |         ;
Language: C++

#include <cstdio>
#include <iostream>
#include <set>
#include <map>
#include <vector>
#include <algorithm>
#include <utility>
#include <string>
#include <cmath>
#include <iomanip>
typedef long long ll;
#define rep(i,n) for(int i=0;i<n;i++)

using namespace std;
ll intpow(ll N, ll P){
    if(P==0) return 1;
    if(P%2==0){
        ll t = intpow(N, P/2);
        return t*t;
    }
    return N * intpow(N, P-1);
}
ll gcd(ll n,ll m){
    n = max(n,m);
    m = min(n,m);
    if(n%m == 0)return m;
    return gcd(m,n%m);
}
ll lcm(ll n,ll m){
    return n*m/gcd(n,m);
}

int main(){
  deque<char> deq;
    string s;cin>>s;
    for(auto tmp : s){
        deq.push_back(tmp);
    }
    int q;cin >> q;
    int sw=0;
    rep(i,q){
        int qu;cin>>qu;
        if(qu==1)sw++;
        else{
            int f;char c;cin>>f>>c;
            if(sw%2 == 0){
                if(f == 1)deq.push_front(c);
                if(f == 2)deq.push_back(c);
            }
            if(sw%2 == 1){
                if(f == 1)deq.push_back(c);
                if(f == 2)deq.push_front(c);
            }
        }
    }
    string ans;
    for(auto tmp : deq)ans.push_back(tmp);
    if(sw%2 == 0){
       cout <<ans<< endl;
    }
    else{
        reverse(ans.begin(),ans.end());
        cout << ans <<endl;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:34:3: error: 'deque' was not declared in this scope
   34 |   deque<char> deq;
      |   ^~~~~
a.cc:11:1: note: 'std::deque' is defined in header '<deque>'; this is probably fixable by adding '#include <deque>'
   10 | #include <iomanip>
  +++ |+#include <deque>
   11 | typedef long long ll;
a.cc:34:9: error: expected primary-expression before 'char'
   34 |   deque<char> deq;
      |         ^~~~
a.cc:37:9: error: 'deq' was not declared in this scope
   37 |         deq.push_back(tmp);
      |         ^~~
a.cc:47:27: error: 'deq' was not declared in this scope
   47 |                 if(f == 1)deq.push_front(c);
      |                           ^~~
a.cc:48:27: error: 'deq' was not declared in this scope
   48 |                 if(f == 2)deq.push_back(c);
      |                           ^~~
a.cc:51:27: error: 'deq' was not declared in this scope
   51 |                 if(f == 1)deq.push_back(c);
      |                           ^~~
a.cc:52:27: error: 'deq' was not declared in this scope
   52 |                 if(f == 2)deq.push_front(c);
      |                           ^~~
a.cc:57:20: error: 'deq' was not declared in this scope
   57 |     for(auto tmp : deq)ans.push_back(tmp);
      |                    ^~~
Language: Java

import java.util.Scanner;

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


Compiler output:
Main.java:3: error: class, interface, enum, or record expected
public Main {
       ^
Main.java:4: error: unnamed classes are a preview feature and are disabled by default.
	public static void main(String[] args) {
	              ^
  (use --enable-preview to enable unnamed classes)
Main.java:14: error: class, interface, enum, or record expected
}
^
3 errors
Language: C

#include<stdio.h>
int main(void){
  long long int n,a,b,j,i,rem;
  scanf("%lld%lld%lld",&n,&a,&b);
  ans=n/(a+b);
  rem=n%(a+b);
  ans+=rem>a?rem:a;
  printf("%d",ans);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:3: error: 'ans' undeclared (first use in this function)
    5 |   ans=n/(a+b);
      |   ^~~
main.c:5:3: note: each undeclared identifier is reported only once for each function it appears in
Language: Java

//package solution;

import java.io.*;
import java.util.*;
import java.math.*;
import java.awt.Point;

public final class Main {
    BufferedReader br;
    StringTokenizer stk;

    public static void main(String[] args) throws Exception {
        new Solution().run();
    }
    
    {
        stk = null;
        br = new BufferedReader(new InputStreamReader(System.in));
    }
    
    void run() throws Exception {
        char[] c = nt().toCharArray();
        if(c[0] == c[1] && c[1] == c[2]) {
            pl("No");
        } else {
            pl("Yes");
        }
    }
    
    //Reader & Writer
    String nextToken() throws Exception {
        if (stk == null || !stk.hasMoreTokens()) {
            stk = new StringTokenizer(br.readLine(), " ");
        }
        return stk.nextToken();
    }

    String nt() throws Exception {
        return nextToken();
    }

    String ns() throws Exception {
        return br.readLine();
    }

    int ni() throws Exception {
        return Integer.parseInt(nextToken());
    }

    long nl() throws Exception {
        return Long.parseLong(nextToken());
    }

    double nd() throws Exception {
        return Double.parseDouble(nextToken());
    }

    void p(Object o) {
        System.out.print(o);
    }

    void pl(Object o) {
        System.out.println(o);
    }
    
    void selector() {
        Random rd = new Random();
        String[] s = new String[] {"Strings", "Sorting", "Search"
                , "Graph theory", "Greedy", "Dynamic programming"
                , "Constructive algos", "Bit manipulation", "Recursion"};
        pl(s[rd.nextInt(s.length)] + " " + (rd.nextInt(5)+1));
    }
}

Compiler output:
Main.java:13: error: cannot find symbol
        new Solution().run();
            ^
  symbol:   class Solution
  location: class Main
1 error
Language: Java

//package solution;

import java.io.*;
import java.util.*;
import java.math.*;
import java.awt.Point;

public final class Solution {
    BufferedReader br;
    StringTokenizer stk;

    public static void main(String[] args) throws Exception {
        new Solution().run();
    }
    
    {
        stk = null;
        br = new BufferedReader(new InputStreamReader(System.in));
    }
    
    void run() throws Exception {
        char[] c = nt().toCharArray();
        if(c[0] == c[1] && c[1] == c[2]) {
            pl("No");
        } else {
            pl("Yes");
        }
    }
    
    //Reader & Writer
    String nextToken() throws Exception {
        if (stk == null || !stk.hasMoreTokens()) {
            stk = new StringTokenizer(br.readLine(), " ");
        }
        return stk.nextToken();
    }

    String nt() throws Exception {
        return nextToken();
    }

    String ns() throws Exception {
        return br.readLine();
    }

    int ni() throws Exception {
        return Integer.parseInt(nextToken());
    }

    long nl() throws Exception {
        return Long.parseLong(nextToken());
    }

    double nd() throws Exception {
        return Double.parseDouble(nextToken());
    }

    void p(Object o) {
        System.out.print(o);
    }

    void pl(Object o) {
        System.out.println(o);
    }
    
    void selector() {
        Random rd = new Random();
        String[] s = new String[] {"Strings", "Sorting", "Search"
                , "Graph theory", "Greedy", "Dynamic programming"
                , "Constructive algos", "Bit manipulation", "Recursion"};
        pl(s[rd.nextInt(s.length)] + " " + (rd.nextInt(5)+1));
    }
}

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

#include<iostream>
#include<string>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:10: error: could not convert 'num.std::__cxx11::basic_string<char>::operator=(((const char*)"AAA"))' from 'std::__cxx11::basic_string<char>' to 'bool'
    8 |   if(num = "AAA"){
      |      ~~~~^~~~~~~
      |          |
      |          std::__cxx11::basic_string<char>
a.cc:10:3: error: expected '}' before 'else'
   10 |   else{
      |   ^~~~
a.cc:8:18: note: to match this '{'
    8 |   if(num = "AAA"){
      |                  ^
a.cc:11:12: error: could not convert 'num.std::__cxx11::basic_string<char>::operator=(((const char*)"BBB"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   11 |     if(num = "BBB"){
      |        ~~~~^~~~~~~
      |            |
      |            std::__cxx11::basic_string<char>
a.cc:13:7: error: expected '}' before 'else'
   13 |       else{
      |       ^~~~
a.cc:11:20: note: to match this '{'
   11 |     if(num = "BBB"){
      |                    ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:12: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
    6 |   if(num = "AAA"){
      |            ^~~~~
      |            |
      |            const char*
a.cc:8:3: error: expected '}' before 'else'
    8 |   else{
      |   ^~~~
a.cc:6:18: note: to match this '{'
    6 |   if(num = "AAA"){
      |                  ^
a.cc:9:14: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
    9 |     if(num = "BBB"){
      |              ^~~~~
      |              |
      |              const char*
a.cc:11:7: error: expected '}' before 'else'
   11 |       else{
      |       ^~~~
a.cc:9:20: note: to match this '{'
    9 |     if(num = "BBB"){
      |                    ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:10: error: 'num' was not declared in this scope; did you mean 'enum'?
    4 |   cin >> num;
      |          ^~~
      |          enum
a.cc:8:3: error: 'elseif' was not declared in this scope
    8 |   elseif(num == "BBB"){
      |   ^~~~~~
a.cc:11:3: error: 'else' without a previous 'if'
   11 |   else{
      |   ^~~~
Language: C++

#include <iostream>
#define ll long long
#define f(i, n) for (int i=0; i < n; i++)
// sort(bb, bb+n);
 
using namespace std;
int main()
{
    char 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:11:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |         if(s=="AAA"||s=="BBB"){
      |            ~^~~~~~~
a.cc:11:23: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |         if(s=="AAA"||s=="BBB"){
      |                      ~^~~~~~~
Language: C++

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

Compiler output:
a.cc:6:9: warning: multi-character character constant [-Wmultichar]
    6 |   if(c=='AAA' || c=='BBB') {
      |         ^~~~~
a.cc:6:21: warning: multi-character character constant [-Wmultichar]
    6 |   if(c=='AAA' || c=='BBB') {
      |                     ^~~~~
a.cc: In function 'int main()':
a.cc:6:7: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    6 |   if(c=='AAA' || c=='BBB') {
      |      ~^~~~~~~
a.cc:6:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    6 |   if(c=='AAA' || c=='BBB') {
      |                  ~^~~~~~~
Language: C++

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

int main(){
   int N;
   cin >> N;
   int a;
   cin >> b;
   int b;
   cin >> b;
   int syou;
   int amari;
   syou=N/(a+b);
   amari=N%(a+b);
   if(amari<=a)cout<<a*syou+amari<<endl;
   else cout<<a*syou+a<<endl;
   return 0;
   }

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

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

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

/*
@author: sharrad99
*/
#include<bits/stdc++.h>
using namespace std;
int main(){
	ios_base::sync_with_stdio(false);
	cin.tie(NULL);
	cout.tie(NULL);

	string s;
	cin >> s;

	bool a = false, b = false;

	for(int i = 0; i < n; i++) {
		a |= s[i] == 'A';
		b |= s[i] == 'B';
	}

	cout << (a and b ? "Yes\n" : "No\n");
}

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

#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define pb push_back
#define all(x) (x).begin(), (x).end()
#define sz(a) int((a).size())

int main()
{
    ios_base::sync_with_stdio(false);
	cin.tie(0);cout.tie(0);
    string s;
    cin>>s;
    if(s=="AAA" || s=="BBB") cout<<"No";
    else cout<<"Yes";
    }
}

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

#include<stdio.h>

int main()
{
    char AAB, ABA,BAA, BBA, AAA, BBB, S;
    S='3';
    scanf("%s", &S);

    if(S==AAA || S==BBB)
    {
        printf("NO\n");
    }
    else if(S==AAB || S==ABA || S==BAA || S==BBA)
        printf("YES\n");

        RETURN 0;
}


Compiler output:
main.c: In function 'main':
main.c:16:9: error: 'RETURN' undeclared (first use in this function)
   16 |         RETURN 0;
      |         ^~~~~~
main.c:16:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:16:15: error: expected ';' before numeric constant
   16 |         RETURN 0;
      |               ^~
      |               ;
Language: Java

import java.util.*;
import java.lang.*;
public class Solution{
public static void main(String [] args){
Scanner in = new Scanner(System.in);
  String s = in.next();
  int ca=0;
  int cb=0;
  for(int i =0;i<s.length();i++){
  if(s.charAt(i)=='A'){
  ca++;
  }
    if(s.charAt(i)=='B'){
  cb++;
  }
  }
  if(ca==3 || cb==3){
  System.out.print("No");
  }
  else{
  System.out.print("Yes");
  }
}
}

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

import java.util.*;
import java.lang.*;
public class Solution{
public static void main(String [] args){
Scanner in = new Scanner(System.in);
  String s = in.next();
  int ca=0;
  int cb=0;
  for(int i =0;i<s.length();i++){
  if(s.charAt(i)=="A"){
  ca++;
  }
    if(s.charAt(i)=="B"){
  cb++;
  }
  }
  if(ca==3 || cb==3){
  System.out.print("No");
  }
  else{
  System.out.print("Yes");
  }
}
}

Compiler output:
Main.java:3: error: class Solution is public, should be declared in a file named Solution.java
public class Solution{
       ^
Main.java:10: error: bad operand types for binary operator '=='
  if(s.charAt(i)=="A"){
                ^
  first type:  char
  second type: String
Main.java:13: error: bad operand types for binary operator '=='
    if(s.charAt(i)=="B"){
                  ^
  first type:  char
  second type: String
3 errors
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
  string str;
  cin >> str;
  char ch = str[0];
  cout << (str[1] == ch && str[2] == ch) ? "No" : "Yes" << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:57: error: invalid operands of types 'const char [4]' and '<unresolved overloaded function type>' to binary 'operator<<'
    7 |   cout << (str[1] == ch && str[2] == ch) ? "No" : "Yes" << endl;
      |                                                   ~~~~~~^~~~~~~
Language: C++

#include <bits/stdc++>
using namespace std;
int main() {
  string str;
  cin >> str;
  char ch = str[0];
  cout << (str[1] == ch && str[2] == ch) ? "No" : "Yes" << endl;
  return 0;
}

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

#include <bits/stdc++.h>

int main() {
  string str;
  cin >> str;
  char ch = str[0];
  cout << (str[1] == ch && str[2] == ch) ? "No" : "Yes" << endl;
  return 0;
}

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

#include <bits/stdc++>

int main() {
  string str;
  cin >> str;
  char ch = str[0];
  cout << (str[1] == ch && str[2] == ch) ? "No" : "Yes" << endl;
  return 0;
}

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

#include <bits/cstd++>

int main() {
  string str;
  cin >> str;
  char ch = str[0];
  cout << (str[1] == ch && str[2] == ch) ? "No" : "Yes" << endl;
  return 0;
}

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

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

int main(){
  string s;
  cin >> s;
  deque<char> q;
  for(char c : s) q.push_back(c);
  bool flip = 0;
  int Q;
  cin >> Q;
  
  rep(qi,Q){
    
    int ty;
    cin >> ty;
    if(ty == 1){
      flip = !flip;
    }else{
      int f; char c;
      cin >> f >> c;
      if(flip) f = 3-f;
      if(f == 1) {
        q.push_front(c);
      }else{
        q.push_buck(c);
      }
    }
  }
    
  if(flip) reverse(q.begin(),q.end());
  string ans;
  for(char c : q) ans += c;
  cout << ans << endl;
  return 0;
  }

Compiler output:
a.cc: In function 'int main()':
a.cc:29:11: error: 'class std::deque<char>' has no member named 'push_buck'; did you mean 'push_back'?
   29 |         q.push_buck(c);
      |           ^~~~~~~~~
      |           push_back
Language: C++

#include#include <bits/stdc++.h>
using namespace std;
#define forn(i, n) for (int i = 0; i < int(n); i++)
#define forna(i,a,n) for(int i =a; i < n; i++)
#define fornd(i,a) for (int i = (a)-1; i >= 0; i--)
#define pb push
#define fi first
#define se second
#define __ ios_base::sync_with_stdio(0);cin.tie(0);
typedef long long int unsigned lliu;
typedef long long int lli;
typedef pair<lli,lli> pi;
typedef vector<int> vi;
typedef vector<vi> vvi;
typedef vector<pi> vpi;

int main(){__
    string s;
    int a=0;
    cin>>s;
    forn(i, s.size()){
        if(s[i]=='A')
            a++;
    }
    if(a==0 || a==3){
        cout<<"No\n";
    } else
        cout<<"Yes\n";
}

Compiler output:
a.cc:1:9: error: #include expects "FILENAME" or <FILENAME>
    1 | #include#include <bits/stdc++.h>
      |         ^
a.cc:12:9: error: 'pair' does not name a type
   12 | typedef pair<lli,lli> pi;
      |         ^~~~
a.cc:13:9: error: 'vector' does not name a type
   13 | typedef vector<int> vi;
      |         ^~~~~~
a.cc:14:9: error: 'vector' does not name a type
   14 | typedef vector<vi> vvi;
      |         ^~~~~~
a.cc:15:9: error: 'vector' does not name a type
   15 | typedef vector<pi> vpi;
      |         ^~~~~~
a.cc: In function 'int main()':
a.cc:9:12: error: 'ios_base' has not been declared
    9 | #define __ ios_base::sync_with_stdio(0);cin.tie(0);
      |            ^~~~~~~~
a.cc:17:12: note: in expansion of macro '__'
   17 | int main(){__
      |            ^~
a.cc:9:41: error: 'cin' was not declared in this scope
    9 | #define __ ios_base::sync_with_stdio(0);cin.tie(0);
      |                                         ^~~
a.cc:17:12: note: in expansion of macro '__'
   17 | int main(){__
      |            ^~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #include#include <bits/stdc++.h>
a.cc:18:5: error: 'string' was not declared in this scope
   18 |     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#include <bits/stdc++.h>
a.cc:20:10: error: 's' was not declared in this scope
   20 |     cin>>s;
      |          ^
a.cc:26:9: error: 'cout' was not declared in this scope
   26 |         cout<<"No\n";
      |         ^~~~
a.cc:26:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:28:9: error: 'cout' was not declared in this scope
   28 |         cout<<"Yes\n";
      |         ^~~~
a.cc:28:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

#include"iostream"
 
using namespace std;
int judge[2];
int main(){
 string s;
  cin>>s;
  for(char i:s)
     judge[i-'A']=1;
  bool ans=true;
  for(int i=0;i<2;i++)
     if(judge[i]==0)
         ans=false;
  if(flag)  cout<<"YES"<<endl;
  else   cout<<"NO"<<endl;
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:6: error: 'flag' was not declared in this scope
   14 |   if(flag)  cout<<"YES"<<endl;
      |      ^~~~