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

/*
My heart’s beating faster
I know what I’m after
 
I’ve been standing here my whole life
Everything I’ve seen twice
Now it’s time I realized
It’s spinning back around now
On this road I’m crawlin’
Save me 'cause I’m fallin’
Now I can’t seem to breathe right
'Cause I keep runnin' runnin' runnin' runnin'
Runnin' runnin' runnin' runnin'
Runnin' from my heart
*/
 
#include<bits/stdc++.h>
using namespace std;
 
#define ll long long
#define ld long double
#define pb push_back
#define nt _int128
#define fir first
#define sec second
#define slow_as_snail ios_base::sync_with_stdio(false) , cin.tie(NULL);
#define debug(x) cout<<x<<"\n";
#define debugged cout<<"debugged\n";
#define inf 0x3f3f3f3f
#define rall(v) v.rbegin(),v.rend()
#define all(v) v.begin(),v.end() 
 
const ll mod = 1000000007;
#define mx 10000005
const ll mxi = 100005;

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

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

#include <iostream>
#include <cstdio>
#include <algorithm>
#include <cmath>
#include <vector>
#include <list>
#include <set>
#include <map>
#include <queue>
#include <stack>
#include <cctype>
#include <cassert>
#include <climits>
#include <string>
#include <bitset>
#include <cfloat>
#include <unordered_set>
#include <cstring>
#pragma GCC optimize("Ofast")
using namespace std;
typedef long double ld;
typedef long long int ll;
typedef unsigned long long int ull;
typedef vector<int> vi;
typedef vector<char> vc;
typedef vector<bool> vb;
typedef vector<double> vd;
typedef vector<string> vs;
typedef vector<ll> vll;
typedef vector<pair<int, int>> vpii;
typedef vector<vector<int>> vvi;
typedef vector<vector<char>> vvc;
typedef vector<vector<string>> vvs;
typedef vector<vector<ll>> vvll;
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define rrep(i, n) for (int i = 1; i <= (n); ++i)
#define irep(it, stl) for (auto it = stl.begin(); it != stl.end(); it++)
#define drep(i, n) for (int i = (n)-1; i >= 0; --i)
#define fin(ans) cout << (ans) << '\n'
#define mp(p, q) make_pair(p, q)
#define pb(n) push_back(n)
#define all(a) a.begin(), a.end()
#define rall(a) a.rbegin(), a.rend()
#define Sort(a) sort(a.begin(), a.end())
#define Rort(a) sort(a.rbegin(), a.rend())
#define MATHPI acos(-1)
#define itn int;
int dx[8] = {1, 0, -1, 0, 1, -1, -1, 1};
int dy[8] = {0, 1, 0, -1, 1, 1, -1, -1};
template <class T>
inline bool chmax(T &a, T b)
{
    if (a < b)
    {
        a = b;
        return 1;
    }
    return 0;
}
template <class T>
inline bool chmin(T &a, T b)
{
    if (a > b)
    {
        a = b;
        return 1;
    }
    return 0;
}
struct io
{
    io()
    {
        ios::sync_with_stdio(false);
        cin.tie(0);
    }
};
const int INF = INT_MAX;
const ll LLINF = 1LL << 60;
const ll MOD = 1000000007;
const double EPS = 1e-9;

int main(void)
{

    string a;
    cin >> a;

        if (a == "ABC") {
            a = "ARC"
        } else a = "ABC";
    
    
    

    cout << a;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:90:22: error: expected ';' before '}' token
   90 |             a = "ARC"
      |                      ^
      |                      ;
   91 |         } else a = "ABC";
      |         ~
Language: C++

#include <iostream>
#include <cstdio>
#include <algorithm>
#include <cmath>
#include <vector>
#include <list>
#include <set>
#include <map>
#include <queue>
#include <stack>
#include <cctype>
#include <cassert>
#include <climits>
#include <string>
#include <bitset>
#include <cfloat>
#include <unordered_set>
#include <cstring>
#pragma GCC optimize("Ofast")
using namespace std;
typedef long double ld;
typedef long long int ll;
typedef unsigned long long int ull;
typedef vector<int> vi;
typedef vector<char> vc;
typedef vector<bool> vb;
typedef vector<double> vd;
typedef vector<string> vs;
typedef vector<ll> vll;
typedef vector<pair<int, int>> vpii;
typedef vector<vector<int>> vvi;
typedef vector<vector<char>> vvc;
typedef vector<vector<string>> vvs;
typedef vector<vector<ll>> vvll;
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define rrep(i, n) for (int i = 1; i <= (n); ++i)
#define irep(it, stl) for (auto it = stl.begin(); it != stl.end(); it++)
#define drep(i, n) for (int i = (n)-1; i >= 0; --i)
#define fin(ans) cout << (ans) << '\n'
#define mp(p, q) make_pair(p, q)
#define pb(n) push_back(n)
#define all(a) a.begin(), a.end()
#define rall(a) a.rbegin(), a.rend()
#define Sort(a) sort(a.begin(), a.end())
#define Rort(a) sort(a.rbegin(), a.rend())
#define MATHPI acos(-1)
#define itn int;
int dx[8] = {1, 0, -1, 0, 1, -1, -1, 1};
int dy[8] = {0, 1, 0, -1, 1, 1, -1, -1};
template <class T>
inline bool chmax(T &a, T b)
{
    if (a < b)
    {
        a = b;
        return 1;
    }
    return 0;
}
template <class T>
inline bool chmin(T &a, T b)
{
    if (a > b)
    {
        a = b;
        return 1;
    }
    return 0;
}
struct io
{
    io()
    {
        ios::sync_with_stdio(false);
        cin.tie(0);
    }
};
const int INF = INT_MAX;
const ll LLINF = 1LL << 60;
const ll MOD = 1000000007;
const double EPS = 1e-9;

int main(void)
{

    string a
    cin >> a;

        if (a == "ABC") {
            a = "ARC"
        } else a = "ABC";
    
    
    

    cout << a;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:87:5: error: expected initializer before 'cin'
   87 |     cin >> a;
      |     ^~~
a.cc:89:13: error: 'a' was not declared in this scope
   89 |         if (a == "ABC") {
      |             ^
a.cc:96:13: error: 'a' was not declared in this scope
   96 |     cout << a;
      |             ^
Language: Java

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

Compiler output:
Main.java:14: error: ';' expected
System.out.println("ABC")
                         ^
1 error
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:14: error: expected unqualified-id before ';' token
    6 |     string S,;
      |              ^
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;}
   
  return 0;
  }

Compiler output:
a.cc:6:11: error: expected ')' before ';' token
    6 |   string s; cin >> s;
      |           ^
      |           )
a.cc:4:9: note: to match this '('
    4 | int main(
      |         ^
a.cc:4:5: warning: first argument of 'int main(std::string)' should be 'int' [-Wmain]
    4 | int main(
      |     ^~~~
a.cc:4:5: warning: 'int main(std::string)' takes only zero or two arguments [-Wmain]
a.cc:6:13: error: 'cin' does not name a type
    6 |   string s; cin >> s;
      |             ^~~
a.cc:7:3: error: expected unqualified-id before 'if'
    7 |   if(s == "ABC"){cout << "ARC" << endl;}
      |   ^~
a.cc:8:3: error: expected unqualified-id before 'else'
    8 |   else {cout << "ABC" << endl;}
      |   ^~~~
a.cc:10:3: error: expected unqualified-id before 'return'
   10 |   return 0;
      |   ^~~~~~
a.cc:11:3: error: expected declaration before '}' token
   11 |   }
      |   ^
Language: C

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

int main()

{
    char a, b, c ;
    scanf("%c %c %c", &a, &b, &c) ;

    if(a=='A' && b=='B' && c=='C')
    {
        printf("ARC\n") ;
    }

    else if(a=='A' && b=='R' && c=='C')
    {
        printf("ABC\n") ;
    }

    return 0;
}

Compiler output:
main.c:2:9: fatal error: string: No such file or directory
    2 | #include<string>
      |         ^~~~~~~~
compilation terminated.
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:7:8: warning: multi-character character constant [-Wmultichar]
    7 |   if(s='ABC'){
      |        ^~~~~
a.cc:8:13: warning: multi-character character constant [-Wmultichar]
    8 |     cout << 'ARC' <<endl;}
      |             ^~~~~
a.cc:10:13: warning: multi-character character constant [-Wmultichar]
   10 |     cout << 'ABC' << endl;}
      |             ^~~~~
a.cc: In function 'int main()':
a.cc:7:8: warning: overflow in conversion from 'int' to 'char' changes value from '4276803' to '67' [-Woverflow]
    7 |   if(s='ABC'){
      |        ^~~~~
a.cc:7:7: error: could not convert 's.std::__cxx11::basic_string<char>::operator=(67)' from 'std::__cxx11::basic_string<char>' to 'bool'
    7 |   if(s='ABC'){
      |      ~^~~~~~
      |       |
      |       std::__cxx11::basic_string<char>
Language: C++

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

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

Compiler output:
a.cc:8:12: warning: missing terminating ' character
    8 |   if(s[1]=='B)
      |            ^
a.cc:8:12: error: missing terminating ' character
    8 |   if(s[1]=='B)
      |            ^~~
a.cc: In function 'int32_t main()':
a.cc:7:8: error: 'str' was not declared in this scope; did you mean 'std'?
    7 |   cin>>str;
      |        ^~~
      |        std
a.cc:8:10: error: lvalue required as left operand of assignment
    8 |   if(s[1]=='B)
a.cc:10:6: error: expected primary-expression before 'else'
   10 |      else
      |      ^~~~
a.cc:9:15: error: expected ')' before 'else'
    9 |      s[1]='R';
      |               ^
      |               )
   10 |      else
      |      ~~~~      
a.cc:8:5: note: to match this '('
    8 |   if(s[1]=='B)
      |     ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
typedef long long int ll;
typedef vector<int> vi;
typedef vector<ll> vll;
 
#define  ff     first
#define  ss     second
#define  pb     push_back
#define  all(x) (x).begin(), (x).end()
#define  rep(i,a,b) for(int i=a ; i<b ; ++i)
#define  deb(x) cout << #x << " - " << x << "\n";
#define  IOS    ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL);
#define  D2(x)  cout << "[" << #x << ": "; for(auto it:x) cout << it << " "; cout << "]\n"; 
#define  D2p(x)	cout << #x << " ~ [ "; for(auto n: x) cout << n.first << "-" << n.second << " / "; cout << "]" << "\n";
#define  ps(x,y) fixed<<setprecision(y)<<x

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

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

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

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


Compiler output:
a.cc:15:18: warning: missing terminating ' character
   15 |     cout<<"ABC"<<'\n;
      |                  ^
a.cc:15:18: error: missing terminating ' character
   15 |     cout<<"ABC"<<'\n;
      |                  ^~~~
a.cc: In function 'int main()':
a.cc:16:3: error: expected primary-expression before '}' token
   16 |   }
      |   ^
Language: C

#include<stdio.h>

int main() 
{
    char S;
    scanf("%c"&S);
    if(S==ABC)
    {
        printf("ABR");
    }
    if(S==ARC)
    {
        printf("ABC");
    }
    retrun 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:15: error: invalid operands to binary & (have 'char *' and 'int')
    6 |     scanf("%c"&S);
      |           ~~~~^
      |           |
      |           char *
main.c:7:11: error: 'ABC' undeclared (first use in this function)
    7 |     if(S==ABC)
      |           ^~~
main.c:7:11: note: each undeclared identifier is reported only once for each function it appears in
main.c:11:11: error: 'ARC' undeclared (first use in this function)
   11 |     if(S==ARC)
      |           ^~~
main.c:15:5: error: 'retrun' undeclared (first use in this function)
   15 |     retrun 0;
      |     ^~~~~~
main.c:15:11: error: expected ';' before numeric constant
   15 |     retrun 0;
      |           ^~
      |           ;
Language: C++

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

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

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

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

Compiler output:
Main.java:5: error: ';' expected
    		Scanner sc = new Scanner(System.in)
    		                                   ^
1 error
Language: Java

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

Compiler output:
Main.java:7: error: illegal start of type
    		if(p="ABC")
    		^
Main.java:7: error: <identifier> expected
    		if(p="ABC")
    		    ^
Main.java:7: error: ';' expected
    		if(p="ABC")
    		          ^
Main.java:8: error: <identifier> expected
    						System.out.println("ARC");
    						                  ^
Main.java:8: error: illegal start of type
    						System.out.println("ARC");
    						                   ^
Main.java:9: error: illegal start of type
              else
              ^
Main.java:10: error: <identifier> expected
                		System.out.println("ABC");
                		                  ^
Main.java:10: error: illegal start of type
                		System.out.println("ABC");
                		                   ^
Main.java:12: error: ';' expected
    	}
    	 ^
Main.java:14: error: reached end of file while parsing
    }
     ^
10 errors
Language: C++

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

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:8: error: 'ABC' was not declared in this scope
    7 |   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:6:1: error: expected initializer before 'cin'
    6 | cin>>S;
      | ^~~
a.cc:7:6: error: 'S' was not declared in this scope
    7 |   if(S=ABC){
      |      ^
a.cc:7:8: error: 'ABC' was not declared in this scope
    7 |   if(S=ABC){
      |        ^~~
Language: Java

import java.util.*;

public class Main{
  public static void main(Strgin[] 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:7: error: ')' expected
    if (S.equals("ABC"){
                       ^
1 error
Language: Java

import java.util.*;

public class Main{
  public static void main(Strgin[] args){
    Scanner sc = new Scanner(System.in);
    String S = sc.next();
    String[] c = new String[] {"ABC", "ARC"};
    List<String> list = new ArrayList<String>(Arrays.asList(c));
    list.remove(S);
    System.out.println(c[0]);
  }
}

Compiler output:
Main.java:4: error: cannot find symbol
  public static void main(Strgin[] args){
                          ^
  symbol:   class Strgin
  location: class Main
1 error
Language: C

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

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

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


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

#include<bits//stdc++.h>
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:5:35: error: invalid operands of types 'const char [4]' and '<unresolved overloaded function type>' to binary 'operator<<'
    5 |   cout << (s =="ABC")?"ARC":"ABC" <<endl;
      |                             ~~~~~~^~~~~~
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main(void)
{
    string S;

    cin >> S;

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

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

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

Compiler output:
a.cc:7:7: warning: multi-character character constant [-Wmultichar]
    7 | if(a=='ABC')
      |       ^~~~~
a.cc: In function 'int main()':
a.cc:5:1: error: 'strings' was not declared in this scope; did you mean 'stdin'?
    5 | strings a;
      | ^~~~~~~
      | stdin
a.cc:6:6: error: 'a' was not declared in this scope
    6 | cin>>a;
      |      ^
Language: C++

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

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

Compiler output:
a.cc:3:7: warning: extra tokens at end of #include directive
    3 | using namespace std;
      |       ^~~~~~~~~
a.cc:2:10: fatal error: string>usin: No such file or directory
    2 | #include <string>\
      |          ^~~~~~~~~
    3 | using namespace std;
      | ~~~~~     
compilation terminated.
Language: C++

#include<iostream>
#include<string.h>
#include<stdio.h>
using namespace std;
main()
{
    char S[4];
    gets(S);
    int len=strlen(S);
    char T[len]="ABC";
    char U[len]="ARC";
    if(strcmp(S,T)==0||strcmp(S,U)==0)
    {
        if(strcmp(S,T)==0)
        {
            puts(U);
        }
        else
        {
            puts(T);
        }
    }

}



Compiler output:
a.cc:5:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    5 | main()
      | ^~~~
a.cc: In function 'int main()':
a.cc:8:5: error: 'gets' was not declared in this scope; did you mean 'getw'?
    8 |     gets(S);
      |     ^~~~
      |     getw
Language: C

#include<iostream>
#include<string.h>
#include<stdio.h>
using namespace std;
main()
{
    char S[4];
    gets(S);
    int len=strlen(S);
    char T[len]="ABC";
    char U[len]="ARC";
    if(strcmp(S,T)==0||strcmp(S,U)==0)
    {
        if(strcmp(S,T)==0)
        {
            puts(U);
        }
        else
        {
            puts(T);
        }
    }

}



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

package collection;
import java.util.*;
public class greateroftwo {
public static void main(String[]args)
	{
		Scanner sc = new Scanner(System.in);
		System.out.println("Enter the EVENT you want");
		String a = "ABC";
    	String b = "ARC";
      	String c = sc.Next();
      if(c==a)
      {
        System.out.println("b");
      }
      else
      {
        System.out.println("a");
      }
}
} 

Compiler output:
Main.java:3: error: class greateroftwo is public, should be declared in a file named greateroftwo.java
public class greateroftwo {
       ^
Main.java:10: error: cannot find symbol
      	String c = sc.Next();
      	             ^
  symbol:   method Next()
  location: variable sc of type Scanner
2 errors
Language: Java

	
package collection;
import java.util.*;
public class greateroftwo {
public static void main(String[]args)
	{
		Scanner sc = new Scanner(System.in);
		System.out.println("Enter the EVENT you want");
		String a = "ABC";
    	String b = "ARC";
      	String c = sc.Next();
      if(c==a)
      {
        System.out.println("b")
      }
      else
      {
        System.out.println("a")
      }
}

Compiler output:
Main.java:14: error: ';' expected
        System.out.println("b")
                               ^
Main.java:18: error: ';' expected
        System.out.println("a")
                               ^
Main.java:20: error: reached end of file while parsing
}
 ^
3 errors
Language: Java


	public static void main(String[]args)
	{
		Scanner sc = new Scanner(System.in);
		System.out.println("Enter the EVENT you want");
		String a = "ABC";
    	String b = "ARC";
      	String c = sc.Next();
      if(c==a)
      {
        System.out.println("b")
      }
      else
      {
        System.out.println("a")
      }
    }

Compiler output:
Main.java:2: error: unnamed classes are a preview feature and are disabled by default.
	public static void main(String[]args)
	              ^
  (use --enable-preview to enable unnamed classes)
Main.java:11: error: ';' expected
        System.out.println("b")
                               ^
Main.java:15: error: ';' expected
        System.out.println("a")
                               ^
3 errors
Language: C++

// God put a smile upon your face <3

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

#define slld(longvalue) scanf("%lld", &longvalue)

#define ll long long
#define ull unsigned long long
#define pll pair < long long, long long >

#define fastio ios_base:: sync_with_stdio(false); cin.tie(0); cout.tie(0)

#define pb push_back

#define bug printf("BUG\n")

#define mxlld LLONG_MAX
#define mnlld -LLONG_MAX

#define mxd 2e8
#define mnd -2e8

#define pi 3.14159265359

#define mod 958585860497

#define base 2001487

using namespace std;

bool check(ll n, ll pos)
{
	return n & (1LL << pos);
}

ll Set(ll n, ll pos)
{
	return n = n | (1LL << pos);
}

int main()
{
    ll i, j, k, l, m, n, o, r, q;
    ll testcase;
    ll input, flag, tag, ans;

//    freopen("input.txt", "r", stdin);

//    freopen("output.txt", "w", stdout);

	string str;

    while(cin >> str)
    {
		if((str == "ABC")) cout << "ARC" << '\n';s
		else cout << "ABC" << '\n';
    }


}




Compiler output:
a.cc:3:25: warning: extra tokens at end of #include directive
    3 | #include <bits/stdc++.h>`
      |                         ^
a.cc: In function 'int main()':
a.cc:55:58: error: 's' was not declared in this scope
   55 |                 if((str == "ABC")) cout << "ARC" << '\n';s
      |                                                          ^
Language: C++

#include <iostream>
#include <string>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'string' was not declared in this scope
    5 |   string mode;
      |   ^~~~~~
a.cc:5:3: note: suggested alternatives:
In file included from /usr/include/c++/14/iosfwd:41,
                 from /usr/include/c++/14/ios:40,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
In file included from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44:
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin >> mode;
      |   ^~~
      |   std::cin
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:6:10: error: 'mode' was not declared in this scope; did you mean 'mode_t'?
    6 |   cin >> mode;
      |          ^~~~
      |          mode_t
a.cc:8:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |     cout << "ARC" << endl;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:8:22: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |     cout << "ARC" << endl;
      |                      ^~~~
      |                      std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:11:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |     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:11:22: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   11 |     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>
#define rep(i,n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
using P = pair<int,int>;
 
int main() {
  strings S;
  cin >> S;
  if(S == "ABC") cout << "ARC";
  else cout << "ABC";
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 'strings' was not declared in this scope; did you mean 'stdin'?
    8 |   strings S;
      |   ^~~~~~~
      |   stdin
a.cc:9:10: error: 'S' was not declared in this scope
    9 |   cin >> S;
      |          ^
Language: C++

#include <bits/stdc++.h>
#define rep(i,n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
using P = pair<int,int>;
 
int main() {
  int S;
  cin >> S;
  if(S == "ABC") cout << "ARC";
  else cout << "ABC";
}


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

#include <iostream>
using namespace std;

string S;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:31: error: expected ';' before ':' token
    8 |   if(S == "ABC") cout << "ARC":
      |                               ^
      |                               ;
Language: C++

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

#define ll long long int

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:30: error: invalid operands of types 'const char [4]' and 'const char [2]' to binary 'operator<<'
   10 |  cout<<(s=="ABC")?"ARC":"ABC"<<"\n";
      |                         ~~~~~^~~~~~
      |                         |      |
      |                         |      const char [2]
      |                         const char [4]
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:1:1: error: 'include' does not name a type
    1 | include<bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:4:3: error: 'string' was not declared in this scope
    4 |   string s;
      |   ^~~~~~
a.cc:5:3: error: 'cin' was not declared in this scope
    5 |   cin>>s;
      |   ^~~
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
    7 |     cout<<"ARC";
      |     ^~~~
a.cc:9:5: error: 'cout' was not declared in this scope
    9 |     cout<<"ABC";}
      |     ^~~~
Language: C++

#include <iostream>
#include <string>
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:4:3: error: 'string' was not declared in this scope
    4 |   string S;
      |   ^~~~~~
a.cc:4:3: note: suggested alternatives:
In file included from /usr/include/c++/14/iosfwd:41,
                 from /usr/include/c++/14/ios:40,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
In file included from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44:
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   cin >> S;
      |   ^~~
      |   std::cin
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:5:10: error: 'S' was not declared in this scope
    5 |   cin >> S;
      |          ^
a.cc:6:18: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |   if(S == "ABC") 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:6:35: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |   if(S == "ABC") 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:7:8: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |   else 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:7:25: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |   else 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 <iostream>
#include <string>
int main(){
  string S;
  if(S == "ABC") 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:6: error: 'S' was not declared in this scope
    5 |   if(S == "ABC") cout << "ARC" << endl;
      |      ^
a.cc:5:18: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    5 |   if(S == "ABC") 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:5:35: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    5 |   if(S == "ABC") 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:6:8: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |   else 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:6:25: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |   else 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 <queue>
#include <cstdio>
#include <iostream>
#include <math.h>
#include <set>
#include <map>
#include <string>
#include <vector>
#include <sstream>
#include <algorithm>
#include <iomanip>
#include <stack>
#include <time.h>
#include <functional>

//#include "All.h"

using namespace std;
typedef long long int ll;

#define EPS (1e-9)
#define INF (1e9)
#define PI (acos(-1))
#define REP(i,n) for(int i=0;i<n;i++)

int gcd(int a, int b) {
    if (a < b) swap(a, b);
    if (b == 0) return a;
    return gcd(b, a % b);
}

ll beki(ll a, ll b) {
    ll tmp = 1;
    REP(i, b) tmp *= a;
    return tmp;
}

int main() {
    AProblem();
}


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

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

#include <queue>
#include <cstdio>
#include <iostream>
#include <math.h>
#include <set>
#include <map>
#include <string>
#include <vector>
#include <sstream>
#include <algorithm>
#include <iomanip>
#include <stack>
#include <time.h>
#include <functional>

#include "All.h"

using namespace std;
typedef long long int ll;

#define EPS (1e-9)
#define INF (1e9)
#define PI (acos(-1))
#define REP(i,n) for(int i=0;i<n;i++)

int gcd(int a, int b) {
    if (a < b) swap(a, b);
    if (b == 0) return a;
    return gcd(b, a % b);
}

ll beki(ll a, ll b) {
    ll tmp = 1;
    REP(i, b) tmp *= a;
    return tmp;
}

int main() {
    AProblem();
}


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

Compiler output:
a.cc:16:10: fatal error: All.h: No such file or directory
   16 | #include "All.h"
      |          ^~~~~~~
compilation terminated.
Language: C++

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

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


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

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

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

#include <iostream>

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:2: error: 'string' was not declared in this scope
    4 |  string s;
      |  ^~~~~~
a.cc:4:2: 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:9: 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:16: error: 's' was not declared in this scope
    5 |         cin >> s;
      |                ^
a.cc:8:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |     cout << "ARC" << "\n";
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:11:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |     cout << "ABC" << "\n";
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:16:2: error: expected '}' at end of input
   16 | }
      |  ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C

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

int Main(void){
    char S[256];

    gets(S);

    if(!strcmp(S, "ABC")){
        printf("ARC");
    }else{
        printf("ABC");
    }

    return 0;
}

Compiler output:
main.c: In function 'Main':
main.c:7:5: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
    7 |     gets(S);
      |     ^~~~
      |     fgets
Language: C

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

int Main(void){
    char S[256];

    fgets(S);

    if(!strcmp(S, "ABC")){
        printf("ARC");
    }else if(!strcmp(S, "ABC")){
        printf("ABC");
    }

    return 0;
}

Compiler output:
main.c: In function 'Main':
main.c:7:5: error: too few arguments to function 'fgets'
    7 |     fgets(S);
      |     ^~~~~
In file included from main.c:1:
/usr/include/stdio.h:654:14: note: declared here
  654 | extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream)
      |              ^~~~~
Language: C

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

int Main(void){
    char S[256];

    gets(S);

    if(!strcmp(S, "ABC")){
        printf("ARC");
    }else if(!strcmp(S, "ABC")){
        printf("ABC");
    }

    return 0;
}

Compiler output:
main.c: In function 'Main':
main.c:7:5: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
    7 |     gets(S);
      |     ^~~~
      |     fgets
Language: C

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

int Main(void){
    char S;

    scanf("%s", &S);

    if(!strcmp(S, "ABC")){
        printf("ARC");
    }else if(!strcmp(S, "ABC")){
        printf("ABC");
    }

    return 0;
}

Compiler output:
main.c: In function 'Main':
main.c:9:16: error: passing argument 1 of 'strcmp' makes pointer from integer without a cast [-Wint-conversion]
    9 |     if(!strcmp(S, "ABC")){
      |                ^
      |                |
      |                char
In file included from main.c:2:
/usr/include/string.h:156:32: note: expected 'const char *' but argument is of type 'char'
  156 | extern int strcmp (const char *__s1, const char *__s2)
      |                    ~~~~~~~~~~~~^~~~
main.c:11:22: error: passing argument 1 of 'strcmp' makes pointer from integer without a cast [-Wint-conversion]
   11 |     }else if(!strcmp(S, "ABC")){
      |                      ^
      |                      |
      |                      char
/usr/include/string.h:156:32: note: expected 'const char *' but argument is of type 'char'
  156 | extern int strcmp (const char *__s1, const char *__s2)
      |                    ~~~~~~~~~~~~^~~~
Language: C

#include<stdio.h>

int Main(void){
    char S;

    scanf("%s", &S);

    if(S == "ABC"){
        printf("ARC");
    }else if(S == "ARC"){
        printf("ABC");
    }

    return 0;
}

Compiler output:
main.c: In function 'Main':
main.c:8:10: warning: comparison between pointer and integer
    8 |     if(S == "ABC"){
      |          ^~
main.c:10:16: warning: comparison between pointer and integer
   10 |     }else if(S == "ARC"){
      |                ^~
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C

#include<stdio.h>

int Main(void){
    char S;

    scanf("%d", &S);

    if(S = "ABC"){
        printf("ARC");
    }else if(S = "ARC"){
        printf("ABC");
    }

    return 0;
}

Compiler output:
main.c: In function 'Main':
main.c:8:10: error: assignment to 'char' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
    8 |     if(S = "ABC"){
      |          ^
main.c:10:16: error: assignment to 'char' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
   10 |     }else if(S = "ARC"){
      |                ^
Language: C

#include<stdio.h>

int main(void){
    String S;

    scanf("%d", &S);

    if(S == "ABC"){
        printf("ARC");
    }else if(S == "ARC"){
        printf("ABC");
    }

    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:5: error: unknown type name 'String'
    4 |     String S;
      |     ^~~~~~
main.c:8:10: warning: comparison between pointer and integer
    8 |     if(S == "ABC"){
      |          ^~
main.c:10:16: warning: comparison between pointer and integer
   10 |     }else if(S == "ARC"){
      |                ^~
Language: C++

#include <iostream>
using namespace std;

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:7:14: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
    7 |    if(s[1] = "B")
      |              ^~~
      |              |
      |              const char*
Language: C

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


int main() {
  string s;

  cin >> s;

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

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

#include <iostream>
#include <cmath>
#include <vector>
#include <map>
#include <iomanip>
#include <algorithm>
#include <sstream>
#include <string>
#include <math.h>
#include <set>
using namespace std;
typedef long long ll;
 
int main() {
	ios::sync_with_stdio(false);
	string s;
	cin >> s;
	if (s == "ABC") cout << "ARC";
	else cout << "ABC"
}   

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

#include<iostream>
#include<algorithm>
#include<cmath>
#include<vector>
#include<map>
#include<set>
#include<string>

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

using namespace std;

//inline int read(){int t = 0;int neg=1;char c;while((c=getchar_unlocked())!='\n'&&c!=' '&&c!=EOF){if(c=='-'){neg=-1;continue;}t=t*10+c-48;}return neg*t;}
//inline int readl(){long long t = 0;long long neg=1ll;char c;while((c=getchar_unlocked())!='\n'&&c!=' '&&c!=EOF){if(c=='-'){neg=-1ll;continue;}t=t*10+c-48;}return neg*t;}

#define debug(x) cout<<(#x)<<"="<<(x)<<", ";
#define debug1(x) debug(x) cout<<'\n';
#define debug2(x1, x2) debug(x1) debug(x2) cout<<'\n';
#define debug3(x1, x2, x3) debug(x1) debug(x2) debug(x3) cout<<'\n';
#define debug4(x1, x2, x3, x4) debug(x1) debug(x2) debug(x3) debug(x4) cout<<'\n';
#define debug5(x1, x2, x3, x4, x5) debug(x1) debug(x2) debug(x3) debug(x4) debug(x5) cout<<'\n';

typedef long long int lli;
typedef unsigned long long int ulli;
typedef pair<int,int> pi;
typedef pair<lli,lli> plli;
typedef vector<int> vi;
typedef vector<lli> vlli;
typedef vector<pi> vpi;
typedef vector<plli> vplli;
const lli M=1000000007ll;

int main(){
	fast_io
	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:36:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   36 |         if(s[1]=="B") cout<<"ARC";