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

#include <iostream>
#include <map>
#include <unordered_map>
#include <set>
#include <unordered_set>
#include <vector>
#include <iomanip>
#include <queue>
#include <stack>
#include <deque>
#include <algorithm>

using namespace std;

#define ll long long
#define endl '\n'
#define mod 1000000007
#define mx 2000005
#define pb push_back
#define fr(a,b) for(int i = a; i < b;i++)

bool p[mx + 1];
ll fact[mx];
vector<int> prime;

void seieve(){
	for (int i = 2; i * i <= mx; i++){
		if (!p[i])
			for (int j = i * i; j <= mx; j += i)
				p[j] = 1;
	}
	for (int i = 2; i <= mx; i++)
		if (!p[i])
			prime.pb(i);
}

bool isprime(ll n){
	if (n <= 1)
		return false;
	for (ll i = 2; i * i <= n; i++)
		if (n % i == 0)
			return false;
	return true;
}

void factorial(){
	fact[0] = 1;
	for (int i = 1; i < mx; i++){
		fact[i] = fact[i - 1] * i;
		fact[i] %= mod;
	}
}

ll modInverse(ll a){
	ll m0 = mod;
	ll y = 0, x = 1;
	if (m0 == 1)
		return 0;

	while (a > 1){
		ll q = a / m0;
		int t = m0;
		m0 = a % m0, a = t;
		t = y;
		y = x - q * y;
		x = t;
	}
	if (x < 0)
		x += mod;
	return x;
}

ll power(ll x, ll y, ll p){
	ll res = 1;
	x = x % p;
	if (x == 0)
		return 0;
	while (y > 0){
		if (y & 1)
			res = (res * x) % p;
		y = y >> 1;
		x = (x * x) % p;
	}
	return res;
}

ll nCr(int n, int r){
	return ((fact[n] * modInverse(fact[n - r])) % mod * modInverse(fact[r])) % mod;
}

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

int main(){
	ios_base::sync_with_stdio(false);
	cin.tie(NULL);
	cout.tie(NULL);
	int t = 1;
	while (t--){
		solve();
	}
	return 0;
}

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

#include<iostream.h>
#include<conio.h>
#include<stdio.h>
#include<string.h>
void main()
{
  char s[3];
  gets(s);
  if(strcmp(s,"ARC")==0)
  {
    cout>>"ABC";
  }
  else if(strcmp(s,"ABC")==0)
  {
    cout>>"ARC";
  }
  getch();
}

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

#include<algorithm>//STL通用算法
 
#include<bitset>//STL位集容器
 
//#include<bits/stdc++.h>//编译器GCC 4.8支持的万能头文件，基本包含所有头文件
 
#include<cctype>//C字符处理
 
#include<cerrno>//C的错误报告机制
 
#include<clocale>
 
#include<cmath>//兼容C语言数学库
 
#include<complex>//复数类
 
#include<cstdio>//C语言输入输出工具
 
#include<cstdlib>//C语言通用工具
 
#include<cstring>//C字符串
 
#include<ctime>
 
#include<deque>//STL双端队列容器
 
#include<exception>//异常处理类
 
#include<fstream>//文件输入输出流
 
#include<functional>//STL定义运算函数（代替运算符）
 
#include<limits>
 
#include<list>//STL线性列表容器
 
#include<map>//STL映射容器
 
#include<iomanip>
 
#include<ios>//基本输入/输出支持
 
#include<iosfwd>//输入/输出系统使用的前置声明
 
#include<iostream>//基本输入输出流
 
#include<queue>//STL队列容器
 
#include<set>//STL集合容器
 
#include<sstream>//基于字符串的流
 
#include<stack>//STL堆栈容器
 
#include<stdexcept>//标准异常类
 
#include<streambuf>//底层输入/输出支持
 
#include<string>//字符串类
 
#include<utility>//STL通用模板类
 
#include<vector>//STL动态数组容器
 
#include<cwchar>
 
#include<cwctype>
using namespace std;
int main(){
	string s;
	cin>>s;
	if(s=="ABC");
	    puts("ARC");
	else
	    puts("ABC");
}


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

#include <stdio.h>
using namespace std;
int main()
{
  char ABC,ARC;  
  cin >> x;
  if(x == ABC){
    cout << "ARC";
  }else if( x== ARC){
    cout << "ABC";
  }
}
  

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin >> x;
      |   ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include <stdio.h>
  +++ |+#include <iostream>
    2 | using namespace std;
a.cc:6:10: error: 'x' was not declared in this scope
    6 |   cin >> x;
      |          ^
a.cc:8:5: error: 'cout' was not declared in this scope
    8 |     cout << "ARC";
      |     ^~~~
a.cc:8:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:10:5: error: 'cout' was not declared in this scope
   10 |     cout << "ABC";
      |     ^~~~
a.cc:10:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

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

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


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

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int S;
 
  cin >> a;
  
if (S == ABC){cout << "ARC" << endl;}
else cout << "ABC" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:10: error: 'a' was not declared in this scope
    7 |   cin >> a;
      |          ^
a.cc:9:10: error: 'ABC' was not declared in this scope
    9 | if (S == ABC){cout << "ARC" << endl;}
      |          ^~~
Language: C++

#include<bits/stdc.h>
using namespace std;
int main(){
	string a={"ABC"};
  	string b={"ARC"};
  	string s;
  	cin>>s;
  	if(s==a)
      cout<<b<<endl;
 	else
      cout<<a<<endl;
}

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 <bits/stdc++.h>
using namespace std;

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


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

#include<iostream>
using namespace std;
typedef long long ll;
const int maxn = 1e5 + 5;
int b[maxn], k, n, m, sum;
double c, r;
string s, t;
map<string,int>a;


int main(){
    ios_base::sync_with_stdio(0);
    cin>>s;
    if(s == "ABC")
        cout<<"ARC";
    else cout<<"ABC";
    return 0;
}


Compiler output:
a.cc:8:1: error: 'map' does not name a type
    8 | map<string,int>a;
      | ^~~
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: In function 'int main()':
a.cc:6:7: error: could not convert 's.std::__cxx11::basic_string<char>::operator=(((const char*)"ABC"))' from 'std::__cxx11::basic_string<char>' to 'bool'
    6 |   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";
	}
	else{
		cout << "ABC";
		
	}
	return 0;
}

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

public class Main166_A {
    public static void main(String[] args) {
        if ("ABC".equals(args[0])) {
            System.out.println("ARC");
        } else if("ARC".equals(args[0])) {
            System.out.println("ABC");
        }
    }
}


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

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

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



Compiler output:
a.cc: In function 'int main()':
a.cc:6:10: error: expected unqualified-id before '>>' token
    6 |   string >> S ;
      |          ^~
a.cc:7:8: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |   if (S=="ABC"){
      |       ~^~~~~~~
Language: C++

#incude<bits/stdc.h>
using namespace std;
int main(){
	string a={"ABC"};
  	string b={"ARC"};
  	string s;
  	cin>>s;
  	if(s==a)
      cout<<b<<endl;
 	else
      cout<<a<<endl;
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #incude; did you mean #include?
    1 | #incude<bits/stdc.h>
      |  ^~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:4:9: error: 'string' was not declared in this scope
    4 |         string a={"ABC"};
      |         ^~~~~~
a.cc:1:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
  +++ |+#include <string>
    1 | #incude<bits/stdc.h>
a.cc:5:15: error: expected ';' before 'b'
    5 |         string b={"ARC"};
      |               ^~
      |               ;
a.cc:6:15: error: expected ';' before 's'
    6 |         string s;
      |               ^~
      |               ;
a.cc:7:9: error: 'cin' was not declared in this scope
    7 |         cin>>s;
      |         ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #incude<bits/stdc.h>
a.cc:7:14: error: 's' was not declared in this scope
    7 |         cin>>s;
      |              ^
a.cc:8:15: error: 'a' was not declared in this scope
    8 |         if(s==a)
      |               ^
a.cc:9:7: error: 'cout' was not declared in this scope
    9 |       cout<<b<<endl;
      |       ^~~~
a.cc:9:7: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:9:13: error: 'b' was not declared in this scope
    9 |       cout<<b<<endl;
      |             ^
a.cc:9:16: error: 'endl' was not declared in this scope
    9 |       cout<<b<<endl;
      |                ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #incude<bits/stdc.h>
a.cc:11:7: error: 'cout' was not declared in this scope
   11 |       cout<<a<<endl;
      |       ^~~~
a.cc:11:7: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:11:16: error: 'endl' was not declared in this scope
   11 |       cout<<a<<endl;
      |                ^~~~
a.cc:11:16: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C

#include<stdio.h>

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


Compiler output:
main.c: In function 'main':
main.c:6:15: warning: multi-character character constant [-Wmultichar]
    6 |   char key[3]='ABC';
      |               ^~~~~
main.c:6:15: error: invalid initializer
Language: C

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

int main() {
  string S;
  cin >> S;
  if (S=ABC){
  cout << "ARC" <<endl;
  }
  if (S=ARC){
    cout << "ABC" << 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: Java

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

        System.out.print(s);
		// 判定
		if(s.equals("ARC")){
			System.out.print("ABC");
  		}else{
			System.out.print("ARC");
		}
	}
}


Compiler output:
Main.java:7: error: cannot find symbol
        System.out.print(s);
                         ^
  symbol:   variable s
  location: class Main
Main.java:9: error: cannot find symbol
		if(s.equals("ARC")){
		   ^
  symbol:   variable s
  location: class Main
2 errors
Language: C

#include <stdio.h>

int main(){
  char s[];
  scanf("%s",s);
  if(*s == "ABC"){
    printf("ARC");
  } else if(*S == "ARC"){
    printf("ABC");
  }
}

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: comparison between pointer and integer
    6 |   if(*s == "ABC"){
      |         ^~
main.c:8:14: error: 'S' undeclared (first use in this function)
    8 |   } else if(*S == "ARC"){
      |              ^
main.c:8:14: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include<iostream.h>
using namespace std;
int main(){
   string str;
  cin>>str;
  int flag=0;
  if(str=="ABC"){
    str="ARC";
    flag=1;
  }
  else if(str=="ARC"){
    s=str="ABC";
    flag=1;
  }
  if(flag==1)
    cout<<str<<endl;
  return 0;
}

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

#include <stdio.h>
using namespace std;
int main()
{
  string x;
  cin >> x;
  if(x == ABC){
    cout << "ARC";
  }else if( x== ARC){
    cout << "ABC";
  }
}
  

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'string' was not declared in this scope
    5 |   string x;
      |   ^~~~~~
a.cc:2:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
    1 | #include <stdio.h>
  +++ |+#include <string>
    2 | using namespace std;
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin >> x;
      |   ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include <stdio.h>
  +++ |+#include <iostream>
    2 | using namespace std;
a.cc:6:10: error: 'x' was not declared in this scope
    6 |   cin >> x;
      |          ^
a.cc:7:11: error: 'ABC' was not declared in this scope
    7 |   if(x == ABC){
      |           ^~~
a.cc:8:5: error: 'cout' was not declared in this scope
    8 |     cout << "ARC";
      |     ^~~~
a.cc:8:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:9:17: error: 'ARC' was not declared in this scope
    9 |   }else if( x== ARC){
      |                 ^~~
a.cc:10:5: error: 'cout' was not declared in this scope
   10 |     cout << "ABC";
      |     ^~~~
a.cc:10:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

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


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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: expected ',' or ';' before 'string'
    9 |   string S2 = "ARC"
      |   ^~~~~~
a.cc:13:13: error: 'S2' was not declared in this scope; did you mean 'S1'?
   13 |     cout << S2 <<endl;
      |             ^~
      |             S1
Language: Java

import java.util.*;

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

Compiler output:
Main.java:13: error: 'else' without 'if'
		else if(a=="ARC")
		^
1 error
Language: C++

#include<iostream>
#include<stdio.h>
#include <vector>
#include <algorithm>
using namespace std;

int main(){
  const double PI=3.14159265358979323846;
  //整数の時はint
  //int a,b,m;
  double c;
  //文字の時はstring
  string a;
 
  cin>>a;

    if(a==ABC)
  cout<<"ARC"<<endl;
    if(a==ARC)
  cout<<"ABC"<<endl; 
  else
    cout<<"No"<<endl;
 
 
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:11: error: 'ABC' was not declared in this scope
   17 |     if(a==ABC)
      |           ^~~
a.cc:19:11: error: 'ARC' was not declared in this scope
   19 |     if(a==ARC)
      |           ^~~
Language: Java

    public static void main(String[] args) {
        if ("ABC".equals(args[0])) {
            System.out.println("ARC");
        } else if("ARC".equals(args[0])) {
            System.out.println("ABC");
        }
    }

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

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

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


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

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


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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:14: error: 'ABC' was not declared in this scope
    8 |   string S1 =ABC
      |              ^~~
a.cc:13:13: error: 'S2' was not declared in this scope; did you mean 'S1'?
   13 |     cout << S2 <<endl;
      |             ^~
      |             S1
Language: Java

import java.util.Scanner;

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


Compiler output:
Main.java:8: error: cannot find symbol
   if( S == ABC)
            ^
  symbol:   variable ABC
  location: class Main
1 error
Language: C++

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

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

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

#include<iostream>
using namespace std;

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

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

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

int main() {
  int S;
  S = ABC;
  
  cout << "S" << endl;
}


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

using namespace std;
typedef long long ll;
#define rep(i, n) for(int i = 0; i < (int)(n); i++)
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; }
const ll INF = 1LL<<60;
const ll MOD = 1e9 + 7;


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:11:5: error: 'string' was not declared in this scope
   11 |     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 | using namespace std;
a.cc:12:5: error: 'cin' was not declared in this scope
   12 |     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 | using namespace std;
a.cc:12:12: error: 's' was not declared in this scope
   12 |     cin >> s;
      |            ^
a.cc:13:19: error: 'cout' was not declared in this scope
   13 |     if (s=="ABC") cout << "ARC" << endl;
      |                   ^~~~
a.cc:13:19: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:13:36: error: 'endl' was not declared in this scope
   13 |     if (s=="ABC") cout << "ARC" << endl;
      |                                    ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | using namespace std;
a.cc:14:10: error: 'cout' was not declared in this scope
   14 |     else cout << "ABC" << endl;
      |          ^~~~
a.cc:14:10: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:14:27: error: 'endl' was not declared in this scope
   14 |     else cout << "ABC" << endl;
      |                           ^~~~
a.cc:14:27: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C

#include<stdio.h>

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


Compiler output:
main.c: In function 'main':
main.c:6:14: warning: multi-character character constant [-Wmultichar]
    6 |   char key[]='ABC';
      |              ^~~~~
main.c:6:14: error: invalid initializer
main.c:10:7: warning: comparison between pointer and integer
   10 |   if(t==key)
      |       ^~
Language: C

int main(){
  char s[];
  scanf("%s",s);
  if(*s == "ABC"){
    printf("ARC");
  } else if(*S == "ARC"){
    printf("ABC");
  }
}

Compiler output:
main.c: In function 'main':
main.c:2:8: error: array size missing in 's'
    2 |   char s[];
      |        ^
main.c:3:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    3 |   scanf("%s",s);
      |   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main(){
main.c:3:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    3 |   scanf("%s",s);
      |   ^~~~~
main.c:3:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:4:9: warning: comparison between pointer and integer
    4 |   if(*s == "ABC"){
      |         ^~
main.c:5:5: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    5 |     printf("ARC");
      |     ^~~~~~
main.c:5:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:5:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:5:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:6:14: error: 'S' undeclared (first use in this function)
    6 |   } else if(*S == "ARC"){
      |              ^
main.c:6:14: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
    7 |     printf("ABC");
      |     ^~~~~~
main.c:7:5: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i,r) for (int i = 0; i < r; i++)

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:8: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
    8 |   if(S="ABC"){cout<<"ARC"<<endl;
      |        ^~~~~
      |        |
      |        const 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;
  }
 return 0; 
}

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

import java.util.Scanner;

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


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


    }
    



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

#include<iostream>
#include<cstdio>
#include<cstring>

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:23: error: 'ARC' was not declared in this scope
   12 |         printf("ARC");ARC
      |                       ^~~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: 'else' without a previous 'if'
    8 |         else
      |         ^~~~
Language: Java

import java.util.*;

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

Compiler output:
Main.java:13: error: '(' expected
		else if
		       ^
Main.java:14: error: ')' expected
			System.out.println("ABC");
			                         ^
Main.java:13: error: 'else' without 'if'
		else if
		^
3 errors
Language: C

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

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

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

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

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

#include<iostream>
#include<stdio.h>
#include <vector>
#include <algorithm>
using namespace std;

int main(){
  const double PI=3.14159265358979323846;
  //整数の時はint
  //int a,b,m;
  double c;
  //文字の時はstring
  string a;
 
  cin>>a;

    if(a==ABC)
  cout<<"ARC"<<endl;
    if(a==ARC)
  cout<<"ABC"<<endl; 
  else
    cout<<"No"<<endl;
 
 
  return 0;
}

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

#include <iostream> 
using namespace std; 

int decToBinary(int n) 
{
  string s;
  cin>>s;
  if(s=="ABC") puts("ARC");
  else puts("ABC");
} 
 
int main() 
{ 
	solve();
} 


Compiler output:
a.cc: In function 'int decToBinary(int)':
a.cc:10:1: warning: no return statement in function returning non-void [-Wreturn-type]
   10 | }
      | ^
a.cc: In function 'int main()':
a.cc:14:9: error: 'solve' was not declared in this scope
   14 |         solve();
      |         ^~~~~
Language: Java

import java.util.Scanner;

class Main{
 public void main(String[] args){
  Scanner stdIn = new Scanner(System.in);
   int S = stdIn.nextInt();
   
   if( S == ABC)
     System.out.println("ARC");
   else
     System.out.println("ABC");
 }
}

Compiler output:
Main.java:8: error: cannot find symbol
   if( S == ABC)
            ^
  symbol:   variable ABC
  location: class Main
1 error
Language: C++

int main(){
  char s[];
  scanf("%s",s);
  if(*s == "ABC"){
    printf("ARC");
  } else if(*S == "ARC"){
    printf("ABC");
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:2:8: error: storage size of 's' isn't known
    2 |   char s[];
      |        ^
a.cc:3:3: error: 'scanf' was not declared in this scope
    3 |   scanf("%s",s);
      |   ^~~~~
a.cc:5:5: error: 'printf' was not declared in this scope
    5 |     printf("ARC");
      |     ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main(){
a.cc:6:14: error: 'S' was not declared in this scope
    6 |   } else if(*S == "ARC"){
      |              ^
a.cc:7:5: error: 'printf' was not declared in this scope
    7 |     printf("ABC");
      |     ^~~~~~
a.cc:7:5: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
Language: C

#include <bits/stdc++.h>
using namespace std;
// https://atcoder.jp/contests/abc166/tasks/abc166_a
int main()
{
    string in;
    cin >> in;

    if(strcmp("ABC",in.c_str())==0)
    {
        printf("ARC\n");
    }
    else
    {
        printf("ABC\n");

    }
    return 0;
}


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 <bits/stdc++.h>
using namespace std;

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


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

#include<cstdio>
int main(){
    char s[3];
    scanf("%c", &s[0]);
    scanf("%c", &s[1]);
    if(s[1] == 'B') printf("ARC");
    else printf("ABC");

    return 0;


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

#include<bits/stdc++.h>
using namespace std;
int main()
{
	int S;
	cin>>S;
	if(S==ARC)
	cout<<"ABC"<<endl;
	else
	cout<<"ARC"<<endl;
	return 0;
} 

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

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

int main() {

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

	return 0


}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:17: error: expected ';' before '}' token
   18 |         return 0
      |                 ^
      |                 ;
......
   21 | }
      | ~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:16: error: expected ';' before 'cout'
   10 |     ans = "ABC"
      |                ^
      |                ;
   11 |   cout << ans << endl;
      |   ~~~~
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: In function 'int main()':
a.cc:7:10: error: 'ABC' was not declared in this scope
    7 |   if(S = ABC){
      |          ^~~
a.cc:8:11: error: 'ARC' was not declared in this scope
    8 |   cout << ARC <<endl;
      |           ^~~
Language: Java

class a
{
	public static void main(String[] Args){
    	if(Args[0] == "ABC"){
        	System.Console.WriteLine("ARC");
        }else{
        	System.Console.WriteLine("ABC");
        }
    }
}

Compiler output:
Main.java:5: error: cannot find symbol
        	System.Console.WriteLine("ARC");
        	      ^
  symbol:   variable Console
  location: class System
Main.java:7: error: cannot find symbol
        	System.Console.WriteLine("ABC");
        	      ^
  symbol:   variable Console
  location: class System
2 errors
Language: C++

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

int main() {
  S = ABC;
  cout << "S" << endl;
}


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

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

  int main()
  {
    string n;
    cin>>n;
    if(n.at(1)=='B') cout<<"ARC";
    else if (n.at(1)=='R') cout<<"ABC";
    return 0;
  }


Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inlude; did you mean #include?
    1 | #inlude<bits/stdc++.h>
      |  ^~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:6:5: error: 'string' was not declared in this scope
    6 |     string n;
      |     ^~~~~~
a.cc:1:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
  +++ |+#include <string>
    1 | #inlude<bits/stdc++.h>
a.cc:7:5: error: 'cin' was not declared in this scope
    7 |     cin>>n;
      |     ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #inlude<bits/stdc++.h>
a.cc:7:10: error: 'n' was not declared in this scope
    7 |     cin>>n;
      |          ^
a.cc:8:22: error: 'cout' was not declared in this scope
    8 |     if(n.at(1)=='B') cout<<"ARC";
      |                      ^~~~
a.cc:8:22: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:9:28: error: 'cout' was not declared in this scope
    9 |     else if (n.at(1)=='R') cout<<"ABC";
      |                            ^~~~
a.cc:9:28: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: Java

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

Compiler output:
Main.java:6: error: ')' expected
        if (s.equal("ABC"){
                          ^
Main.java:7: error: ';' expected
          System.out.println("ARC"):
                                   ^
Main.java:8: error: ')' expected
        } else if(s.equal("ARC"){
                                ^
Main.java:9: error: ';' expected
          System.out.println("ABC"):
                                   ^
4 errors
Language: C++

using namespace std;
typedef long long ll;
#define rep(i, n) for(int i = 0; i < (int)(n); i++)
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; }
template<typename T> using min_priority_queue = priority_queue<T, vector<T>, greater<T>>;
const ll INF = 1LL<<60;
const ll MOD = 1e9 + 7;


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

Compiler output:
a.cc:6:49: error: 'priority_queue' does not name a type
    6 | template<typename T> using min_priority_queue = priority_queue<T, vector<T>, greater<T>>;
      |                                                 ^~~~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:12:5: error: 'string' was not declared in this scope
   12 |     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 | using namespace std;
a.cc:13:5: error: 'cin' was not declared in this scope
   13 |     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 | using namespace std;
a.cc:13:12: error: 's' was not declared in this scope
   13 |     cin >> s;
      |            ^
a.cc:14:19: error: 'cout' was not declared in this scope
   14 |     if (s=="ABC") cout << "ARC" << endl;
      |                   ^~~~
a.cc:14:19: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:14:36: error: 'endl' was not declared in this scope
   14 |     if (s=="ABC") cout << "ARC" << endl;
      |                                    ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | using namespace std;
a.cc:15:10: error: 'cout' was not declared in this scope
   15 |     else cout << "ABC" << endl;
      |          ^~~~
a.cc:15:10: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:15:27: error: 'endl' was not declared in this scope
   15 |     else cout << "ABC" << endl;
      |                           ^~~~
a.cc:15:27: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

#include<iostream>
using namespace std;

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

  if(s == "ABC") {
    cout << "ARC" << endl;
  } else if (s = "ARC") {
    cout << "ABC" << endl;    
  }

  return 0;
}


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

#include<iostream>
using namespace std;
int main()
{
    // 文字列の入力
    string s;
    cin >> s;
  	if(s == "ABC")
    {cout <<  "ARC" << s << endl;}else if(s =="ARC")
    {cout << "ABC"}
	    
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:19: error: expected ';' before '}' token
   10 |     {cout << "ABC"}
      |                   ^
      |                   ;
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main () {
  sting S;
  cin >> S;
  cout << (S == "ABC" ? "ARC" : "ABC") << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'sting' was not declared in this scope
    4 |   sting S;
      |   ^~~~~
a.cc:5:10: error: 'S' was not declared in this scope
    5 |   cin >> S;
      |          ^
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:11: error: could not convert 'S.std::__cxx11::basic_string<char>::operator=(((const char*)"ABC"))' from 'std::__cxx11::basic_string<char>' to 'bool'
    7 |     if (S = "ABC") {
      |         ~~^~~~~~~
      |           |
      |           std::__cxx11::basic_string<char>
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:2:3: error: 'string' was not declared in this scope
    2 |   string a;
      |   ^~~~~~
a.cc:3:8: error: 'cin' is not a member of 'std'
    3 |   std::cin>>a;
      |        ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | int main(){
a.cc:3:13: error: 'a' was not declared in this scope
    3 |   std::cin>>a;
      |             ^
a.cc:5:10: error: 'cout' is not a member of 'std'
    5 |     std::cout << "ARC" << std::endl;
      |          ^~~~
a.cc:5:10: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:5:32: error: 'endl' is not a member of 'std'
    5 |     std::cout << "ARC" << std::endl;
      |                                ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | int main(){
a.cc:8:10: error: 'cout' is not a member of 'std'
    8 |     std::cout << "ABC" << std::endl;
      |          ^~~~
a.cc:8:10: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:8:32: error: 'endl' is not a member of 'std'
    8 |     std::cout << "ABC" << std::endl;
      |                                ^~~~
a.cc:8:32: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C

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

#define ll long long int

int main() {

    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    cout.tie(NULL);

    string s;
    cin>>s;
    if(s[1]=='R')
        cout<<"ABC\n";
    else
        cout<<"ARC\n";
    
    return 0;
}

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

include <bits/stdc++.h>
using namespace std;
 
int main() {
    string a;
    
    cin >> a;
    
    if(a==ABC){
        cout << "ARC" << endl;
    }else{
        cout << "ABC" << endl;
    }
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:5:5: error: 'string' was not declared in this scope
    5 |     string a;
      |     ^~~~~~
a.cc:7:5: error: 'cin' was not declared in this scope
    7 |     cin >> a;
      |     ^~~
a.cc:7:12: error: 'a' was not declared in this scope
    7 |     cin >> a;
      |            ^
a.cc:9:11: error: 'ABC' was not declared in this scope
    9 |     if(a==ABC){
      |           ^~~
a.cc:10:9: error: 'cout' was not declared in this scope
   10 |         cout << "ARC" << endl;
      |         ^~~~
a.cc:10:26: error: 'endl' was not declared in this scope
   10 |         cout << "ARC" << endl;
      |                          ^~~~
a.cc:12:9: error: 'cout' was not declared in this scope
   12 |         cout << "ABC" << endl;
      |         ^~~~
a.cc:12:26: error: 'endl' was not declared in this scope
   12 |         cout << "ABC" << endl;
      |                          ^~~~
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:
main.c:1:10: fatal error: bits/stdc++.h: No such file or directory
    1 | #include <bits/stdc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C

#include <stdio.h>
int main(){
    char str[100];
    scanf("%s",str);
  if (str==ARC)
  printf("ABC");
  else printf("ARC");
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:5:12: error: 'ARC' undeclared (first use in this function)
    5 |   if (str==ARC)
      |            ^~~
main.c:5:12: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#pragma GCC optimize("Ofast,no-stack-protector,unroll-loops")
#pragma GCC optimize("no-stack-protector,fast-math")
#define IO ios_base::sync_with_stdio(0),cin.tie(0),cout.tie(0);
#include<iostream>
#include<bits/stdc++.h>
using namespace std;
#define ll long long 
#define ld long double
//const int N =2e5+5;

int main()
{
    string s1="ABC",s2="ARC";
    string in="";
    cin>>in;
    (in ==s1)?cout<<s2<<endl:cout<<s1<<endl;
}


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

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

int main(){
  string S;cin >> S;
  string ans;
  if(S == "ABC")
    ans = "ARC";
  else
    ans = "ABC"
  cout << ans << 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: Java

import java.util.Scanner;
class comp {

    public static void main (String args[])
    {
        Scanner myObj = new Scanner(System.in);
        String compet = myObj.nextLine();

        if(compet=="ABC") System.out.println("ARC");
        else if(compet=="ARC") System.out.println("ABC");
    }
    
    }
    
    
}

Compiler output:
Main.java:16: error: class, interface, enum, or record expected
}
^
1 error
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
 
		String a = sc.nextString();
		if ("ABC".equals(a)) {
          System.out.println("ARC");
        }else if ("ARC".equals(a)){
          System.out.println("ABC");
        }
	}
}

Compiler output:
Main.java:6: error: cannot find symbol
		String a = sc.nextString();
		             ^
  symbol:   method nextString()
  location: variable sc of type Scanner
1 error
Language: C

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

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

#include <iostream>
#include <vector>
#include<algorithm>
//#include <string>
//#include <cassert>
//#include <cmath>
//#include <limits>
using namespace std;

int N;
string S;


int solve() {


    return 1;
}

int main() {

    cin >> S;

    auto ans = "ABC";
    if (S == "ABC") ans = "ARC";


    cout << ans << endl;

    return 0;
}

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

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

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

}

Compiler output:
a.cc:2:2: error: invalid preprocessing directive #incldue; did you mean #include?
    2 | #incldue <string>
      |  ^~~~~~~
      |  include
Language: C++

#include<bits/stdc++.h>

using namespace std;
int main(){
    int S;

    cin>>S;

    
    if(S == "ABC"){
        cout<<"ARC\n";
    }
    else{
        cout<<"ABC\n";
    }

    return 0;
}



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

#include <bits/stdc++.h>
using namespace std;
	
int main() {
 
  string S;
  cin >> S;
  
 /* for　(int i = 0; i < (N−1)/4; i++) {
	  //a[i] = S.at(i);
	  a[(N−1)/2-1-i] = S.at(i);
	  a[(N+3)/2-1+i] = S.at(i);
	  a[   N   -1-i] = S.at(i);
       }*/
  
  if(S=="ABC") {
	   cout << "ARC" << endl;
	   }else{
	   cout << "ABC" << endl;
	   }
}

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