criyle/codenet-compile-errors huggingface dataset:
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: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: Java

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

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

#include <stdio.h>
 
int main(void) {
  char S[3];
  int i;
  for (i=0;i<3;i++) {
  if(scanf("%s", &S)==1);
  }
  if (S[1]==B) {
    printf("ARC");
  }
  else {
    printf("ABC");
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:13: error: 'B' undeclared (first use in this function)
    9 |   if (S[1]==B) {
      |             ^
main.c:9:13: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

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

Compiler output:
a.cc:7:22: warning: missing terminating " character
    7 |   if(s=="ABC") cout<<"ARC<endl;
      |                      ^
a.cc:7:22: error: missing terminating " character
    7 |   if(s=="ABC") cout<<"ARC<endl;
      |                      ^~~~~~~~~~
a.cc: In function 'int maint()':
a.cc:8:3: error: expected primary-expression before 'else'
    8 |   else cout<<"ABC"<<endl;
      |   ^~~~
a.cc:9:1: warning: no return statement in function returning non-void [-Wreturn-type]
    9 | }
      | ^
Language: Java

import java.util.Scanner;

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


Compiler output:
Main.java:7: error: cannot find symbol
	if(s.equlas("ABC"))
	    ^
  symbol:   method equlas(String)
  location: variable s of type String
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;
}


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

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

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

  if (op == "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 <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)


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:10:11: error: 'ABC' was not declared in this scope
   10 |   if(S == ABC){
      |           ^~~
Language: C++

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

int main() {
	char a,b,c;
	cin >> a >> b >> c;
	if(b == "B")
	{
		b = "R";
	}
	else
	{
		b = "B";
	}
	cout << a << b << c;
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |         if(b == "B")
      |            ~~^~~~~~
a.cc:9:21: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
    9 |                 b = "R";
      |                     ^~~
      |                     |
      |                     const char*
a.cc:13:21: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
   13 |                 b = "B";
      |                     ^~~
      |                     |
      |                     const char*
Language: C++

#include<iostream>
using namespace std;
int main()
{
  string s;
  cin>>s;
  if(s.compare("ABC")) == 0)
    cout<<"ARC";
  else
    cout<<"ABC";
} 

Compiler output:
a.cc: In function 'int main()':
a.cc:7:24: error: expected primary-expression before '==' token
    7 |   if(s.compare("ABC")) == 0)
      |                        ^~
Language: C++

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

int main() {
  string s;
  cin >> s;
  //int A, B;
  //cin >> A >> B;

  if (s == "ABC") {
    cout << "ARC" << endl;
  }
  //else if (B - (B % K) != K){
  //else if ((B - (B % K)) >= A && (B - (B % K)) <= B) {
    //cout << "OK" << 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:3: error: 'string' was not declared in this scope
    5 |   string s;
      |   ^~~~~~
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin >> s;
      |   ^~~
a.cc:6:10: error: 's' was not declared in this scope
    6 |   cin >> s;
      |          ^
a.cc:11:5: error: 'cout' was not declared in this scope
   11 |     cout << "ARC" << endl;
      |     ^~~~
a.cc:11:22: error: 'endl' was not declared in this scope
   11 |     cout << "ARC" << endl;
      |                      ^~~~
a.cc:18:5: error: 'cout' was not declared in this scope
   18 |     cout << "ABC" << endl;
      |     ^~~~
a.cc:18:22: error: 'endl' was not declared in this scope
   18 |     cout << "ABC" << endl;
      |                      ^~~~
Language: C

import sys
import numpy as np

s=sys.stdin.readline().strip()
#n,k=map(int,sys.stdin.readline().split())
#a=np.array(sys.stdin.readline().split(),dtype='int64')
#a=np.array([sys.stdin.readline().split() for i in range(n)],dtype='int64')

if s=='ABC':
    print('ARC')
else:
    print('ABC')


Compiler output:
main.c:1:1: error: unknown type name 'import'
    1 | import sys
      | ^~~~~~
main.c:2:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'import'
    2 | import numpy as np
      | ^~~~~~
main.c:2:1: error: unknown type name 'import'
main.c:5:2: error: invalid preprocessing directive #n
    5 | #n,k=map(int,sys.stdin.readline().split())
      |  ^
main.c:6:2: error: invalid preprocessing directive #a
    6 | #a=np.array(sys.stdin.readline().split(),dtype='int64')
      |  ^
main.c:7:2: error: invalid preprocessing directive #a
    7 | #a=np.array([sys.stdin.readline().split() for i in range(n)],dtype='int64')
      |  ^
main.c:9:7: warning: multi-character character constant [-Wmultichar]
    9 | if s=='ABC':
      |       ^~~~~
main.c:10:11: warning: multi-character character constant [-Wmultichar]
   10 |     print('ARC')
      |           ^~~~~
main.c:12:11: warning: multi-character character constant [-Wmultichar]
   12 |     print('ABC')
      |           ^~~~~
Language: C++

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

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:8: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
    8 |   if(S="ABC"){cout<<"ARC"<<endl;
      |        ^~~~~
      |        |
      |        const char*
Language: C++

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

int main()
{
    char ch[10];
    gets(ch);
    if (strcmp(ch, "ARC")==0) printf("ABC\n");
    if (strcmp(ch, "ABC")==0) printf("ARC\n");
    return 0;
}


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

#include<bits/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: In function 'int main()':
a.cc:6:8: 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>
a.cc:8:14: error: could not convert 'S.std::__cxx11::basic_string<char>::operator=(((const char*)"ARC"))' from 'std::__cxx11::basic_string<char>' to 'bool'
    8 |   }else if(S ="ARC"){
      |            ~~^~~~~~
      |              |
      |              std::__cxx11::basic_string<char>
Language: C++

#include<cstdio>
#include<iostream>
#include<cstring>
#include<vector>
#include<queue>
#include<map>
#include<cmath>
#include<algorithm>
#include<cstdlib>
#include<stack>
#include<set>
using namespace std;
#define pb push_back
#define POP pop_back()
#define ll long long
#define db double
#define POP pop_back()
#define endl '\n'
#define PII pair<int,int>
#define FI first
#define SE second
#define VI vector<int>
#define QI queue<int>
#define SI stack<int>
#define debug cout<<"debug"<<endl;
#define PLL pair<ll,ll>
#define PDD pair<double,double>
#define ULL unsigned long long
#define fo(i,a,b) for (int i=a;i<=b;++i)
#define fd(i,a,b) for (int i=a;i>=b;--i)
#define mem(x,a) memset(x,a,sizeof(x))
const int maxn = 1e5 + 5;
const int inf = 0x3f3f3f3f;
const int mod = 1e9 + 7;
int main(){
	string s = "ABC" , s1;cin >> s1;
	if(s1 == s)cout << "ARC << endl;
	else cout << s << endl;
	return 0;
}

Compiler output:
a.cc:37:28: warning: missing terminating " character
   37 |         if(s1 == s)cout << "ARC << endl;
      |                            ^
a.cc:37:28: error: missing terminating " character
   37 |         if(s1 == s)cout << "ARC << endl;
      |                            ^~~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:38:9: error: expected primary-expression before 'else'
   38 |         else cout << s << endl;
      |         ^~~~
Language: Java

import java.util.Scanner;

public class Question1 {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        StringBuilder sb = new StringBuilder();
        while(sc.hasNextLine())
            sb.append(sc.nextLine());
        if (sb.equals("ARC")) {
            System.out.println("ABC");
        } else {
            System.out.println("ARC");
        }
    }
}


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

#include<iostream>
#include<string>
#include<vector>
#include<algorithm>
#include<math.h>
#include<tuple>
#include<cctype>
#define rep(i,n) for (int i = 0; i < (n); i++)
#define repp(i,j,n) for (int i = (j); i < (n); i++)
#define Reo(i,j,n) for(int i=(j); i <= (n); i++)
using namespace std;
typedef long long ll;
int main() {
	string s;
  　cin>>s;
	if (s == "ABC") {
		cout << "ARC" << endl;
	}
	else {
		cout << "ABC" << endl;
	}
	return 0;
}


Compiler output:
a.cc:15:3: error: extended character 　 is not valid in an identifier
   15 |   　cin>>s;
      |   ^
a.cc: In function 'int main()':
a.cc:15:3: error: '\U00003000cin' was not declared in this scope
   15 |   　cin>>s;
      |   ^~~~~
Language: C++

//(・ω・)
#include <stdio.h>
#include <iostream> // cout, endl, cin
#include <string> // string, to_string, atoi
#include <vector> // vector
#include <algorithm> // min, max, swap, sort, reverse, lower_bound, upper_bound
#include <utility> // pair, make_pair
#include <tuple> // tuple, make_tuple
#include <cstdint> // int64_t, int*_t
#include <cstdio> // printf
#include <map> // map
#include <queue> // queue, priority_queue
#include <set> // set
#include <stack> // stack
#include <deque> // deque
#include <unordered_map> // unordered_map
#include <unordered_set> // unordered_set
#include <bitset> // bitset
#include <cctype> // isupper, islower, isdigit, toupper, tolower
#include <math.h>
#include <iomanip> //setprecision
#include <limits>
#include <sstream> //istringstream
#include <stdlib.h>
#include <list>
#include <iterator>//std::advance()
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:32:8: error: could not convert 's.std::__cxx11::basic_string<char>::operator=(((const char*)"ABC"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   32 |    if(s="ABC") cout << "ARC" << endl;
      |       ~^~~~~~
      |        |
      |        std::__cxx11::basic_string<char>
Language: C++

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

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


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

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

		String a = sc.nextInt();
		if ("ABC".equals(a)) {
          System.out.println("ARC");
        }else if ("ARC".equals(a)){
          System.out.println("ABC");
        }
	}
}

Compiler output:
Main.java:6: error: incompatible types: int cannot be converted to String
		String a = sc.nextInt();
		                     ^
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;

  cout<<a<<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() {
  string a;
  cin >> a;
  if(a=="ABC"){
    cout << "ARC" << endl;  
  }
  else(a=="ARC"){
    cout << "ABC" << endl;  
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:17: error: expected ';' before '{' token
    9 |   else(a=="ARC"){
      |                 ^
      |                 ;
a.cc:9:9: 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]
    9 |   else(a=="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<stdio.h>

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


Compiler output:
main.c: In function 'main':
main.c:5:16: error: expected expression before ']' token
    5 |   scanf("%s",s[]);
      |                ^
main.c:6:8: error: expected expression before ']' token
    6 |   if(s[]=='ARC'){printf("ABC");}
      |        ^
main.c:6:11: warning: multi-character character constant [-Wmultichar]
    6 |   if(s[]=='ARC'){printf("ABC");}
      |           ^~~~~
Language: Java

import java.util.*;

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

    }


Compiler output:
Main.java:6: error: incompatible types: int cannot be converted to String
        String a = sc.nextInt();
                             ^
1 error
Language: C

#include <iostream>
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: iostream: No such file or directory
    1 | #include <iostream>
      |          ^~~~~~~~~~
compilation terminated.
Language: C++

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

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


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

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


int main() {
    cin.tie(0);
    ios::sync_with_stdio(false);
    cout << fixed << setprecision(20);


    string s;
    cin >> s;

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


    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 S.ans;
  cin >> S;
  
  if(S == "ABC") ans = "ARC";
  else ans = "ARC";
  cout << ans << endl;
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:11: error: expected initializer before '.' token
    4 |   string S.ans;
      |           ^
a.cc:5:10: error: 'S' was not declared in this scope
    5 |   cin >> S;
      |          ^
a.cc:7:18: error: 'ans' was not declared in this scope; did you mean 'abs'?
    7 |   if(S == "ABC") ans = "ARC";
      |                  ^~~
      |                  abs
a.cc:8:8: error: 'ans' was not declared in this scope; did you mean 'abs'?
    8 |   else ans = "ARC";
      |        ^~~
      |        abs
a.cc:9:11: error: 'ans' was not declared in this scope; did you mean 'abs'?
    9 |   cout << ans << endl;
      |           ^~~
      |           abs
Language: C

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

int main() {
	// your code goes here
	string s;
	cin>>s;
	if(s=="ABC"){
		cout<<"ARC";
	}
	else if(s=="ARC"){
		cout<<"ABC";
	}
	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>
#define ll long long
#define SIZE_OF_ARRAY(array) (sizeof(array)/sizeof(array[0]))

using namespace std;

int gcd(int x, int y) { return (x % y)? gcd(y, x % y): y; }

int main(){
    string s; cin >> s;
    string ans = s=="ABC" ? "ARC":"ABC"A;

    cout << ans << endl;

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:35: error: unable to find string literal operator 'operator""A' with 'const char [4]', 'long unsigned int' arguments
   11 |     string ans = s=="ABC" ? "ARC":"ABC"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;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:3: error: 'else' without a previous 'if'
   10 |   else cout << "ABC" << endl;
      |   ^~~~
Language: C

#include<stdio.h>
#include<stdlib.h>
#include<string.h>
int max(int a,int b){return a>b?a:b;}
int min(int a,int b){return a<b?a:b;} 
int main(void)
{
    char s[3];
  	scanf("%s",&s);
    if(s[1]=='R')
      printf("ABC");
  else
    printf("ARC")
}

Compiler output:
main.c: In function 'main':
main.c:13:18: error: expected ';' before '}' token
   13 |     printf("ARC")
      |                  ^
      |                  ;
   14 | }
      | ~
Language: C

#include<stdio.h>

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


Compiler output:
main.c: In function 'main':
main.c:5:16: error: expected expression before ']' token
    5 |   scanf("%s",s[]);
      |                ^
main.c:6:9: warning: multi-character character constant [-Wmultichar]
    6 |   if(s=='ARC'){printf("ABC");}
      |         ^~~~~
main.c:6:7: warning: comparison between pointer and integer
    6 |   if(s=='ARC'){printf("ABC");}
      |       ^~
Language: C

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

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

    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<stdio.h>

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

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

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

  int main()
  {
    string n;
    cin>>n;
    if(n=="ABC") cout<<"ARC";
    else 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:18: error: 'cout' was not declared in this scope
    8 |     if(n=="ABC") cout<<"ARC";
      |                  ^~~~
a.cc:8:18: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:9:10: error: 'cout' was not declared in this scope
    9 |     else cout<<"ABC";
      |          ^~~~
a.cc:9:10: 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(){
	string s;
	cin>>s;
	
	if(s="ABC")
		cout<<"ARC";
	else
		cout<<"Abc";
		
	return 0;
}

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

import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.io.IOException;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.InputStream;

/**
 * Built using CHelper plug-in
 * Actual solution is at the top
 *
 * @author bhavy seth
 */
public class Solution {
    public static void main(String[] args) {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        InputReader in = new InputReader(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        A solver = new A();
        solver.solve(1, in, out);
        out.close();
    }

    static class A {
        public void solve(int testNumber, InputReader sc, PrintWriter out) {
            String s = sc.nextLine();
            if (s.equals("ARC"))
                out.println("ABC");
            else out.println("ARC");
        }

    }

    static class InputReader {
        BufferedReader br;

        public InputReader(InputStream inputStream) {
            br = new BufferedReader(new
                    InputStreamReader(inputStream));
        }

        public String nextLine() {
            String str = "";
            try {
                str = br.readLine();
            } catch (IOException e) {
                e.printStackTrace();
            }
            return str;
        }

    }
}



Compiler output:
Main.java:16: error: class Solution is public, should be declared in a file named Solution.java
public class Solution {
       ^
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:6:9: 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<bbits/stdc++.h>
using namespace std;
int main(){
  string x;
  cin>>x;
  if(x=="ABC")
    cout<<"ARC";
  else
    cout<<"ABC";
  return 0;
}

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |     if(in=="ABC")cout<<"ARC"<<endl;
      |        ~~^~~~~~~
Language: Java

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


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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:6: error: expected unqualified-id before '>>' token
    6 |   int>>s;
      |      ^~
Language: C

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


using ll = long long;
int ASC( void *a,  void *b) {
	return strcmp(*(const char **)a, *(const char **)b);//降順
}
int GCD(int a, int b) {
	if (b == 0) return a;
	else return GCD(b, a % b);
}

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

Compiler output:
main.c:7:1: error: unknown type name 'using'
    7 | using ll = long long;
      | ^~~~~
main.c:7:12: error: expected expression before 'long'
    7 | using ll = long long;
      |            ^~~~
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: In function 'int main()':
a.cc:7:13: error: 'ABC' was not declared in this scope
    7 |   if ( A == ABC ){
      |             ^~~
Language: C

#include <bits/stdc++.h>
#define fi first
#define se second
#define For(i, a, b) for (int i = (a); i <= (b); ++i)
#define Ford(i, a, b) for (int i = (a); i >= (b); --i)
#define endl '\n'
#define debug(a) cout << a << endl
using namespace std;

typedef long long ll;
typedef pair<ll, ll> pll;
typedef vector<ll> vll;

const ll maxN = 1e18;
const ll minN = -1e18;
const ll MOD = 1e9 + 7;

const ll limit = 2e5 + 5;
const ll limit1 = 1e6 + 5;
const ll limit2 = 1e3 + 5;
const ll limit3 = 1e4 + 5;

ll test;
ll n, k;
string s;
ll res = 0, sum = 0, ans = 0, kd, hkd;
bool ok = false;

void FastIn(){
    ios_base::sync_with_stdio(false);
    cin.tie(0);
    cout.tie(0);
}

void ReadIn(){
    cin >> s;
    if(s == "ABC") cout << "ARC";
    if(s == "ARC") cout << "ABC";
}
int main(){
    FastIn();
    ReadIn();
}
/*
* Ctrl + Shift + K Delete Line
* Ctrl + / TOGGLE LINE COMMENT
Ctrl + F Find
* Ctrl + H  REPLACE
* shift + alt + f FORMAT CODE DOCUMENT
Shift + alt + uparrow/downarrow Copy line up/down
Ctrl + ]/[ INDENT/OUTDENT LINE
Quy Hoạch Động
2 kiểu
+ Đếm cách
+ Dùng ít nhất
*/


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>
#include <vector>
#include <string>
#include <stdio.h>
#include <math.h>
#include <cstdlib>
#include <iostream>
#include <cstdlib>
#include <algorithm>
using namespace std;
using ll = long long;

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

    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() {
  int S;
  cin >> S;
  
  if( S == "ABC" ){
    cout << "ARC" << endl;
  }
  else if ( S == "ARC" ){
    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" ){
      |       ~~^~~~~~~~
a.cc:11:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |   else if ( S == "ARC" ){
      |             ~~^~~~~~~~
Language: C++

#include<iostream>
#include<string>
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: 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

/**
*    created: 03.05.2020 21:00:14
**/

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

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

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

#include <iostream>

using namespace std;

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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:13:9: error: 'ans' was not declared in this scope; did you mean 'abs'?
   13 |   cout<<ans<<endl;
      |         ^~~
      |         abs
Language: Java

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

	if(a.equals("ARC")){
      String ans = "ABC";
    } else {
      String ans = "ARC";
    }
    
    System.out.println(ans);
  }
}

Compiler output:
Main.java:14: error: cannot find symbol
    System.out.println(ans);
                       ^
  symbol:   variable ans
  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:6:9: 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;
const int N=1e6+10;
int q[N];
#define f(i,a,b) for(int i=a;i<b;i++)
#define read(x)  scanf("%d",&x)
char a[10],b[10];
int main(){
gets(a);
b[1]='B';
if(a[1]=='B')printf("ARC");
else printf("ABC");
return 0;
}


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

#include <bits/stdc++.h>
using namespace std;
 
#define rep(i, n) for(ll i=0; i<n; i++)
#define all(v) v.begin(), v.end()
#define vec vector

/*  <<bit全探索>>
 
    for (int tmp = 0; tmp < (1 << ビット数); tmp++) {
        bitset<ビット数> s(tmp);
    }
*/
 
/*　<<stringで読み込んだ数列を一桁ずつint型へ変換>>
 
    string str;
    int N[桁数];
 
    cin >> str;
 
    for (int i = 0; i < 桁数; ++i) {
 
        N[i] = (int)(str[i] - '0');  //str[i]　はchar型なのでchar→intへ変換
 
        //cout << N[i] << endl;  //確認のため表示
    }
*/
 
typedef long long ll;

///////////////////////////////////////////////////////////////////////////


int main() { 

    string S;
    cin >> S;

    if(srting.at(1) == "B"){
        cout << "ARC" << endl;
    }
    else{
        cout << "ABC" << endl;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:40:8: error: 'srting' was not declared in this scope
   40 |     if(srting.at(1) == "B"){
      |        ^~~~~~
Language: C++

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

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

    if (s.at(1) == "B"){
        cout << "ARC" << endl;
    }
    else{
        cout << "ABC" << endl;
    }
    return 0;
}


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

#include <string>
#include <cstdio>
#include <cstdlib>
int main(int argc,char** argv){
  std::string S = argv[1];
  if(S=="ARC") std::cout << "ABC" << std::endl;
  else         std::cout << "ARC" << std::endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main(int, char**)':
a.cc:6:21: error: 'cout' is not a member of 'std'
    6 |   if(S=="ARC") std::cout << "ABC" << std::endl;
      |                     ^~~~
a.cc:4:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    3 | #include <cstdlib>
  +++ |+#include <iostream>
    4 | int main(int argc,char** argv){
a.cc:6:43: error: 'endl' is not a member of 'std'
    6 |   if(S=="ARC") std::cout << "ABC" << std::endl;
      |                                           ^~~~
a.cc:4:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    3 | #include <cstdlib>
  +++ |+#include <ostream>
    4 | int main(int argc,char** argv){
a.cc:7:21: error: 'cout' is not a member of 'std'
    7 |   else         std::cout << "ARC" << std::endl;
      |                     ^~~~
a.cc:7:21: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:7:43: error: 'endl' is not a member of 'std'
    7 |   else         std::cout << "ARC" << std::endl;
      |                                           ^~~~
a.cc:7:43: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

#include<bits/stdc++.h>
#include<stdint.h>
#define ff first
#define ss second

using namespace std;


#define MOD 1e9+7
#define ll long long int


void solve()
{
	string s;
	cin>>s;

	if(strcmp(s,"ABC")==0)
		cout<<"ARC\n";
	else
		cout<<"ABC\n";
	
}



int32_t main()
{
	ios_base::sync_with_stdio(false);
	cin.tie(NULL);

	#ifndef ONLINE_JUDGE 
      	freopen("_input.txt", "r", stdin); 
  	freopen("_output.txt", "w", stdout); 
  	#endif 
	

    solve();

	
}

Compiler output:
a.cc: In function 'void solve()':
a.cc:18:19: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'const char*'
   18 |         if(strcmp(s,"ABC")==0)
      |                   ^
      |                   |
      |                   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++

#include <bits/stdc++.h>
using namespace std;
#define int long long
#define rep(i,n) for(int i=0;i<n;i++)
#define rep1(i,n) for(int i=1;i<=n;i++)
#define rep2(i,n) for(int i=0;i<=n;i++)
#define repr(i,a,n) for(int i=a;i<n;i++)
#define all(a) a.begin(),a.end()
#define P pair<long long,long long>
#define double long double
#define INF 1e10
#define MOD 1e9+7
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; }
using Graph = vector<vector<int>>;
int fg(int k){
    int sum = 1;
    for (int i = 1; i <= k; ++i)
    {
        sum *= i;
    }
    return sum;
}
signed main(){
　string a;
  cin>>a;
  if(a=="ABC"){
   cout<<"ARC";
  }
  else{
cout<<"ARC";
  }
}


Compiler output:
a.cc:25:1: error: extended character 　 is not valid in an identifier
   25 | 　string a;
      | ^
a.cc: In function 'int main()':
a.cc:25:1: error: '\U00003000string' was not declared in this scope
   25 | 　string a;
      | ^~~~~~~~
a.cc:26:8: error: 'a' was not declared in this scope
   26 |   cin>>a;
      |        ^
Language: Java

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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    6 |     if(S.at(1) == "R")cout << "ABC" << endl;
      |        ~~~~~~~~^~~~~~
a.cc:7:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |     if(S.at(1) == "B")cout << "ARC" << endl;
      |        ~~~~~~~~^~~~~~
Language: Java

//make sure to make new file!
import java.io.*;
import java.util.*;

public class A166{
   
   public static void main(String[] args)throws IOException{
      BufferedReader f = new BufferedReader(new InputStreamReader(System.in));
      PrintWriter out = new PrintWriter(System.out);
      
      String s = f.readLine();
      
      if(s.equals("ABC")){
         out.println("ARC");
      } else {
         out.println("ABC");
      }
      
      
      
      
      
      
      
      
      
      out.close();
   }
   
      
}

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:7: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    6 |   if(a=="ABC"){
      |      ~^~~~~~~
a.cc:9:9: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |   else(a=="ARC"){
      |        ~^~~~~~~
a.cc:9:17: error: expected ';' before '{' token
    9 |   else(a=="ARC"){
      |                 ^
      |                 ;
Language: C++

#include <iostream>
#include <vector>
#include <algorithm>
#include <cmath>
#include <numeric>
#include <functional>
#include <string>
#include <map>//map<int, int> x;
#include <numeric>
#define rep(i, n) for (int i = 1; i <= (int)(n); i++)
#define SIZE_OF_ARRAY(array) (sizeof(array)/sizeof(array[0]))

using ll = long long;
using namespace std;
 int main(){
 ll n,sum=0; 
 cin>>s;
if(s=="ABC")
cout<<"ARC"<<endl;
if(s=="ARC")
cout<<"ABC"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:7: error: 's' was not declared in this scope
   17 |  cin>>s;
      |       ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define ll  long long
#define mp make_pair
#define pb  push_back
#define ALL(_a)   _a.begin(), _a.end()
#define PI acos(-1.0)
#define MAX 200005
#define MOD 1000000007
#define nl '\n'
#define pqmin(x) priority_queue<x, vector<x>, greater<x>>
#define pqmax(x) priority_queue<x>
#define testCase(x) int x; cin>>x; for(int tc=1;tc<=x;tc++)
#define int ll
void c_p_c() {
   ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);
#ifndef ONLINE_JUDGE
   freopen("input.txt", "r", stdin);
   freopen("output.txt", "w", stdout);
#endif
}
//............................................................
//   A'udhu Billaahi min ash-shaitwanir rajeem
//       Bismillah-ir Rahman-ir Raheem
//           Rabbi zidnee 'ilmaa
//............................................................
void solve(int tc) {
   string s;
   cin>>s;
   if(s=="ABC")cout<<"ARC"<<nl;
   else cout<<"ABC"<<nl;
}
int32_t main() {
   c_p_c();
   //testCase(t)
   solve(tc);
   return 0;
}


Compiler output:
a.cc: In function 'int32_t main()':
a.cc:36:10: error: 'tc' was not declared in this scope; did you mean 'tm'?
   36 |    solve(tc);
      |          ^~
      |          tm
Language: C++

/****************************************************
*   Template for coding contests                    *
*   Author    :    Sanjeev Sharma                   *
*   Email     :    thedevelopersanjeev@gmail.com    *
*****************************************************/
#pragma GCC optimize ("O3")
#pragma GCC optimize("Ofast")
#pragma GCC optimize ("unroll-loops")
#pragma GCC optimize("no-stack-protector,fast-math")
#pragma GCC target ("sse4")
#pragma comment(linker, "/stack:200000000")

#include <bits/stdc++.h>
#include <ext/pb_ds/tree_policy.hpp>
#include <ext/pb_ds/assoc_container.hpp>

using namespace __gnu_pbds;
using namespace std;

#define deb(x) cout << #x << " is " << x << "\n";
#define int long long
#define mod 1000000007

const double PI = 2 * acos(0.0);
const long long INF = 1e18L + 5;
template <typename T>
using ordered_set = tree<T, null_type, less<T>, rb_tree_tag, tree_order_statistics_node_update>;

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

int32_t main() {
	ios_base::sync_with_stdio(false);
	cin.tie(NULL);
	solve();
	return 0;
}


Compiler output:
a.cc: In function 'void solve()':
a.cc:32:44: error: expected ':' before ')' token
   32 |         cout << (s == "ABC" ? "ARC" ? "ABC");
      |                                            ^
      |                                            :
a.cc:32:44: error: expected primary-expression before ')' token
a.cc:32:44: error: expected ':' before ')' token
   32 |         cout << (s == "ABC" ? "ARC" ? "ABC");
      |                                            ^
      |                                            :
a.cc:32:44: error: expected primary-expression before ')' token
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int S;
  cin >> S;
  
  string res = "ARC";
 
  if (S.at(1) == 'R') {
    res = "ABC";
  }
  
  cout << res << endl;
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: request for member 'at' in 'S', which is of non-class type 'int'
   10 |   if (S.at(1) == 'R') {
      |         ^~
Language: C++

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

#define ll long long
#define endl "\n"
#define FAST ios_base::sync_with_stdio(false); cin.tie(NULL);
#define M 1000000007

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

int main()
{
	FAST
	ll t=1;
	//cin>>t;
	for(ll i=0;i<t;i++) solve();
	return 0;


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

/**
 * A - A?C
 * https://atcoder.jp/contests/abc166/tasks/abc166_a
 */
#include <bits/stdc++.h>
using namespace std;
 
int main() {
    // コンテストには ABC と ARC の 2 つの種類があり、毎週どちらか一方が開催されます。
    // ABC が開催された次の週には ARC が開催され、ARC が行われた次の週には ABC が開催されます。
    // 先週開催されたコンテストを表す文字列 S が与えられるので、今週開催されるコンテストを表す文字列を出力してください。
    string S;
    cin >> S;

    // S は ABC または ARC
    cout << (S == "ABC" ? "ARC" : "ABC") << endl;
}
 

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:16: error: 'B' was not declared in this scope
    7 |   cout<<(s[1]==B?"ARC":"ABC")<<endl;
      |                ^
Language: C++

main(){
  getchar();
  if(getchar() == 'B') puts("ARC");
  else puts("ABC");
  return 0;
}

Compiler output:
a.cc:1:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    1 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:2:3: error: 'getchar' was not declared in this scope
    2 |   getchar();
      |   ^~~~~~~
a.cc:1:1: note: 'getchar' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | main(){
a.cc:3:24: error: 'puts' was not declared in this scope
    3 |   if(getchar() == 'B') puts("ARC");
      |                        ^~~~
a.cc:4:8: error: 'puts' was not declared in this scope
    4 |   else puts("ABC");
      |        ^~~~
Language: C++

#include <iostream>

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:24: error: 'B' was not declared in this scope
    8 |         if (S.at(1) == B) {
      |                        ^