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

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

int main() {
  string s;
  cin >> s;
  bool k=true;
  for(int i=0;i<3;i++) {
    if(s.at(i)=="A") {
      continue;
    }
    else if(s.at(1)=="B") {
      break;
    }
    else if(s.at(i)=="B") {
      k=false;
      break;
    }
    else{
    }
  }
  for(int i=0;i<3;i++) {
    if(s.at(i)=="B") {
      continue;
    }
    else if(s.at(1)=="A") {
      break;
    }
    else if(s.at(i)=="A") {
      k=false;
      break;
    }
    else{
    }
  }
  if(k==true) {
    cout << "Yes" <<endl;
  }
  else {
    cout << "No" <<endl;
  }
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |     if(s.at(i)=="A") {
      |        ~~~~~~~^~~~~
a.cc:12:20: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 |     else if(s.at(1)=="B") {
      |             ~~~~~~~^~~~~
a.cc:15:20: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   15 |     else if(s.at(i)=="B") {
      |             ~~~~~~~^~~~~
a.cc:23:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   23 |     if(s.at(i)=="B") {
      |        ~~~~~~~^~~~~
a.cc:26:20: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   26 |     else if(s.at(1)=="A") {
      |             ~~~~~~~^~~~~
a.cc:29:20: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   29 |     else if(s.at(i)=="A") {
      |             ~~~~~~~^~~~~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:11:10: error: 'strstr' was not declared in this scope
   11 |     if ( strstr(s,a) && strstr(s,b) ) {
      |          ^~~~~~
a.cc:2:1: note: 'strstr' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    1 | #include <iostream>
  +++ |+#include <cstring>
    2 | using namespace std;
Language: C++

#include <string>
#include <iostream>
std::string text;
std::cin >> text;
char a = text[0];
int flag = 0;
 
int i;
for (i=1; i < 3; i++) {
	if (text[i] != a) {
      std::cout << "No";
      flag = 1;
      break;
    }
}
 
if (!flag) {
  std::cout << "Yes";
}

Compiler output:
a.cc:4:6: error: 'cin' in namespace 'std' does not name a type
    4 | std::cin >> text;
      |      ^~~
In file included from a.cc:2:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:9:1: error: expected unqualified-id before 'for'
    9 | for (i=1; i < 3; i++) {
      | ^~~
a.cc:9:11: error: 'i' does not name a type
    9 | for (i=1; i < 3; i++) {
      |           ^
a.cc:9:18: error: 'i' does not name a type
    9 | for (i=1; i < 3; i++) {
      |                  ^
a.cc:17:1: error: expected unqualified-id before 'if'
   17 | if (!flag) {
      | ^~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:14: error: 's' was not declared in this scope
    8 |   if(S[0] == s[1] and s[1] == s[2]) cout << "No" << endl;
      |              ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:5: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
    5 |   b="AAA";
      |     ^~~~~
      |     |
      |     const char*
a.cc:6:5: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
    6 |   c="BBB";
      |     ^~~~~
      |     |
      |     const char*
Language: C++

#include<iostream>
using namespace std;
 
int main(){
	char a,b,c;

	cin >> a >> b >> c;

 	if(a == b && b == c) {
    	cout << "Yes" << endl;
    } else if(a != b || a != c || b != c){
    	cout << "No" << endl;
    }
      
	cout << r << endl;

	return 0;		 
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:17: error: 'r' was not declared in this scope
   15 |         cout << r << endl;
      |                 ^
Language: Java

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

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

	}

}


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

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

int main() {
  string s;
  cin >> s;
  bool k=true;
  for(int i=0;i<3,i++) {
    if(s.at(i)=="A") {
      continue;
    }
    else if(s.at(1)=="B") {
      break;
    }
    else if(s.at(i)=="B") {
      k=false;
      break;
    }
    else{
    }
  }
  for(int i=0;i<3;i++) {
    if(s.at(i)=="B") {
      continue;
    }
    else if(s.at(1)=="A") {
      break;
    }
    else if(s.at(i)=="A") {
      k=false;
      break;
    }
    else{
    }
  }
  if(k==true) {
    cout << "Yes" <<endl;
  }
  else {
    cout << "No" <<endl;
  }
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:22: error: expected ';' before ')' token
    8 |   for(int i=0;i<3,i++) {
      |                      ^
      |                      ;
a.cc:9:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |     if(s.at(i)=="A") {
      |        ~~~~~~~^~~~~
a.cc:12:20: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 |     else if(s.at(1)=="B") {
      |             ~~~~~~~^~~~~
a.cc:15:20: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   15 |     else if(s.at(i)=="B") {
      |             ~~~~~~~^~~~~
a.cc:23:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   23 |     if(s.at(i)=="B") {
      |        ~~~~~~~^~~~~
a.cc:26:20: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   26 |     else if(s.at(1)=="A") {
      |             ~~~~~~~^~~~~
a.cc:29:20: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   29 |     else if(s.at(i)=="A") {
      |             ~~~~~~~^~~~~
Language: C++

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

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

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

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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:5:10: error: storage size of 's' isn't known
    5 |     char s[];
      |          ^
a.cc:9:14: error: expected primary-expression before ']' token
    9 |     cin >> s[];
      |              ^
a.cc:11:10: error: 'strstr' was not declared in this scope
   11 |     if ( strstr(s,a) && strstr(s,b) ) {
      |          ^~~~~~
a.cc:2:1: note: 'strstr' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    1 | #include <iostream>
  +++ |+#include <cstring>
    2 | using namespace std;
Language: C++

#include <string>
std::string text;
std::cin >> text;
char a = text[0];
int flag = 0;
 
for (int i=1; i < 3; i++) {
	if (text[i] != a) {
      std::cout << "No";
      flag = 1;
      break;
    }
}
 
if (!flag) {
  std::cout << "Yes";
}


Compiler output:
a.cc:3:6: error: 'cin' in namespace 'std' does not name a type
    3 | std::cin >> text;
      |      ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include <string>
  +++ |+#include <iostream>
    2 | std::string text;
a.cc:7:1: error: expected unqualified-id before 'for'
    7 | for (int i=1; i < 3; i++) {
      | ^~~
a.cc:7:15: error: 'i' does not name a type
    7 | for (int i=1; i < 3; i++) {
      |               ^
a.cc:7:22: error: 'i' does not name a type
    7 | for (int i=1; i < 3; i++) {
      |                      ^
a.cc:15:1: error: expected unqualified-id before 'if'
   15 | if (!flag) {
      | ^~
Language: C++

s=input()
if 'AB' in s or 'BA' in s:
	print('Yes')
else:
	print('No')

Compiler output:
a.cc:2:4: warning: multi-character character constant [-Wmultichar]
    2 | if 'AB' in s or 'BA' in s:
      |    ^~~~
a.cc:2:17: warning: multi-character character constant [-Wmultichar]
    2 | if 'AB' in s or 'BA' in s:
      |                 ^~~~
a.cc:3:15: warning: multi-character character constant [-Wmultichar]
    3 |         print('Yes')
      |               ^~~~~
a.cc:5:15: warning: multi-character character constant [-Wmultichar]
    5 |         print('No')
      |               ^~~~
a.cc:1:1: error: 's' does not name a type
    1 | s=input()
      | ^
Language: C++

import java.util.*;

public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        char[] c = s.toCharArray();
        char tmp = c[0];
        boolean f = false;
        for(char tc : c){
            if(tc != tmp)f=true;
            tmp = tc;
        }
        if(f){
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    }
}

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:3:1: error: expected unqualified-id before 'public'
    3 | public class Main{
      | ^~~~~~
Language: C++

#include <string>
std::string text;
cin >> text;
char a = text[0];
int flag = 0;
 
for (int i=1; i < 3; i++) {
	if (text[i] != a) {
      std::cout << "No";
      flag = 1;
      break;
    }
}
 
if (!flag) {
  std::cout << "Yes";
}


Compiler output:
a.cc:3:1: error: 'cin' does not name a type
    3 | cin >> text;
      | ^~~
a.cc:7:1: error: expected unqualified-id before 'for'
    7 | for (int i=1; i < 3; i++) {
      | ^~~
a.cc:7:15: error: 'i' does not name a type
    7 | for (int i=1; i < 3; i++) {
      |               ^
a.cc:7:22: error: 'i' does not name a type
    7 | for (int i=1; i < 3; i++) {
      |                      ^
a.cc:15:1: error: expected unqualified-id before 'if'
   15 | if (!flag) {
      | ^~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:18:11: error: 'Yes' was not declared in this scope
   18 |     cout<<Yes;
      |           ^~~
a.cc:20:11: error: 'No' was not declared in this scope
   20 |     cout<<No;
      |           ^~
Language: Java

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

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

/*g++ main.cpp -o main.out*/
/*./main.out*/

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

#define LL long long
#define LD long double
#define Mod 1000000007
#define L_Mod 17100000013

const double eps = 1e-9;
const int INF = 0x3f3f3f3f;
const double PI = 3.1415926535;

#define NO_TLE std::ios::sync_with_stdio(false);cin.tie(0);cout.tie(0);

#define ree(a,n) memset(a,n,sizeof(a));

#define rep(i,n) for(int (i)=0;(i)<(int)(n);++(i))
#define rer(i,l,u) for(int (i)=(int)(l);(i)<=(int)(u);++(i))
#define red(i,l,u) for(int (i)=(int)(l);(i)>=(int)(u);--(i))

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


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

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

int main() {

  string str1;
  cin >> str1;

  if(str1=="AAA"){
  cout << "Yes" << endl; 
  }
  
  else if(str1="BBB"){
     cout << "Yes" << endl; 
  }

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


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

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

}


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

#for _ in range(int(input())):
s=input()
if(s=="AAA" or s=="BBB"):
    print("No")
else:
    print("Yes")
            
    
    

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #for
    1 | #for _ in range(int(input())):
      |  ^~~
a.cc:2:1: error: 's' does not name a type
    2 | s=input()
      | ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:5:16: error: uninitialized 'const s' [-fpermissive]
    5 |     const char s[];
      |                ^
a.cc:5:16: error: storage size of 's' isn't known
a.cc:9:14: error: expected primary-expression before ']' token
    9 |     cin >> s[];
      |              ^
a.cc:11:10: error: 'strstr' was not declared in this scope
   11 |     if ( strstr(s,a) && strstr(s,b) ) {
      |          ^~~~~~
a.cc:2:1: note: 'strstr' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    1 | #include <iostream>
  +++ |+#include <cstring>
    2 | using namespace std;
Language: C

#include<stdio.h>

int main(void)
{
    char s[3];
    scanf("%c", &s[0]);

    if (s[0] == s[1])
    {
        if (s[1] == s[2])
        {
            printf("Yes");
        }
        else
        {
            printf("No");
        }
    }
    else if (s[1] == s[2])
    {
        if (s[0] == s[1])
        {
            printf("Yes");
        }
        else
        {
            printf("No");
        }
    }
    else if (s[0] == s[2])
    {
        if (s[2] == s[1])
        {
            printf("Yes");
        }
        else
        {
            printf("No");
        }

        return 0;
    }

Compiler output:
main.c: In function 'main':
main.c:42:5: error: expected declaration or statement at end of input
   42 |     }
      |     ^
Language: C++

#include<iostream>
using namespace std;
int main()
{
  char s[100];
  int count1=0,count2=0;
  printf("enter the station A or B");
  for(int i=0;s[i]!=0;i++)
  {
    if(s[i]=='A')
      count1++;
    else
      count2++;
  }
  if(count1%2==0||count2%2==0)
    cout<<"yes"<<endl;
  else
    cout<<"no"<<endl;

Compiler output:
a.cc: In function 'int main()':
a.cc:18:22: error: expected '}' at end of input
   18 |     cout<<"no"<<endl;
      |                      ^
a.cc:4:1: note: to match this '{'
    4 | {
      | ^
Language: C++

std::string text;
cin >> text;
char a = text[0];
int flag = 0;

for (int i=1; i < 3; i++) {
	if (text[i] != a) {
      std::cout << "No";
      flag = 1;
      break;
    }
}

if (!flag) {
  std::cout << "Yes";
}


Compiler output:
a.cc:1:6: error: 'string' in namespace 'std' does not name a type
    1 | std::string text;
      |      ^~~~~~
a.cc:1:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
  +++ |+#include <string>
    1 | std::string text;
a.cc:2:1: error: 'cin' does not name a type
    2 | cin >> text;
      | ^~~
a.cc:3:10: error: 'text' was not declared in this scope
    3 | char a = text[0];
      |          ^~~~
a.cc:6:1: error: expected unqualified-id before 'for'
    6 | for (int i=1; i < 3; i++) {
      | ^~~
a.cc:6:15: error: 'i' does not name a type
    6 | for (int i=1; i < 3; i++) {
      |               ^
a.cc:6:22: error: 'i' does not name a type
    6 | for (int i=1; i < 3; i++) {
      |                      ^
a.cc:14:1: error: expected unqualified-id before 'if'
   14 | if (!flag) {
      | ^~
Language: C

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

int main(void)
{
    int s[3];
    scanf("%c", &s[]);

    if (s[0] == s[1])
    {
        if (s[1] == s[2])
        {
            printf("Yes");
        }
        else
        {
            printf("No");
        }
    }
    else if (s[1] == s[2])
    {
        if (s[0] == s[1])
        {
            printf("Yes");
        }
        else
        {
            printf("No");
        }
    }
    else if (s[0] == s[2])
    {
        if (s[2] == s[1])
        {
            printf("Yes");
        }
        else
        {
            printf("No");
        }

        return 0;
    }
提出情報

Compiler output:
main.c: In function 'main':
main.c:48:20: error: expected expression before ']' token
   48 |     scanf("%c", &s[]);
      |                    ^
main.c:85:1: error: '\U000063d0\U000051fa\U000060c5\U00005831' undeclared (first use in this function)
   85 | 提出情報
      | ^~~~~~~~
main.c:85:1: note: each undeclared identifier is reported only once for each function it appears in
main.c:85:9: error: expected ';' at end of input
   85 | 提出情報
      |         ^
      |         ;
main.c:85:1: error: expected declaration or statement at end of input
   85 | 提出情報
      | ^~~~~~~~
main.c: In function 'main':
main.c:85:1: error: expected declaration or statement at end of input
Language: C

#include <stdio.h>

int main(){
  int i,m=0;
  char c;
  for(i=0;i<3;i++){
  	scanf("%d",&c);
    if(C=='A') m++;
  }
  if((m==0)||(m==3)){
    printf("No");
  }else{
    printf("Yes");
  }
  return(0);
}


Compiler output:
main.c: In function 'main':
main.c:8:8: error: 'C' undeclared (first use in this function)
    8 |     if(C=='A') m++;
      |        ^
main.c:8:8: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

The explanation for sample input 2 is incorrect. It's the same as sample input 1.

Compiler output:
a.cc:1:52: warning: missing terminating ' character
    1 | The explanation for sample input 2 is incorrect. It's the same as sample input 1.
      |                                                    ^
a.cc:1:52: error: missing terminating ' character
    1 | The explanation for sample input 2 is incorrect. It's the same as sample input 1.
      |                                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
a.cc:1:1: error: 'The' does not name a type
    1 | The explanation for sample input 2 is incorrect. It's the same as sample input 1.
      | ^~~
Language: C++

/*版权所有，拷贝必究！*/
/*若想获得，请联系许希泉*/
#include<bits/stdc++.h>
#pragma GCC optimize("O999")
const int INF = 0x3f3f3f3f;
int maxn=5000005;
using namespace std;

bool is_pal(string a)
{
    string s=a;
    reverse(s.begin(),s.end());
    if(s==a)
    return true;
    else
    return false;
}
bool is_prime(int n)
{
    if(n==1)
	return false;
    if(n==2||n==3)
	return true;
    if(n%6!=1&&n%6!=5)
	return false;
    for(register int i=5;i*i<=n;i+=6)
    if(n%i==0||n%(i+2)==0)
	return false;
    return true;
}
int main()
{
 	//freopen(".in","r",stdin);
	//freopen(".out","w",stdout);
	ios::sync_with_stdio(0);
	string s1,s2;
    int n,m,x,y,sum=0;
    cin>>s1;
    if(s1!="AAA"&&s1!="BBB")
    cout<<"Yes";
    else
    cout<<"No"
    return 0;
}


Compiler output:
a.cc: In function 'bool is_prime(int)':
a.cc:26:22: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
   26 |     for(register int i=5;i*i<=n;i+=6)
      |                      ^
a.cc: In function 'int main()':
a.cc:42:15: error: expected ';' before 'return'
   42 |     cout<<"No"
      |               ^
      |               ;
   43 |     return 0;
      |     ~~~~~~
Language: C++

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

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

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		String S = sc.next();
		String isDiff = "No";

		char station = S.charAt(0);
		for (int i = 1; i < 3; i++) {
			char temp = S.charAt(i);
			if (station != temp) {
				isDiff = "Yes";
			}
		}

		System.out.println(isDiff);

		sc.close();
	}

Compiler output:
Main.java:22: error: reached end of file while parsing
	}
	 ^
1 error
Language: C++

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

}


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

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

int main(void)
{
    int s[3];
    scanf("%c", &s[]);

    if (s[0] == s[1])
    {
        if (s[1] == s[2])
        {
            printf("Yes");
        }
        else
        {
            printf("No");
        }
    }
    else if (s[1] == s[2])
    {
        if (s[0] == s[1])
        {
            printf("Yes");
        }
        else
        {
            printf("No");
        }
    }
    else if (s[0] == s[2])
    {
        if (s[2] == s[1])
        {
            printf("Yes");
        }
        else
        {
            printf("No");
        }

        return 0;
    }

Compiler output:
main.c: In function 'main':
main.c:48:20: error: expected expression before ']' token
   48 |     scanf("%c", &s[]);
      |                    ^
main.c:84:5: error: expected declaration or statement at end of input
   84 |     }
      |     ^
main.c: In function 'main':
main.c:84:5: error: expected declaration or statement at end of input
Language: C++

#include <bits/stdc++.h>

using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:40: error: expected ';' before '}' token
   10 |     if (s[i] == 'A' || s[i] == 'B') c++
      |                                        ^
      |                                        ;
   11 |   }
      |   ~                                     
a.cc:13:22: error: expected ';' before 'return'
   13 |   else cout << "No\n"
      |                      ^
      |                      ;
   14 | 
   15 |  return 0;
      |  ~~~~~~
Language: Java

import java.io.PrintWriter
val pw = PrintWriter(System.out)


fun main(args: Array<String>) {
    val S = next()

    if(S[0] == S[1] && S[1] == S[2] && S[0] == S[2]){
        println("No")
    }else{
        println("Yes")
    }
}

fun func() {

}



fun next() = readLine()!!
fun nextInt() = next().toInt()
fun nextLong() = next().toLong()
fun nextDouble() = next().toDouble()
fun nextListOfString() = next().split(" ")
fun nextListOfInt() = nextListOfString().map { it.toInt() }
fun nextListOfLong() = nextListOfString().map { it.toLong() }
fun nextListOfDouble() = nextListOfString().map { it.toDouble() }



Compiler output:
Main.java:1: error: ';' expected
import java.io.PrintWriter
                          ^
1 error
Language: C++

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

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

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

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

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

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

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


}


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

#include<stdio.h>
#include <string>
int main(){
  char a;
  scanf("&d",a);
  if(a=="AAA"||a=="BBB"){
    printf("No");
  }else{
    printf("Yes");
  }
}

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

#include<bits/stdc++.h>
using namespace std;
int main{
  string s;
  cin >> s;
  bool ans = true;
  for(int i=1; i<s.length(); i++){
    if(s[i-1] != s[i]){
      // cout << "No";
      ans = false;
      break;
    }
  }
  ans ? cout<<"Yes\n" : cout<<"No\n";
  return 0;
}

Compiler output:
a.cc:3:5: error: cannot declare '::main' to be a global variable
    3 | int main{
      |     ^~~~
a.cc:4:10: error: expected primary-expression before 's'
    4 |   string s;
      |          ^
a.cc:4:10: error: expected '}' before 's'
a.cc:3:9: note: to match this '{'
    3 | int main{
      |         ^
a.cc:5:3: error: 'cin' does not name a type
    5 |   cin >> s;
      |   ^~~
a.cc:7:3: error: expected unqualified-id before 'for'
    7 |   for(int i=1; i<s.length(); i++){
      |   ^~~
a.cc:7:16: error: 'i' does not name a type
    7 |   for(int i=1; i<s.length(); i++){
      |                ^
a.cc:7:30: error: 'i' does not name a type
    7 |   for(int i=1; i<s.length(); i++){
      |                              ^
a.cc:14:3: error: 'ans' does not name a type
   14 |   ans ? cout<<"Yes\n" : cout<<"No\n";
      |   ^~~
a.cc:15:3: error: expected unqualified-id before 'return'
   15 |   return 0;
      |   ^~~~~~
a.cc:16:1: error: expected declaration before '}' token
   16 | }
      | ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:5:7: error: subscripted value is neither array nor pointer nor vector
    5 |   if(s[0]==A){
      |       ^
main.c:5:12: error: 'A' undeclared (first use in this function)
    5 |   if(s[0]==A){
      |            ^
main.c:5:12: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:9: error: subscripted value is neither array nor pointer nor vector
    6 |     if(s[1]==B)
      |         ^
main.c:6:14: error: 'B' undeclared (first use in this function)
    6 |     if(s[1]==B)
      |              ^
main.c:8:9: error: subscripted value is neither array nor pointer nor vector
    8 |     if(s[2]==B)
      |         ^
main.c:13:7: error: subscripted value is neither array nor pointer nor vector
   13 |   if(s[1]==A){
      |       ^
main.c:14:9: error: subscripted value is neither array nor pointer nor vector
   14 |     if(s[0]==B)
      |         ^
main.c:16:9: error: subscripted value is neither array nor pointer nor vector
   16 |     if(s[2]==B)
      |         ^
main.c:21:7: error: subscripted value is neither array nor pointer nor vector
   21 |   if(s[2]==A){
      |       ^
main.c:22:9: error: subscripted value is neither array nor pointer nor vector
   22 |     if(s[0]==B)
      |         ^
main.c:24:9: error: subscripted value is neither array nor pointer nor vector
   24 |     if(s[1]==B)
      |         ^
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main() {
  string s;
  cin >> s;
  int c = 0;
  for (int i = 0; i < 3; ++i) {
    if (s[i] == A || s[i] == B) c++
  }
  if (c > 1) cout << "Yes\n";
  else cout << "No\n"
  
 return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:17: error: 'A' was not declared in this scope
   10 |     if (s[i] == A || s[i] == B) c++
      |                 ^
a.cc:10:30: error: 'B' was not declared in this scope
   10 |     if (s[i] == A || s[i] == B) c++
      |                              ^
a.cc:10:36: error: expected ';' before '}' token
   10 |     if (s[i] == A || s[i] == B) c++
      |                                    ^
      |                                    ;
   11 |   }
      |   ~                                 
a.cc:13:22: error: expected ';' before 'return'
   13 |   else cout << "No\n"
      |                      ^
      |                      ;
   14 | 
   15 |  return 0;
      |  ~~~~~~
Language: C

#include<stdio.h>

int main(void)
{
    int s[3];
    scanf("%c", &s[]);

    if (s[0] == s[1])
    {
        if (s[1] == s[2])
        {
            printf("Yes");
        }
        else
        {
            printf("No");
        }
    }
    else if (s[1] == s[2])
    {
        if (s[0] == s[1])
        {
            printf("Yes");
        }
        else
        {
            printf("No");
        }
    }
    else if (s[0] == s[2])
    {
        if (s[2] == s[1])
        {
            printf("Yes");
        }
        else
        {
            printf("No");
        }

        return 0;
    }

Compiler output:
main.c: In function 'main':
main.c:6:20: error: expected expression before ']' token
    6 |     scanf("%c", &s[]);
      |                    ^
main.c:42:5: error: expected declaration or statement at end of input
   42 |     }
      |     ^
Language: C++

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

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

Compiler output:
a.cc:3:7: error: expected nested-name-specifier before 'namesace'
    3 | using namesace std;
      |       ^~~~~~~~
a.cc:5:5: error: cannot declare '::main' to be a global variable
    5 | int main{
      |     ^~~~
a.cc:6:9: error: 'string' was not declared in this scope
    6 |         string s(3, 'c');
      |         ^~~~~~
a.cc:6:9: 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:16: error: expected '}' before 's'
    6 |         string s(3, 'c');
      |                ^
a.cc:5:9: note: to match this '{'
    5 | int main{
      |         ^
a.cc:7:9: error: 'cin' does not name a type
    7 |         cin >> s;
      |         ^~~
a.cc:10:9: error: expected unqualified-id before 'for'
   10 |         for(int i=0; i<3; ++i){
      |         ^~~
a.cc:10:22: error: 'i' does not name a type
   10 |         for(int i=0; i<3; ++i){
      |                      ^
a.cc:10:27: error: expected unqualified-id before '++' token
   10 |         for(int i=0; i<3; ++i){
      |                           ^~
a.cc:20:3: error: 'cout' does not name a type
   20 |   cout << "No";
      |   ^~~~
a.cc:21:1: error: expected declaration before '}' token
   21 | }
      | ^
Language: C++

#include <bits/stdc++.h>
#define int long long
signed main() {
	char ch[4];
	cin >> ch;
	int a, b;
	for (int i = 0; i < 4; i++) {
		if (ch[i] == 'A') a++;
		if (ch[i] == 'B') b++;
	}
	if (a && b) {
		cout << "Yes" << endl;
	}
	else {
		cout << "No" << endl;
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |         cin >> ch;
      |         ^~~
      |         std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:12:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   12 |                 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:12:34: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   12 |                 cout << "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)
      |     ^~~~
a.cc:15:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   15 |                 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:15:33: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   15 |                 cout << "No" << endl;
      |                                 ^~~~
      |                                 std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include<bits/stdc++.h>
 
using namespace std;
 
 
#define mod(cans) cans%10**9+7
#define debug(x) cout << "Debug" << x << "\n"
#define rep(i,n) for(int i=0;i<n;i++)
#define repr(i,n) for(int i=n-1;i>=0;i--)
#define rep1(i,n) for(int i=1;i<=n;i++)
#define cin_pl(n,x) rep(i,n){cin>>x[i];}
#define all(a) (a).begin(),(a).end()
#define rall(a) (a).rbegin(),(a).rend()
#define prians(Answer) cout<<Answer<<"\n"
#define TF(X) X==1?cout<<"Yes\n":cout<<"No\n"
#define elcon else{continue;}
 
typedef long long ll;
typedef vector<int> vi;
typedef vector<ll> vll;
typedef vector<string> vs;
typedef vector<vector<int> > matrix;
typedef pair<int,int> pii;
typedef vector<pii> vpi;
typedef greater<int> gi;
typedef vector<unsigned> vu;


ll gcd(ll x, ll y) { return (y == 0) ? x : gcd(y, x % y); }
bool is_prime(const unsigned n){
    switch(n){
        case 0:
        case 1: return false;
        case 2: return true;
    }
 
 
    for(unsigned i=2;i<n;++i){
        if(n%i == 0) return false;
    }
 
    return true;
}

int main()
{
    string s;cin>>s;
    if(s[0]==s[1]&&s[1]==s[2])int x=1;else int x=0;
    TF(x);
}


Compiler output:
a.cc: In function 'int main()':
a.cc:49:8: error: 'x' was not declared in this scope
   49 |     TF(x);
      |        ^
a.cc:15:15: note: in definition of macro 'TF'
   15 | #define TF(X) X==1?cout<<"Yes\n":cout<<"No\n"
      |               ^
Language: C++

#include <bit/stdc++.h>

using namespace std;

int main() {
  string s;
  cin >> s;
  int c = 0;
  for (int i = 0; i < 3; ++i) {
    if (s[i] == A || s[i] == B) c++
  }
  if (c > 1) cout << "Yes\n";
  else cout << "No\n"
  
 return 0;
}

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

#include<bits/stdc++.h>
 
using namespace std;
 
 
#define mod(cans) cans%10**9+7
#define debug(x) cout << "Debug" << x << "\n"
#define rep(i,n) for(int i=0;i<n;i++)
#define repr(i,n) for(int i=n-1;i>=0;i--)
#define rep1(i,n) for(int i=1;i<=n;i++)
#define cin_pl(n,x) rep(i,n){cin>>x[i];}
#define all(a) (a).begin(),(a).end()
#define rall(a) (a).rbegin(),(a).rend()
#define prians(Answer) cout<<Answer<<"\n"
#define TF(X) X==1?cout<<"Yes\n":cout<<"No\n"
#define elcon else{continue;}
 
typedef long long ll;
typedef vector<int> vi;
typedef vector<ll> vll;
typedef vector<string> vs;
typedef vector<vector<int> > matrix;
typedef pair<int,int> pii;
typedef vector<pii> vpi;
typedef greater<int> gi;
typedef vector<unsigned> vu;


ll gcd(ll x, ll y) { return (y == 0) ? x : gcd(y, x % y); }
bool is_prime(const unsigned n){
    switch(n){
        case 0:
        case 1: return false;
        case 2: return true;
    }
 
 
    for(unsigned i=2;i<n;++i){
        if(n%i == 0) return false;
    }
 
    return true;
}

int main()
{
    string s;cin>>s;
    if(s[0]==s[1]&&s[1]==s[2])int x=1;else x=0;
    TF(x);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:48:44: error: 'x' was not declared in this scope
   48 |     if(s[0]==s[1]&&s[1]==s[2])int x=1;else x=0;
      |                                            ^
a.cc:49:8: error: 'x' was not declared in this scope
   49 |     TF(x);
      |        ^
a.cc:15:15: note: in definition of macro 'TF'
   15 | #define TF(X) X==1?cout<<"Yes\n":cout<<"No\n"
      |               ^
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main()
{
  string a, b, c;

  cin >> a >> b >> c;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:17:10: error: expected ';' before '}' token
   17 |     "Yes"
      |          ^
      |          ;
   18 |   }
      |   ~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:5:76: error: expected ')' before '{' token
    5 |     if((a[0]=='A'&&a[1]=='A'&&a[2]=='A')||(a[0]=='B'&&a[1]=='B'&&a[2]=='B'){
      |       ~                                                                    ^
      |                                                                            )
main.c:11:8: error: expected expression before '}' token
   11 |        }
      |        ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |   if(s.at(1)=="A"&&s.at(2)=="A"&&s.at(3)=="A") {
      |      ~~~~~~~^~~~~
a.cc:7:27: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |   if(s.at(1)=="A"&&s.at(2)=="A"&&s.at(3)=="A") {
      |                    ~~~~~~~^~~~~
a.cc:7:41: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |   if(s.at(1)=="A"&&s.at(2)=="A"&&s.at(3)=="A") {
      |                                  ~~~~~~~^~~~~
a.cc:10:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |   else if(s.at(1)=="B"&&s.at(2)=="B"&&s.at(3)=="B") {
      |           ~~~~~~~^~~~~
a.cc:10:32: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |   else if(s.at(1)=="B"&&s.at(2)=="B"&&s.at(3)=="B") {
      |                         ~~~~~~~^~~~~
a.cc:10:46: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |   else if(s.at(1)=="B"&&s.at(2)=="B"&&s.at(3)=="B") {
      |                                       ~~~~~~~^~~~~
Language: C

#include<stido.h>

int main(void)
{
    int s[3];
    scanf("%c", &s[]);

    if (s[0] == s[1])
    {
        if (s[1] == s[2])
        {
            printf("Yes");
        }
        else
        {
            printf("No");
        }
    }
    else if (s[1] == s[2])
    {
        if (s[0] == s[1])
        {
            printf("Yes");
        }
        else
        {
            printf("No");
        }
    }
    else if (s[0] == s[2])
    {
        if (s[2] == s[1])
        {
            printf("Yes");
        }
        else
        {
            printf("No");
        }

        return 0;
    }

Compiler output:
main.c:1:9: fatal error: stido.h: No such file or directory
    1 | #include<stido.h>
      |         ^~~~~~~~~
compilation terminated.