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

    #include <bits/stdc++.h>
    using namespace std;
    #define F(i,a,b) for(int i=a;i<=b;i++);
     
    int main{
      string s;
      cin>>s;
      
      set <char> con;
      F(i,0,2) con.insert(s[i]);
      if(con.size()>1) cout<<"Yes";
      else cout<<"No";
    }

Compiler output:
a.cc:5:9: error: cannot declare '::main' to be a global variable
    5 |     int main{
      |         ^~~~
a.cc:6:14: error: expected primary-expression before 's'
    6 |       string s;
      |              ^
a.cc:6:14: error: expected '}' before 's'
a.cc:5:13: note: to match this '{'
    5 |     int main{
      |             ^
a.cc:7:7: error: 'cin' does not name a type
    7 |       cin>>s;
      |       ^~~
a.cc:3:22: error: expected unqualified-id before 'for'
    3 |     #define F(i,a,b) for(int i=a;i<=b;i++);
      |                      ^~~
a.cc:10:7: note: in expansion of macro 'F'
   10 |       F(i,0,2) con.insert(s[i]);
      |       ^
a.cc:10:9: error: 'i' does not name a type
   10 |       F(i,0,2) con.insert(s[i]);
      |         ^
a.cc:3:34: note: in definition of macro 'F'
    3 |     #define F(i,a,b) for(int i=a;i<=b;i++);
      |                                  ^
a.cc:10:9: error: 'i' does not name a type
   10 |       F(i,0,2) con.insert(s[i]);
      |         ^
a.cc:3:39: note: in definition of macro 'F'
    3 |     #define F(i,a,b) for(int i=a;i<=b;i++);
      |                                       ^
a.cc:10:16: error: 'con' does not name a type
   10 |       F(i,0,2) con.insert(s[i]);
      |                ^~~
a.cc:11:7: error: expected unqualified-id before 'if'
   11 |       if(con.size()>1) cout<<"Yes";
      |       ^~
a.cc:12:7: error: expected unqualified-id before 'else'
   12 |       else cout<<"No";
      |       ^~~~
a.cc:13:5: error: expected declaration before '}' token
   13 |     }
      |     ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define F(i,a,b) for(int i=a;i<=b;i++)

int main{
  string s;
  cin>>s;
  
  set <char> con;
  F(i,0,2) con.insert(s[i]);
  if(s.size()>1) cout<<"Yes";
  else cout<<"No";
}

Compiler output:
a.cc:5:5: error: cannot declare '::main' to be a global variable
    5 | int main{
      |     ^~~~
a.cc:6:10: error: expected primary-expression before 's'
    6 |   string s;
      |          ^
a.cc:6:10: error: expected '}' before 's'
a.cc:5:9: note: to match this '{'
    5 | int main{
      |         ^
a.cc:7:3: error: 'cin' does not name a type
    7 |   cin>>s;
      |   ^~~
a.cc:3:18: error: expected unqualified-id before 'for'
    3 | #define F(i,a,b) for(int i=a;i<=b;i++)
      |                  ^~~
a.cc:10:3: note: in expansion of macro 'F'
   10 |   F(i,0,2) con.insert(s[i]);
      |   ^
a.cc:10:5: error: 'i' does not name a type
   10 |   F(i,0,2) con.insert(s[i]);
      |     ^
a.cc:3:30: note: in definition of macro 'F'
    3 | #define F(i,a,b) for(int i=a;i<=b;i++)
      |                              ^
a.cc:10:5: error: 'i' does not name a type
   10 |   F(i,0,2) con.insert(s[i]);
      |     ^
a.cc:3:35: note: in definition of macro 'F'
    3 | #define F(i,a,b) for(int i=a;i<=b;i++)
      |                                   ^
a.cc:11:3: error: expected unqualified-id before 'if'
   11 |   if(s.size()>1) cout<<"Yes";
      |   ^~
a.cc:12:3: error: expected unqualified-id before 'else'
   12 |   else cout<<"No";
      |   ^~~~
a.cc:13:1: error: expected declaration before '}' token
   13 | }
      | ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:5:9: error: conflicting types for 'a'; have 'int'
    5 |   int i,a=0,b=0;
      |         ^
main.c:3:6: note: previous declaration of 'a' with type 'char[3]'
    3 | char a[3];
      |      ^
Language: C

#include <stdio.h>
int main(void) {
	int num[2] = {};

	char ch;
	while( (ch = putchar()) != EOF ) {
		num[ch - 'A'] ++;
	}
	if( num[0] && num[1] ) {
		printf("Yes\n");
	}else{
		printf("No\n");
	}
	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:6:22: error: too few arguments to function 'putchar'
    6 |         while( (ch = putchar()) != EOF ) {
      |                      ^~~~~~~
In file included from main.c:1:
/usr/include/stdio.h:618:12: note: declared here
  618 | extern int putchar (int __c);
      |            ^~~~~~~
Language: C++

#include <stdio.h>
int main(void) {
	int num[2] = {};

	char ch;
	while( (ch = putchar()) != EOF ) {
		num[ch - 'A'] ++;
	}
	if( num[0] && num[1] ) {
		printf("Yes\n");
	}else{
		printf("No\n");
	}
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:29: error: too few arguments to function 'int putchar(int)'
    6 |         while( (ch = putchar()) != EOF ) {
      |                      ~~~~~~~^~
In file included from a.cc:1:
/usr/include/stdio.h:618:12: note: declared here
  618 | extern int putchar (int __c);
      |            ^~~~~~~
Language: Java

import java.util.Scanner;

/**
 * Created 2017/05/25.
 * nextLineの挙動とか
 */
public class Main {
   public static void main(String[] args) {
      Scanner sc = new Scanner(System.in);
      long N = sc.nextInt();
      long b = sc.nextInt();
      long r = sc.nextInt();
     
      long s = b+r;
      long cnt = N / s;
      long mod = N % s;
      long p = Math.min(mod,b)
      long sum = b * cnt;
      long result = sum + p;
     System.out.println(result);
   }
}


Compiler output:
Main.java:17: error: ';' expected
      long p = Math.min(mod,b)
                              ^
1 error
Language: Java

import java.util.Scanner;

/**
 * Created 2017/05/25.
 * nextLineの挙動とか
 */
public class Main {
   public static void main(String[] args) {
      Scanner sc = new Scanner(System.in);
      int N = sc.nextInt();
      int b = sc.nextInt();
      int r = sc.nextInt();
     
      int s = b+r;
      int cnt = N / s;
      int mod = N % s;
      int p = 0 ;
        if(mod =< b){
          p = mod;
        }
	 int sum = b * cnt;
     int result = sum + p;
     System.out.println(result);
   }
}


Compiler output:
Main.java:18: error: > or ',' expected
        if(mod =< b){
                   ^
1 error
Language: Java


public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        // 数字の入力
        int N = sc.nextInt();
        int A = sc.nextInt();
        int B = sc.nextInt();
        int C = A+B;
        // Nを指定した場合のあまり
        int L = N%C;
        // 計算用
        int target= A*(N/C) + Integer.min(L, A);
        // 出力
        System.out.println(target);
    }
}

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

#include<bits/stdc++.h>

using namespace std;
int ans;
int main()
{
  string s;
  int a=s.size（）;
  cin>>s;
  for(int i=0;i<a;i++)
  {
	if(!s[i]=='A'&&!s[i]=='B')
      ans=0;
    else 
      ans=1
  }
  if(ans=0) cout<<"No";
  else cout<<"Yes";
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:11: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'size\U0000ff08\U0000ff09'
    8 |   int a=s.size（）;
      |           ^~~~~~~~
a.cc:15:12: error: expected ';' before '}' token
   15 |       ans=1
      |            ^
      |            ;
   16 |   }
      |   ~
Language: Java

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

		// 文字列の入力
		String s1 = sc.next();
        String s2 = sc.next();
        String s3 = sc.next();
        String s = s1+s2+s3;
        if(s.equal("AAA")||s.equal("BBB")){
          System.out.println("NO");
        }else{
          System.out.println("YES");
        }
	}
}


Compiler output:
Main.java:11: error: cannot find symbol
        if(s.equal("AAA")||s.equal("BBB")){
            ^
  symbol:   method equal(String)
  location: variable s of type String
Main.java:11: error: cannot find symbol
        if(s.equal("AAA")||s.equal("BBB")){
                            ^
  symbol:   method equal(String)
  location: variable s of type String
2 errors
Language: Java

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

		// 文字列の入力
		String s1 = sc.next;
        String s2 = sc.next;
        String s3 = sc.next;
        String s = s1+s2+s3;
        if(s.equal("AAA")||s.equal("BBB")){
          System.out.println("NO");
        }else{
          System.out.println("YES");
        }
	}
}


Compiler output:
Main.java:7: error: cannot find symbol
		String s1 = sc.next;
		              ^
  symbol:   variable next
  location: variable sc of type Scanner
Main.java:8: error: cannot find symbol
        String s2 = sc.next;
                      ^
  symbol:   variable next
  location: variable sc of type Scanner
Main.java:9: error: cannot find symbol
        String s3 = sc.next;
                      ^
  symbol:   variable next
  location: variable sc of type Scanner
Main.java:11: error: cannot find symbol
        if(s.equal("AAA")||s.equal("BBB")){
            ^
  symbol:   method equal(String)
  location: variable s of type String
Main.java:11: error: cannot find symbol
        if(s.equal("AAA")||s.equal("BBB")){
                            ^
  symbol:   method equal(String)
  location: variable s of type String
5 errors
Language: Java

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

		// 文字列の入力
		String s1 = sc.next;
        String s2 = sc.next;
        String s3 = sc.next;
        String s = s1+s2+s3;
        if(s.equal("AAA")||s.equal("BBB")||){
          System.out.println("NO");
        }else{
          System.out.println("YES");
        }
	}
}

Compiler output:
Main.java:11: error: illegal start of expression
        if(s.equal("AAA")||s.equal("BBB")||){
                                           ^
1 error
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:4:8: error: expected identifier or '(' before 'S'
    4 |   char 'S'[];
      |        ^~~
main.c:6:19: error: expected expression before ']' token
    6 |   scanf("%s",&'S'[]);
      |                   ^
main.c:8:6: error: 'S' undeclared (first use in this function)
    8 |   if(S[0]==S[1]&&S[1]==S[2])    printf("No");
      |      ^
main.c:8:6: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:4:8: error: array size missing in 'S'
    4 |   char S[];
      |        ^
main.c:6:17: error: expected expression before ']' token
    6 |   scanf("%s",&S[]);
      |                 ^
Language: C

#include<stdio.h>
int main() {
 char s[3]=0;
 int count=0;
  for(int i=0;i<3;i++){
    scanf("%c",&s[i]);
    if((s[i]=='A')||(s[i]=='B')){
      count++;
    }
  }
  
  if(count==3){
  	printf("Yes");
  }else{
  	printf("No");
  }
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:3:12: error: invalid initializer
    3 |  char s[3]=0;
      |            ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define intput(i) cout << i << endl
#define ll long long
#define stringput(s) cout << (string)(s) << endl
#define or ||

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

Compiler output:
a.cc:7:9: error: "or" cannot be used as a macro name as it is an operator in C++
    7 | #define or ||
      |         ^~
Language: C++

#include <iostream>
#include <string>
#include <algorithm>
using namespace std;
 
int main(){
  long long N, A, B, div, a;
  cin >> N >> A >> B;
  div = N / (A + B);
  a = N % (A+B);
  out = int(div)*A + min(a, A);
  cout << out << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:3: error: 'out' was not declared in this scope
   11 |   out = int(div)*A + min(a, A);
      |   ^~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main()
{
  string s;
  int ca=0;cb=0;
  char ch;
  cin>>s;
  int l=s.length();
  for(int i=0;i<l;i++)
  {
    ch=s.at(i);
    if(ch=='A')
      ca++;
    else
      cb++;
  }
  if(ca==3||cb==3)
    cout<<"No"<<endl;
  else
    cout<<"Yes"<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:12: error: 'cb' was not declared in this scope; did you mean 'ca'?
    6 |   int ca=0;cb=0;
      |            ^~
      |            ca
Language: C++

#include <bits.stdc++.h>
using namespace std;
int main()
{
  string s;
  int ca=0;cb=0;
  char ch;
  cin>>s;
  int l=s.length();
  for(int i=0;i<l;i++)
  {
    ch=s.at(i);
    if(ch=='A')
      ca++;
    else
      cb++;
  }
  if(ca==3||cb==3)
    cout<<"No"<<endl;
  else
    cout<<"Yes"<<endl;
}

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

#include<bits/stdc++.h>
using namespace std
  int main()
{
  char s[4];
  cin>>s;
  int i,flag=1;
  char c=s[0];
  for(i=0;i<4;++i)
  {	if(s[i]!=c)
    {
      flag=0;
      break;
    }
}
  if(flag==0)
    cout<<"No";
  else
    cout<<"Yes";
  return 0;
}

Compiler output:
a.cc:2:20: error: expected ';' before 'int'
    2 | using namespace std
      |                    ^
      |                    ;
    3 |   int main()
      |   ~~~
Language: Java

import java.util.Scanner;

public class Application {
     public static void main(String [] args) {
        Scanner scanner = new Scanner(System.in);
        String stations = scanner.nextLine();
        if (stations.contains("AB") || stations.contains("BA")) {
            System.out.println("Yes");
        }
        else {
            System.out.println("No");
        }
    }
}


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

#include <iostram>

using namespace std;

bool test(char&,char&,char&,char);

int main()
{
  char S[3] = {0};
  
  cin >> S[1];
  cin >> S[2];
  cin >> S[3];
  
  if(test(S[1],S[2],S[3],'A'))
  {
    cout << "No" << endl;
  }
  else if(test(S[1],S[2],S[3],'B'))
  {
    cout << "No" << endl;
  }
  else
  {
    cout << "Yes" << endl;
  }
}

bool test(char &a,char &b,char &c,char d)
{
  return a == d && b == d && c == d;
}


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

#include <bits/stdc++.h>
using namespace std;
int main(){
  map<char, int> m;
  map<char, int>::iterator itr;
  string given;
  cin >> given;
  for(int i = 0; i < given.size(); i++){
    m[given[i]]++;
  }
  for(itr = m.begin(); itr != m.end(); ++i){
    if(m->second > 1 && m->second != given.size()){
      cout << "Yes";
      return 0;
    }
  }
  return 0;
}
  
#include <bits/stdc++.h>
using namespace std;
int main(){
  map<char, int> m;
  map<char, int>::iterator itr;
  string given;
  cin >> given;
  for(int i = 0; i < given.size(); i++){
    m[given[i]]++;
  }
  for(itr = m.begin(); itr != m.end(); itr++){
    if(itr->second > 1 && itr->second != given.size()){
      cout << "Yes";
      return 0;
    }
  }
  return 0;
}
 

Compiler output:
a.cc: In function 'int main()':
a.cc:11:42: error: 'i' was not declared in this scope
   11 |   for(itr = m.begin(); itr != m.end(); ++i){
      |                                          ^
a.cc:12:9: error: base operand of '->' has non-pointer type 'std::map<char, int>'
   12 |     if(m->second > 1 && m->second != given.size()){
      |         ^~
a.cc:12:26: error: base operand of '->' has non-pointer type 'std::map<char, int>'
   12 |     if(m->second > 1 && m->second != given.size()){
      |                          ^~
a.cc: At global scope:
a.cc:22:5: error: redefinition of 'int main()'
   22 | int main(){
      |     ^~~~
a.cc:3:5: note: 'int main()' previously defined here
    3 | int main(){
      |     ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  map<char, int> m;
  map<char, int>::iterator itr;
  string given;
  cin >> given;
  for(int i = 0; i < given.size(); i++){
    m[given[i]]++;
  }
  for(itr = m.begin(); itr != m.end(); ++i){
    if(m->second > 1 && m->second != given.size()){
      cout << "Yes";
      return 0;
    }
  }
  return 0;
}
  

Compiler output:
a.cc: In function 'int main()':
a.cc:11:42: error: 'i' was not declared in this scope
   11 |   for(itr = m.begin(); itr != m.end(); ++i){
      |                                          ^
a.cc:12:9: error: base operand of '->' has non-pointer type 'std::map<char, int>'
   12 |     if(m->second > 1 && m->second != given.size()){
      |         ^~
a.cc:12:26: error: base operand of '->' has non-pointer type 'std::map<char, int>'
   12 |     if(m->second > 1 && m->second != given.size()){
      |                          ^~
Language: Java

import java.util.Scanner;
class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String str = sc.next();
    if(str.charAt(0)==str.charAt(1) && str.charAt(1) == str.charAr(2)){
      System.out.println("Yes");
    }else{
      System.out.println("No");
    }
  }
  
}

Compiler output:
Main.java:6: error: cannot find symbol
    if(str.charAt(0)==str.charAt(1) && str.charAt(1) == str.charAr(2)){
                                                           ^
  symbol:   method charAr(int)
  location: variable str of type String
1 error
Language: Java

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


Compiler output:
Main.java:4: error: cannot find symbol
    Scanner scan = new Scan(System.in);
                       ^
  symbol:   class Scan
  location: class Main
1 error
Language: Java

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


Compiler output:
Main.java:4: error: cannot find symbol
    Scanner scan = new scan(System.in);
                       ^
  symbol:   class scan
  location: class Main
1 error
Language: Java

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

Compiler output:
Main.java:9: error: unclosed character literal
      System.out.println('Yes');
                         ^
Main.java:9: error: unclosed character literal
      System.out.println('Yes');
                             ^
Main.java:9: error: not a statement
      System.out.println('Yes');
                           ^
3 errors
Language: C

#include<stdio.h>
int main(void)
{
  char S[5];
  char c;
  int k;
  for(k=0;k<3;k++)
  {
  scanf("%s",&S[k]);
  }
  if(s[0]==S[1]&&s[0]==S[2])
  {
    printf("NO\n");
  }
  else
  {
    printf("Yes\n");
  }
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:6: error: 's' undeclared (first use in this function)
   11 |   if(s[0]==S[1]&&s[0]==S[2])
      |      ^
main.c:11:6: note: each undeclared identifier is reported only once for each function it appears in
Language: Java

    public static void main(String args[]) {

        boolean yORn = false;
        String answer = "No";

        if (args.toString().contains("A")) {
            if (args.toString().contains("B")) {
                yORn = true;
            }
        }
        if (yORn) {
            answer = "Yes";
        }

        System.out.print(answer);
    }

Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
    public static void main(String args[]) {
                  ^
  (use --enable-preview to enable unnamed classes)
1 error
Language: Java

	   private static void ret(String target) {
        boolean yORn = false;
        String answer = "No";

        if(target.contains("A")) {
            if(target.contains("B")) {
                yORn = true;
            }
        }
        if(yORn) {
            answer = "Yes";
        }

System.out.print(answer);
    }

Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
	   private static void ret(String target) {
	                  ^
  (use --enable-preview to enable unnamed classes)
1 error
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:6:37: error: expected expression before '?' token
    6 |   if (s[0] == s[1] && s[1] == s[2]) ? puts("No") : puts("Yes");
      |                                     ^
Language: C++

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

int main() {

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:8: error: request for member 'at' in 's', which is of non-class type 'int'
    8 |   if(s.at(0)==s.at(1) && s.at(1)==s.at(2)){
      |        ^~
a.cc:8:17: error: request for member 'at' in 's', which is of non-class type 'int'
    8 |   if(s.at(0)==s.at(1) && s.at(1)==s.at(2)){
      |                 ^~
a.cc:8:28: error: request for member 'at' in 's', which is of non-class type 'int'
    8 |   if(s.at(0)==s.at(1) && s.at(1)==s.at(2)){
      |                            ^~
a.cc:8:37: error: request for member 'at' in 's', which is of non-class type 'int'
    8 |   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;
  	char c;
  	cin>>s;
  	c = s[0];
  	for(int i =1;i<3;i++){
      	if (c != s[i]){
          	cout<<"Yes"<<endl;
          	break;
        }
    }
  	if (i ==3){
      cout<<"No"<<endl;
    }
  	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:13: error: 'i' was not declared in this scope
   16 |         if (i ==3){
      |             ^
Language: C++

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

int main(){
  string S;
  cin >> S;
  bool a = false;
  bool b = faise;
  for(int i=0;i<3;i=i+1){
    if(S.at(i) == 'A')a=true;
    else if(S.at(i) == 'B')b=true;
  }
  if(a && b)cout << "Yes" << endl;
  else cout << "No" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: 'faise' was not declared in this scope; did you mean 'raise'?
    8 |   bool b = faise;
      |            ^~~~~
      |            raise
Language: Java

import java.util.Scanner

public class Main {
	static Scanner sc = new Scanner(System.in);
    
    public static void main(String[] args) {
    	String s = sc.nextLine();
        if(s.equals("AAA") || s.equals("BBB"))
        	System.out.println("No");
        else
        	System.out.println("Yes");
    }
}

Compiler output:
Main.java:1: error: ';' expected
import java.util.Scanner
                        ^
1 error
Language: C

#include <stdio.h>
int main(){
  char s[3];
  int sum = 0;
    scanf("%s",&s);
    for(int i = 0;i<3;i++){
      if(s[i]=='A'){
        sum = sum + 1;
      }
    }
      if(sum == 0 || sum == 3){
        printf("No");
      }
      else {
        printf("Yes");
      }
    }
}

Compiler output:
main.c:18:1: error: expected identifier or '(' before '}' token
   18 | }
      | ^
Language: C

#include <stdio.h>
int main(){
  char s[3];
  int sum = 0;
    scanf("%s",&s);
    for(int i = 0;i<3;i++){
      if(s[i]=='A'){
        sum = sum + 1;
      }
    }
      if(sum == 0 || sum == 3){
        printf("Yes");
      }
      else {
        printf("No");
      }
    }
}

Compiler output:
main.c:18:1: error: expected identifier or '(' before '}' token
   18 | }
      | ^
Language: C

#include <stdio.h>
int main(){
  char s[3];
  int sum = 0;
    scanf("%s",s);
    for(int i = 0;i>3;i++){
      if(s[i]=='A'){
        sum = sum + 1
      }
      if(sum == 0 || sum == 3){
        printf("Yes")
      }
      else {
        printf("No")
      }
    }
}

Compiler output:
main.c: In function 'main':
main.c:8:22: error: expected ';' before '}' token
    8 |         sum = sum + 1
      |                      ^
      |                      ;
    9 |       }
      |       ~               
main.c:11:22: error: expected ';' before '}' token
   11 |         printf("Yes")
      |                      ^
      |                      ;
   12 |       }
      |       ~               
main.c:14:21: error: expected ';' before '}' token
   14 |         printf("No")
      |                     ^
      |                     ;
   15 |       }
      |       ~
Language: C++

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

deque<char> deq;
int main()
{
    string s;
    cin>>s;
    for(auto tmp : s)
        deq.push_back(tmp);
    bool on=false;
    int q;
    cin>>q;
    while(q--)
	{
        int t;
        cin>>t;
        if(t==1)
			on^=true;
        else
		{
            int f;
            cin>>f;
            char c;
            cin>>c;
            if(on^(F==1))
				deq.push_front(c);
            else
				deq.push_back(c);
        }
    }
    string ans;
    for(auto tmp : deq)
		ans.push_back(tmp);
    if(on)
		reverse(ans.begin(),ans.end());
    cout<<ans;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:26:20: error: 'F' was not declared in this scope
   26 |             if(on^(F==1))
      |                    ^
Language: C

#include <stdio.h>
int main(){
 char s[3];
 int sum;
  sum = 0;
  
  scanf("%s",&s);
  for(int i = 0;i < 3; i++){
    if(s[i] == 'A'){
      sum = sum + 1;
    }
  } 
    if(sum == 1 || count == 3){
      printf("No");
    }
    else {
      printf("Yes");
    }
  }

Compiler output:
main.c: In function 'main':
main.c:13:20: error: 'count' undeclared (first use in this function)
   13 |     if(sum == 1 || count == 3){
      |                    ^~~~~
main.c:13:20: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>
int main(){
 char s[3];
 int sum = 0;
  scanf("%s",&s);
  for(int i = 0;i < 3; i++){
    if(s[i] == 'A'){
      sum = sum + 1;
    }
    if(sum == 1 || count == 3){
      printf("No");
    }
    else {
      printf("Yes");
    }
  }

Compiler output:
main.c: In function 'main':
main.c:10:20: error: 'count' undeclared (first use in this function)
   10 |     if(sum == 1 || count == 3){
      |                    ^~~~~
main.c:10:20: note: each undeclared identifier is reported only once for each function it appears in
main.c:16:3: error: expected declaration or statement at end of input
   16 |   }
      |   ^
Language: Java

import java.util.Scanner;

public class Solution {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        String S = sc.next();
        int a = 0;
        int b = 0;
        for (int i = 0 ; i < S.length(); i++){
            if (S.charAt(i) == 'A')
                a ++;
            else
                b ++;
        }
        System.out.println(a > 0 && b > 0 ? "Yes" : "No");
        sc.close();
    }
}


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

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

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namespaces'
    2 | using namespaces std ;
      |       ^~~~~~~~~~
a.cc: In function 'int main()':
a.cc:5:9: error: 'string' was not declared in this scope
    5 |         string s ;
      |         ^~~~~~
a.cc:5: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:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |         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:14: error: 's' was not declared in this scope
    6 |         cin>>s ;
      |              ^
a.cc:8:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |                 cout<<"No"<<endl ;
      |                 ^~~~
      |                 std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:8:29: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |                 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:10:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |                 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:10:30: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   10 |                 cout<<"Yes"<<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(void){
  std::string input = "";
  std::cin >> input;
  if (input.find("A") != std::string::npos && input.find("B") != std::string::npos)
    std::cout << "Yes"
  else
    std::cout << "No"
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:23: error: expected ';' before 'else'
    8 |     std::cout << "Yes"
      |                       ^
      |                       ;
    9 |   else
      |   ~~~~
Language: C++

#include <iostream>
#include <string>
 
int main(void){
  std::string input = "";
  std::cin >> input;
  if (input.find("A") != string::npos && input.find("B") != string::npos)
    std::cout << "Yes"
  else
    std::cout << "No"
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:26: error: 'string' has not been declared
    7 |   if (input.find("A") != string::npos && input.find("B") != string::npos)
      |                          ^~~~~~
a.cc:7:61: error: 'string' has not been declared
    7 |   if (input.find("A") != string::npos && input.find("B") != string::npos)
      |                                                             ^~~~~~
a.cc:8:23: error: expected ';' before 'else'
    8 |     std::cout << "Yes"
      |                       ^
      |                       ;
    9 |   else
      |   ~~~~
Language: C++

#include <iostream>
#include <string>
 
int main(void){
  std::string input = "";
  std::cin >> input;
  if (input.find("A") != string::npos && input.find("B") != string:npos)
    std::cout << "Yes"
  else
    std::cout << "No"
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:26: error: 'string' has not been declared
    7 |   if (input.find("A") != string::npos && input.find("B") != string:npos)
      |                          ^~~~~~
a.cc:7:67: error: found ':' in nested-name-specifier, expected '::'
    7 |   if (input.find("A") != string::npos && input.find("B") != string:npos)
      |                                                                   ^
      |                                                                   ::
a.cc:7:61: error: 'string' has not been declared
    7 |   if (input.find("A") != string::npos && input.find("B") != string:npos)
      |                                                             ^~~~~~
a.cc:8:23: error: expected ';' before 'else'
    8 |     std::cout << "Yes"
      |                       ^
      |                       ;
    9 |   else
      |   ~~~~
Language: C++

#include <iostream>
#include <string>

int main(void){
  std::string input = "";
  std::cin >> input;
  if input.find("A") != string::npos && input.find("B") != string:npos
    std::cout << "Yes"
  else
    std::cout << "No"
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:6: error: expected '(' before 'input'
    7 |   if input.find("A") != string::npos && input.find("B") != string:npos
      |      ^~~~~
      |      (
Language: Java

import java.util.Scanner;
 
public class Main {
 
	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ

//ここから書き換える
		Scanner sc = new Scanner (System.in);
		
		String stationStr  = sc.next();
		String[] staArr = new String[3];
		boolean busFlg=false;
		String result;

		for(int i=0;i<3;i++){
			staArr[i]=stationStr.substring(i,i+1);
		}
		
		for(int i=0;i<2;i++){
			if(staArr[i].equals(staArr[i+1]){
				//隣の駅と一致したら何もしない
			}else{
				busFlg=true;
				break;
			}
		}


		result = (busFlg == true) ? "Yes" : "no"
		System.out.println(result);



//ここまで書き換える
	}
 
}

Compiler output:
Main.java:21: error: ')' expected
			if(staArr[i].equals(staArr[i+1]){
			                                ^
Main.java:30: error: ';' expected
		result = (busFlg == true) ? "Yes" : "no"
		                                        ^
2 errors
Language: C++

#include <iostream>
#include <string>
#include <algorithm>
using namespace std;
 
string S[5];
int N;
 
for(i=0; i<N; i++) cin>>S[i];
if(S[0]==S[1]==S[2]){
  cout << "Yes" << endl;
}else{
  cout << "No" << endl;


Compiler output:
a.cc:9:1: error: expected unqualified-id before 'for'
    9 | for(i=0; i<N; i++) cin>>S[i];
      | ^~~
a.cc:9:10: error: 'i' does not name a type
    9 | for(i=0; i<N; i++) cin>>S[i];
      |          ^
a.cc:9:15: error: 'i' does not name a type
    9 | for(i=0; i<N; i++) cin>>S[i];
      |               ^
a.cc:10:1: error: expected unqualified-id before 'if'
   10 | if(S[0]==S[1]==S[2]){
      | ^~
a.cc:12:2: error: expected unqualified-id before 'else'
   12 | }else{
      |  ^~~~
Language: C++

#include <iostream>
#include <string>
#include <algorithm>
using namespace std;
 
string S[5];
int N;
 
for(i=0; i++; i<N) cin>>S[i];
if(S[0]==S[1]==S[2]){
  cout << "Yes" << endl;
}else{
  cout << "No" << endl;

Compiler output:
a.cc:9:1: error: expected unqualified-id before 'for'
    9 | for(i=0; i++; i<N) cin>>S[i];
      | ^~~
a.cc:9:10: error: 'i' does not name a type
    9 | for(i=0; i++; i<N) cin>>S[i];
      |          ^
a.cc:9:15: error: 'i' does not name a type
    9 | for(i=0; i++; i<N) cin>>S[i];
      |               ^
a.cc:10:1: error: expected unqualified-id before 'if'
   10 | if(S[0]==S[1]==S[2]){
      | ^~
a.cc:12:2: error: expected unqualified-id before 'else'
   12 | }else{
      |  ^~~~
Language: C++

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

string S[5];
int N;

for(i=0; i++; i<N) cin>>S[0];
if(S[0]==S[1]==S[2]){
  cout << "Yes" << endl;
}else{
  cout << "No" << endl;

Compiler output:
a.cc:9:1: error: expected unqualified-id before 'for'
    9 | for(i=0; i++; i<N) cin>>S[0];
      | ^~~
a.cc:9:10: error: 'i' does not name a type
    9 | for(i=0; i++; i<N) cin>>S[0];
      |          ^
a.cc:9:15: error: 'i' does not name a type
    9 | for(i=0; i++; i<N) cin>>S[0];
      |               ^
a.cc:10:1: error: expected unqualified-id before 'if'
   10 | if(S[0]==S[1]==S[2]){
      | ^~
a.cc:12:2: error: expected unqualified-id before 'else'
   12 | }else{
      |  ^~~~
Language: C++

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

//省略形
#define rep(i,n) for(auto i=0; i<n ; ++i)
#define REP(i,a,b) for(auto i=a; i<b; ++i)
#define all(v) (v).begin() , (v).end()
using ll = long long;
using vi = vector<int>;
using vl = vector<ll>;
using vc = vector<char>;
using vs = vector<string>;
using vvi = vector<vector<int>>;
using vvl = vector<vector<ll>>;
using vvc = vector<vector<char>>;
using pii = pair<int , int>;
using pll = pair<long long , long long>;

//よく使う定数
const int INF = 1e9;
const int MOD = 1e9+7;
//逆元
const int INV = 1e9+5;

//UnionFindTree
struct union_find{
  vector<int> data;
  union_find(int size) : data(size , -1) { }

  void merge(int x , int y){
    x = root(x); y = root(y);
    if(x == y) return;
    if(data[y] < data[x]) swap(x , y);
    data[x] += data[y];
    data[y] = x;
    return; 
  }

  bool same(int x , int y){
    x = root(x) , y = root(y);
    return x == y;
  }

  int root(int x){
    return data[x] < 0 ? x : (data[x] = root(data[x]));
  }

  int size(int x){
    return -data[root(x)];
  }
};

//プロトタイプ宣言
void faster(void);
template <class T>
T get_digent(T);
template <class T>
T POW(T , T);
template <class T>
T modpow(T , T , T);

//メモ
//最大公約数:__gcd　|　最小公倍数:__lcm


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


























//同期解除
void faster(void){
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
}

//桁数取得
template <class T>
T get_digent(auto x){
  string s;
  s = to_string(x);
  ll digent = s.size();
  return digent;
} 

//繰り返し自乗法
template <class T>
T POW(T x, T y){
  if(y==0) return 1;
  if(y%2 == 1){
    ll temp = POW(x,y-1);
    return (temp*x);
  }
  else{
    ll temp = POW(x,y/2);
    return temp*temp;
  }
} 

//繰り返し自乗法(剰余)
template <class T>
T modpow(T x , T y , T mod){
  if(y == 0) return 1;
  if(y%2 == 1){
    ll temp = modpow(x,y-1,mod);
    return temp*x%mod;
  }
  else{
    ll temp = pow_mod(x,y/2,mod);
    return temp*temp%mod;
  }
}



Compiler output:
a.cc: In function 'int main()':
a.cc:68:3: error: 'stirng' was not declared in this scope
   68 |   stirng s;
      |   ^~~~~~
a.cc:69:10: error: 's' was not declared in this scope; did you mean 'vs'?
   69 |   cin >> s;
      |          ^
      |          vs
a.cc: At global scope:
a.cc:110:14: warning: use of 'auto' in parameter declaration only available with '-std=c++20' or '-fconcepts'
  110 | T get_digent(auto x){
      |              ^~~~
Language: C++

#include <bits/stdc++.h>

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:8:31: error: expected primary-expression before '=' token
    8 |         if (s == "AAA" or s === "BBB") cout << "No" << endl;
      |                               ^
Language: C++

#incldue <bits/stdc++.h>

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:1:2: error: invalid preprocessing directive #incldue; did you mean #include?
    1 | #incldue <bits/stdc++.h>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:6:9: error: 'string' was not declared in this scope
    6 |         string s;
      |         ^~~~~~
a.cc:1:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
  +++ |+#include <string>
    1 | #incldue <bits/stdc++.h>
a.cc:7:9: error: 'cin' was not declared in this scope
    7 |         cin >> s;
      |         ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #incldue <bits/stdc++.h>
a.cc:7:16: error: 's' was not declared in this scope
    7 |         cin >> s;
      |                ^
a.cc:8:31: error: expected primary-expression before '=' token
    8 |         if (s == "AAA" or s === "BBB") cout << "No" << endl;
      |                               ^
a.cc:8:40: error: 'cout' was not declared in this scope
    8 |         if (s == "AAA" or s === "BBB") cout << "No" << endl;
      |                                        ^~~~
a.cc:8:40: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:8:56: error: 'endl' was not declared in this scope
    8 |         if (s == "AAA" or s === "BBB") cout << "No" << endl;
      |                                                        ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #incldue <bits/stdc++.h>
a.cc:9:14: error: 'cout' was not declared in this scope
    9 |         else cout << "Yes" << endl;
      |              ^~~~
a.cc:9:14: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:9:31: error: 'endl' was not declared in this scope
    9 |         else cout << "Yes" << endl;
      |                               ^~~~
a.cc:9:31: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

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

int main() {
  string str;
  cin >> str;
  cout << ((str.find("A")==string:npos || str.find("B")==string:npos) 
            ? "Yes" : "No") << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:34: error: found ':' in nested-name-specifier, expected '::'
    8 |   cout << ((str.find("A")==string:npos || str.find("B")==string:npos)
      |                                  ^
      |                                  ::
a.cc:8:64: error: found ':' in nested-name-specifier, expected '::'
    8 |   cout << ((str.find("A")==string:npos || str.find("B")==string:npos)
      |                                                                ^
      |                                                                ::
Language: C++

/** 
 * THIS IS CFMASTER'S CODE !
 * HACK IT IF YOU CAN !
**/
#include <bits/stdc++.h>

using namespace std;

const int MAX = 1010;

int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  string s;
  cin >> s;
  cout << (s[0] == s[1] && s[1] == s[2]  && a[0] == 'A' ? "NO" : "YES") << '\n';
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:45: error: 'a' was not declared in this scope
   16 |   cout << (s[0] == s[1] && s[1] == s[2]  && a[0] == 'A' ? "NO" : "YES") << '\n';
      |                                             ^
Language: C++

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:10: error: 'c' was not declared in this scope
    8 |     cin>>c; if(c=='a') a++;
      |          ^
Language: Java

import java.io.*;
import java.util.*;

public class main {
	static PrintWriter out;
	static StringBuilder sb;
	static long mod = 998244353;

	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		out = new PrintWriter(System.out);
		String s=sc.nextLine();
		if(s.contains("A") && s.contains("B"))
			out.print("Yes");
		else
			out.print("No");
		out.flush();
	}

	static long modPow(long a, long e)

	{
		long res = 1;
		while (e > 0) {
			if ((e & 1) == 1)
				res = (res * a) % mod;
			a = (a * a) % mod;
			e >>= 1;
		}
		return res;
	}

	static class Scanner {
		StringTokenizer st;
		BufferedReader br;

		public Scanner(InputStream system) {
			br = new BufferedReader(new InputStreamReader(system));
		}

		public Scanner(String file) throws Exception {
			br = new BufferedReader(new FileReader(file));
		}

		public String next() throws IOException {
			while (st == null || !st.hasMoreTokens())
				st = new StringTokenizer(br.readLine());
			return st.nextToken();
		}

		public String nextLine() throws IOException {
			return br.readLine();
		}

		public int nextInt() throws IOException {
			return Integer.parseInt(next());
		}

		public double nextDouble() throws IOException {
			return Double.parseDouble(next());
		}

		public char nextChar() throws IOException {
			return next().charAt(0);
		}

		public Long nextLong() throws IOException {
			return Long.parseLong(next());
		}

		public boolean ready() throws IOException {
			return br.ready();
		}

		public void waitForInput() throws InterruptedException {
			Thread.sleep(3000);
		}
	}
}

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

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





return 0;
}

Compiler output:
a.cc:4:1: error: expected initializer before 'int'
    4 | int main(){
      | ^~~
Language: Java

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;

public class atcoder_158_A {
	static class FastReader{
		BufferedReader br;
		StringTokenizer st;
		public FastReader() {
			br =  new BufferedReader(new InputStreamReader(System.in));
		}
		String next() {
			while(st==null || !st.hasMoreElements()) {
				try {
					st = new StringTokenizer(br.readLine());
					
				}
				catch(IOException e) {
					e.printStackTrace();
				}
				
			}
			return st.nextToken();
		}
		int nextInt() {
			return Integer.parseInt(next());
		}
	}
	public static void main(String[] args) {
		FastReader ob = new FastReader();
		String s = ob.next();
		int arr[] = new int[2];
		for(int i=0;i<s.length();i++) {
			arr[s.charAt(i)-'A']++;
		}
		if(arr[0]==3 || arr[1]==3) {
			System.out.println("No");
			return;
		}
		System.out.println("Yes");
		
	}

}


Compiler output:
Main.java:6: error: class atcoder_158_A is public, should be declared in a file named atcoder_158_A.java
public class atcoder_158_A {
       ^
1 error