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

#include <iostream>

int main(){
  string S;
  cin >> S;
  switch(S){
    case "ABC":
      cout << "ARC" << endl;
      break;
    case "ARC":
      cout << "ABC" << endl;
      break;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'string' was not declared in this scope
    4 |   string S;
      |   ^~~~~~
a.cc:4: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:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   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:5:10: error: 'S' was not declared in this scope
    5 |   cin >> S;
      |          ^
a.cc:8:7: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |       cout << "ARC" << 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:24: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |       cout << "ARC" << 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<stdio.h>
int main(){
  char S[3];
  scanf("%c",S);
  if(S==ABC){
    printf("ARC\n");
  }else{
    printf("ABC\n");
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:9: error: 'ABC' undeclared (first use in this function)
    5 |   if(S==ABC){
      |         ^~~
main.c:5:9: note: each undeclared identifier is reported only once for each function it appears in
Language: Java

import java.util.Scanner;

/**
 * @author hellb
 *
 */
public class Main {

	private static String ARC = "ARC";

	private static String ABC = "ABC";

	/**
	 * @param args
	 */
	public static void main(String[] args) {

        Scanner scan = new Scanner(System.in);
        String sNum1 = scan.next();
        String sResult;

        if (ARC.equals(sNum1)) {
        	sResult = ABC;
        } else {
        	sResult = ARC;
        }
        System.out.print(s);
	}
}


Compiler output:
Main.java:27: error: cannot find symbol
        System.out.print(s);
                         ^
  symbol:   variable s
  location: class Main
1 error
Language: C++

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

int main() {
string S;
cin>>S;
if(S==ABC){
    cout<<"ARC"<<endl;
}else{
    cout<<"ABC"<<endl;
}
}

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

#include<bits/stdc++.h>
int main()
{
  string s;
  cin>>s;
  if(s == 'ABC') cout<<"ARC";
  else cout<<"ABC";
}

Compiler output:
a.cc:6:11: warning: multi-character character constant [-Wmultichar]
    6 |   if(s == 'ABC') cout<<"ARC";
      |           ^~~~~
a.cc: In function 'int main()':
a.cc:4:3: error: 'string' was not declared in this scope
    4 |   string s;
      |   ^~~~~~
a.cc:4:3: note: suggested alternatives:
In file included from /usr/include/c++/14/string:41,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52,
                 from a.cc:1:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   cin>>s;
      |   ^~~
      |   std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:5:8: error: 's' was not declared in this scope
    5 |   cin>>s;
      |        ^
a.cc:6:18: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |   if(s == 'ABC') cout<<"ARC";
      |                  ^~~~
      |                  std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:7:8: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |   else cout<<"ABC";
      |        ^~~~
      |        std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#pragma GCC optimize("O3")

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

#define ll long long
#define ull unsigned long long
#define ld long double
#define rep(i,n) for(ll i=0;i<(n);++i)
#define rep2(i,a,n) for(ll i=a;i<(n);++i)
#define repr(i,n) for(ll i=n;i>=0; --i)
#define repr2(i,a,n) for(ll i=n;i>=a; --i)
#define pii pair<int,int>
#define pll pair<ll,ll>
#define pb push_back
#define vi vector<int>
#define vb vector<bool>
#define vll vector<ll>
#define vpi vector<pii>
#define vpll vector<pll>

#define INT(...) int __VA_ARGS__;IN(__VA_ARGS__)
#define LL(...) ll __VA_ARGS__;IN(__VA_ARGS__)
#define ULL(...) ull __VA_ARGS__;IN(__VA_ARGS__)
#define STR(...) string __VA_ARGS__;IN(__VA_ARGS__)
#define CHR(...) char __VA_ARGS__;IN(__VA_ARGS__)
#define DBL(...) double __VA_ARGS__;IN(__VA_ARGS__)
#define LD(...) ld __VA_ARGS__;IN(__VA_ARGS__)

int scan(){ return getchar(); }
void scan(int& a){ cin>>a; }
void scan(long long& a){ cin>>a; }
void scan(char &a){cin>>a;}
void scan(double &a){ cin>>a; }
void scan(long double& a){ cin>>a; }
void scan(char a[]){ scanf("%s", a); }
void scan(string& a){ cin >> a; }
template<class T> void scan(vector<T>&);
template<class T, size_t size> void scan(array<T, size>&);
template<class T, class L> void scan(pair<T, L>&);
template<class T, size_t size> void scan(T(&)[size]);
template<class T> void scan(vector<T>& a){ for(auto& i : a) scan(i); }
template<class T> void scan(deque<T>& a){ for(auto& i : a) scan(i); }
template<class T, size_t size> void scan(array<T, size>& a){ for(auto& i : a) scan(i); }
template<class T, class L> void scan(pair<T, L>& p){ scan(p.first); scan(p.second); }
template<class T, size_t size> void scan(T (&a)[size]){ for(auto& i : a) scan(i); }
template<class T> void scan(T& a){ cin >> a; }

void IN(){}
template <class Head, class... Tail> void IN(Head& head, Tail&... tail){ scan(head); IN(tail...); }

#define ios cin.tie(NULL), ios_base::sync_with_stdio(false)
#define cfs(n) cout<<fixed<<setprecision((n))
#define endl '\n'
#define ret return 0

constexpr ll mod=998244353;
constexpr ll mod2=10e9+7;
const double PI = 3.1415926535897932384626433832795028841971; //acos(-1)

template<class T> inline bool chmax(T& a,T b){if(a<b){a=b;return 1;}return 0;}
template<class T> inline bool chmin(T& a,T b){if(a>b){a=b;return 1;}return 0;}
// endmacro

int main(){
  ios; cfs(15);
  STR(s);
  if(s[1]=='R') cout<<"ABC"endl;
  else cout<<"ARC"<<endl;
  ret;
}

Compiler output:
a.cc:68:23: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
   68 |   if(s[1]=='R') cout<<"ABC"endl;
      |                       ^
a.cc: In function 'int main()':
a.cc:68:28: error: expected ';' before '\xa'
   68 |   if(s[1]=='R') cout<<"ABC"endl;
      |                            ^
      |                            ;
Language: Java

import java.util.Scanner;
class Main{
	pulic static void main(String[] args){
    	Scanner sc = new Scanner(System.in);
      	String S = sc.next();
      	if(S = ABC){
        	System.out.println("ARC");
        }else{
        	System.out.println("ABC");
        }
    }
}

Compiler output:
Main.java:3: error: <identifier> expected
	pulic static void main(String[] args){
	     ^
1 error
Language: C

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

int main(void)
{
    char s[10];
    scanf("%s",s);
    if(s = ABC)
    {
        printf("ARC\n");
    }else{
        printf("ABC\n")
    }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:12: error: 'ABC' undeclared (first use in this function)
    8 |     if(s = ABC)
      |            ^~~
main.c:8:12: note: each undeclared identifier is reported only once for each function it appears in
main.c:12:24: error: expected ';' before '}' token
   12 |         printf("ABC\n")
      |                        ^
      |                        ;
   13 |     }
      |     ~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define ll long long int
#define all(x) x.begin(), x.end()
#define MOD 1000000007
#define vi vector < int >
#define pii pair < int, int >
#define INF (int)1e9
#define pb push_back
#define fastIO ios::sync_with_stdio(0); cin.tie(0);

int main()
{
    fastIO
    string s;
    cin >> s;
    
    if(s == "ABC")
        cout << "ARC";
    else(s == "ARC")
        cout << "ABC";

    return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:20:21: error: expected ';' before 'cout'
   20 |     else(s == "ARC")
      |                     ^
      |                     ;
   21 |         cout << "ABC";
      |         ~~~~         
a.cc:20:12: warning: ignoring return value of 'bool std::operator==(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const _CharT*) [with _CharT = char; _Traits = char_traits<char>; _Alloc = allocator<char>]', declared with attribute 'nodiscard' [-Wunused-result]
   20 |     else(s == "ARC")
      |         ~~~^~~~~~~~~
In file included from /usr/include/c++/14/string:54,
                 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/basic_string.h:3772:5: note: declared here
 3772 |     operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
      |     ^~~~~~~~
Language: C++

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

int main(){
	string S;
  	cin >> S
    if (S == "ARC"){
      cout << "ABC" << endl;
    }else{cout << "ARC" << endl;}
}



Compiler output:
a.cc: In function 'int main()':
a.cc:6:17: error: expected ';' before 'if'
    6 |         cin >> S
      |                 ^
      |                 ;
    7 |     if (S == "ARC"){
      |     ~~           
a.cc:9:6: error: 'else' without a previous 'if'
    9 |     }else{cout << "ARC" << endl;}
      |      ^~~~
Language: C++

#include<stdio.h>

int main()
{
	char s[3];
	scanf("%s", &s);
	if (s = 'ABC') {
		printf("ARC");
	}
	else if(s='ARC'){
		printf("ABC");
	}
	return 0;
}

Compiler output:
a.cc:7:17: warning: multi-character character constant [-Wmultichar]
    7 |         if (s = 'ABC') {
      |                 ^~~~~
a.cc:10:19: warning: multi-character character constant [-Wmultichar]
   10 |         else if(s='ARC'){
      |                   ^~~~~
a.cc: In function 'int main()':
a.cc:7:15: error: incompatible types in assignment of 'int' to 'char [3]'
    7 |         if (s = 'ABC') {
      |             ~~^~~~~~~
a.cc:10:18: error: incompatible types in assignment of 'int' to 'char [3]'
   10 |         else if(s='ARC'){
      |                 ~^~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
  string s; cin>>s; cout<<(s[1]=="B"?"ARC":"ABC");
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:32: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    4 |   string s; cin>>s; cout<<(s[1]=="B"?"ARC":"ABC");
Language: Java

import java.util.Scanner;

public class ARCORABC {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ

		Scanner sc=new Scanner(System.in);
		String S=sc.next();
		String ARC="ARC";
		String ABC="ABC";
		
		if(S.equals(ARC)) {
			System.out.println(ABC);
		}else if(S.equals(ABC)){
			System.out.println(ARC);
		}
	}

}


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

import java.util.Scanner;

public class Main {
  
  public static void main(String[] args){
    Scanner scan =new Scanner(System.in);
    String n=scan.next();
    
    if(n.equals(ABC)){
      System.out.println("ARC");
    }else if(n.equals(ARC)){
      System.out.println("ABC");
    }
  }
}

Compiler output:
Main.java:9: error: cannot find symbol
    if(n.equals(ABC)){
                ^
  symbol:   variable ABC
  location: class Main
Main.java:11: error: cannot find symbol
    }else if(n.equals(ARC)){
                      ^
  symbol:   variable ARC
  location: class Main
2 errors
Language: C++

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

int main(){
  string S;
  cin>>S;
  
  swich(S){
    case "ARC":
      cout<<"ABC"<<endl;
      break;
    default:
      cout<<"ARC"<<endl;
      break;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: 'swich' was not declared in this scope
    9 |   swich(S){
      |   ^~~~~
Language: C++

#include "iostream"
using namespace std;
int main()
{
    char a;
    cin>>a;
    
    if(c=='ARC')
        cout<<"ABC"<<endl;
    
    else
        cout<<"ARC"<<endl
    
}


Compiler output:
a.cc:8:11: warning: multi-character character constant [-Wmultichar]
    8 |     if(c=='ARC')
      |           ^~~~~
a.cc: In function 'int main()':
a.cc:8:8: error: 'c' was not declared in this scope
    8 |     if(c=='ARC')
      |        ^
a.cc:12:26: error: expected ';' before '}' token
   12 |         cout<<"ARC"<<endl
      |                          ^
      |                          ;
   13 | 
   14 | }
      | ~
Language: C++

#include <iostream> 
using namespace std;

int main()
{
	int a;
	cin >> a;
	if(a="ABC")
	   cout << "ARC";
	else
	   cout << "ABC";
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:14: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
    8 |         if(a="ABC")
      |              ^~~~~
      |              |
      |              const char*
Language: Java

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

public class AlernateContest {
	public static void main(String[] args)throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str=br.readLine();
		System.out.println((str.equals("ABC"))? "ARC":"ABC");
	}
}

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

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

public class AlernateContest {
	public static void main(String[] args)throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str=br.readLine();
		System.out.println((str=="ABC")? "ARC" : "ABC");
	}
}



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

#include<iostream>
#include<cmath>
#include<algorithm>
#include<string>
#include<vector>
#include<stack>
#include<queue>
#include<set>
#include<map>
#include<iomanip>
#include<bitset>
using namespace std;
typedef long long ll;
typedef pair<ll,ll> P;
typedef pair<ll,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 fi first
#define sc second
#define rep(i,x) for(ll i=0;i<x;i++)
#define repn(i,x) for(ll 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())

const int MAX = 510000;
const int MOD = 1000000007;

int main(){
  string s; cin >> s;
  if(s == "ABC") cout << "ARC" << endl;
  eles cout << "ABC" << endl;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:37:3: error: 'eles' was not declared in this scope
   37 |   eles cout << "ABC" << endl;
      |   ^~~~
Language: C++

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

using ll = long long;
using P = pair<int, int>;
#define reps(i,n) for (int i=1; i<=n; i++)
#define zarray(x,n) x[n+1]; reps(i,n) {x[i]=0;} 
#define zarray2(x,n,m) x[n+1][m+1]; reps(i,n) { reps(j,m) {x[i][j]=0;}}

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

    string ans = (s == "ABC") ? "ARC" : "ABC"
    cout << ans << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:5: error: expected ',' or ';' before 'cout'
   15 |     cout << ans << endl;
      |     ^~~~
Language: Java

#include <stdio.h>
#include <stdlib.h>

int main(int argc, const char * argv[]) {
    int n, count = 0;
    scanf("%d", &n);
    
    int A[n];
    for(int i = 0; i < n; i++){
        scanf("%d", &A[i]);
    }

    for(int i = 0; i < n; i++){
        for(int j = i+1; j < n; j++){
            if(j - 1 == abs(A[i]-A[j])){
                count++;
            }
        }
    }
    
    printf("%d", count);
    
    return 0;
}


Compiler output:
Main.java:1: error: illegal character: '#'
#include <stdio.h>
^
Main.java:1: error: class, interface, enum, or record expected
#include <stdio.h>
         ^
Main.java:2: error: illegal character: '#'
#include <stdlib.h>
^
Main.java:6: error: class, interface, enum, or record expected
    scanf("%d", &n);
    ^
Main.java:8: error: class, interface, enum, or record expected
    int A[n];
    ^
Main.java:9: error: class, interface, enum, or record expected
    for(int i = 0; i < n; i++){
    ^
Main.java:9: error: class, interface, enum, or record expected
    for(int i = 0; i < n; i++){
                   ^
Main.java:9: error: class, interface, enum, or record expected
    for(int i = 0; i < n; i++){
                          ^
Main.java:11: error: class, interface, enum, or record expected
    }
    ^
Main.java:13: error: class, interface, enum, or record expected
    for(int i = 0; i < n; i++){
                   ^
Main.java:13: error: class, interface, enum, or record expected
    for(int i = 0; i < n; i++){
                          ^
Main.java:14: error: class, interface, enum, or record expected
        for(int j = i+1; j < n; j++){
                         ^
Main.java:14: error: class, interface, enum, or record expected
        for(int j = i+1; j < n; j++){
                                ^
Main.java:17: error: class, interface, enum, or record expected
            }
            ^
Main.java:23: error: class, interface, enum, or record expected
    return 0;
    ^
Main.java:24: error: class, interface, enum, or record expected
}
^
16 errors
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
	int n,m,i,x,y,a=0;
	cin>>n>>m;
	int h[n];
	for(i=0;i<n;i++)cin>>h[i];
	vector<int>z[n];
	for(i=0;i<m;i++)
	{
		cin>>x>>y;
		z[--x].push_back(--y);
		z[y].push_back(x);
	}
	for(i=0;i<n;i++)
	{
		if(z[i].size()==0)
		{
			a++;
			continue;
		}
		bool g=true;
		for(e:z[i])
		{
			int e;
			g&=h[i]>h[e];
		}
		if(g)a++;
	}
	cout<<a;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:24:22: error: found ':' in nested-name-specifier, expected '::'
   24 |                 for(e:z[i])
      |                      ^
      |                      ::
a.cc:24:21: error: 'e' has not been declared
   24 |                 for(e:z[i])
      |                     ^
a.cc:29:17: error: expected primary-expression before 'if'
   29 |                 if(g)a++;
      |                 ^~
a.cc:28:18: error: expected ';' before 'if'
   28 |                 }
      |                  ^
      |                  ;
   29 |                 if(g)a++;
      |                 ~~
a.cc:29:17: error: expected primary-expression before 'if'
   29 |                 if(g)a++;
      |                 ^~
a.cc:28:18: error: expected ')' before 'if'
   28 |                 }
      |                  ^
      |                  )
   29 |                 if(g)a++;
      |                 ~~
a.cc:24:20: note: to match this '('
   24 |                 for(e:z[i])
      |                    ^
Language: C++

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

int main()
{
  string s;
  cin>>s;
  
  if(s=="ABC")
    cout<<"ARC"<<endl;
  
  else
    cout<<s<<endl;
  

Compiler output:
a.cc: In function 'int main()':
a.cc:13:19: error: expected '}' at end of input
   13 |     cout<<s<<endl;
      |                   ^
a.cc:5:1: note: to match this '{'
    5 | {
      | ^
Language: C++

# include <iostream>

int main()
{
  string s;
  cin >> s;
  
  if (s == "ABC"){
    cout << "ARC";
  }
  else {
    cout << "ABC";
  }
}

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

int main()
{
  string s;
  cin >> s;
  
  if (s == "ABC"){
    cout << "ARC";
  }
  else {
    cout << "ABC";
  }
}

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

import java.util.Scanner;
public class Main{
  public static void main(String args[]){
  Scanner enter = new Scanner(System.in);
    String s = enter.next();
    String r = s.toLowerCase();
    
    if(r=="abc"){
      System.out.println("ARC");
    }
    else if(r=="arc"){
     System.out.println("ABC"); 
    }
  else if{
   System.out.println("ARC"); 
  }
    
    
  }
}

Compiler output:
Main.java:14: error: '(' expected
  else if{
         ^
1 error
Language: Java

import java.util.Scanner;
public class Main{
  public static void main(String args[]){
  Scanner enter = new Scanner(System.in);
    String s = enter.next();
    String r = s.toLowerCase();
    
    if(r=="abc"){
      System.out.println("ARC");
    }
    else if(r="arc"){
     System.out.println("ABC"); 
    }
  else{
   System.out.println("ARC"); 
  }
    
    
  }
}
  
  

Compiler output:
Main.java:11: error: incompatible types: String cannot be converted to boolean
    else if(r="arc"){
             ^
1 error
Language: Java

import java.util.Scanner;
public class Main{
  public static void main(String args[]){
  Scanner enter = new Scanner(System.in);
    String s = enter.next();
    String r = s.toLowerCase();
    
    if(r=="abc"){
      System.out.println("ARC");
    }
    else if(r="arc");
     System.out.println("ABC"); 
    }
  else{
   System.out.println("ARC"); 
  }
    
    
    
  }
  }

Compiler output:
Main.java:14: error: illegal start of type
  else{
  ^
Main.java:21: error: class, interface, enum, or record expected
  }
  ^
2 errors
Language: Java

import java.util.Scanner;
public class Main(
  public static void main(String args[]){
  Scanner enter = new Scanner(System.in);
    String s = enter.next();
    String r = s.toLowerCase();
    
    if(r=="abc"){
      System.out.println("ARC");
    }
    else{
     System.out.println("ABC"); 
    }
    
    
    
  }
  }

Compiler output:
Main.java:2: error: '{' expected
public class Main(
                 ^
Main.java:3: 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:18: error: class, interface, enum, or record expected
  }
  ^
3 errors
Language: C

#include<stdio.h>

int main(){
  char S[4];
  scanf("%s",S);
  if(S[]=='ABC') printf("ARC\n");
  else if(S[]=='ARC') printf("ABC\n");
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:6:8: error: expected expression before ']' token
    6 |   if(S[]=='ABC') printf("ARC\n");
      |        ^
main.c:6:11: warning: multi-character character constant [-Wmultichar]
    6 |   if(S[]=='ABC') printf("ARC\n");
      |           ^~~~~
main.c:7:13: error: expected expression before ']' token
    7 |   else if(S[]=='ARC') printf("ABC\n");
      |             ^
main.c:7:16: warning: multi-character character constant [-Wmultichar]
    7 |   else if(S[]=='ARC') printf("ABC\n");
      |                ^~~~~
Language: C

#include<stdio.h>

int main(){
  char S[4];
  scanf("%s",&S);
  if(S[]=='ABC') printf("ARC\n");
  else if(S[]=='ARC') printf("ABC\n");
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:6:8: error: expected expression before ']' token
    6 |   if(S[]=='ABC') printf("ARC\n");
      |        ^
main.c:6:11: warning: multi-character character constant [-Wmultichar]
    6 |   if(S[]=='ABC') printf("ARC\n");
      |           ^~~~~
main.c:7:13: error: expected expression before ']' token
    7 |   else if(S[]=='ARC') printf("ABC\n");
      |             ^
main.c:7:16: warning: multi-character character constant [-Wmultichar]
    7 |   else if(S[]=='ARC') printf("ABC\n");
      |                ^~~~~
Language: C

#include<stdio.h>

int main(){
  char S[];
  scanf("%s",&S);
  if(S=='ABC') printf("ARC\n");
  else if(S=='ARC') printf("ABC\n");
  else return(NULL);
}


Compiler output:
main.c: In function 'main':
main.c:4:8: error: array size missing in 'S'
    4 |   char S[];
      |        ^
main.c:6:9: warning: multi-character character constant [-Wmultichar]
    6 |   if(S=='ABC') printf("ARC\n");
      |         ^~~~~
main.c:6:7: warning: comparison between pointer and integer
    6 |   if(S=='ABC') printf("ARC\n");
      |       ^~
main.c:7:14: warning: multi-character character constant [-Wmultichar]
    7 |   else if(S=='ARC') printf("ABC\n");
      |              ^~~~~
main.c:7:12: warning: comparison between pointer and integer
    7 |   else if(S=='ARC') printf("ABC\n");
      |            ^~
main.c:8:14: error: returning 'void *' from a function with return type 'int' makes integer from pointer without a cast [-Wint-conversion]
    8 |   else return(NULL);
      |              ^
Language: C++

#include <stdio.h>

int main(){
  char string[3];
  scanf("%s",&string);
  if (s[2]=='R'){
    printf("ABC\n");
  }
  else {
    printf("ARC\n");
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:7: error: 's' was not declared in this scope
    6 |   if (s[2]=='R'){
      |       ^
Language: C++

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

int main(){
  string S;
  cin >> S;
  if(S == "ABC") cout << "ARC";
  else if(S == "ARC") cout << "ABC";
  else cout << "Error"
}

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

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

#define fi              first
#define se              second
#define ll             long long
#define pb              push_back
#define mp              make_pair
#define pll             pair<ll,ll>
#define vll              vector<int>
#define mll             map<ll,ll>
#define pqg             priority_queue<ll>
#define pqs             priority_queue<ll,vll,greater<ll> >
#define setbits(x)      __builtin_popcountll(x)
#define zrobits(x)      __builtin_ctzll(x)
#define md             1000000007
#define inf             1e18
#define ps(x,y)         fixed<<setprecision(y)<<x
const int MAX_CHAR = 256;
void hi()
{
    #ifndef ONLINE_JUDGE
    freopen("input.txt", "r", stdin);
    freopen("output.txt", "w", stdout);
    #endif
}
void bye()
{
    #ifndef ONLINE_JUDGE
    cerr << "Time elapsed: " << clock() / 1000 << " ms" << endl;
    #endif
}

int main()
{
    hi();
const char * s2 = "ABC";
  const char * s1
  string s1,s2;
  cin>>s1;
  s2="ABC";
   int r = strcmp(s1, s2);
  if(r==0)
  {cout<<"ARC";}
  else
  {
    cout<<"ABC";}
    bye();
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:39:3: error: expected initializer before 'string'
   39 |   string s1,s2;
      |   ^~~~~~
a.cc:40:8: error: 's1' was not declared in this scope; did you mean 's2'?
   40 |   cin>>s1;
      |        ^~
      |        s2
Language: C++

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

#define fi              first
#define se              second
#define ll             long long
#define pb              push_back
#define mp              make_pair
#define pll             pair<ll,ll>
#define vll              vector<int>
#define mll             map<ll,ll>
#define pqg             priority_queue<ll>
#define pqs             priority_queue<ll,vll,greater<ll> >
#define setbits(x)      __builtin_popcountll(x)
#define zrobits(x)      __builtin_ctzll(x)
#define md             1000000007
#define inf             1e18
#define ps(x,y)         fixed<<setprecision(y)<<x
const int MAX_CHAR = 256;
void hi()
{
    #ifndef ONLINE_JUDGE
    freopen("input.txt", "r", stdin);
    freopen("output.txt", "w", stdout);
    #endif
}
void bye()
{
    #ifndef ONLINE_JUDGE
    cerr << "Time elapsed: " << clock() / 1000 << " ms" << endl;
    #endif
}

int main()
{
    hi();
  string s1,s2;
  cin>>s1;
  s2="ABC";
   int r = strcmp(s1, s2);
  if(r==0)
  {cout<<"ARC";}
  else
  {
    cout<<"ABC";}
    bye();
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:40:19: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'const char*'
   40 |    int r = strcmp(s1, s2);
      |                   ^~
      |                   |
      |                   std::string {aka std::__cxx11::basic_string<char>}
In file included from /usr/include/c++/14/cstring:43,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:121,
                 from a.cc:1:
/usr/include/string.h:156:32: note:   initializing argument 1 of 'int strcmp(const char*, const char*)'
  156 | extern int strcmp (const char *__s1, const char *__s2)
      |                    ~~~~~~~~~~~~^~~~
Language: C++


int main() {
    string s;
    cin >> s;
    if(s[1] == 'B') {
        s[1] = 'R';
    }
    else {
        s[1]= 'B';
    }
    cout << s << "\n";
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:5: error: 'string' was not declared in this scope
    3 |     string s;
      |     ^~~~~~
a.cc:4:5: error: 'cin' was not declared in this scope
    4 |     cin >> s;
      |     ^~~
a.cc:4:12: error: 's' was not declared in this scope
    4 |     cin >> s;
      |            ^
a.cc:11:5: error: 'cout' was not declared in this scope
   11 |     cout << s << "\n";
      |     ^~~~
Language: C++

#include<iostream>
#include<string>
#include<vector>
using namesapce std;

int main(void){
  string str;
  cin>>str;
  if(str=="ABC")
    cout<<"ARC\n";
  else
    cout<<"ABC\n";
}

Compiler output:
a.cc:4:7: error: expected nested-name-specifier before 'namesapce'
    4 | 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/iosfwd:41,
                 from /usr/include/c++/14/ios:40,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
In file included from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44:
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:8:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    8 |   cin>>str;
      |   ^~~
      |   std::cin
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:8:8: error: 'str' was not declared in this scope; did you mean 'std'?
    8 |   cin>>str;
      |        ^~~
      |        std
a.cc:10:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |     cout<<"ARC\n";
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:12:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   12 |     cout<<"ABC\n";
      |     ^~~~
      |     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 <bits/stdc++.h>
using namespace std;

int main() {
  string A?C;
  cin >> A?C;
  if(A?C == "ARC")
    cout << "ABC";
  else
    cout << "ARC";
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:11: error: expected initializer before '?' token
    5 |   string A?C;
      |           ^
a.cc:6:10: error: 'A' was not declared in this scope
    6 |   cin >> A?C;
      |          ^
a.cc:6:12: error: 'C' was not declared in this scope
    6 |   cin >> A?C;
      |            ^
a.cc:6:13: error: expected ':' before ';' token
    6 |   cin >> A?C;
      |             ^
      |             :
a.cc:6:13: error: expected primary-expression before ';' token
a.cc:7:18: error: expected ':' before ')' token
    7 |   if(A?C == "ARC")
      |                  ^
      |                  :
a.cc:7:18: error: expected primary-expression before ')' token
Language: Java

import java.util.*;
 
public static void main(String[] args){
	Scanner scan = new Scanner(System.in);
    String str = scan.next();
    
    if(str.equals("ABC")){
    	System.out.println("ARC");
    }else{
    	System.out.println("ABC");
    }
    
}

Compiler output:
Main.java:3: 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

import java.util.*

public static void main(String[] args){
	Scanner scan = new Scanner(System.in);
    String str = scan.next();
    
    if(str.equals("ABC")){
    	System.out.println("ARC");
    }else{
    	System.out.println("ABC");
    }
    
}

Compiler output:
Main.java:1: error: ';' expected
import java.util.*
                  ^
Main.java:3: 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)
2 errors
Language: C++

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

int main(){
  string s;
  cin >> s;
  if (s = 'ABC')
    cout << "ARC" << endl;
  else
    cout << "ABC" << endl;
  return 0;
}

Compiler output:
a.cc:7:11: warning: multi-character character constant [-Wmultichar]
    7 |   if (s = 'ABC')
      |           ^~~~~
a.cc: In function 'int main()':
a.cc:7:11: warning: overflow in conversion from 'int' to 'char' changes value from '4276803' to '67' [-Woverflow]
a.cc:7:9: error: could not convert 's.std::__cxx11::basic_string<char>::operator=(67)' from 'std::__cxx11::basic_string<char>' to 'bool'
    7 |   if (s = 'ABC')
      |       ~~^~~~~~~
      |         |
      |         std::__cxx11::basic_string<char>
Language: C++

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

int main(){
string S;
cin >> S;
if{S=="ABC"){
 cout << "ARC" << endl;
 }
 else{
cout << "ABC" << endl;
}
}



Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: expected '(' before '{' token
    7 | if{S=="ABC"){
      |   ^
      |   (
a.cc:13:2: error: expected '}' at end of input
   13 | }
      |  ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

#include(bits/stdc++.h)
using namespace std;

int main(){
string S;
cin >> S;
if{S=='ABC'){
 cout << "ARC" << endl;
 }
 else{
cout << "ABC" << endl;
}
}



Compiler output:
a.cc:1:9: error: #include expects "FILENAME" or <FILENAME>
    1 | #include(bits/stdc++.h)
      |         ^
a.cc:7:7: warning: multi-character character constant [-Wmultichar]
    7 | if{S=='ABC'){
      |       ^~~~~
a.cc: In function 'int main()':
a.cc:5:1: error: 'string' was not declared in this scope
    5 | string S;
      | ^~~~~~
a.cc:1:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
  +++ |+#include <string>
    1 | #include(bits/stdc++.h)
a.cc:6:1: error: 'cin' was not declared in this scope
    6 | 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 | #include(bits/stdc++.h)
a.cc:6:8: error: 'S' was not declared in this scope
    6 | cin >> S;
      |        ^
a.cc:7:3: error: expected '(' before '{' token
    7 | if{S=='ABC'){
      |   ^
      |   (
a.cc:13:2: error: expected '}' at end of input
   13 | }
      |  ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: Java

import java.util.*;

public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String s = sc.next();
    
    if(s == 'ARC'){
      System.out.println('ABC');
    }else if(s == 'ABC'){
      System.out.println('ARC');
    }
  }
}
       

Compiler output:
Main.java:8: error: unclosed character literal
    if(s == 'ARC'){
            ^
Main.java:8: error: unclosed character literal
    if(s == 'ARC'){
                ^
Main.java:8: error: not a statement
    if(s == 'ARC'){
              ^
Main.java:9: error: unclosed character literal
      System.out.println('ABC');
                         ^
Main.java:9: error: unclosed character literal
      System.out.println('ABC');
                             ^
Main.java:9: error: not a statement
      System.out.println('ABC');
                           ^
Main.java:10: error: unclosed character literal
    }else if(s == 'ABC'){
                  ^
Main.java:10: error: 'else' without 'if'
    }else if(s == 'ABC'){
     ^
Main.java:10: error: unclosed character literal
    }else if(s == 'ABC'){
                      ^
Main.java:10: error: not a statement
    }else if(s == 'ABC'){
                    ^
Main.java:11: error: unclosed character literal
      System.out.println('ARC');
                         ^
Main.java:11: error: unclosed character literal
      System.out.println('ARC');
                             ^
Main.java:11: error: not a statement
      System.out.println('ARC');
                           ^
13 errors
Language: Java

import java.util.*;

public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String s = next();
    
    if(s == "ARC")
      System.out.println("ABC");
    else if(s == "ABC")
      System.out.println("ARC");
    
  }

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

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


int main() {
 string S;
  cin >> S;
  if (S == "ARC"){
  cout << "ABC" << endl;
  }
  
  else {
  cout << "ARC" << endl;}
}


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

#include <iostream>
#include <string>

int main(){
	string s;
	cin>>s;
  	cout<<(s=="ABC"?"ARC":"ABC");
	return 0;
}

Compiler output:
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:7:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |         cout<<(s=="ABC"?"ARC":"ABC");
      |         ^~~~
      |         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: Java

import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;

public class Main166 {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		String a = sc.next();
		Map<String, String> map = new HashMap<String, String>();

		map.put("ABC", "ARC");

		map.put("ARC", "ABC");

		if(map.containsKey(a)) {



		System.out.println(map.get(a));

	}
	else {

		System.out.println("もう一度やり直して下さい");
	}
}
}

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

import java.util.Map;
import java.util.Scanner;

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

		String a = sc.next();
		Map<String, String> map = new HashMap<String, String>();

		map.put("ABC", "ARC");

		map.put("ARC", "ABC");

		if(map.containsKey(a)) {



		System.out.println(map.get(a));

	}
	else {

		System.out.println("もう一度やり直して下さい");
	}
}
}

Compiler output:
Main.java:9: error: cannot find symbol
		Map<String, String> map = new HashMap<String, String>();
		                              ^
  symbol:   class HashMap
  location: class Main
1 error
Language: Java

import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;

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

		String a = sc.next();
		Map<String,String> map = new HashMap <String,String>();


		map.put("ABC", "ARC");

		map.put("ARC", "ABC");


		System.out.println(map.get(a));








Compiler output:
Main.java:18: error: reached end of file while parsing
		System.out.println(map.get(a));
		                               ^
1 error
Language: Java

import java.util.Scanner;





 public class Main166  {
	 static void main(String[] args) {




Scanner sc = new Scanner(System.in);

      String a = sc.next();
  if(a.equals("ABC")){
       System.out.println("ARC");
  }
else if(a.equals("ARC")) {
	System.out.println("ABC");
}
else {
	System.out.println("もう一度やり直してください。");
}

	 }
}

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

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

int main(){
  string s;
  cin>>s;
  if(s[0]=='B'){
    cout<<"ARC"<<endl;
  }
  else{
  cout<<"ABC"<<endl;
  }
  return 0;
}

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

include<stdio.h>

int main(void){
    char S[3];
    scanf("%s", S);
    if(strcmp("ABC",S)==0){
      printf("ARC");}
    else printf("ARC");
return 0;
}


Compiler output:
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include<stdio.h>
      |        ^
Language: C

include<stdio.h>

int main(void){
    char S[3];
    scanf("%s", S);
    if(strcmp("ABC",S)==0){
      printf("ARC");}



Compiler output:
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include<stdio.h>
      |        ^