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

#include<iostream>
#include<string>

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'string' was not declared in this scope
    6 |   string input;
      |   ^~~~~~
a.cc:6:3: note: suggested alternatives:
In file included from /usr/include/c++/14/iosfwd:41,
                 from /usr/include/c++/14/ios:40,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
In file included from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44:
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:7:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |   cin >> input;
      |   ^~~
      |   std::cin
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:7:10: error: 'input' was not declared in this scope; did you mean 'int'?
    7 |   cin >> input;
      |          ^~~~~
      |          int
a.cc:9:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |     cout << "No";
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:11:8: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |   else cout << "Yes";
      |        ^~~~
      |        std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#include<iostream>
#include<string>

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:3:3: error: 'string' was not declared in this scope
    3 |   string input;
      |   ^~~~~~
a.cc:4:3: error: 'cin' was not declared in this scope
    4 |   cin >> input;
      |   ^~~
a.cc:4:10: error: 'input' was not declared in this scope; did you mean 'int'?
    4 |   cin >> input;
      |          ^~~~~
      |          int
a.cc:6:5: error: 'cout' was not declared in this scope
    6 |     cout << No;
      |     ^~~~
a.cc:6:13: error: 'No' was not declared in this scope
    6 |     cout << No;
      |             ^~
a.cc:8:8: error: 'cout' was not declared in this scope
    8 |   else cout << Yes;
      |        ^~~~
a.cc:8:16: error: 'Yes' was not declared in this scope
    8 |   else cout << Yes;
      |                ^~~
Language: C++

#include <iostream>
using namespace std;

int main(void){
  string S;

  cin >> S;

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

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


}

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

#include<bits/stdc++.h>
#define int long long
#define ld long double
#define endl '\n'
const int mod=1e9+7;
const int inf=1e17+10;
#define F first
#define S second
#define pb push_back
#define all(x) x.begin(),x.end()
#define si(a) a.size()
#define pii pair<int,int>
using namespace std;
#if !defined(ONLINE_JUDGE)
#include "debugging.h"
#endif



int32_t main() {
   std::ios::sync_with_stdio(false);cin.tie(NULL);
   string s;
   cin>>s;
   int a=0,b=0;
   for(char c:s)
   {
       if(c=='A')a++;
       else b++;
   }
   if(!a || !b)cout<<"YES\n";
   else cout<<"NO\n";
   return 0;
}


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

#include <bits/stdc++.h>

using namesapce std;

int main()
{
  string str;
  cin >> str;
  bool a=0,b=0;
  for(int i=0;i<3;i++)if(str[i]=='A')a=1;
  for(int i=0;i<3;i++)if(str[i]=='B')b=1;
  if(a and b)cout << "Yes";
  else cout << "No";
}

Compiler output:
a.cc:3:7: error: expected nested-name-specifier before 'namesapce'
    3 | using namesapce std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:7:3: error: 'string' was not declared in this scope
    7 |   string str;
      |   ^~~~~~
a.cc:7:3: note: suggested alternatives:
In file included from /usr/include/c++/14/string:41,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52,
                 from a.cc:1:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:8:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    8 |   cin >> str;
      |   ^~~
      |   std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:8:10: error: 'str' was not declared in this scope; did you mean 'std'?
    8 |   cin >> str;
      |          ^~~
      |          std
a.cc:12:14: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   12 |   if(a and b)cout << "Yes";
      |              ^~~~
      |              std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:13:8: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   13 |   else cout << "No";
      |        ^~~~
      |        std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#include <iostream>
using namespace std;
string S;
int Q;
 
int main() {
  cin >> S; cin >> Q;
  string current;
  while(Q--) {
    int x;
    cin >> x;
    if(x==2) {
      string a; int b;
      cin >> b >> a;
     current = b == 1 ? a + current : current + a;
    } else {
      reverse(current.begin(), current.end());    
    }
 
  }  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:7: error: 'reverse' was not declared in this scope
   17 |       reverse(current.begin(), current.end());
      |       ^~~~~~~
Language: C++

#include <bots/stdc++.h>
using namespace std;
 
#define ll long long
 
int main() {
  ll n, a, b;
  cin >> n >> a >> b;
  cout << (n/(a+b))*a + min(n%(a+b), a);
}

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

package atcoder;

import java.util.Scanner;


	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		//AB入力
		String S = sc.next();

		String s1 = S.substring(0,1);
		String s2 = S.substring(1,2);
		String s3 = S.substring(2,3);

		sc.close();

		if (s1.equals("A") && s2.equals("A") && s3.equals("A")){
			System.out.println("No");
		}else if (s1.equals("B") && s2.equals("B") && s3.equals("B")){
			System.out.println("No");
		}else {
			System.out.println("Yes");
		}
	}



Compiler output:
Main.java:6: error: unnamed classes are a preview feature and are disabled by default.
	public static void main(String[] args) {
	              ^
  (use --enable-preview to enable unnamed classes)
Main.java:1: error: unnamed class should not have package declaration
package atcoder;
^
2 errors
Language: Java

package atcoder;

import java.util.Scanner;

public class ABC158A {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		//AB入力
		String S = sc.next();

		String s1 = S.substring(0,1);
		String s2 = S.substring(1,2);
		String s3 = S.substring(2,3);

		sc.close();

		if (s1.equals("A") && s2.equals("A") && s3.equals("A")){
			System.out.println("No");
		}else if (s1.equals("B") && s2.equals("B") && s3.equals("B")){
			System.out.println("No");
		}else {
			System.out.println("Yes");
		}
	}

}

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

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

int main(){
  vector<char> S(3);
  for(i=0;i<3;i++){
    cin >> S.at(i);
  }
  if(S.at(0)==S.at(1)){
    if(S.at(1)==S.at(2)){
      cout << "No" << endl;
      return 0;
    }
  }
  
  cout << "Yes" << endl;
  return 0;
}

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

#include <iostream>
using namespace std;
 
int main()
{
  unsigned long long n, a, b;
  cin >> n >> a >> b;
  if (a == 0) cout << 0;
  else
    if (n <= a + b) cout << a;
    else 
    {
      cout << n / (a + b) * a + min(a, n % (a + b));
    }


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

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

int main(){
  string S;
  cin>>S;
  if(S.at(0)==S.at(1)==S.at(2)){
    cout<<"NO"<<endl;
  }else{cout<<"YES"<<endl;}
  return 0;
}


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

#include <iostream>
#include <bits/stdc++.h>
using namespace std;
#define ll long long int
#define mp(a,b) make_pair(a,b)
#define pb(a) push_back(a)
int main() 
{
    string s;
    cin>>s;
    if((s[1]==s[2]&&s[1]!=s[2])||(s[1]==s[3]&&s[1]!=s[2])||(s[2]==s[3]&&s[2]!=s[1])
    cout<<"YES";
    else
    cout<<"NO";
}
        

Compiler output:
a.cc: In function 'int main()':
a.cc:11:84: error: expected ';' before 'cout'
   11 |     if((s[1]==s[2]&&s[1]!=s[2])||(s[1]==s[3]&&s[1]!=s[2])||(s[2]==s[3]&&s[2]!=s[1])
      |                                                                                    ^
      |                                                                                    ;
   12 |     cout<<"YES";
      |     ~~~~                                                                            
a.cc:13:5: error: expected primary-expression before 'else'
   13 |     else
      |     ^~~~
a.cc:12:17: error: expected ')' before 'else'
   12 |     cout<<"YES";
      |                 ^
      |                 )
   13 |     else
      |     ~~~~         
a.cc:11:7: note: to match this '('
   11 |     if((s[1]==s[2]&&s[1]!=s[2])||(s[1]==s[3]&&s[1]!=s[2])||(s[2]==s[3]&&s[2]!=s[1])
      |       ^
Language: Java

public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        String a = sc.next();
        boolean not = true;
        if (a.charAt(1) == a.charAt(0)) {
            if (a.charAt(2) == a.charAt(1)) {
                System.out.println("No");
            }
            else {
                System.out.println("Yes");
            }
        }
        else {
            System.out.println("Yes");
        }
    }
}


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

public class A {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        String a = sc.next();
        boolean not = true;
        if (a.charAt(1) == a.charAt(0)) {
            if (a.charAt(2) == a.charAt(1)) {
                System.out.println("No");
            }
            else {
                System.out.println("Yes");
            }
        }
        else {
            System.out.println("Yes");
        }
    }
}

Compiler output:
Main.java:1: error: class A is public, should be declared in a file named A.java
public class A {
       ^
Main.java:3: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class A
Main.java:3: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
                         ^
  symbol:   class Scanner
  location: class A
3 errors
Language: Java

import java.util.Scanner;

public class A {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        String a = sc.next();
        boolean not = true;
        if (a.charAt(1) == a.charAt(0)) {
            if (a.charAt(2) == a.charAt(1)) {
                System.out.println("No");
            }
            else {
                System.out.println("Yes");
            }
        }
        else {
            System.out.println("Yes");
        }
    }
}

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

#include <stdio.h>
#include <string.h>
int main(){
  char s[3];
  scanf("%s",s);
    if(s="ABB" ||"BAA"||"AAB"||"BBA"||"ABA"|| "BAB"){
      printf("Yes");
    }
    else{
      printf("No");  
  }
  return 0;}

Compiler output:
main.c: In function 'main':
main.c:6:9: error: assignment to expression with array type
    6 |     if(s="ABB" ||"BAA"||"AAB"||"BBA"||"ABA"|| "BAB"){
      |         ^
Language: C

#include <stdio.h>
#include <string.h>
int main(){
  char s[3];
  
  if(slen(s)==3{
    if(s="ABB" ||"BAA"||"AAB"||"BBA"||"ABA"|| "BAB"){
      printf("Yes");
    }
    else{
      printf("No");
    }}
  else{
    printf(" ");
  }
  return 0;}

Compiler output:
main.c: In function 'main':
main.c:6:6: error: implicit declaration of function 'slen'; did you mean 'strlen'? [-Wimplicit-function-declaration]
    6 |   if(slen(s)==3{
      |      ^~~~
      |      strlen
main.c:6:16: error: expected ')' before '{' token
    6 |   if(slen(s)==3{
      |     ~          ^
      |                )
main.c:16:12: error: expected expression before '}' token
   16 |   return 0;}
      |            ^
Language: C

#include<stdio.h>
#include<stdlib.h>
int main(int argc, char* argv[]){
	int a=0, b=0;
  printf("%s", argv[1]);
  
  for(int i = 0; i < 3; i++){
	if(stcmp("A", argv[1][i])){
  		a++;
  	}else if(strcmp("B",argv[1][i])){
  		b++;
    }
  }
  if(a == 1 || b == 1)
	printf("Yes");
  else
    printf("No");
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:12: error: implicit declaration of function 'stcmp'; did you mean 'mkstemp'? [-Wimplicit-function-declaration]
    8 |         if(stcmp("A", argv[1][i])){
      |            ^~~~~
      |            mkstemp
main.c:10:18: error: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration]
   10 |         }else if(strcmp("B",argv[1][i])){
      |                  ^~~~~~
main.c:3:1: note: include '<string.h>' or provide a declaration of 'strcmp'
    2 | #include<stdlib.h>
  +++ |+#include <string.h>
    3 | int main(int argc, char* argv[]){
main.c:10:36: error: passing argument 2 of 'strcmp' makes pointer from integer without a cast [-Wint-conversion]
   10 |         }else if(strcmp("B",argv[1][i])){
      |                             ~~~~~~~^~~
      |                                    |
      |                                    char
main.c:10:36: note: expected 'const char *' but argument is of type 'char'
Language: C

#include <stdio.h>
#include <string.h>
int main(){
  char s[3];
  gets(s);
  if(s.length==3){
    if(s=="ABB" ||"BAA"||"AAB"||"BBA"||"ABA"|| "BAB"){
      printf("Yes");
    }
    else{
      printf("No");
    }}
  else{
    printf(" ");
  }
  return 0;}

Compiler output:
main.c: In function 'main':
main.c:5:3: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
    5 |   gets(s);
      |   ^~~~
      |   fgets
main.c:6:7: error: request for member 'length' in something not a structure or union
    6 |   if(s.length==3){
      |       ^
Language: C

#include <stdio.h>
#include <string.h>
int main(){
  string s;
  gets(s);
  if(s.length==3){
    if(s=="ABB" ||"BAA"||"AAB"||"BBA"||"ABA"|| "BAB"){
      printf("Yes");
    }
    else{
      printf("No");
    }}
  else{
    printf(" ");
  }
  return 0;}
    

Compiler output:
main.c: In function 'main':
main.c:4:3: error: unknown type name 'string'; did you mean 'stdin'?
    4 |   string s;
      |   ^~~~~~
      |   stdin
main.c:5:3: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
    5 |   gets(s);
      |   ^~~~
      |   fgets
main.c:6:7: error: request for member 'length' in something not a structure or union
    6 |   if(s.length==3){
      |       ^
main.c:7:9: warning: comparison between pointer and integer
    7 |     if(s=="ABB" ||"BAA"||"AAB"||"BBA"||"ABA"|| "BAB"){
      |         ^~
Language: C

#include <stdio.h>
#include <string.h>
int main(){
  gets(s);
  if(s.length==3){
    if(s=='ABB' ||'BAA'||'AAB'||'BBA'||'ABA'|| 'BAB'){
      printf("Yes");
    }
    else{
      printf("No");
    }}
  else{
    printf(" ");
  }
  return 0;}
    


Compiler output:
main.c: In function 'main':
main.c:4:3: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
    4 |   gets(s);
      |   ^~~~
      |   fgets
main.c:4:8: error: 's' undeclared (first use in this function)
    4 |   gets(s);
      |        ^
main.c:4:8: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:11: warning: multi-character character constant [-Wmultichar]
    6 |     if(s=='ABB' ||'BAA'||'AAB'||'BBA'||'ABA'|| 'BAB'){
      |           ^~~~~
main.c:6:19: warning: multi-character character constant [-Wmultichar]
    6 |     if(s=='ABB' ||'BAA'||'AAB'||'BBA'||'ABA'|| 'BAB'){
      |                   ^~~~~
main.c:6:26: warning: multi-character character constant [-Wmultichar]
    6 |     if(s=='ABB' ||'BAA'||'AAB'||'BBA'||'ABA'|| 'BAB'){
      |                          ^~~~~
main.c:6:33: warning: multi-character character constant [-Wmultichar]
    6 |     if(s=='ABB' ||'BAA'||'AAB'||'BBA'||'ABA'|| 'BAB'){
      |                                 ^~~~~
main.c:6:40: warning: multi-character character constant [-Wmultichar]
    6 |     if(s=='ABB' ||'BAA'||'AAB'||'BBA'||'ABA'|| 'BAB'){
      |                                        ^~~~~
main.c:6:48: warning: multi-character character constant [-Wmultichar]
    6 |     if(s=='ABB' ||'BAA'||'AAB'||'BBA'||'ABA'|| 'BAB'){
      |                                                ^~~~~
Language: C++

# -*- coding: utf-8 -*-
#import math

# 整数の入力
station = input()

if(station[0] != station[1] or station[0] != station[2]):
  print("Yes")
else:
  print("No")


Compiler output:
a.cc:1:3: error: invalid preprocessing directive #-
    1 | # -*- coding: utf-8 -*-
      |   ^
a.cc:2:2: warning: #import is a deprecated GCC extension [-Wdeprecated]
    2 | #import math
      |  ^~~~~~
a.cc:2:9: error: #import expects "FILENAME" or <FILENAME>
    2 | #import math
      |         ^~~~
a.cc:4:3: error: invalid preprocessing directive #\U00006574\U00006570\U0000306e\U00005165\U0000529b
    4 | # 整数の入力
      |   ^~~~~~~~~~
a.cc:5:1: error: 'station' does not name a type; did you mean 'static'?
    5 | station = input()
      | ^~~~~~~
      | static
Language: Java

class Main{
	
	public static void main(String args[]){
      
      String input = args[0];
      
      if((input.equals("AAA")==True) OR (input.equals("BBB")==TRUE)){
        System.out.println("yes");
      }else{
        System.out.println("no");
      }
      
	}
}


Compiler output:
Main.java:7: error: ')' expected
      if((input.equals("AAA")==True) OR (input.equals("BBB")==TRUE)){
                                    ^
Main.java:7: error: ';' expected
      if((input.equals("AAA")==True) OR (input.equals("BBB")==TRUE)){
                                                                   ^
Main.java:9: error: 'else' without 'if'
      }else{
       ^
3 errors
Language: Java

class Main{
	
	public static void main(String args[]){
      
      String input = args[0];
      
      if(input.equals("AAA") or input.equals("BBB")){
        System.out.println("yes");
      }else{
        System.out.println("no");
      }
      
	}
}

Compiler output:
Main.java:7: error: ')' expected
      if(input.equals("AAA") or input.equals("BBB")){
                            ^
Main.java:7: error: ';' expected
      if(input.equals("AAA") or input.equals("BBB")){
                                     ^
Main.java:7: error: variable declaration not allowed here
      if(input.equals("AAA") or input.equals("BBB")){
                                ^
Main.java:7: error: ';' expected
      if(input.equals("AAA") or input.equals("BBB")){
                                                   ^
Main.java:9: error: 'else' without 'if'
      }else{
       ^
5 errors
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:14: error: expected primary-expression before 'char'
    5 |         cin>>char;
      |              ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main() {
  	char a[3];
	cin>>char;
  if(a=="AAA"||a=="BBB")
    cout<<"No";
  else
    cout<<"Yes";
 
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:14: error: expected primary-expression before 'char'
    5 |         cin>>char;
      |              ^~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:14: error: expected primary-expression before 'char'
    5 |         cin>>char;
      |              ^~~~
Language: C++

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

int main() {
  string S;
  cin>>S;
  stinrg k = S.at(0);
  stinrg ans = "No";
  if(S.at(1)!=k){
    ans="Yes";
  }
  if(S.at(2)!=k){
    ans="Yes";
  }
  cout<<ans<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'stinrg' was not declared in this scope
    7 |   stinrg k = S.at(0);
      |   ^~~~~~
a.cc:8:9: error: expected ';' before 'ans'
    8 |   stinrg ans = "No";
      |         ^~~~
      |         ;
a.cc:9:15: error: 'k' was not declared in this scope
    9 |   if(S.at(1)!=k){
      |               ^
a.cc:10:5: error: 'ans' was not declared in this scope; did you mean 'abs'?
   10 |     ans="Yes";
      |     ^~~
      |     abs
a.cc:12:15: error: 'k' was not declared in this scope
   12 |   if(S.at(2)!=k){
      |               ^
a.cc:13:5: error: 'ans' was not declared in this scope; did you mean 'abs'?
   13 |     ans="Yes";
      |     ^~~
      |     abs
a.cc:15:9: error: 'ans' was not declared in this scope; did you mean 'abs'?
   15 |   cout<<ans<<endl;
      |         ^~~
      |         abs
Language: C++

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

string s;

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

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

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

string s;

int main() {
	cin >> s;
	if(s[0] != s[1] || s[1] != s[2]) {
		cout << "Yes\n";
	} else {
		cout << "NO\n";
	}
}

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

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

int main(){
  char* txt;
　scanf("%s",txt);
  if(strchr(txt, (int)'A') != null || txt, (int)'B') != null)
  {
    printf("No");
  }else{
  	printf("Yes");
  }
　return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:1: error: stray '\343' in program
    6 | <U+3000>scanf("%s",txt);
      | ^~~~~~~~
main.c:7:31: error: 'null' undeclared (first use in this function)
    7 |   if(strchr(txt, (int)'A') != null || txt, (int)'B') != null)
      |                               ^~~~
main.c:7:31: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:54: error: expected expression before '!=' token
    7 |   if(strchr(txt, (int)'A') != null || txt, (int)'B') != null)
      |                                                      ^~
main.c:7:61: error: expected statement before ')' token
    7 |   if(strchr(txt, (int)'A') != null || txt, (int)'B') != null)
      |                                                             ^
main.c:10:4: error: 'else' without a previous 'if'
   10 |   }else{
      |    ^~~~
main.c:13:1: error: stray '\343' in program
   13 | <U+3000>return 0;
      | ^~~~~~~~
Language: Java

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

        String one = scan.nextLine();
        String two = scan.nextLine();
        String three = scan.nextLine();

        if(one.equals(two)) 
           if(two.equals(three)) System.out.printf("No");
           else System.out.printf("Yes");
        else System.out.printf("Yes");
           

    }
}

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

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

        char one = scan.next();
        char two = scan.next();
        char three = scan.next();

        if(one==two) 
           if(two==three) System.out.printf("No");
           else System.out.printf("Yes");
        else System.out.printf("Yes");
           

    }
}

Compiler output:
Main.java:2: error: class Amon01 is public, should be declared in a file named Amon01.java
public class Amon01{
       ^
Main.java:7: error: incompatible types: String cannot be converted to char
        char one = scan.next();
                            ^
Main.java:8: error: incompatible types: String cannot be converted to char
        char two = scan.next();
                            ^
Main.java:9: error: incompatible types: String cannot be converted to char
        char three = scan.next();
                              ^
4 errors
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define int longlong
int main() {
    string s;
    int a, b;
    cin >> s;
    for(int i = 0; i < 3; i++){
        if(s[i] == 'A')
            a++;
        else
            b++;
    }
    if(a == 0 || b == 0)
        cout << "yes";
    else
        cout << "no";
}

Compiler output:
a.cc:3:13: error: 'longlong' does not name a type
    3 | #define int longlong
      |             ^~~~~~~~
a.cc:4:1: note: in expansion of macro 'int'
    4 | int main() {
      | ^~~
Language: C++

S = input()
if S[0] == S[1] and S[1] == S[2]:
	print('No')
else:
	print('Yes')

Compiler output:
a.cc:3:15: warning: multi-character character constant [-Wmultichar]
    3 |         print('No')
      |               ^~~~
a.cc:5:15: warning: multi-character character constant [-Wmultichar]
    5 |         print('Yes')
      |               ^~~~~
a.cc:1:1: error: 'S' does not name a type
    1 | S = input()
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
ll countGreater(ll arr[], ll n, ll k) 
{ 
    ll l = 0; 
    ll r = n - 1; 
  
 
    ll leftGreater = n; 
  
 
    while (l <= r) { 
        ll m = l + (r - l) / 2; 
  
        if (arr[m] > k) { 
            leftGreater = m; 
            r = m - 1; 
        } 
  
 
        else
            l = m + 1; 
    } 
  
   
    return (n - leftGreater); 
}
ll p=pow(10,9)+7;
ll phi(ll n) {
    ll result = n;
    for (ll i = 2; i * i <= n; i++) {
        if(n % i == 0) {
            while(n % i == 0)
                n /= i;
            result -= result / i;
        }
    }
    if(n > 1)
        result -= result / n;
    return result;
}
ll power(ll x, ll y, ll p) 
{ 
    ll res = 1;      
    x = x % p;  
   while (y > 0) 
    { 
        if (y & 1) 
            res = (res*x) % p; 
        y = y>>1; 
        x = (x*x) % p; 
    } 
    return res; 
} 
 
ll modInverse(ll n, ll p) 
{ 
    return power(n, p-2, p); 
}

ll ans(ll A[],ll left,ll right,ll x)
{
    if(A[left]==x)return 1;

    else if(A[right==x])return 1;

   ll m=left+(right-left)/2;
   while(left<=right)
   {
    if(A[m]>x)right=m-1;
    else if(A[m]<x)left=m+1;
    else return 1;
   }
   return 0;
} 
 
 
int main() {
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
ll a=0,b=0;
  string s;
  cin>>s;
  for(i=0;i<3;i++)
  {
    if(s[i]=='A')a++;
    else b++;
  }

  if(a==3||b==3)cout<<"NO"<<"\n";
  else cout<<"YES"<<"\n";
  

    return 0;
    
}


 

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

#pragma GCC optimize("Ofast")
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")
#pragma GCC optimize("unroll-loops")
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace std;
typedef long long ll;
typedef pair<int,int> P;
typedef pair<int,P> P1;
typedef pair<P,P> P2;
#define pu push
#define pb push_back
#define mp make_pair
#define eps 1e-7
#define INF 1000000000
#define mod 1000000007
#define fi first
#define sc second
#define rep(i,x) for(int i=0;i<x;i++)
#define repn(i,x) for(int i=1;i<=x;i++)
#define SORT(x) sort(x.begin(),x.end())
#define ERASE(x) x.erase(unique(x.begin(),x.end()),x.end())
#define POSL(x,v) (lower_bound(x.begin(),x.end(),v)-x.begin())
#define POSU(x,v) (upper_bound(x.begin(),x.end(),v)-x.begin())
template<class T>
void dmp(T a){
	rep(i,a.size()) cout << a[i] << " ";
	cout << endl;
}
template<class T>
bool chmax(T&a, T b){
	if(a < b){
		a = b;
		return 1;
	}
	return 0;
}
template<class T>
bool chmin(T&a, T b){
	if(a > b){
		a = b;
		return 1;
	}
	return 0;
}
template<class T>
void g(T &a){
	cin >> a;
}
template<class T>
void o(T &a){
	cout << a << '\n';
}
int n,a[1000005];

int main(){
	string s; g(s);
	rep(i,2){
		if(g[i] != g[2]){
			puts("Yes"); return 0;
		}
	}
	puts("No");
}

Compiler output:
a.cc: In function 'int main()':
a.cc:60:21: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   60 |                 if(g[i] != g[2]){
      |                     ^
a.cc:60:29: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   60 |                 if(g[i] != g[2]){
      |                             ^
Language: C++

#include "pch.h"
#include <iostream>
#include <string>
#include <vector>
#include <sstream>
#include <iomanip>


using namespace std;

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

	char str[5] = { 'A' , 'B' };

	auto a = S.find("A");
	auto b = S.find("B");
	if ( a == string::npos || b == string::npos ) {
		cout << "No" << endl;
	}
	else {
		cout << "Yes" << endl;
	}

	return 0;
}

Compiler output:
a.cc:1:10: fatal error: pch.h: No such file or directory
    1 | #include "pch.h"
      |          ^~~~~~~
compilation terminated.
Language: Java

java.util.*
public class Main {
	private static void main(void) {
    	Scanner sc = new Scanner(System.in);
        String S = next(sc);
        if (S.length != 3) {
			PrintNo();
			return;
        }
        int anum = 0;
        int bnum = 0;
        for (int i = 0; i < 3; i++) {
	        if (S.substring(i,i+1).equals("A") == false &&
	            S.substring(i,i+1).equals("B") == false ) {
                PrintNo();
                return;
            }
            if (S.substring(i,i+1).equals("A")) {
            	a++;
                continue;
            }
			b++;
        }
        if (a == 0 || b == 0) {
            PrintNo();
            return;
        }
        PrintYes();
        return;
    }
    private static void PrintYes(void) {
        System.out.println("Yes");
	}
    private static void PrintNo(void) {
        System.out.println("No");
	}
}

Compiler output:
Main.java:1: error: class, interface, enum, or record expected
java.util.*
^
Main.java:3: error: <identifier> expected
	private static void main(void) {
	                             ^
Main.java:31: error: <identifier> expected
    private static void PrintYes(void) {
                                     ^
Main.java:34: error: <identifier> expected
    private static void PrintNo(void) {
                                    ^
4 errors
Language: C++

#include<bits/stdc++.h>
using namespace std;
string s;
int main()
{
	cin>>s;
    int A=0,B=0;
    for(int i=0;i<2;++i;)
    {
      A+=s[i]=='A';
      B+=s[i]=='B';
    }
    cout<<(A&&B ?"YES" :"NO");
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:24: error: expected ')' before ';' token
    8 |     for(int i=0;i<2;++i;)
      |        ~               ^
      |                        )
a.cc:8:25: error: expected primary-expression before ')' token
    8 |     for(int i=0;i<2;++i;)
      |                         ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
string s;
int main()
{
	cin>>s;
    int A=0,B=0;
    for(int i=0;i<2;++i;)
    {
      A+=s[i]=='A';
      B+=s[i]=='B';
    }
    cout<<(A&B ?"YES" :"NO");
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:24: error: expected ')' before ';' token
    8 |     for(int i=0;i<2;++i;)
      |        ~               ^
      |                        )
a.cc:8:25: error: expected primary-expression before ')' token
    8 |     for(int i=0;i<2;++i;)
      |                         ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:18: error: 's' was not declared in this scope
    7 |     if(S=="AAA"||s=="BBB")
      |                  ^
Language: Java

import java.util.*;

public class robbb {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		String r = "AAA";
		String z ="BBB";
		if(s.equals(r)||s.equals(r)) {
			System.out.println("NO");
		}else {
			System.out.println("YES");
		}
		
		
			
		
		
	}
}


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

import java.util.*;
 
public class Main {
  
  public static void main(String[] args){
    
  Scanner s=new Scanner(System.in);
    
  Long S=s.nextLong();
  Long A=s.nextLong();
  Long B=s.nextLong();
  
  Long division=S/(A+B);
  Long remainder=S%(A+B);
  
  Long count=0;
    
  if(remainder<A) count=division*A+remainder;
  else count=division*A+A;
    
  System.out.print(count);
  }
}


Compiler output:
Main.java:16: error: incompatible types: int cannot be converted to Long
  Long count=0;
             ^
1 error
Language: C++

#include<stdio.h>
int main()
{
    char s[3];
    gets(s);
    
    if( s[0]==s[1] && s[1]==s[2] && s[0]==s[2])
        printf("NO");
    else
        printf("YES");
}

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

import java.util.*;
 
public class Main {
  
  public static void main(){
  Scanner s=new Scanner(System.in);
  string S=s.nextLine();
  
  if(S=="AAA"||S=="BBB"){
    System.out.print("No");
  }else{
    System.out.print("Yes");
  }
  }
}


Compiler output:
Main.java:7: error: cannot find symbol
  string S=s.nextLine();
  ^
  symbol:   class string
  location: class Main
1 error
Language: Java

import java.util.*;
 
public class Main {
  
  public static void main(){
  Scanner s=new Scanner(System.in);
  string S=s.scan();
  
  if(S=="AAA"||S=="BBB"){
    System.out.print("No");
  }else{
    System.out.print("Yes");
  }
  }
}


Compiler output:
Main.java:7: error: cannot find symbol
  string S=s.scan();
  ^
  symbol:   class string
  location: class Main
Main.java:7: error: cannot find symbol
  string S=s.scan();
            ^
  symbol:   method scan()
  location: variable s of type Scanner
2 errors
Language: Java

import java.util.*;
 
public class Main {
  
  Scanner s=new Scanner(System.in);
  string S=s.scan();
  
  if(S=="AAA"||S=="BBB"){
    System.out.print("No");
  }else{
    System.out.print("Yes");
  }
}


Compiler output:
Main.java:8: error: illegal start of type
  if(S=="AAA"||S=="BBB"){
  ^
Main.java:8: error: <identifier> expected
  if(S=="AAA"||S=="BBB"){
      ^
Main.java:8: error: <identifier> expected
  if(S=="AAA"||S=="BBB"){
                ^
Main.java:10: error: illegal start of type
  }else{
   ^
4 errors
Language: Java

import java.util.*;
 
public class Main {
  
  Scanner s=new Scanner(System.in);
  string S=s.scan();
  
  if(S=="AAA"||S=="BBB")System.out.print("No");
  else System.out.print("Yes");
}

Compiler output:
Main.java:8: error: illegal start of type
  if(S=="AAA"||S=="BBB")System.out.print("No");
  ^
Main.java:8: error: <identifier> expected
  if(S=="AAA"||S=="BBB")System.out.print("No");
      ^
Main.java:8: error: <identifier> expected
  if(S=="AAA"||S=="BBB")System.out.print("No");
                ^
Main.java:8: error: <identifier> expected
  if(S=="AAA"||S=="BBB")System.out.print("No");
                                        ^
Main.java:8: error: illegal start of type
  if(S=="AAA"||S=="BBB")System.out.print("No");
                                         ^
Main.java:9: error: illegal start of type
  else System.out.print("Yes");
  ^
Main.java:9: error: <identifier> expected
  else System.out.print("Yes");
                       ^
Main.java:9: error: illegal start of type
  else System.out.print("Yes");
                        ^
8 errors
Language: Java

Scanner s=new Scanner(System.in);

string S=s.scan();
if(S=="AAA" || S=="BBB")System.out.print("No");
else System.out.print("Yes");

Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
Scanner s=new Scanner(System.in);
^
  (use --enable-preview to enable unnamed classes)
Main.java:4: error: class, interface, enum, or record expected
if(S=="AAA" || S=="BBB")System.out.print("No");
^
Main.java:5: error: class, interface, enum, or record expected
else System.out.print("Yes");
^
3 errors
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main(){
	char arr[4];
	scanf("%s",&arr);
	if(arr[0]==arr[1]&&arr[0]==arr[2])
		printf("No\n");
	else
		printf("Yes\n",n );
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:32: error: 'n' was not declared in this scope; did you mean 'yn'?
   11 |                 printf("Yes\n",n );
      |                                ^
      |                                yn
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main(){
	char arr[4];
	scanf("%s",&n);
	if(arr[0]==arr[1]&&arr[0]==arr[2])
		printf("No\n");
	else
		printf("Yes\n",n );
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:21: error: 'n' was not declared in this scope; did you mean 'yn'?
    7 |         scanf("%s",&n);
      |                     ^
      |                     yn
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define ll long long 
#define pb push_back
#define gcd __gcd
bool compare(ll x, ll y){
    return x>y;
}
ll isprime(ll n){
    if(n==1) return 0;
    else if(n==2) return 1;
    else{
        for(ll i=2;i<=sqrt(n);i++){
            if(n%i==0) return 0;
        }
    return 1;   
    }
}
vector<ll> get_prime_less(ll n){
    ll array[n];
    vector<ll> factor;
    for(ll i=1;i<=n;i++) array[i]=i;
    ll prime[n];
    for(ll i=0;i<n;i++) prime[i]=1;
    for(ll i=2;i<=sqrt(n);i++){
        if(prime[i]==1){
            for(ll j=i*i;j<=n;j=j+i) prime[j]=0; 
            factor.push_back(i);
        }
    }
    return factor;
}
vector<ll> retain_index(ll arr[], ll n){ 
    vector<pair<ll, ll> > vp; 
    for (ll i = 0; i < n; ++i) { 
        vp.push_back(make_pair(arr[i], i)); 
    } 
    sort(vp.begin(), vp.end());
    vector<ll> retain;
    for (ll i = 0; i < vp.size(); i++) { 
        ll a = vp[i].second;
        retain.pb(a);
    }
    return retain;
}
int main(){
    string s;
    cin>>s;
    if(s[0]==s[1] && s[1]==s[2]) cout<<"NO"<<<endl;
    else cout<<"YES"<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:49:46: error: expected primary-expression before '<' token
   49 |     if(s[0]==s[1] && s[1]==s[2]) cout<<"NO"<<<endl;
      |                                              ^
Language: C++

#include <iostream>
#include <algorithm>
#include <string>

using namespace std;

int main(void){
  string s;
  string back="";
  string front="";
  back
  cin>>s;

  int q;
  cin>>q;

  int t;
  int f;
  bool revflag=false;
  string c;
  for(int i=0;i<q;i++){
    cin>>t;
    switch(t){
      case 1:
        revflag=!revflag;
        break;
      case 2:
        cin>>f>>c;
        switch (f) {
          case 1:
            if(!revflag){
              front+=c;
            }
            else{
              back+=c;
            }
            break;
          case 2:
            if(!revflag){
              back+=c;
            }
            else{
              front+=c;
            }
            break;
        }
        break;
    }
  }
  s=front+s+back;
  if(revflag){
    reverse(s.begin(), s.end());
  }

  cout<<s;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:7: error: expected ';' before 'cin'
   11 |   back
      |       ^
      |       ;
   12 |   cin>>s;
      |   ~~~
Language: Java

import java.util.*;
public class Main{
  public static void main(String[] args){
    Scanner sc=new Scanner(System.in);
    String M =sc.next();
    if(M.contains(("AB")||("BA"))){System.out.println("Yes");}
    else{System.out.println("No");}
  }
}


Compiler output:
Main.java:6: error: bad operand types for binary operator '||'
    if(M.contains(("AB")||("BA"))){System.out.println("Yes");}
                        ^
  first type:  String
  second type: String
1 error
Language: C++

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

Compiler output:
a.cc:1:1: error: 'string' does not name a type
    1 | string x;
      | ^~~~~~
a.cc:2:1: error: 'cin' does not name a type
    2 | cin >> x;
      | ^~~
a.cc:3:1: error: expected unqualified-id before 'if'
    3 | if (x[0] == x[1] && x[1] == x[2]){
      | ^~
a.cc:5:3: error: expected unqualified-id before 'else'
    5 | } else {
      |   ^~~~
Language: C++

#include <iostream>

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:7: error: structured binding declaration cannot have type 'char'
    6 |   char[] s;
      |       ^~
a.cc:6:7: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:6:7: error: empty structured binding declaration
a.cc:6:10: error: expected initializer before 's'
    6 |   char[] s;
      |          ^
a.cc:7:10: error: 's' was not declared in this scope
    7 |   cin >> s;
      |          ^
Language: C++






S ,= input().split()
N = len(set(list(S)))
if N == 1:
	print ('NO')
else:
	print ('YES')

Compiler output:
a.cc:9:16: warning: multi-character character constant [-Wmultichar]
    9 |         print ('NO')
      |                ^~~~
a.cc:11:16: warning: multi-character character constant [-Wmultichar]
   11 |         print ('YES')
      |                ^~~~~
a.cc:6:1: error: 'S' does not name a type
    6 | S ,= input().split()
      | ^
Language: C++

#include <iostream>
#include <string>
#include <vector>

using namespace std;

const int MAX_N = 4;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:16:31: error: expected ';' before '}' token
   16 |                 cout << "No\n"
      |                               ^
      |                               ;
   17 |         }
      |         ~