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

#include<bits/stdc++.h>
typedef long long int ll;
using namespace std;

void solve()
{
	int s;
	cin >> s;
	if(s[1] == 'R') cout << "ABC";
	else cout << "ABC";
	
}

int main()
{
	cin.tie(0);
	ios::sync_with_stdio(false);
	solve();
	return 0;
}


Compiler output:
a.cc: In function 'void solve()':
a.cc:9:13: error: invalid types 'int[int]' for array subscript
    9 |         if(s[1] == 'R') cout << "ABC";
      |             ^
Language: C++

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

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

}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:8: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'equal'
    8 |   if(S.equal("ARC")){
      |        ^~~~~
Language: C++

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

Compiler output:
a.cc:8:14: warning: missing terminating " character
    8 |   else cout<<"ABC;
      |              ^
a.cc:8:14: error: missing terminating " character
    8 |   else cout<<"ABC;
      |              ^~~~~
a.cc: In function 'int main()':
a.cc:9:1: error: expected primary-expression before '}' token
    9 | }
      | ^
Language: C

#include <stdio.h>

int main(void) {
	char s[10];
	scanf_s("%s", s, 10);

	if (s[1] == 'B')
	{
		printf("ARC");
	}
	else
	{
		printf("ABC");
	}

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:9: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    5 |         scanf_s("%s", s, 10);
      |         ^~~~~~~
      |         scanf
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:8: error: expected primary-expression before '<<' token
    8 |   else << "ARC" << endl;
      |        ^~
Language: Java

public class Main {
  public static void main(String[] args) {
    String S = new java.util.Scanner(System.in).nextText();
    switch (S) {
      case "ABC":
       System.out.println("ARC");
       break;
      case "ARC":
       System.out.println("ABC");
       break;
    }
  }
}


Compiler output:
Main.java:3: error: cannot find symbol
    String S = new java.util.Scanner(System.in).nextText();
                                               ^
  symbol:   method nextText()
  location: class Scanner
1 error
Language: Java

public class Main {
  public static void main(String[] args) {
    String S = new java.util.Scanner(System.in).nextText;
    switch (S) {
      case ABC:
       System.out.println("ARC");
       break;
      case ARC:
       System.out.println("ABC");
       break;
    }
  }
}


Compiler output:
Main.java:3: error: cannot find symbol
    String S = new java.util.Scanner(System.in).nextText;
                                               ^
  symbol:   variable nextText
  location: class Scanner
Main.java:5: error: cannot find symbol
      case ABC:
           ^
  symbol:   variable ABC
  location: class Main
Main.java:8: error: cannot find symbol
      case ARC:
           ^
  symbol:   variable ARC
  location: class Main
3 errors
Language: Java

public class Main {
  public static void main(String[] args) {
    String S = new java.util.Scanner(System.in).nextText;
    switch (S) {
      case ABC:
       System.out.println("ARC");
       break;
      case ARC;
       System.out.println("ABC");
       break;
    }
  }
}

Compiler output:
Main.java:8: error: : or -> expected
      case ARC;
              ^
1 error
Language: Java

public class Main {
  public static void main(String[] args) {
    String S = new.java.util.Scanner(System.in).nextText;
    switch (S)
      case ABC:
       System.out.println("ARC");
       break;
      case ARC;
       System.out.println("ABC");
       break;
  }
}


Compiler output:
Main.java:3: error: <identifier> expected
    String S = new.java.util.Scanner(System.in).nextText;
                  ^
Main.java:4: error: '{' expected
    switch (S)
              ^
Main.java:8: error: : or -> expected
      case ARC;
              ^
Main.java:12: error: reached end of file while parsing
}
 ^
4 errors
Language: C

#include <stdio.h>

int main(){
    char S[4];
    scanf("%s", &s);
    
    (S[1] == 'B') ? printf("ARC") : printf("ABC");

    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:18: error: 's' undeclared (first use in this function)
    5 |     scanf("%s", &s);
      |                  ^
main.c:5:18: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>

int main(){
    char S[4];
    scanf("%s", s);
    
    (S[1] == 'B') ? printf("ARC") : printf("ABC");

    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:17: error: 's' undeclared (first use in this function)
    5 |     scanf("%s", s);
      |                 ^
main.c:5:17: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include <iostream>
#include <vector>
#include <algorithm>
#include <map>
#include <stack>
#include <set>
#include <queue>
#include <iomanip>
#include <math.h>
#include <fstream>

using namespace std;

long long mod = 1000000007;

void dfs(int p, int prev, vector<int> &a, vector<int> &dp, int dpl, vector<vector<int>> &v, vector<int> &res)
{
    int l = -1, r = dpl, mid;
    while (r - l > 1)
    {
        mid = (l + r) / 2;
        if (dp[mid] >= a[p])
        {
            r = mid;
        }
        else
        {
            l = mid;
        }
    }
    int temp = dp[r];
    dp[r] = a[p];
    if (temp == -1)
    {
        dpl++;
    }
    res[p] = dpl;
    for (int i = 0; i < v[p].size(); i++)
    {
        if (v[p][i] == prev)
        {
            continue;
        }
        dfs(v[p][i], p, a, dp, dpl, v, res);
    }
    dp[r] = temp;
}

int main()
{
    ios::sync_with_stdio(false);
    cout << fixed << setprecision(12);
    // ifstream cin("in.txt");
    // ofstream cout("out.txt");
    
    
    // int t;
    // cin >> t;
    // for (int qwe = 0; qwe < t; qwe++)
    // {
    //     cout << "Case #" << qwe + 1 << ": ";
    // }


    string s;
    cin >> s;
    cout << (s == "ABC") ? "ARC" : "ABC" << '\n';



    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:67:42: error: invalid operands of types 'const char [4]' and 'char' to binary 'operator<<'
   67 |     cout << (s == "ABC") ? "ARC" : "ABC" << '\n';
      |                                    ~~~~~ ^~ ~~~~
      |                                    |        |
      |                                    |        char
      |                                    const char [4]
Language: C++

#include <stdio.h>

int main(){
	int a,b;
	scanf("%d %d",&a,&b);
	for (int i=a;a<=b;a++){
		if(a%2 ==1){
			printf("%d",a);
			continue;
		}
	}

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

#include <stdio.h>

int main() {

    char x[255];
    
    scanf("%s", x);
    if(s[1] == 'B') {
        printf("ARC\n");
    } else {
        printf("ABC\n");
    }

    return 0;
}

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

#include <stdio.h>
int main(){
      char X[10];
      scanf("%s", &X);
      if (X[1] == 'B'){
          printf("ARC\n")  }
          else if (X[1] == 'R'){
          	printf("ABC\n");	}
 return 0;
 }

Compiler output:
a.cc: In function 'int main()':
a.cc:6:26: error: expected ';' before '}' token
    6 |           printf("ARC\n")  }
      |                          ^ ~
      |                          ;
Language: C++

#include<stdio.h>
int main(){
	char nama[5];
	
	scanf("%s", nama);
	
	if(nama[1] == 'B'){
		printf("ARC");
	} else if (nama[2] == 'R'){
		printf("ABC");
	} 
	return 0;

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

#include <stdio.h>

int main(){
    char S[3] ;
    scanf("%s", %S) ;
    if(S[1]=='B'){
        S[1]='R' ;
    }
    else{
        S[1]='B' ;
    }
    printf("%S\n", S) ;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:17: error: expected primary-expression before '%' token
    5 |     scanf("%s", %S) ;
      |                 ^
Language: C++

#include<stdio.h>

int main(){
    char S[3] ;
    scanf("%s", %S) ;
    if(S[1]=='B'){
        S[1]='R' ;
    }
    else{
        S[1]='B' ;
    }
    printf("%S", S) ;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:17: error: expected primary-expression before '%' token
    5 |     scanf("%s", %S) ;
      |                 ^
Language: C

#include<stdio.h>
int main()
{
	char input[5];
	scanf("%s",input);
	input[1] == 'B' ? input[1] = 'R' : input[1] = 'B';
	printf("%s",input);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:53: error: lvalue required as left operand of assignment
    6 |         input[1] == 'B' ? input[1] = 'R' : input[1] = 'B';
      |                                                     ^
Language: C

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

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

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

Compiler output:
main.c: In function 'main':
main.c:5:8: warning: comparison between pointer and integer
    5 |   if(s == "ABC"){
      |        ^~
main.c:8:10: error: expected '(' before '{' token
    8 |   else if{
      |          ^
      |          (
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:3:8: error: array size missing in 's'
    3 |   char s[];
      |        ^
main.c:8:10: error: expected '(' before '{' token
    8 |   else if{
      |          ^
      |          (
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:3:8: error: array size missing in 's'
    3 |   char s[];
      |        ^
main.c:8:10: error: expected '(' before '{' token
    8 |   else if{
      |          ^
      |          (
Language: C

#include <stdio.h>
int main(){
  char get, c;
  scanf("%s", &s);
  get = c;
  if(get == "ABC"){
    printf("ARC");
  }
  else{
    printf("ABC");
  }
}

Compiler output:
main.c: In function 'main':
main.c:4:16: error: 's' undeclared (first use in this function)
    4 |   scanf("%s", &s);
      |                ^
main.c:4:16: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:10: warning: comparison between pointer and integer
    6 |   if(get == "ABC"){
      |          ^~
Language: C

#include <stdio.h>
int main(){
  scanf("%c", &c);
  get = c;
  if(get == "ABC"){
    printf("ARC");
  }
  else{
    printf("ABC");
  }
}

Compiler output:
main.c: In function 'main':
main.c:3:16: error: 'c' undeclared (first use in this function)
    3 |   scanf("%c", &c);
      |                ^
main.c:3:16: note: each undeclared identifier is reported only once for each function it appears in
main.c:4:3: error: 'get' undeclared (first use in this function); did you mean 'getw'?
    4 |   get = c;
      |   ^~~
      |   getw
Language: C

#include <stdio.h>
int main(){
  scanf("%c", &c);
  get = c;
  if(get == "ABC"){
    return "ARC";
  }
  else{
    return "ABC";
  }
}

Compiler output:
main.c: In function 'main':
main.c:3:16: error: 'c' undeclared (first use in this function)
    3 |   scanf("%c", &c);
      |                ^
main.c:3:16: note: each undeclared identifier is reported only once for each function it appears in
main.c:4:3: error: 'get' undeclared (first use in this function); did you mean 'getw'?
    4 |   get = c;
      |   ^~~
      |   getw
main.c:6:12: error: returning 'char *' from a function with return type 'int' makes integer from pointer without a cast [-Wint-conversion]
    6 |     return "ARC";
      |            ^~~~~
main.c:9:12: error: returning 'char *' from a function with return type 'int' makes integer from pointer without a cast [-Wint-conversion]
    9 |     return "ABC";
      |            ^~~~~
Language: C

#include <stdio.h>
int main(){
  scanf("%c", &c);
  get = c;
  if(get = "ABC"){
    return "ARC";
  }
  else{
    return "ABC"
  }
}

Compiler output:
main.c: In function 'main':
main.c:3:16: error: 'c' undeclared (first use in this function)
    3 |   scanf("%c", &c);
      |                ^
main.c:3:16: note: each undeclared identifier is reported only once for each function it appears in
main.c:4:3: error: 'get' undeclared (first use in this function); did you mean 'getw'?
    4 |   get = c;
      |   ^~~
      |   getw
main.c:6:12: error: returning 'char *' from a function with return type 'int' makes integer from pointer without a cast [-Wint-conversion]
    6 |     return "ARC";
      |            ^~~~~
main.c:9:12: error: returning 'char *' from a function with return type 'int' makes integer from pointer without a cast [-Wint-conversion]
    9 |     return "ABC"
      |            ^~~~~
main.c:9:17: error: expected ';' before '}' token
    9 |     return "ABC"
      |                 ^
      |                 ;
   10 |   }
      |   ~
Language: C

int main(){
  scanf("%c", &c);
  get = c;
  if(get == "ABC"){
    return "ARC";
  }
  else{
    return "ABC";
  }
}

Compiler output:
main.c: In function 'main':
main.c:2:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    2 |   scanf("%c", &c);
      |   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main(){
main.c:2:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    2 |   scanf("%c", &c);
      |   ^~~~~
main.c:2:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:2:16: error: 'c' undeclared (first use in this function)
    2 |   scanf("%c", &c);
      |                ^
main.c:2:16: note: each undeclared identifier is reported only once for each function it appears in
main.c:3:3: error: 'get' undeclared (first use in this function)
    3 |   get = c;
      |   ^~~
main.c:5:12: error: returning 'char *' from a function with return type 'int' makes integer from pointer without a cast [-Wint-conversion]
    5 |     return "ARC";
      |            ^~~~~
main.c:8:12: error: returning 'char *' from a function with return type 'int' makes integer from pointer without a cast [-Wint-conversion]
    8 |     return "ABC";
      |            ^~~~~
Language: C

int main(){
  scanf("%c", &c);
  get = c;
  if(get == "ABC"){
    return "ARC";
  }
  else{
    return "ABC"
  }
}

Compiler output:
main.c: In function 'main':
main.c:2:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    2 |   scanf("%c", &c);
      |   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main(){
main.c:2:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    2 |   scanf("%c", &c);
      |   ^~~~~
main.c:2:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:2:16: error: 'c' undeclared (first use in this function)
    2 |   scanf("%c", &c);
      |                ^
main.c:2:16: note: each undeclared identifier is reported only once for each function it appears in
main.c:3:3: error: 'get' undeclared (first use in this function)
    3 |   get = c;
      |   ^~~
main.c:5:12: error: returning 'char *' from a function with return type 'int' makes integer from pointer without a cast [-Wint-conversion]
    5 |     return "ARC";
      |            ^~~~~
main.c:8:12: error: returning 'char *' from a function with return type 'int' makes integer from pointer without a cast [-Wint-conversion]
    8 |     return "ABC"
      |            ^~~~~
main.c:8:17: error: expected ';' before '}' token
    8 |     return "ABC"
      |                 ^
      |                 ;
    9 |   }
      |   ~
Language: C

int main(){
  scanf("%c", &c);
  get = c;
  if(get === "ABC"){
    return "ARC";
  }
  else{
    return "ABC"
  }
}

Compiler output:
main.c: In function 'main':
main.c:2:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    2 |   scanf("%c", &c);
      |   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main(){
main.c:2:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    2 |   scanf("%c", &c);
      |   ^~~~~
main.c:2:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:2:16: error: 'c' undeclared (first use in this function)
    2 |   scanf("%c", &c);
      |                ^
main.c:2:16: note: each undeclared identifier is reported only once for each function it appears in
main.c:3:3: error: 'get' undeclared (first use in this function)
    3 |   get = c;
      |   ^~~
main.c:4:12: error: expected expression before '=' token
    4 |   if(get === "ABC"){
      |            ^
main.c:5:12: error: returning 'char *' from a function with return type 'int' makes integer from pointer without a cast [-Wint-conversion]
    5 |     return "ARC";
      |            ^~~~~
main.c:8:12: error: returning 'char *' from a function with return type 'int' makes integer from pointer without a cast [-Wint-conversion]
    8 |     return "ABC"
      |            ^~~~~
main.c:8:17: error: expected ';' before '}' token
    8 |     return "ABC"
      |                 ^
      |                 ;
    9 |   }
      |   ~
Language: C

int main(){
  scanf("%c", &c);
  get = c;
  if(get = "ABC"){
    return "ARC";
  }
  else{
    return "ABC"
  }
}

Compiler output:
main.c: In function 'main':
main.c:2:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    2 |   scanf("%c", &c);
      |   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main(){
main.c:2:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    2 |   scanf("%c", &c);
      |   ^~~~~
main.c:2:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:2:16: error: 'c' undeclared (first use in this function)
    2 |   scanf("%c", &c);
      |                ^
main.c:2:16: note: each undeclared identifier is reported only once for each function it appears in
main.c:3:3: error: 'get' undeclared (first use in this function)
    3 |   get = c;
      |   ^~~
main.c:5:12: error: returning 'char *' from a function with return type 'int' makes integer from pointer without a cast [-Wint-conversion]
    5 |     return "ARC";
      |            ^~~~~
main.c:8:12: error: returning 'char *' from a function with return type 'int' makes integer from pointer without a cast [-Wint-conversion]
    8 |     return "ABC"
      |            ^~~~~
main.c:8:17: error: expected ';' before '}' token
    8 |     return "ABC"
      |                 ^
      |                 ;
    9 |   }
      |   ~
Language: C

#include <stdio.h>

int main()
{
  char S[3];
  
  if(S == 'ABC')
    printf("ARC");
  else
    printf("ABC);

 return0;
}

Compiler output:
main.c: In function 'main':
main.c:7:11: warning: multi-character character constant [-Wmultichar]
    7 |   if(S == 'ABC')
      |           ^~~~~
main.c:7:8: warning: comparison between pointer and integer
    7 |   if(S == 'ABC')
      |        ^~
main.c:10:12: warning: missing terminating " character
   10 |     printf("ABC);
      |            ^
main.c:10:12: error: missing terminating " character
   10 |     printf("ABC);
      |            ^~~~~~
main.c:12:2: error: 'return0' undeclared (first use in this function)
   12 |  return0;
      |  ^~~~~~~
main.c:12:2: note: each undeclared identifier is reported only once for each function it appears in
main.c:12:9: error: expected ')' before ';' token
   12 |  return0;
      |         ^
      |         )
main.c:10:11: note: to match this '('
   10 |     printf("ABC);
      |           ^
main.c:12:10: error: expected ';' before '}' token
   12 |  return0;
      |          ^
      |          ;
   13 | }
      | ~
Language: C++

#include <bits/stdc++.h>
using namespace std;
using ll =long long;
#define all(v) v.begin(),v.end()
 
int main() {
Stirng S;
  cin>>S;
  if(S=="ABC") {
cout<<"ARC"<<endl;
  }
  else {
cout<<"ABC"<<endl;
  }
}

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

#include <iostream>

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'String' was not declared in this scope
    5 |         String s;
      |         ^~~~~~
a.cc:6:16: error: 's' was not declared in this scope
    6 |         cin >> s;
      |                ^
Language: C++

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


Compiler output:
a.cc:1:2: error: invalid preprocessing directive #incluude; did you mean #include?
    1 | #incluude<iostream>
      |  ^~~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope
    7 |   cin>>s;
      |   ^~~
a.cc:3:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    2 | #include<string>
  +++ |+#include <iostream>
    3 | using namespace std;
a.cc:8:16: error: 'cout' was not declared in this scope
    8 |   if(s=="ABC") cout<<"ARC";
      |                ^~~~
a.cc:8:16: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:9:8: error: 'cout' was not declared in this scope
    9 |   else cout<<"ABC";
      |        ^~~~
a.cc:9:8: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

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

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inlcude; did you mean #include?
    1 | #inlcude<iostream>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope
    7 |   cin>>s;
      |   ^~~
a.cc:3:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    2 | #include<string>
  +++ |+#include <iostream>
    3 | using namespace std;
a.cc:8:16: error: 'cout' was not declared in this scope
    8 |   if(s=="ABC") cout<<"ARC";
      |                ^~~~
a.cc:8:16: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:9:8: error: 'cout' was not declared in this scope
    9 |   else cout<<"ABC";
      |        ^~~~
a.cc:9:8: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: Java

public static void main( String str ){
  String ans = "";
  ans= str=="ABC"?"ARC":"ABC";
  
  System.out.println(ans);
}

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:18: error: 'endkl' was not declared in this scope
    9 |     cout<<"ARC"<<endkl;
      |                  ^~~~~
Language: Java

public class Main {

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

		Scanner sc = new Scanner(System.in);

		String S = sc.nextLine();

		if (S.equals("ABC")) {
			System.out.println("ARC");
		} else if (S.equals("ARC")) {
			System.out.println("ABC");
		}
	}

}

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

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

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


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

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



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


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

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


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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:12: error: 'ABC' was not declared in this scope
    4 |   string x=ABC;
      |            ^~~
a.cc:5:12: error: 'ARC' was not declared in this scope
    5 |   string y=ARC;
      |            ^~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'z' was not declared in this scope
    6 |   cout>>z;
      |         ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:12: error: 'ABC' was not declared in this scope
    4 |   string x=ABC;
      |            ^~~
a.cc:5:12: error: 'ARC' was not declared in this scope
    5 |   string y=ARC;
      |            ^~~
a.cc:6:9: error: 'z' was not declared in this scope
    6 |   cout>>z;
      |         ^
Language: C++

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

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

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

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

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: Java

mport java.util.*;
 public class Main {
	public static void main(String[] args){

      String S = "ABC";
     

      if(S == "ABC"){
         System.out.println("ARC");
      }

      if(S == "ARC"){
         System.out.println("ABC");
      }
       
   }
 }




Compiler output:
Main.java:1: error: class, interface, enum, or record expected
mport java.util.*;
^
1 error
Language: Java

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


Compiler output:
Main.java:6: error: cannot find symbol
      if(s.equals("ABC")){
         ^
  symbol:   variable s
  location: class Main
1 error
Language: Java

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


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

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


Compiler output:
Main.java:1: error: ';' expected
import java.util.Scanner*;
                        ^
Main.java:11: error: reached end of file while parsing
}
 ^
2 errors
Language: C++

#include<bits/stdc++.h>

using namespace std;
#define ll long long int

int main()
{
   ll t;
   t = 1;	
  // cin t;
   while(t--){
             string s;
             cin >> S;
             if(s == "ABC")
             cout << "ARC" << endl;
             else
             cout << "ABC" << endl;
   }
}


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

#include <bits/stdc++.h>
#include <cstdlib>
using namespace std;
typedef std::bitset<6> bit;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:14: error: 'ABC' was not declared in this scope
   10 |   else cout<<ABC;
      |              ^~~
Language: C++


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

#include <bits/stdc++.h>

using namespace std;

int main(){
    string str;
    
    cin >> str;
    
    if (str=="ABC"){
        printf("ARC\n");
    } else {
        ptrintf("ABC\n");
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:9: error: 'ptrintf' was not declared in this scope; did you mean 'printf'?
   13 |         ptrintf("ABC\n");
      |         ^~~~~~~
      |         printf
Language: C

#include <stdio.h>

int main(){
  
  char a[3];
  sscanf(%d,a);
  
  if (a[1] == "B"){
  printf("%d","ARC");
  }else if(a[1] == "R"){
   printf("%d","ABC");
  }
}

Compiler output:
main.c: In function 'main':
main.c:6:10: error: expected expression before '%' token
    6 |   sscanf(%d,a);
      |          ^
main.c:6:3: error: too few arguments to function 'sscanf'
    6 |   sscanf(%d,a);
      |   ^~~~~~
In file included from /usr/include/features.h:523,
                 from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33,
                 from /usr/include/stdio.h:28,
                 from main.c:1:
/usr/include/stdio.h:468:12: note: declared here
  468 | extern int __REDIRECT_NTH (sscanf, (const char *__restrict __s,
      |            ^~~~~~~~~~~~~~
main.c:8:12: warning: comparison between pointer and integer
    8 |   if (a[1] == "B"){
      |            ^~
main.c:10:17: warning: comparison between pointer and integer
   10 |   }else if(a[1] == "R"){
      |                 ^~
Language: C

#include <stdio.h>

int main(){
  
  char a[3];
  sscanf(a,%d);
  
  if (a[1] == "B"){
  printf("%d","ARC");
  }else if(a[1] == "R"){
   printf("%d","ABC");
  }
}

Compiler output:
main.c: In function 'main':
main.c:6:12: error: expected expression before '%' token
    6 |   sscanf(a,%d);
      |            ^
main.c:8:12: warning: comparison between pointer and integer
    8 |   if (a[1] == "B"){
      |            ^~
main.c:10:17: warning: comparison between pointer and integer
   10 |   }else if(a[1] == "R"){
      |                 ^~
Language: C

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:4:8: error: expected ';' before 'char'
    4 |   int s
      |        ^
      |        ;
    5 |   char a[3];
      |   ~~~~  
main.c:6:11: error: expected expression before '%' token
    6 |   scanf(a,%d);
      |           ^
main.c:8:7: error: 's' undeclared (first use in this function)
    8 |   if (s == "ABC"){
      |       ^
main.c:8:7: note: each undeclared identifier is reported only once for each function it appears in
main.c:11:22: error: expected ';' before '}' token
   11 |    printf("%d","ABC")
      |                      ^
      |                      ;
   12 |   }
      |   ~
Language: C

#include <stdio.h>

int main(){
  char a[3];
  scanf(a,%d);
  
  if (s equals "ABC"){
  printf("%d","ARC");
  }else if(s equals "ARC"){
   printf("%d","ABC")
  }
}

Compiler output:
main.c: In function 'main':
main.c:5:11: error: expected expression before '%' token
    5 |   scanf(a,%d);
      |           ^
main.c:7:7: error: 's' undeclared (first use in this function)
    7 |   if (s equals "ABC"){
      |       ^
main.c:7:7: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:8: error: expected ')' before 'equals'
    7 |   if (s equals "ABC"){
      |      ~ ^~~~~~~
      |        )
main.c:9:13: error: expected ')' before 'equals'
    9 |   }else if(s equals "ARC"){
      |           ~ ^~~~~~~
      |             )
main.c:10:22: error: expected ';' before '}' token
   10 |    printf("%d","ABC")
      |                      ^
      |                      ;
   11 |   }
      |   ~
Language: C++

#incdule <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:1:2: error: invalid preprocessing directive #incdule; did you mean #include?
    1 | #incdule <bits/stdc++.h>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:5:3: error: 'string' was not declared in this scope
    5 |   string s;
      |   ^~~~~~
a.cc:1:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
  +++ |+#include <string>
    1 | #incdule <bits/stdc++.h>
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin >> s;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #incdule <bits/stdc++.h>
a.cc:6:10: error: 's' was not declared in this scope
    6 |   cin >> s;
      |          ^
a.cc:9:5: error: 'cout' was not declared in this scope
    9 |     cout << "ARC" << endl;
      |     ^~~~
a.cc:9:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:9:22: error: 'endl' was not declared in this scope
    9 |     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 | #incdule <bits/stdc++.h>
a.cc:11:5: error: 'cout' was not declared in this scope
   11 |     cout << "ABC" << endl;
      |     ^~~~
a.cc:11:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:11:22: error: 'endl' was not declared in this scope
   11 |     cout << "ABC" << endl;
      |                      ^~~~
a.cc:11:22: 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(void){
    // Your code here!
    int s;
    cin >> s;
    if (s=="ARC"){
        cout << "ABC";
    }
    if (s=="ABC"){
        cout << "ARC";
    }
}


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

#include <iostream>
using namespace std;
int main(void){
    // Your code here!
    int s;
    cin >> s;
    if (s==ARC){
        cout << "ABC";
    }
    if (s==ABC){
        cout << "ARC";
    }
}


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

#include <iostream>
using namespace std;
int main(void){
    // Your code here!
    int s;
    cin >> s;
    if (s==ARC){
        cout << "ABC"
    }
    if (s==ABC){
        cout << "ARC"
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:12: error: 'ARC' was not declared in this scope
    7 |     if (s==ARC){
      |            ^~~
a.cc:8:22: error: expected ';' before '}' token
    8 |         cout << "ABC"
      |                      ^
      |                      ;
    9 |     }
      |     ~                 
a.cc:10:12: error: 'ABC' was not declared in this scope
   10 |     if (s==ABC){
      |            ^~~
a.cc:11:22: error: expected ';' before '}' token
   11 |         cout << "ARC"
      |                      ^
      |                      ;
   12 |     }
      |     ~
Language: C++

/*
#include<iostream>
#include<vector>
#include<algorithm>
#include<string>
#include<map>
#include<math.h>
#include<iomanip>
#include<set>
#include<limits.h>
#include<cmath>
#include<queue>
#include<stack>

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

#define rep(i,n) for(ll i = 0; i < (ll)n; i++)
#define swap(a,b) a^=b;b^=a;a^=b;
#define chmax(a,b) {if(a < b) a = b;}
#define chmin(a,b) {if(a > b) a = b;}

using namespace std;
typedef long long ll;
const ll INF = 1LL << 60;

ll factor(ll x) {
	ll ret = 1;
	ll tmp = 0;
	for (ll p = 2;;p++) {
		if (x == 1) {
			ret *= tmp + 1;
			break;
		}
		if (x % p == 0) {
			tmp += 1;
			x /= p;
			p--;
			continue;
		}
		ret *= tmp + 1;
		tmp = 0;
	}
	return ret;
}

int main(void) {
	cin.tie(0);
	ios::sync_with_stdio(false);
	//Program Start

	ll N;
	cin >> N;
	ll ans = 0;

	for (ll i = 1; i <= N; i++) {
		ll ret = factor(i);
		ll tmp = ret;
		ans += i * tmp;
	}

	cout << ans << endl;



EndPoint:;

	//Program End
#ifndef DEBUG
	system("pause");
#endif // !DEBUG

	return 0;
}


*/

#include<iostream>
#include<vector>
#include<algorithm>
#include<string>
#include<map>
#include<math.h>
#include<iomanip>
#include<set>
#include<limits.h>
#include<cmath>
#include<queue>
#include<stack>

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

#define rep(i,n) for(ll i = 0; i < (ll)n; i++)
#define swap(a,b) a^=b;b^=a;a^=b;
#define chmax(a,b) {if(a < b) a = b;}
#define chmin(a,b) {if(a > b) a = b;}

using namespace std;
typedef long long ll;
const ll INF = 1LL << 60;

int main(void) {
	cin.tie(0);
	ios::sync_with_stdio(false);
	//Program Start	

	string S;
	cin >> S;

	if (S == "ABC") {
		cout << "ARC" << endl;
	}
	else[
		cout << "ABC" << endl;
	]

EndPoint:;

	//Program End
#ifndef DEBUG
	system("pause");
#endif // !DEBUG

	return 0;
}




Compiler output:
a.cc: In function 'int main()':
a.cc:116:17: warning: capture of variable 'std::cout' with non-automatic storage duration
  116 |                 cout << "ABC" << endl;
      |                 ^~~~
In file included from a.cc:79:
/usr/include/c++/14/iostream:63:18: note: 'std::ostream std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:116:21: error: expected ',' before '<<' token
  116 |                 cout << "ABC" << endl;
      |                     ^~~
      |                     ,
a.cc:116:22: error: expected identifier before '<<' token
  116 |                 cout << "ABC" << endl;
      |                      ^~
a.cc:116:38: error: expected ']' before ';' token
  116 |                 cout << "ABC" << endl;
      |                                      ^
      |                                      ]
a.cc: In lambda function:
a.cc:116:38: error: expected '{' before ';' token
a.cc: In function 'int main()':
a.cc:117:9: error: expected primary-expression before ']' token
  117 |         ]
      |         ^