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

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for(int i=0;i<(int)(n);i++)
#define all(x)    (x).begin(),(x).end()
typedef long long ll;
const int MOD = (int)1e9 + 7;

int main(){
  string str;
  cin >> str;
  if (str[1] == 'B') {str[1] = 'R';}
  if (str[1] == 'R') {str[1] = 'B';}
  cout << str << endl;
}



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

public class Bench1 {
    public static void main(String[] args) {
        long x = (1L << 32) - 1 ;
        long n = (int)1e8;
        long p = 1;

        for (int i = 1; i <= n; i++) {
            p += i;
            p %= x;
        }

        System.out.println(p);
    }   
}

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

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for(int i=0;i<(int)(n);i++)
#define all(x)    (x).begin(),(x).end()
typedef long long ll;
const int MOD = (int)1e9 + 7;

int main(){
  string str;
  cin >> str;
  if (str[1] == "B") str[1] = "R";
  if (str[1] == "R") str[1] = "B";
  cout << str << endl;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:11:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |   if (str[1] == "B") str[1] = "R";
a.cc:11:31: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
   11 |   if (str[1] == "B") str[1] = "R";
      |                               ^~~
      |                               |
      |                               const char*
a.cc:12:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 |   if (str[1] == "R") str[1] = "B";
a.cc:12:31: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
   12 |   if (str[1] == "R") str[1] = "B";
      |                               ^~~
      |                               |
      |                               const char*
Language: C++

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
int main()
{
    ios::sync_with_stdio(false); 
    string s;
    cin>>s;
    if(strcmp(s,"ABC")==1)
        cout<<"ARC";
    else
    {
        cout<<"ABC";
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:15: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'const char*'
    9 |     if(strcmp(s,"ABC")==1)
      |               ^
      |               |
      |               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;
int main() {	
	string s;
	cin>>s;
  	if(s=="ARC") {
    cout<<"ABC"
    }
  	else cout<<"ARC";
	
}

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

#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define mod 1000000007

int main() {

	ios::sync_with_stdio(0);
	cin.tie(0);
	cout.tie(0);

	ll s; cin>>s;
	if(s=="ABC")
		cout<<"ARC";
	else cout<<"ABC";

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   13 |         if(s=="ABC")
      |            ~^~~~~~~
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:12:2: error: expected '}' at end of input
   12 | }
      |  ^
a.cc:5:11: note: to match this '{'
    5 | int main(){
      |           ^
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:6:3: error: 'String' was not declared in this scope
    6 |   String S;
      |   ^~~~~~
a.cc:7:10: error: 'S' was not declared in this scope
    7 |   cin >> S;
      |          ^
a.cc:12:2: error: expected '}' at end of input
   12 | }
      |  ^
a.cc:5:11: note: to match this '{'
    5 | int main(){
      |           ^
Language: C++

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

int main(){
  String S;
  cin >> S;
  cout << S << endl;
}

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

#include <stdio.h>
int main(){
    char a[10];
    gets(a);
  
    if(a[1]='B'){
        a[1]='R';
      printf("%s",a);
        return 0;
    }else{
        a[1]='B';
        return 0;
      printf("%s",a);
     
    }else{return 0;}
  
  
}




Compiler output:
main.c: In function 'main':
main.c:4:5: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
    4 |     gets(a);
      |     ^~~~
      |     fgets
main.c:15:6: error: 'else' without a previous 'if'
   15 |     }else{return 0;}
      |      ^~~~
Language: C

#include <stdio.h>
int main(){
    char a[10];
    gets(a);
  
    if(a[1]=B){
        a[1]=R;
        return 0;
    }else{
        a[1]=B;
        return 0;
    }
    
}




Compiler output:
main.c: In function 'main':
main.c:4:5: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
    4 |     gets(a);
      |     ^~~~
      |     fgets
main.c:6:13: error: 'B' undeclared (first use in this function)
    6 |     if(a[1]=B){
      |             ^
main.c:6:13: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:14: error: 'R' undeclared (first use in this function)
    7 |         a[1]=R;
      |              ^
Language: C++

#include <fstream>
#include <vector>
#include <algorithm>
#include <cmath>
#include <math.h>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:5: error: 'cin' was not declared in this scope
   11 |     cin >> s;
      |     ^~~
a.cc:6:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    5 | #include <math.h>
  +++ |+#include <iostream>
    6 | using namespace std;
a.cc:14:9: error: 'cout' was not declared in this scope
   14 |         cout << "ARC" << endl;
      |         ^~~~
a.cc:14:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:17:13: error: 'cout' was not declared in this scope
   17 |        else cout << "ABC" << endl;
      |             ^~~~
a.cc:17:13: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C

#include <stdio.h>
int main(){
    char a[10];
    scanf("%s",a[])
    if(a[1]=B){
        a[1]=R;
        return 0;
    }else{
        a[1]=B;
        return 0;
    }
    
}




Compiler output:
main.c: In function 'main':
main.c:4:18: error: expected expression before ']' token
    4 |     scanf("%s",a[])
      |                  ^
Language: C

#include <stdio.h>
int main(){
    char a[];
    scanf("%s",a[])
    if(a[1]=B){
        a[1]=R;
        return 0;
    }else{
        a[1]=B;
        return 0;
    }
    
}




Compiler output:
main.c: In function 'main':
main.c:3:10: error: array size missing in 'a'
    3 |     char a[];
      |          ^
main.c:4:18: error: expected expression before ']' token
    4 |     scanf("%s",a[])
      |                  ^
Language: C++

#include<iostream>
using namepace std;

int main()
{
	string S;
  	cin>>S;
  	if(strcmp(S,"ABC")==0)
    {
      cout<<"ARC";
    }
  if(strcmp(S,"ARC")==0)
    {
      cout<<"ABC";
    }
  return 0;
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namepace'
    2 | using namepace std;
      |       ^~~~~~~~
a.cc: In function 'int main()':
a.cc:6:9: error: 'string' was not declared in this scope
    6 |         string S;
      |         ^~~~~~
a.cc:6:9: note: suggested alternatives:
In file included from /usr/include/c++/14/iosfwd:41,
                 from /usr/include/c++/14/ios:40,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
In file included from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44:
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:7:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |         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:7:14: error: 'S' was not declared in this scope
    7 |         cin>>S;
      |              ^
a.cc:8:12: error: 'strcmp' was not declared in this scope
    8 |         if(strcmp(S,"ABC")==0)
      |            ^~~~~~
a.cc:2:1: note: 'strcmp' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    1 | #include<iostream>
  +++ |+#include <cstring>
    2 | using namepace std;
a.cc:10:7: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |       cout<<"ARC";
      |       ^~~~
      |       std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:12:6: error: 'strcmp' was not declared in this scope
   12 |   if(strcmp(S,"ARC")==0)
      |      ^~~~~~
a.cc:12:6: note: 'strcmp' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
a.cc:14:7: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   14 |       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 s;
  	cin >> s;
  if (s == "ABC") cout << "ARC\n";
  else cout << "ABC\n";
}

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

public 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:3: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class Main
Main.java:3: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
                         ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: Java

/**
 * 
 */
import java.util.Scanner;

/**
 * @author Neeraj
 *
 */
public class bgc166vp {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String s=sc.next();
		if(s.contentEquals("ABC"))
			System.out.println("ARC");
		else
			System.out.println("ABC");
			
			
	}

}


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

import java.util.Scanner;

public class Main{
	public static void main(String[]org){
    	
      Scanner scan = new Scanner(System.in);
      String s = scan.nextline();
      String result = "";
      if(s.charAt(1)=='B'){
		system.out.println("ARC");
      }
      else{
        system.out.println("ABC");
      }
   }
}

Compiler output:
Main.java:7: error: cannot find symbol
      String s = scan.nextline();
                     ^
  symbol:   method nextline()
  location: variable scan of type Scanner
Main.java:10: error: package system does not exist
		system.out.println("ARC");
		      ^
Main.java:13: error: package system does not exist
        system.out.println("ABC");
              ^
3 errors
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int S = sc.nextInt();
		
		if(S.equals("ABC")){
        	System.out.println("ARC");
        }
        else{
        	System.out.println("ABC");
        }
	}
}

Compiler output:
Main.java:8: error: int cannot be dereferenced
		if(S.equals("ABC")){
		    ^
1 error
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int S = sc.nextInt();
		
		if(S.equals('ABC')){
        	System.out.println("ARC");
        }
        else{
        	System.out.println("ABC");
        }
	}
}

Compiler output:
Main.java:8: error: unclosed character literal
		if(S.equals('ABC')){
		            ^
Main.java:8: error: unclosed character literal
		if(S.equals('ABC')){
		                ^
Main.java:8: error: not a statement
		if(S.equals('ABC')){
		              ^
Main.java:11: error: 'else' without 'if'
        else{
        ^
4 errors
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int S = sc.nextInt();
		
		if(S.equals 'ABC'){
        	System.out.println("ARC");
        }
        else{
        	System.out.println("ABC");
        }
	}
}

Compiler output:
Main.java:8: error: unclosed character literal
		if(S.equals 'ABC'){
		            ^
Main.java:8: error: unclosed character literal
		if(S.equals 'ABC'){
		                ^
Main.java:8: error: not a statement
		if(S.equals 'ABC'){
		              ^
Main.java:11: error: 'else' without 'if'
        else{
        ^
4 errors
Language: C++

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

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

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


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

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

import java.util.*;
import java.io.*;
public class Main{
  public static void main(String[] args) {
    Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
    int t = in.nextInt();  // Scanner has functions to read ints, longs, strings, chars, etc.
    for (int i = 1; i <= t; ++i) {
      String n = in.nextLine();
      if(n.equals("ARC")){
      	System.out.println("ARC");
      }
      else{
      	System.out.println("ABC");
      }
    }

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

import java.util.*;
import java.io.*;
public class Auto{
  public static void main(String[] args) {
    Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
    int t = in.nextInt();  // Scanner has functions to read ints, longs, strings, chars, etc.
    for (int i = 1; i <= t; ++i) {
      int n = in.nextLine();
      if(n.equals("ARC")){
      	System.out.println("ARC");
      }
      else{
      	System.out.println("ABC");
      }
    }
  }
}

Compiler output:
Main.java:3: error: class Auto is public, should be declared in a file named Auto.java
public class Auto{
       ^
Main.java:8: error: incompatible types: String cannot be converted to int
      int n = in.nextLine();
                         ^
Main.java:9: error: int cannot be dereferenced
      if(n.equals("ARC")){
          ^
3 errors
Language: Java

import java.util.Scanner;

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


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

import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner scan = new Scanner(System.in);
        String s=scan.next();
        if(s.CharAt(1)=='B'){
            System.out.println("ARC");
        }
        else{
            System.out.println("ABC");
        }
    }
}


Compiler output:
Main.java:8: error: cannot find symbol
        if(s.CharAt(1)=='B'){
            ^
  symbol:   method CharAt(int)
  location: variable s of type String
1 error
Language: C

#include<stdio.h>
#include<string.h>
using namespace std;

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

Compiler output:
main.c:3:1: error: unknown type name 'using'
    3 | using namespace std;
      | ^~~~~
main.c:3:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'
    3 | using namespace std;
      |                 ^~~
main.c: In function 'main':
main.c:7:7: error: expected identifier or '(' before '[' token
    7 |   char[100] s;
      |       ^
main.c:8:16: error: 's' undeclared (first use in this function)
    8 |   scanf("%s", &s);
      |                ^
main.c:8:16: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
#include<string>
using namespace std;

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

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

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

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

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

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

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

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

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

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

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(void)
{
    string s;
    cin>>s;
    if(s=="ABC")
        cout<<"ARC";
    else
        cout<<"ABC"
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:20: error: expected ';' before 'return'
   11 |         cout<<"ABC"
      |                    ^
      |                    ;
   12 |     return 0;
      |     ~~~~~~
Language: C++

#include <bits/stdc++.h.

using namespace std;

int main (){
string s;
  cin >> s;
  s[1] = 'R'^'B'^s[1];
  cout << s;
}

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

#include<iostream>
#include<bits/stdc++.h>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'string' was not declared in this scope
    6 |   string s;
      |   ^~~~~~
a.cc:6:3: note: suggested alternatives:
In file included from /usr/include/c++/14/iosfwd:41,
                 from /usr/include/c++/14/ios:40,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
In file included from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44:
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:8:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    8 |   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:8:8: error: 's' was not declared in this scope
    8 |   cin>>s;
      |        ^
a.cc:12:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   12 |     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:17:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   17 |     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(){
#ifndef ONLINE_JUDGE
	freopen("input.txt", "r", stdin);
	freopen("output.txt", "w", stdout);
#endif

	string s;
	cin >> s;

	if(s[1]=='B')
		cout << "ARC";
	else
		cout << "ABC"


	
	

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:30: error: expected ';' before 'return'
   16 |                 cout << "ABC"
      |                              ^
      |                              ;
......
   22 |         return 0;
      |         ~~~~~~
Language: C

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

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

#include <iostream>
using namespace std;
int main()
{
  string S;
  cin>>S;
  cout<<(s=="ABC"?"ARC":"ABC")<<endl;
}
 

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

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

using namespace std;
using namespace __gnu_pbds;

using ll = long long;
using ull = unsigned long long;
using vl = vector<ll>;
using vi = vector<int>;
using vchar = vector<char>;
using vstr = vector<string>;
using pll =  pair<ll,ll>;

const ll mod = 1000000007;
const ll inf = 1000000000000000;

#define pi acos(-1)
#define pb push_back
#define test int TEST;cin>>TEST;while(TEST--)
#define vsort(xx) sort(xx.begin(),xx.end())
#define vrevsort(xx) sort(xx.rbegin(),xx.rend())


int main(){
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);cout.tie(NULL);
    string s;
  cin>>s;
  (s=="ABC)?cout<<"ARC":cout<<"ABC";
   
   
    return 0;
}




Compiler output:
a.cc:31:35: warning: missing terminating " character
   31 |   (s=="ABC)?cout<<"ARC":cout<<"ABC";
      |                                   ^
a.cc:31:35: error: missing terminating " character
   31 |   (s=="ABC)?cout<<"ARC":cout<<"ABC";
      |                                   ^~
a.cc: In function 'int main()':
a.cc:31:23: error: inconsistent user-defined literal suffixes 'ARC' and 'ABC' in string literal
   31 |   (s=="ABC)?cout<<"ARC":cout<<"ABC";
      |                       ^~~~~~~~~~~~
a.cc:31:23: error: unable to find string literal operator 'operator""ARC' with 'const char [19]', 'long unsigned int' arguments
a.cc:31:35: error: expected ')' before 'return'
   31 |   (s=="ABC)?cout<<"ARC":cout<<"ABC";
      |   ~                               ^
      |                                   )
......
   34 |     return 0;
      |     ~~~~~~
Language: C++

#include<iostream>
using namspace std;
int main()
{
  sting s;
  cin>>s;
  if(s=='ARC')
    cout<<"ABC"<<endl;
  else
    cout<<""ARC";
}   

Compiler output:
a.cc:7:9: warning: multi-character character constant [-Wmultichar]
    7 |   if(s=='ARC')
      |         ^~~~~
a.cc:10:16: warning: missing terminating " character
   10 |     cout<<""ARC";
      |                ^
a.cc:10:16: error: missing terminating " character
   10 |     cout<<""ARC";
      |                ^~
a.cc:2:7: error: expected nested-name-specifier before 'namspace'
    2 | using namspace std;
      |       ^~~~~~~~
a.cc: In function 'int main()':
a.cc:5:3: error: 'sting' was not declared in this scope
    5 |   sting s;
      |   ^~~~~
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 a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:6:8: error: 's' was not declared in this scope
    6 |   cin>>s;
      |        ^
a.cc:8:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |     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:8:18: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |     cout<<"ABC"<<endl;
      |                  ^~~~
      |                  std::endl
In file included from /usr/include/c++/14/iostream:41:
/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<<""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:10:11: error: unable to find string literal operator 'operator""ARC' with 'const char [1]', 'long unsigned int' arguments
   10 |     cout<<""ARC";
      |           ^~~~~
Language: Java

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


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

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


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

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

#include <iostream>
using namespace std;

int main()
{
  string s;
  if(s[s.length()-2] == 'B') cout << "ARC";
  else cout << "ABC";

Compiler output:
a.cc: In function 'int main()':
a.cc:8:22: error: expected '}' at end of input
    8 |   else cout << "ABC";
      |                      ^
a.cc:5:1: note: to match this '{'
    5 | {
      | ^
Language: C

#include <iostream>

using namespace std;

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

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

import java.util.Scanner;

public static void main(String[] args){
    String a="null";
    Scanner s=new Scanner(System.in);    
    a=s.nextLine();
    if(a="ABC"){
        System.out.println("ARC");
    }
    else if(a="ARC"){
        System.out.println("ABC");
    }
    s.close();
}



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

import java.util.Scanner;

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

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

#include<iostream>
using namespace std;

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

Compiler output:
a.cc:7:11: warning: missing terminating " character
    7 |     cout<<"ARC<<endl;
      |           ^
a.cc:7:11: error: missing terminating " character
    7 |     cout<<"ARC<<endl;
      |           ^~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:8:3: error: expected primary-expression before '}' token
    8 |   }
      |   ^
Language: C++

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

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

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

int main(void){
    // 自分の得意な言語で
    // Let's チャレンジ！！
 
    string str;
    getline(cin, str);
  
  	if( str == "ABC"){
    	cout << "ARC" << endl;
	}else( str == "ARC" ){
    	cout << "ABC" << endl; 
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:30: error: expected ';' before '{' token
   14 |         }else( str == "ARC" ){
      |                              ^
      |                              ;
a.cc:14:20: 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]
   14 |         }else( str == "ARC" ){
      |              ~~~~~~^~~~~~~~~~
In file included from /usr/include/c++/14/string:54,
                 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,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 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 <iostream>
using namespace std;
int main(void){
    // 自分の得意な言語で
    // Let's チャレンジ！！

    string str;
    getline(cin, str);
  
  	if( str == "ABC"){
    	cout << "ARC";
	}else( str == "ARC" ){
    	cout << "ABC"; 
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:30: error: expected ';' before '{' token
   12 |         }else( str == "ARC" ){
      |                              ^
      |                              ;
a.cc:12:20: 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]
   12 |         }else( str == "ARC" ){
      |              ~~~~~~^~~~~~~~~~
In file included from /usr/include/c++/14/string:54,
                 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,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/basic_string.h:3772:5: note: declared here
 3772 |     operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
      |     ^~~~~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define sz(a) int((a).size())
#define int long long
#define Int int32_t
#define all(c) c.begin(), c.end()
#define FAST ios_base::sync_with_stdio(false) , cin.tie(NULL);
#define pii pair< int , int >
#define pb push_back
#define F first
#define S second
#define endl "\n"
#define present(c,x) ((c).find(x) != (c).end())
#define cpresent(c,x) (find(all(c),x) != (c).end())
#define bitcnt(n) __builtin_popcountll(n)
#define setpre(n) cout << fixed << setprecision(n)
#define tr(c) for(auto x : c )cout << x << " ";
#define ol(c , s , e ) for(int pos=s; pos<e ; pos++) cout << c[pos] << " ";
#define inf 1e18;
#define PI acos(-1)
const int M = 1000000007;
const int N=1e5+5;

//#define rohit
#ifdef rohit
template<typename... T >
void bug(T... __VA_ARGS__) {
    ((cerr << __VA_ARGS__ << " ") , ...);
}
#define debug(...) cerr << "[" << #__VA_ARGS__ << "]:", bug(__VA_ARGS__) , cerr << endl;
#endif
void solve() {
    string s;
    cin >> s;
    if(s == "ABC"){
        cout << "ARC\n";
    }
    else{
        cout << "ABC\n";
    }

}
signed main()
{
    FAST;
    //TODO:  check test cases are there or not?
    int tc=1;
//    cin >> tc;
    for(int t = 1 ; t <= tc ; t++)
    {
        solve();
    }
}?.,mnbvc xz

Compiler output:
a.cc:53:2: error: expected unqualified-id before '?' token
   53 | }?.,mnbvc xz
      |  ^
Language: C++

#include <bits/stdc++.h>
#define ff first
#define ss second
#define pb push_back
#define fore(i,a,b) for(int i=a,thxicesi=b; i<thxicesi;i++)
#define FIN ios_base::sync_with_stdio(0); cin.tie(0);cout.tie(0)
#define sz(s) int(s.size())
using namespace std;

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


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

/*********************************************************************| 
|---------|    /\  ....                  ....                         |         
     |        /  \   \                    /  /------| ----- |-------| |
     |       /    \   \                  /  /           |   |         |
     |      /      \   \       /\       /  |            |   |         |
     |     /        \   \     /  \     /   |---|        |   |----|    |
     |    /__________\   \   /    \   /        |---|    |   |         |
     |   /            \   \ /      \ /              |   |   |         |
     |  /              \   |        |               /   |   |         |
     _ __              __ ...      ...      |------/  ----- _         |
                                                                      |  
        Md Tawsif Rahman                                              |
        Institute Of Information Technology                           |
        Jahangirnagar University                                      |                                                                         
                                                                      |
**********************************************************************/                 
#include<bits/stdc++.h>

using namespace std;
#define ll long long int
#define pb push_back
#define pf push_front
#define pob pop_back
#define pof pop_front
#define mp make_pair
#define pii pair <int, int>
#define xx first
#define yy second
#define vi vector < int >
#define vl vector < ll >
#define vp vector < pii > 
#define inf  100000000 
#define f(i, c, n) for(i = c; i < n; i++)
#define fe(i, c, n) for(i = c; i <= n; i++)
#define fr(i, n, c) for(i = n - 1; i >= c; i--) 
#define vbe(a) a.begin(), a.end()
#define vsort(a) sort(a.begin(), a.end())
#define mem(a) memset(a, 0, sizeof(a))
#define memn(a) memset(a, -1, sizeof(a))
#define srti(a, n) sort(a, a + n)
#define srtd(a, n) sort(a, a + n, greater<int>())
#define LB(a, x) (lower_bound(vbe(a), x) - a.begin())
#define UB(a, x) (upper_bound(vbe(a), x) - a.begin())

#define si(a) scanf("%d", &a)
#define sii(a, b) scanf("%d%d", &a, &b)
#define siii(a, b, c) scanf("%d%d%d", &a, &b, &c)
#define sl(a) scanf("%lld", &a)
#define sll(a, b) scanf("%lld%lld", &a, &b)
#define slll(a, b, c) scanf("%lld%lld%lld", &a, &b, &c)

#define fast ios_base :: sync_with_stdio(0); cin.tie(0); cout.tie(0)
int i, j, temp;
// int convert_str_to_int(string s) {
//     stringstream str(s);
//     int x = 0;
//     str >> x;
//     return x;
// }


/********************|
                     |
   START HERE        |
                     |
*********************/
void solve() {
    string s1 = "ABC", s2 = "ARC";
    string s;
    cin >> s;
    if(s == s1) cout << s2 << endl;
    else cout << s1 << endl; 


}
int main() {
    // int t;
    // cin >> t;
    // while(t--) {
    //     solve();
    // }
    solve();
}

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

#include <stdio.h>

int main(char *argv[]){
	if(strcmp("ARC",argv) == 0){
    	print("ARC\n");
    } else if(strcmp("ABC",argv) == 0){
    	print("ABC\n");
    } else {
    	print("error\n");
    }
}

Compiler output:
main.c: In function 'main':
main.c:4:12: error: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration]
    4 |         if(strcmp("ARC",argv) == 0){
      |            ^~~~~~
main.c:2:1: note: include '<string.h>' or provide a declaration of 'strcmp'
    1 | #include <stdio.h>
  +++ |+#include <string.h>
    2 | 
main.c:4:25: error: passing argument 2 of 'strcmp' from incompatible pointer type [-Wincompatible-pointer-types]
    4 |         if(strcmp("ARC",argv) == 0){
      |                         ^~~~
      |                         |
      |                         char **
main.c:4:25: note: expected 'const char *' but argument is of type 'char **'
main.c:5:9: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
    5 |         print("ARC\n");
      |         ^~~~~
      |         printf
main.c:6:28: error: passing argument 2 of 'strcmp' from incompatible pointer type [-Wincompatible-pointer-types]
    6 |     } else if(strcmp("ABC",argv) == 0){
      |                            ^~~~
      |                            |
      |                            char **
main.c:6:28: note: expected 'const char *' but argument is of type 'char **'
Language: C

#include <stdio.h>

int main(char *argv[]){
	if(argv == "ABC"){
    	print("ARC\n");
    } else if(strcmp("ABC",argv)){
    	print("ABC\n");
    } else {
    	print("error\n");
    }
}

Compiler output:
main.c: In function 'main':
main.c:4:17: warning: comparison of distinct pointer types lacks a cast [-Wcompare-distinct-pointer-types]
    4 |         if(argv == "ABC"){
      |                 ^~
main.c:5:9: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
    5 |         print("ARC\n");
      |         ^~~~~
      |         printf
main.c:6:15: error: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration]
    6 |     } else if(strcmp("ABC",argv)){
      |               ^~~~~~
main.c:2:1: note: include '<string.h>' or provide a declaration of 'strcmp'
    1 | #include <stdio.h>
  +++ |+#include <string.h>
    2 | 
main.c:6:28: error: passing argument 2 of 'strcmp' from incompatible pointer type [-Wincompatible-pointer-types]
    6 |     } else if(strcmp("ABC",argv)){
      |                            ^~~~
      |                            |
      |                            char **
main.c:6:28: note: expected 'const char *' but argument is of type 'char **'
Language: Java

enum Event {
  ARC,
  ABC
}

public event nextEvent(Event event){
  if(event.equals(event.ARC))
  {
    return Event.ABC ;
  }else{
    
        return Event.ARC ;

  }
}
  



Compiler output:
Main.java:6: error: unnamed classes are a preview feature and are disabled by default.
public event nextEvent(Event event){
       ^
  (use --enable-preview to enable unnamed classes)
1 error
Language: Java

public String  nextEvent(String event){

  if("ABC".equals(event)){
    return "ARC";
    
  }else{
    return "ABC" ;
  }
    
}

Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
public String  nextEvent(String event){
       ^
  (use --enable-preview to enable unnamed classes)
1 error
Language: Java

public String contestname(String s){

  if("ABC".equals(s)){
    return "ARC"
}
  else{
    return "ABC"
  }
}
  

Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
public String contestname(String s){
       ^
  (use --enable-preview to enable unnamed classes)
Main.java:4: error: ';' expected
    return "ARC"
                ^
Main.java:7: error: ';' expected
    return "ABC"
                ^
3 errors
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:8:19: error: expected ';' before '}' token
    8 |   else cout<<"ABC"
      |                   ^
      |                   ;
    9 | }
      | ~
Language: C++

#include <iostream>
using namespace std;

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

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

#include <stdio.h>

int main(char *argv[]){
	if(argv == "ABC"){
    	print("ARC\n");
    } else {
    	print("ABC\n");
    }
}

Compiler output:
main.c: In function 'main':
main.c:4:17: warning: comparison of distinct pointer types lacks a cast [-Wcompare-distinct-pointer-types]
    4 |         if(argv == "ABC"){
      |                 ^~
main.c:5:9: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
    5 |         print("ARC\n");
      |         ^~~~~
      |         printf
Language: C++

#include <iostream>

using namespace std

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

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

#include <iostream>

using namespace std

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

Compiler output:
a.cc:3:20: error: expected ';' before 'int'
    3 | using namespace std
      |                    ^
      |                    ;
    4 | 
    5 | int main(){
      | ~~~                 
a.cc: In function 'int main()':
a.cc:6:1: error: 'String' was not declared in this scope
    6 | String s;
      | ^~~~~~
a.cc:7:1: error: 's' was not declared in this scope
    7 | s << cin;
      | ^
Language: C++

#include <iostream>
#include <String>
using namespace std

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

Compiler output:
a.cc:2:10: fatal error: String: No such file or directory
    2 | #include <String>
      |          ^~~~~~~~
compilation terminated.
Language: C++

// Nguyen Anh Tu
#include <bits/stdc++.h>
#define FOR(x,a,b) for(int x=a;x<=b;x++)
#define FORD(x,a,b) for(int x=a;x>=b;x--)
#define maxn 100005
#define maxc 1000000007
#define MOD 1000000007
#define reset(x, y) memset(x,y,sizeof(x))
#define task ""
#define mp make_pair
#define pb push_back
#define F first
#define S second
#define pii pair<int,int>
#define ll long long
#define bit(p,x) ((x>>p) & 1)
#define remain(a,b) (a+b >= MOD) ? (a+b - MOD) : (a+b)
using namespace std;
}
int main()
{
    ios_base::sync_with_stdio(NULL); cin.tie(NULL); cout.tie(NULL);
    if(fopen(task".inp", "r"))
    {
        freopen(task".inp","r",stdin);
        freopen(task".out","w",stdout);
    }
    string s;
  	cin >> s;
  	if(s == "ABC") cout << "ARC";
  else cout << "ABC";
    return 0;
}


Compiler output:
a.cc:19:1: error: expected declaration before '}' token
   19 | }
      | ^
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:1:10: fatal error: bits\stdc++.h: No such file or directory
    1 | #include <bits\stdc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.