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

package atCoderBeginnerContest158;

import java.util.Scanner;

/**
 *
 * https://atcoder.jp/contests/abc158/tasks/abc158_a
 *
 * @author shouma
 *
 */

public class A_StationAndBus {
	public static void main(String args[]) {
		//strにはAかBの文字列が入る。(３文字)
		Scanner scan = new Scanner(System.in);
		String str = scan.nextLine();
		//小文字が入る場合があるので、変換する。
		String upperStr = str.toUpperCase();
		if(upperStr.length() <= 3) {
		//AAAのみやBBBのみだと、バスは運行しない→Noを出力
			if(upperStr.contains("AAA") || upperStr.contains("BBB")){
				System.out.println("No");
			}else {
				System.out.println("Yes");
			}
		}
		System.out.println("文字が３文字以上です。");
        scan.close();
	}
}


Compiler output:
Main.java:13: error: class A_StationAndBus is public, should be declared in a file named A_StationAndBus.java
public class A_StationAndBus {
       ^
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();
      	String[] strArray = new String[str.length()];
      
      	for (int i = 0; i < S.length(); i++) {
    		String str2 = String.valueOf(S.charAt(i));
      		strArray[i] = str2;
          	if(i>0){
            	if(!(strArray[i].equals(strArray[i-1]))){
                	System.out.println("Yes");
                	return;
                }
            }
		}
      	System.out.println("No");
    }
}

Compiler output:
Main.java:7: error: cannot find symbol
      	String[] strArray = new String[str.length()];
      	                               ^
  symbol:   variable str
  location: class Main
1 error
Language: C++

#include <bits/stdc++.h>
#include <math.h>
#include <vector>
#include <queue>
#include <iomanip>
#include <string>
using namespace std;
using Graph = vector<vector<int>>;
#define rep(i,n) for(int i=0;i<n;i++)
#define rep_1 (i,j,n) for(int i=j;i<n;i++)
typedef long long ll;
typedef long l;
const ll l_INF = 101010101000;
const int INF = 1010101010;
const int dx[4] = {-1,0,1,0};
const int dy[4] = {0,-1,0,1};
using vi = vector<int>;
using vvi = vector<vi>;
using pii = pair<int,int>;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:24:3: error: 'stirng' was not declared in this scope
   24 |   stirng s;
      |   ^~~~~~
a.cc:25:10: error: 's' was not declared in this scope
   25 |   cin >> s;
      |          ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
#define ll long long int
#define rep(i, n) for(int i = 0; i < n; i++)
#define repp(i, n) for(int i = 1; i <= n; i++)
#define sort(v) sort((v).begin(), (v).end())
#define pb push_back
#define mp make_pair
#define all(a) (a).begin(),(a).end()
#define reverse(v) reverse((v).begin(), (v).end())
using vi = vector<int>;
using vs = vector<string>;
using vc = vector<char>;
using vvi = vector<vi>;
using vll = vector<ll>;
using vb = vector<bool>;
using vvb = vector<vb>;
const ll MOD = 1e9+7;
vi alphabet = {'a','b','c','d','e','f','g','h','i','j','k','l','m',
               'n','o','p','q','r','s','t','u','v','w','x','y','z'};

int main() {
	string S;
  	cin>>S;
  	int Q;
  	cin>>Q;
  	counter=0;
  	rep(i,Q){
    	int T;
      	cin>>T;
      	if(T==1) counter++;
      	else{
        	int F;
          	cin>>F;
          	char C;
          	cin>>C;
          	if((F+counter)%2==1)S=C+S;
          	else S=S+C;
        }
    }
  	if(counter%2==1)reverse(S);
  	cout<<S<<endl;
}

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

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

#define ARRAY_SIZE 4
int main()
{
    char inputS[ARRAY_SIZE];

    scanf("%s", inputS);
    
    // Checks if there are routes operated by only one company
    if (strcmp(inputS, "AAA") == 0 || strcmp(inputN, "BBB") == 0)
    {
        printf("No\n");
    }
    else
    {
        printf("Yes\n");
    }
    
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:12:46: error: 'inputN' undeclared (first use in this function); did you mean 'inputS'?
   12 |     if (strcmp(inputS, "AAA") == 0 || strcmp(inputN, "BBB") == 0)
      |                                              ^~~~~~
      |                                              inputS
main.c:12:46: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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

#define ARRAY_SIZE 4
int main()
{
    char inputS[ARRAY_SIZE];

    scanf("%s", inputN);
    
    // Checks if there are routes operated by only one company
    if (strcmp(inputS, "AAA") == 0 || strcmp(inputN, "BBB") == 0)
    {
        printf("No\n");
    }
    else
    {
        printf("Yes\n");
    }
    
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:9:17: error: 'inputN' undeclared (first use in this function); did you mean 'inputS'?
    9 |     scanf("%s", inputN);
      |                 ^~~~~~
      |                 inputS
main.c:9:17: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:13: error: 'No' was not declared in this scope
    7 |     cout << No << endl;}
      |             ^~
a.cc:8:17: error: 'Yes' was not declared in this scope
    8 |   else {cout << Yes << endl;}
      |                 ^~~
Language: C++

#include <iostream>
#include <algorithm>
#include <cmath>
#include <queue>
#include <set>
#include <map>
#include <vector>
#include <string>
#include <iomanip>
using namespace std;
typedef long long ll;
typedef long double ld;

int main(){
ll a,b;
cin >> a >> b;
if(a>0&&b>0){
  cout<<"Yes"<<endl;
}else{
  cout<<"No"<<endl;
}
}
}

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

#include<bits/stdc++.h>
#define rep(i,n) for(int i=0;n>i;++i)
using namespace std;
using ll=int64_t;
using pii=pair<int,int>;
using vi=vector<int>;
using vis=vector<string>;
using vvi=vector<vi>;
//pとqの最大公約数
int gcd(int p,int q){
    if(p%q==0)
    return q;
    return gcd(q,p%q);
}
int main(void){
    string s;
    cin>>s;
    if(s=="AAA"||s=="BBB")
    cout<<"Yes"<<endl;
    else
    {
        cout<<"No"<<endl;
    }
    
}#include<bits/stdc++.h>
#define rep(i,n) for(int i=0;n>i;++i)
using namespace std;
using ll=int64_t;
using pii=pair<int,int>;
using vi=vector<int>;
using vis=vector<string>;
using vvi=vector<vi>;
//pとqの最大公約数
int gcd(int p,int q){
    if(p%q==0)
    return q;
    return gcd(q,p%q);
}
int main(void){
    string s;
    cin>>s;
    if(s=="AAA"||s=="BBB")
    cout<<"Yes"<<endl;
    else
    {
        cout<<"No"<<endl;
    }
    
}

Compiler output:
a.cc:25:2: error: stray '#' in program
   25 | }#include<bits/stdc++.h>
      |  ^
a.cc:25:3: error: 'include' does not name a type
   25 | }#include<bits/stdc++.h>
      |   ^~~~~~~
a.cc:34:5: error: redefinition of 'int gcd(int, int)'
   34 | int gcd(int p,int q){
      |     ^~~
a.cc:10:5: note: 'int gcd(int, int)' previously defined here
   10 | int gcd(int p,int q){
      |     ^~~
a.cc:39:5: error: redefinition of 'int main()'
   39 | int main(void){
      |     ^~~~
a.cc:15:5: note: 'int main()' previously defined here
   15 | int main(void){
      |     ^~~~
Language: C++

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

    bool ans = false;
    if (S[1] != S[2] || S[2] != S[3])

        ans = true;
}
if (ans) {
    cout << "Yes" << endl;
} else {
    cout << "No" << endl;
}

return 0;
}

Compiler output:
a.cc:12:1: error: expected unqualified-id before 'if'
   12 | if (ans) {
      | ^~
a.cc:14:3: error: expected unqualified-id before 'else'
   14 | } else {
      |   ^~~~
a.cc:18:1: error: expected unqualified-id before 'return'
   18 | return 0;
      | ^~~~~~
a.cc:19:1: error: expected declaration before '}' token
   19 | }
      | ^
Language: C++

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

int main(){
  stirng 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:3: error: 'stirng' was not declared in this scope
    5 |   stirng S;
      |   ^~~~~~
a.cc:6:10: error: 'S' was not declared in this scope
    6 |   cin >> S;
      |          ^
Language: C++

#include <bits/stdc++.h>
#include<iostream>
using namespace std;
 
int main() {
   string s;
	int a,b;
   cin >> s;

   for(int i = 0; i < 3;i++){
      if(s.at(i) = 'A'){
         a = 1;
      }
      if(s.at(i) = 'B'){
         b = 1;
      }
   }

   if(a = 1 && b == 1){
      cout << "Yes";
   }else{
      cout << "No;"
   }

   
}

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

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

   cin >> s;

   for(int i = 0; i < 3;i++){
      if(s.at(i) = 'A'){
         int a = 1;
      }
      if(s.at(i) = 'B'){
         int b = 1;
      }
   }

   if(a = 1 && b == 1){
      cout << "Yes";
   }else{
      cout << "No;"
   }

   
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:7: error: 'a' was not declared in this scope
   19 |    if(a = 1 && b == 1){
      |       ^
a.cc:19:16: error: 'b' was not declared in this scope
   19 |    if(a = 1 && b == 1){
      |                ^
a.cc:22:20: error: expected ';' before '}' token
   22 |       cout << "No;"
      |                    ^
      |                    ;
   23 |    }
      |    ~
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.equalsTo("AAA") || S.equalsTo("BBB")){
        	System.out.println("No");
        }else{
        	System.out.println("Yes");
        }
    }


}

Compiler output:
Main.java:7: error: cannot find symbol
        if(S.equalsTo("AAA") || S.equalsTo("BBB")){
            ^
  symbol:   method equalsTo(String)
  location: variable S of type String
Main.java:7: error: cannot find symbol
        if(S.equalsTo("AAA") || S.equalsTo("BBB")){
                                 ^
  symbol:   method equalsTo(String)
  location: variable S of type String
2 errors
Language: C++

#include<bits/stdc++.h>

using namespace std;

int main(){

 string ani; cin>>ani;

  for(int i=0;i<ani.length();i++){

    if(ani[i] == 'A') cnt++;
    else if(ani[i] == 'B') cnt2++;
  }

  if(cnt > 0 && cnt2 >0)
  	cout<<"Yes"<<endl;
  else 
  	cout<<"No"<<endl;

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:23: error: 'cnt' was not declared in this scope; did you mean 'int'?
   11 |     if(ani[i] == 'A') cnt++;
      |                       ^~~
      |                       int
a.cc:12:28: error: 'cnt2' was not declared in this scope
   12 |     else if(ani[i] == 'B') cnt2++;
      |                            ^~~~
a.cc:15:6: error: 'cnt' was not declared in this scope; did you mean 'int'?
   15 |   if(cnt > 0 && cnt2 >0)
      |      ^~~
      |      int
a.cc:15:17: error: 'cnt2' was not declared in this scope
   15 |   if(cnt > 0 && cnt2 >0)
      |                 ^~~~
Language: C++

#include <iostream>
#include <string>

int main(){

  string s;

while(cin>>s){
  int count_a=0,count_b=0;

  for(int i=0;i<s.length();i++){
  	if(s[i] == 'A') 
  		++count_a;
  	else if(s[i] == 'B')
  		++count_b;
  }

 if(count_a > 0 && count_b > 0)
 	cout<<"Yes"<<endl;
 else 
 	cout<<"No"<<endl;
 
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'string' was not declared in this scope
    6 |   string s;
      |   ^~~~~~
a.cc:6:3: note: suggested alternatives:
In file included from /usr/include/c++/14/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:7: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    8 | while(cin>>s){
      |       ^~~
      |       std::cin
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:8:12: error: 's' was not declared in this scope
    8 | while(cin>>s){
      |            ^
a.cc:19:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   19 |         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:19:22: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   19 |         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:21:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   21 |         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:21:21: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   21 |         cout<<"No"<<endl;
      |                     ^~~~
      |                     std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:24:2: error: expected '}' at end of input
   24 | }
      |  ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

#include <iostream>
#include <string>

int main(){

  string s; cin>>s;

  int count_a=0,count_b=0;

  for(int i=0;i<s.length();i++){
  	if(s[i] == 'A') 
  		++count_a;
  	else if(s[i] == 'B')
  		++count_b;
  }

 if(count_a > 0 && count_b > 0)
 	cout<<"Yes"<<endl;
 else 
 	cout<<"No"<<endl;
 
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'string' was not declared in this scope
    6 |   string s; cin>>s;
      |   ^~~~~~
a.cc:6:3: note: suggested alternatives:
In file included from /usr/include/c++/14/iosfwd:41,
                 from /usr/include/c++/14/ios:40,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
In file included from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44:
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:6:13: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   string s; cin>>s;
      |             ^~~
      |             std::cin
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:6:18: error: 's' was not declared in this scope
    6 |   string s; cin>>s;
      |                  ^
a.cc:18:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   18 |         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:18:22: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   18 |         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:20:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   20 |         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:20:21: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   20 |         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 <iostream>
#include <string>

int main(){

  string s; cin>>s;

  int count_a=0,count_b=0;

  for(int i=0;i<s.length();i++){
  	if(s[i] == 'A') 
  		++count_a;
  	else if(s[i] == 'B')
  		++count_b;
  }

 if(count_a > 0 && count_b > 0)
 	cout<<"Yes"<<endl;
 else 
 	cout<<"No"<<endl;
 
	return 0;
}

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

import java.util.Scanner;
 
public class Main {
    public static void main(String[] args){
        Scanner in = new Scanner(System.in);
        String S = in.nextLine();
         if (S.charAt(1) == S.charAt(2) == S.charAt(3)){
          System.out.println("No");
         }
         else {System.out.println("Yes");
                }
        }
    }

Compiler output:
Main.java:7: error: incomparable types: boolean and char
         if (S.charAt(1) == S.charAt(2) == S.charAt(3)){
                                        ^
1 error
Language: Java

import java.util.Scanner;
 
public class Main {
    public static void main(String[] args){
        Scanner in = new Scanner(System.in);
        String S = in.nextLine();
         if ((S.charAt(1) == S.charAt(2) == S.charAt(3)){
          System.out.println("No");
         }
         else {System.out.println("Yes");
                }
        }
    }

Compiler output:
Main.java:7: error: ')' expected
         if ((S.charAt(1) == S.charAt(2) == S.charAt(3)){
                                                        ^
1 error
Language: C++

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

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





Compiler output:
a.cc: In function 'int main()':
a.cc:10:5: error: 'else' without a previous 'if'
   10 |     else if (!(S[0] == 'B' && S[1] == 'B' && S[2] == 'B')); {
      |     ^~~~
a.cc:13:5: error: 'else' without a previous 'if'
   13 |     else {
      |     ^~~~
Language: C++

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

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





Compiler output:
a.cc: In function 'int main()':
a.cc:11:5: error: 'else' without a previous 'if'
   11 |     else if {
      |     ^~~~
a.cc:11:13: error: expected '(' before '{' token
   11 |     else if {
      |             ^
      |             (
a.cc:14:5: error: 'else' without a previous 'if'
   14 |     else if (!(S[0] == 'B' && S[1] == 'B' && S[2] == 'B')); {
      |     ^~~~
a.cc:17:5: error: 'else' without a previous 'if'
   17 |     else if {
      |     ^~~~
a.cc:17:13: error: expected '(' before '{' token
   17 |     else if {
      |             ^
      |             (
Language: C++

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

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





Compiler output:
a.cc: In function 'int main()':
a.cc:11:5: error: 'else' without a previous 'if'
   11 |     else if {
      |     ^~~~
a.cc:11:13: error: expected '(' before '{' token
   11 |     else if {
      |             ^
      |             (
a.cc:17:5: error: 'else' without a previous 'if'
   17 |     else if {
      |     ^~~~
a.cc:17:13: error: expected '(' before '{' token
   17 |     else if {
      |             ^
      |             (
Language: C++

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

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





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

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

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





Compiler output:
a.cc: In function 'int main()':
a.cc:11:5: error: 'else' without a previous 'if'
   11 |     else if {
      |     ^~~~
a.cc:11:13: error: expected '(' before '{' token
   11 |     else if {
      |             ^
      |             (
a.cc:17:5: error: 'else' without a previous 'if'
   17 |     else if {
      |     ^~~~
a.cc:17:13: error: expected '(' before '{' token
   17 |     else if {
      |             ^
      |             (
Language: C++

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

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





Compiler output:
a.cc: In function 'int main()':
a.cc:11:5: error: 'else' without a previous 'if'
   11 |     else {
      |     ^~~~
a.cc:17:5: error: 'else' without a previous 'if'
   17 |     else {
      |     ^~~~
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.charAt(0)==S.charAt(1)&S.charAt(0)&==S.charAt(2)&&S.charAt(1)==S.charAt(2)){
         System.out.println("No");
         }
      	else{
        System.out.println("Yes");
         }
	}
}

Compiler output:
Main.java:7: error: illegal start of expression
      	 if(S.charAt(0)==S.charAt(1)&S.charAt(0)&==S.charAt(2)&&S.charAt(1)==S.charAt(2)){
      	                                          ^
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.charAt(0)==S.charAt(1)==S.charAt(2)){
         System.out.println("No");
         }
      	else{
        System.out.println("Yes");
         }
	}
}

Compiler output:
Main.java:7: error: incomparable types: boolean and char
      	 if(S.charAt(0)==S.charAt(1)==S.charAt(2)){
      	                            ^
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.charAt[0]==S.charAt[1]==S.charAt[2]){
         System.out.println("No");
         }
      	else{
        System.out.println("Yes");
         }
	}
}

Compiler output:
Main.java:7: error: cannot find symbol
      	 if(S.charAt[0]==S.charAt[1]==S.charAt[2]){
      	     ^
  symbol:   variable charAt
  location: variable S of type String
Main.java:7: error: cannot find symbol
      	 if(S.charAt[0]==S.charAt[1]==S.charAt[2]){
      	                  ^
  symbol:   variable charAt
  location: variable S of type String
Main.java:7: error: cannot find symbol
      	 if(S.charAt[0]==S.charAt[1]==S.charAt[2]){
      	                               ^
  symbol:   variable charAt
  location: variable S of type String
3 errors
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.charAt[0]==S.charAt[1]==S.charAt[2])){
         System.out.println("No");
         }
      	else{
        System.out.println("Yes");
         }
	}
}



Compiler output:
Main.java:7: error: illegal start of expression
      	 if(S.charAt[0]==S.charAt[1]==S.charAt[2])){
      	                                          ^
Main.java:10: error: 'else' without 'if'
      	else{
      	^
2 errors
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') || 
      (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:8:40: error: expected ')' before 'S'
    8 |   if ((S.at(0) == 'A' && S.at(1) == 'A' S.at(2) == 'A') ||
      |       ~                                ^~
      |                                        )
a.cc:11:4: error: expected ')' before 'else'
   11 |   } else {
      |    ^~~~~
      |    )
a.cc:8:6: note: to match this '('
    8 |   if ((S.at(0) == 'A' && S.at(1) == 'A' S.at(2) == 'A') ||
      |      ^
a.cc:14:1: error: expected primary-expression before '}' token
   14 | }
      | ^
Language: C++

#include<iostream>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: expected primary-expression before 'if'
    7 |   if ( s == "AAA" or "BBB") cout << "No" << endl;
      |   ^~
a.cc:8:3: error: 'else' without a previous 'if'
    8 |   else cout << "Yes" <<endl;
      |   ^~~~
Language: C++

#include<iostream>
using namespace std;

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

Compiler output:
a.cc:7:13: warning: multi-character character constant [-Wmultichar]
    7 |   if ( s == 'AAA' or 'BBB') cout << "No" << endl;
      |             ^~~~~
a.cc:7:22: warning: multi-character character constant [-Wmultichar]
    7 |   if ( s == 'AAA' or 'BBB') cout << "No" << endl;
      |                      ^~~~~
a.cc: In function 'int main()':
a.cc:7:3: error: expected primary-expression before 'if'
    7 |   if ( s == 'AAA' or 'BBB') cout << "No" << endl;
      |   ^~
a.cc:8:3: error: 'else' without a previous 'if'
    8 |   else cout << "Yes" <<endl;
      |   ^~~~
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:8:17: error: expected ';' before 'endl'
    8 |     cout << "No" endl;
      |                 ^~~~~
      |                 ;
Language: C++

#include <bits/stdc++.h>
#define _USE_MATH_DEFINES
#include <math.h>
#include <algorithm>
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define all(x) x.begin(), x.end()
#define rall(x) x.rbegin(), x.rend()
#define acc(v) accumulate(v.begin(), v.end(), 0)

using namespace std;
typedef long long ll;
const int INF = 1e9;
const ll LINF = 1e18;
const ll MOD = 1e9 + 7;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:20:42: error: 'd' was not declared in this scope
   20 |         cout << (s[0] == s[1] && s[1] == d[2] ? "No" : "Yes") << endl;
      |                                          ^
Language: C++

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

// 最小公倍数を求める
int euqlid (int a, int b){
  int temp;
  temp = a % b;
  if(temp == 0)return b;
  return euqlid(b,temp);
}
ll conbination(ll a,ll b){
  ll u = 1;
  ll d = 1;
  while(b != 0){
    u *= a;
    d *= b;
    a--;
    b--;
  }
  return u / d;
}
int fact(int n){
  if(n == 1)return 1;
  return n * fact(n-1);
  }

int main(){
  string s;
  cin >> s;
  bool bus[2] = {false,false};
  string ans = "No";
  rep(i,3){
    if(s[i] == 'A' and bus[1] == false)bus[0] = true;
    else if(s[i] == 'A' and bus[1] == true)and = "Yes";
    else if(s[i] == 'B' and bus[0] == false)bus[1] = true;
    else if(s[i] == 'B' and bus[1] == true)ans = "Yes";
  }
  cout << ans << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:37:48: error: expected identifier before '=' token
   37 |     else if(s[i] == 'A' and bus[1] == true)and = "Yes";
      |                                                ^
Language: C++

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

// 最小公倍数を求める
int euqlid (int a, int b){
  int temp;
  temp = a % b;
  if(temp == 0)return b;
  return euqlid(b,temp);
}
ll conbination(ll a,ll b){
  ll u = 1;
  ll d = 1;
  while(b != 0){
    u *= a;
    d *= b;
    a--;
    b--;
  }
  return u / d;
}
int fact(int n){
  if(n == 1)return 1;
  return n * fact(n-1);
  }

int main(){
  string s;
  cin >> s;
  bool bus[2] = {false,false};
  string ans = "No";
  rep(i,3){
    if(s[i] == 'A' and bus[1] == false)bus[0] = true;
    else if(s[i] == 'A' and bus[1] == true)and = "Yes";
    else if(s[i] == 'B' and bus[0] == false)bus[1] = true;
    else if(s[i] == 'B' and bus == true)ans = "Yes";
  }
  cout << ans << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:37:48: error: expected identifier before '=' token
   37 |     else if(s[i] == 'A' and bus[1] == true)and = "Yes";
      |                                                ^
a.cc:39:33: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   39 |     else if(s[i] == 'B' and bus == true)ans = "Yes";
      |                             ~~~~^~~~~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:15: error: 'a' was not declared in this scope
    8 |   if(S.at(0)==a.at(1)&&S.at(0)==S.at(2))
      |               ^
Language: C++

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

int main() {
  string s;
  cin >> s;
  string ans = 'Yes';
  for (int i=1; i<3; i++) {
    if (s[i]!=s[i-1]) flag = 'No';
  }
  cout << ans << endl;
}

Compiler output:
a.cc:7:16: warning: multi-character character constant [-Wmultichar]
    7 |   string ans = 'Yes';
      |                ^~~~~
a.cc:9:30: warning: multi-character character constant [-Wmultichar]
    9 |     if (s[i]!=s[i-1]) flag = 'No';
      |                              ^~~~
a.cc: In function 'int main()':
a.cc:7:16: error: conversion from 'int' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
    7 |   string ans = 'Yes';
      |                ^~~~~
a.cc:9:23: error: 'flag' was not declared in this scope
    9 |     if (s[i]!=s[i-1]) flag = 'No';
      |                       ^~~~
Language: C++

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


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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:8: error: expected unqualified-id before '[' token
   10 |   if(s.[0] == s[1] && s[1] == s[2]){
      |        ^
Language: C++

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

int mod = 1000000007;

int main()
{
    int A, B;
    cin >> A >> B;
    bool x = true;
    for (int i = 0; i < 1010; i++)
    {
        if (i * 0.08 == A && &i * 0.1 == B)
        {
            cout << i;
            x = false;
            break;
        }
    }
    if(x)
        cout << -1;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:33: error: invalid operands of types 'int*' and 'double' to binary 'operator*'
   13 |         if (i * 0.08 == A && &i * 0.1 == B)
      |                              ~~ ^ ~~~
      |                              |    |
      |                              int* double
Language: C++

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

int mod = 1000000007;

int main()
{
    int A, B;
    cin >> A >> B;
    cool x = true;
    for (int i = 0; i < 1010; i++)
    {
        if (i * 0.08 == A && &i * 0.1 == B)
        {
            cout << i;
            x = false;
            break;
        }
    }
    if(x)
        cout << -1;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:5: error: 'cool' was not declared in this scope; did you mean 'cosl'?
   10 |     cool x = true;
      |     ^~~~
      |     cosl
a.cc:13:33: error: invalid operands of types 'int*' and 'double' to binary 'operator*'
   13 |         if (i * 0.08 == A && &i * 0.1 == B)
      |                              ~~ ^ ~~~
      |                              |    |
      |                              int* double
a.cc:16:13: error: 'x' was not declared in this scope
   16 |             x = false;
      |             ^
a.cc:20:8: error: 'x' was not declared in this scope
   20 |     if(x)
      |        ^
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:8:3: error: 'else' without a previous 'if'
    8 |   else if(s=="AAA");
      |   ^~~~
main.c:10:3: error: 'else' without a previous 'if'
   10 |   else if(s!="BBB"&&s!="AAA")
      |   ^~~~
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:10:3: error: 'else' without a previous 'if'
   10 |   else
      |   ^~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:8:3: error: 'else' without a previous 'if'
    8 |   else if(s=="AAA");
      |   ^~~~
main.c:10:3: error: 'else' without a previous 'if'
   10 |   else
      |   ^~~~
Language: C

#include<stdio.h>

int main(void){
   long int N,A,B,a,b;

   scanf("%ld%ld%ld",&N,&A,&B);
   a=N/(A+B)*A;
   b=N%(A+B);
   if(b>A)
     printf("%ld",a+A);
   else
     printf("%ld",a+b);
   return 0;


Compiler output:
main.c: In function 'main':
main.c:13:4: error: expected declaration or statement at end of input
   13 |    return 0;
      |    ^~~~~~
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:15:4: error: expected '}' at end of input
   15 |   }
      |    ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
	string s; cin >> s;
	cout << (s.find('A') + s.find('B') > 0 : "Yes" : "No") << "\n";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:47: error: expected ')' before ':' token
    5 |         cout << (s.find('A') + s.find('B') > 0 : "Yes" : "No") << "\n";
      |                 ~                             ^~
      |                                               )
Language: C++

#include <iostream>
#include <string>
#include <vector>
#include <set>
#include <algorithm>
#include <cmath>

using namespace std;

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

    if (s == "AAA" or s = "BBB") {
        cout << "No" << endl;
    }
    else {
        cout << "Yes" << endl;
    }

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:20: error: no match for 'operator||' (operand types are 'bool' and 'std::string' {aka 'std::__cxx11::basic_string<char>'})
   14 |     if (s == "AAA" or s = "BBB") {
      |         ~~~~~~~~~~ ^~ ~
      |           |           |
      |           bool        std::string {aka std::__cxx11::basic_string<char>}
a.cc:14:20: note: candidate: 'operator||(bool, bool)' (built-in)
   14 |     if (s == "AAA" or s = "BBB") {
      |         ~~~~~~~~~~~^~~~
a.cc:14:20: note:   no known conversion for argument 2 from 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'bool'
Language: C++

#include <bits/stdc++.h>
using namespace std;
using LL = long long;
using Graph = vector<vector<LL>>;

long long gcd(long long a, long long b){
  if (b==0) return a;
  else return gcd(b,a%b);
}
long long chmax(long long a,long long b){
  a = max(a,b);
}
long long chmin(long long a, long long b){
  a = min(a,b);
}
vector<bool> seen;
void dfs(const Graph &G, int v) {
    seen[v] = true;

    for (auto next_v : G[v]) { 
        if (seen[next_v]) continue;
        dfs(G, next_v);
    }
}



int main() {
  LL n,k,sum=0,a=0,b=0,c=0,d=0,ans=0;
  LL MOD = 1000000007;
  LL INF = 1LL << 60;
  string S="";
  cin >> S;
  if(S=="AAA" || S=="BBB") S = "No"
  else S = "Yes";
  cout << S << endl;
}

Compiler output:
a.cc: In function 'long long int chmax(long long int, long long int)':
a.cc:12:1: warning: no return statement in function returning non-void [-Wreturn-type]
   12 | }
      | ^
a.cc: In function 'long long int chmin(long long int, long long int)':
a.cc:15:1: warning: no return statement in function returning non-void [-Wreturn-type]
   15 | }
      | ^
a.cc: In function 'int main()':
a.cc:34:36: error: expected ';' before 'else'
   34 |   if(S=="AAA" || S=="BBB") S = "No"
      |                                    ^
      |                                    ;
   35 |   else S = "Yes";
      |   ~~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:7:8: error: expected expression before '}' token
    7 |   }else}
      |        ^
main.c: At top level:
main.c:8:16: error: expected declaration specifiers or '...' before string constant
    8 |         printf("Yes");
      |                ^~~~~
main.c:9:1: error: expected identifier or '(' before '}' token
    9 | }
      | ^
main.c:10:1: error: expected identifier or '(' before 'return'
   10 | return 0;
      | ^~~~~~
main.c:11:1: error: expected identifier or '(' before '}' token
   11 | }
      | ^
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:7:7: error: could not convert 's.std::__cxx11::basic_string<char>::operator=(((int)((char)((((const char*)"AAA") != 0) || std::operator==<char, char_traits<char>, allocator<char> >(s, ((const char*)"BBB"))))))' from 'std::__cxx11::basic_string<char>' to 'bool'
    7 |   if(s="AAA"||s=="BBB"){
      |      ~^~~~~~~~~~~~~~~~
      |       |
      |       std::__cxx11::basic_string<char>
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:9:3: error: 'else' without a previous 'if'
    9 |   else
      |   ^~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:11: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
    5 |   int main() {
      |           ^~
a.cc:5:11: note: remove parentheses to default-initialize a variable
    5 |   int main() {
      |           ^~
      |           --
a.cc:5:11: note: or replace parentheses with braces to value-initialize a variable
a.cc:5:14: error: a function-definition is not allowed here before '{' token
    5 |   int main() {
      |              ^
a.cc:12:2: error: expected '}' at end of input
   12 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:16: error: expected ')' before 'S'
    7 |   if(S != "AAA" S != "BBB")
      |     ~          ^~
      |                )
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:16: error: expected ')' before 'S'
    7 |   if(S != "AAA" S != "BBB"){
      |     ~          ^~
      |                )
a.cc:8:24: error: expected ';' before '}' token
    8 |   cout << "Yes" << endl
      |                        ^
      |                        ;
    9 |   }else{
      |   ~                     
a.cc:12:2: error: expected '}' at end of input
   12 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

#include <bits/stdc++.h>
#define repp(i,l,r)for(long long i=(l);i<(r);i++)
#define rep(i,n) for (long long i = 0; i < (n); ++i)
#define per(i,n) for (long long i = (n); i >= 0; --i)
const int INF = 2147483647;//int max
const long long int MOD = 1000000007;
using namespace std;
using ll = long long;
using P = pair<int,int>;
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return true; } return false; }
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return true; } return false; }
//ミョ(-ω- ?)
int main() {
    string s;
  cin >> s;
  map<char,int> m;
  rep(i,3)m[s[i]]++;
  if(m.size() > 1)cout << "YES\n";
  else cout << "NO\n"
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:22: error: expected ';' before 'return'
   19 |   else cout << "NO\n"
      |                      ^
      |                      ;
   20 |     return 0;
      |     ~~~~~~
Language: C++

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

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

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

#include<iostream>
#include <numeric>
#include <algorithm>
#include <cstdlib>
#include <string>
#include <bits/stdc++.h> 
using namespace std;

#define REP(i, a, b) \
for (int i = int(a); i <= int(b); i++) 
\

int main()
{
	cin>>s;
	int ca=0,cb=0;
	REP(i,0,2)
	{
		if(s[i]=='A')
			ca++;
		else
			cb++;
	}
	if(ca==3 || ca==2)
		cout<<"No";
	else
		cout<<"Yes";
	
	return 0;
}

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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:24: 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!=AAA||S!=BBB){
    cout<<"Yes"<<endl;
  }
  else
    cout<<"No"<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: 'AAA' was not declared in this scope
    7 |   if(S!=AAA||S!=BBB){
      |         ^~~
a.cc:7:17: error: 'BBB' was not declared in this scope
    7 |   if(S!=AAA||S!=BBB){
      |                 ^~~
Language: C++

<?php
$input = fgets(STDIN);
if($input == "AAA" || $input == "BBB"){
    echo "No";
}
else{
    echo "Yes";
}
?>


Compiler output:
a.cc:1:1: error: expected unqualified-id before '<' token
    1 | <?php
      | ^
a.cc:3:1: error: expected unqualified-id before 'if'
    3 | if($input == "AAA" || $input == "BBB"){
      | ^~
a.cc:6:1: error: expected unqualified-id before 'else'
    6 | else{
      | ^~~~
a.cc:9:1: error: expected unqualified-id before '?' token
    9 | ?>
      | ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:8: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |   if(S == "AAA" || "BBB"){
      |      ~~^~~~~~~~
Language: C

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

/*freopen("testcases/17.in", "r", stdin);
    freopen("output.txt", "w", stdout);*/

int main()
{
	ios::sync_with_stdio(false); cin.tie(0); cout.tie(0);
	int br1=0,br2=0;
	string s;
	cin >> s;
	if(s[0]='A')
        br1++;
    else
        br2++;
    if(s[1]='A')
        br1++;
    else
        br2++;
    if(s[2]='A')
        br1++;
    else
        br2++;
    if(br1==2 || br2==2)
        cout << "Yes";
    else
        cout << "No";
}


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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:7: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    6 |   if(s=="AAA") cout<<"No"<<endl;
      |      ~^~~~~~~
a.cc:7:12: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |   else if(s=="BBB") cout<<"No"<<endl;
      |           ~^~~~~~~