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

#include <iostream>
#include <iomanip>
#include <string>
#include <vector>
#include <algorithm>
#include <set>
#include <cmath>
#include <utility>
#include <map>
#include <unordered_map>
#define rep(i,n) for(int i=0;i<n;++i)
using namespace std;
typedef long long int ll;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:21:17: error: expected ';' before 'cout'
   21 |   else(S=="ARC")
      |                 ^
      |                 ;
   22 |     cout<<"ABC"<<endl;
      |     ~~~~         
a.cc:21:9: warning: ignoring return value of 'bool std::operator==(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const _CharT*) [with _CharT = char; _Traits = char_traits<char>; _Alloc = allocator<char>]', declared with attribute 'nodiscard' [-Wunused-result]
   21 |   else(S=="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;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:6: error: expected unqualified-id before '>>' token
    6 |   int>>s;
      |      ^~
a.cc:7:9: error: 'ABC' was not declared in this scope
    7 |   if(s==ABC){
      |         ^~~
Language: C

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

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

#include<bits/stdc++.h>

using namespace std;

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

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

takano_haruhisa@MacPro(21:00:32) ~/Documents/cpp
% g++ abc166.cpp                                                                [~/Documents/cpp]
takano_haruhisa@MacPro(21:01:54) ~/Documents/cpp
% ./a.out                                                                       [~/Documents/cpp]
ABC
ARC
takano_haruhisa@MacPro(21:02:03) ~/Documents/cpp
%                                                                               [~/Documents/cpp]







Compiler output:
a.cc:1:16: error: stray '@' in program
    1 | takano_haruhisa@MacPro(21:00:32) ~/Documents/cpp
      |                ^
a.cc:3:16: error: stray '@' in program
    3 | takano_haruhisa@MacPro(21:01:54) ~/Documents/cpp
      |                ^
a.cc:7:16: error: stray '@' in program
    7 | takano_haruhisa@MacPro(21:02:03) ~/Documents/cpp
      |                ^
a.cc:1:1: error: 'takano_haruhisa' does not name a type
    1 | takano_haruhisa@MacPro(21:00:32) ~/Documents/cpp
      | ^~~~~~~~~~~~~~~
Language: C++

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

typedef unsigned int u32;
typedef int i32;
typedef unsigned long long int u64;
//typedef long long int i64;
typedef int i64;
typedef uint16_t u16;
typedef int16_t i16;
typedef uint8_t u8;
typedef int8_t i8;

const double PI = 3.141592653589793238463;

using namespace std;

const int MAXN = 1000500;
const int MAXVALUE = 1000000500;
//const long double EPS = 1e-7;

i64 mod = 1e9 + 7;

i64 T, n, m, k, q;
//i64 a[10]; // 97 : 122
//char b[10];

vector <i64[4]> v;

int main() {
	ios_base::sync_with_stdio(0);
	cin.tie(0);
	cout.precision(16);

	string s;

	cin >> s;

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


	return 0;
}

Compiler output:
a.cc:14:9: error: 'uint16_t' does not name a type
   14 | typedef uint16_t u16;
      |         ^~~~~~~~
a.cc:8:1: note: 'uint16_t' is defined in header '<cstdint>'; this is probably fixable by adding '#include <cstdint>'
    7 | #include <map>
  +++ |+#include <cstdint>
    8 | 
a.cc:16:9: error: 'uint8_t' does not name a type
   16 | typedef uint8_t u8;
      |         ^~~~~~~
a.cc:16:9: note: 'uint8_t' is defined in header '<cstdint>'; this is probably fixable by adding '#include <cstdint>'
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:3:32: error: could not convert 'S.std::__cxx11::basic_string<char>::operator=(((const char*)"ABC"))' from 'std::__cxx11::basic_string<char>' to 'bool'
    3 | int main(){string S;cin>>S;if(S="ABC")cout<<"ARC"<<endl;else cout<<"ABC"<<endl;}
      |                               ~^~~~~~
      |                                |
      |                                std::__cxx11::basic_string<char>
Language: C++

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef push_back pb;
typedef first F;
typedef second S;
typedef vector<int> vi;
typedef pair<int,int> ii;
typedef vector<ii> vii;
typedef set<int> si;
typedef map<string, int> msi;
#define REP(i,a,b) \
for(int i=int(a);i<=int(b);i++)
#define DEP(i,a,b) \
for(int i=int(a);i>=int(b);i--)
#define TR(c, it) \
for (auto it = (c).begin(); it != (c).end(); it++)

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


Compiler output:
a.cc:4:9: error: 'push_back' does not name a type
    4 | typedef push_back pb;
      |         ^~~~~~~~~
a.cc:5:9: error: 'first' does not name a type
    5 | typedef first F;
      |         ^~~~~
a.cc:6:9: error: 'second' does not name a type
    6 | typedef second S;
      |         ^~~~~~
Language: C++

#include <bits/stdc++.h>

using namespace std;

/*******  All Required define Pre-Processors and typedef Constants *******/
#define scd(t) scanf("%d",&t)
#define scld(t) scanf("%ld",&t)
#define sclld(t) scanf("%lld",&t)
#define scc(t) scanf("%c",&t)
#define scs(t) scanf("%s",t)
#define scf(t) scanf("%f",&t)
#define sclf(t) scanf("%lf",&t)
#define mem(a, b) memset(a, (b), sizeof(a))
#define fr(i, j, k, in) for (int i=j ; i<k ; i+=in)
#define gf(i,n) for (int i=0 ; i<n ; i+=1)
#define rfor(i, j, k, in) for (int i=j ; i>=k ; i-=in)
#define rep(i, j) FOR(i, 0, j, 1)
#define rrep(i, j) RFOR(i, j, 0, 1)
#define all(cont) cont.begin(), cont.end()
#define rall(cont) cont.end(), cont.begin()
#define foreach(it, l) for (auto it = l.begin(); it != l.end(); it++)
#define IN(A, B, C) assert( B <= A && A <= C)
#define mp make_pair
#define pb push_back
#define INF (int)1e9
#define EPS 1e-9
#define PI 3.1415926535897932384626433832795
#define MOD 1000000007
#define read(type) readInt<type>()
#define prarr(a,n) gf(i,n){printf("%d ", a[i]);}printf("\n");
#define sumarr(a,n) int zserkd=0;gf(i,n){zserkd+=a[i];}cout<<zserkd<<endl;
const double pi=acos(-1.0);
typedef pair<int, int> pii;
typedef vector<int> vi;
typedef vector<string> vs;
typedef vector<pii> vpii;
typedef vector<vi> vvi;
typedef map<int,int> mpii;
typedef set<int> seti;
typedef multiset<int> mseti;
typedef long int int32;
typedef unsigned long int uint32;
typedef long long int int64;
typedef unsigned long long int  uint64;

/****** Template of some basic operations *****/
template<typename T, typename U> inline void amin(T &x, U y) { if(y < x) x = y; }
template<typename T, typename U> inline void amax(T &x, U y) { if(x < y) x = y; }


void solve()
{
	string s;
	cin >>s;
	if(s = 'ABC')
	{
		cout<<'ARC';
	}
	else{
		cout<<'ABC';
	}
}
int main(){
	
	int t;
	cin>>t;
	while(t--)
	{
		// cout<<solve()<<endl;
		solve();
	}

	return 0;
}


Compiler output:
a.cc:55:16: warning: multi-character character constant [-Wmultichar]
   55 |         if(s = 'ABC')
      |                ^~~~~
a.cc:57:23: warning: multi-character character constant [-Wmultichar]
   57 |                 cout<<'ARC';
      |                       ^~~~~
a.cc:60:23: warning: multi-character character constant [-Wmultichar]
   60 |                 cout<<'ABC';
      |                       ^~~~~
a.cc: In function 'void solve()':
a.cc:55:16: warning: overflow in conversion from 'int' to 'char' changes value from '4276803' to '67' [-Woverflow]
   55 |         if(s = 'ABC')
      |                ^~~~~
a.cc:55:14: error: could not convert 's.std::__cxx11::basic_string<char>::operator=(67)' from 'std::__cxx11::basic_string<char>' to 'bool'
   55 |         if(s = 'ABC')
      |            ~~^~~~~~~
      |              |
      |              std::__cxx11::basic_string<char>
Language: C++

#include <cctype>
#include <cstdio>
#include <cstring>
#include <cmath>
#include <vector>
#include <algorithm>
#include <cmath>
#define pk putchar(' ')
#define ph puts("")
typedef long long ll;
using namespace std;
template <class T>
void rd(T &x)
{
    x = 0;
    int f = 1;
    char c = getchar();
    while (!isdigit(c)) {if (c == '-') f = -1; c = getchar();}
    while (isdigit(c)) x = (x << 3) + (x << 1) + (c ^ 48), c = getchar();
    x *= f;
}
template <class T>
void pt(T x)
{
    if (x < 0)
        putchar('-'), x = (~x) + 1;
    if (x > 9)
        pt(x / 10);
    putchar(x % 10 ^ 48);
}
const int N = 2e5 + 5;
int n, a[N], b[N], ans[N], tmp[N];
vector<int> G[N];
struct tree 
{ 
	int l, r, dat; 
}t[N << 2];
int ls(int p) 
{ 
	return p << 1; 
}
int rs(int p) 
{
 return ((p << 1) | 1); 
}
void build(int p, int l, int r) 
{
	t[p].l = l, t[p].r = r;
	if (l == r) 
	{ 
		t[p].dat = a[l]; 
		return ; 
	}
	int mid = (l + r) >> 1;
	build(ls(p), l, mid);
	build(rs(p), mid + 1, r);
	t[p].dat = max(t[ls(p)].dat, t[rs(p)].dat);
}
void change(int p, int x, int v) 
{
	if (t[p].l == t[p].r) 
	{ 
		t[p].dat = v; 
		return ; 
	}
	int mid = (t[p].l + t[p].r) >> 1;
	if (x <= mid) 
		change(ls(p), x, v);
	else 
		change(rs(p), x, v);
	t[p].dat = max(t[ls(p)].dat, t[rs(p)].dat);
}
int ask(int p, int l, int r) 
{
	if (l <= t[p].l && r >= t[p].r) 
		return t[p].dat;
	int mid = (t[p].l + t[p].r) >> 1;
	int val = 0;
	if (l <= mid) 
		val = max(val, ask(ls(p), l, r));
	if (r > mid) 
		val = max(val, ask(rs(p), l, r));
	return val;
}
void dfs(int x, int fa)
{
	ans[x] = ask(1, 1, a[x] - 1) + 1;
	int tmp = ask(1, a[x], a[x]);
	if (ans[x] > tmp)
		change(1, a[x], ans[x]);
	ans[x] = max(ans[fa], ans[x]);
	for (int i = 0; i < (int)G[x].size(); i++)
		if (G[x][i] != fa)
			dfs(G[x][i], x);
	change(1, a[x], tmp);
	return;
}
int main() 
{
	char s[4];
	gets(s);
	if (s[1] == 'R')
		puts("ABC");
	else
		puts("ARC");
    return 0;
}

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:11: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
    8 |   if (S = "ABC") {
      |           ^~~~~
      |           |
      |           const char*
Language: C++

#include <iostream>
#include <stdio.h>
#define ll long long

int main(void) {
	string s;
  cin >> s;
    if (s == "ABC") printf("ARC");
  else printf("ABC");
	return 0;
}


Compiler output:
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:3: 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:10: error: 's' was not declared in this scope
    7 |   cin >> s;
      |          ^
Language: C++

#include <iostream>
#include <vector>
#include <stirng>
#include <algorithm>

suing namespace std;

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

  return 0;
}


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

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

using namespace std;
#define ll long long int

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

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

	return 0;
}


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

#include <bits/stdc++.h>

using namespace std;

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


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

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

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

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


Compiler output:
Main.java:9: error: 'else' without 'if'
        else{
        ^
Main.java:13: error: reached end of file while parsing
}
 ^
2 errors
Language: C

#include<stdio.h>
#include<math.h>
#include<string.h>
#include<ctype.h>
#include<stdlib.h>
#define STR 10
int main(){
    char S[STR];
    scanf("%s",S);
    if(s=="ABC")printf("ARC");
    else printf("ABC");
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:8: error: 's' undeclared (first use in this function)
   10 |     if(s=="ABC")printf("ARC");
      |        ^
main.c:10:8: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include <iostreamG>
#include <math.h>
#include <algorithm>
#include <functional>
#include <stdio.h>
#include <vector>
#include <string>
#include <map>
#define rep(i, n) for (int (i) = 0; (i) < (int)(n); (i)++)
//#define rep(i, n) for(int (i) = 0, TmP = (n); (i) < (int)TmP ; ++(i))
#define asort(v, n) sort((v), (v + n)) //Using array
#define vsort(v) sort((v).begin(), (v).end()) // Using vector
#define vint vector<int>
typedef long long ll;

using namespace std;

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


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

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


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

import java.util.*;

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

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

#include "bits/stdc++/h"
using namespace std;
signed main()
{
  string s;
  cin >> s;
  if(s[1] == 'B')
  {
    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: C++

#include<iostream>
#include <algorithm>
#define rep(i,n) for(int i=0;i<n;i++)
typedef long long int llint;
using namespace std;


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

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

#include<bits/stdc++.h>
using namespace std ;
#define ll long long
#define ld long double
#define ff first
#define ss second
const ll mod =   1e9 +7  ;
ll multiply(ll a, ll b ){ return ((a % mod) * (b % mod)) % mod; }
ll add(ll a, ll b) {     return ((a % mod) + (b % mod)) % mod; }
ll sub(ll a, ll b) { return ((a%mod) - (b % mod)+ mod) % mod ; }
////////////////////////////////////////////////////////////////

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

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


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

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

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


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

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


int main() {
  strinng 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:8:3: error: 'strinng' was not declared in this scope
    8 |   strinng s;
      |   ^~~~~~~
a.cc:9:10: error: 's' was not declared in this scope
    9 |   cin >> s;
      |          ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:11:5: error: 'cou' was not declared in this scope; did you mean 'cos'?
   11 |     cou<<"ABC"<<endl;
      |     ^~~
      |     cos
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define ll long long int
#define pb push_back
int main()
{
#ifndef ONLINE_JUDGE
	// for getting input from input.txt
	freopen("input.txt", "r", stdin);
	// for writing output to output.txt
	freopen("output.txt", "w", stdout);
#endif
	string s;
	cin >> s;
	if (s == "ABC")
		cout << "ARC";
	else cout << "ABC"


		          return 0;
}

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

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

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

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

Compiler output:
Main.java:10: error: ';' expected
			ans = "ABC"
			           ^
1 error
Language: C++

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

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

#include <iostream>
using namespace std;
int main(){
  string s;
  cin >> s;
  if (s[1] == 'B') s[1] = 'R';
  else s[1] = 'B'
   cout << s << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:18: error: expected ';' before 'cout'
    7 |   else s[1] = 'B'
      |                  ^
      |                  ;
    8 |    cout << s << endl;
      |    ~~~~
Language: C++

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

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


Compiler output:
a.cc:7:8: warning: multi-character character constant [-Wmultichar]
    7 |   if(S='ABC'){
      |        ^~~~~
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]
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;

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

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

#include<iostream>
#include<string>
#include<cstdlib>
template<typename T>
void fin(T const& t){ std::cout << t << std::endl; exit(0); }

int main() {
  std::string S; std::cin >> S;
  S[1] = 'R'+'B' - S[1];
  fin(S);
  return 0;
}


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

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

typedef long long ll;
typedef pair<int,int> pii;

long long MOD = 1000000000 + 7;

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


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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:6: error: expected ';' before 's'
    7 |   cin s;
      |      ^~
      |      ;
Language: Java

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


Compiler output:
Main.java:1: error: class, interface, enum, or record expected
20200503 A
^
1 error
Language: C++

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

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

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


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

#include<stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:5:3: error: implicit declaration of function 'scnaf'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    5 |   scnaf("%s",s);
      |   ^~~~~
      |   scanf
main.c:6:9: warning: multi-character character constant [-Wmultichar]
    6 |   if(s=='ARC'){printf("ABC");}
      |         ^~~~~
Language: C

#include <bits/stdc++.h>
using namespace std;
#define forn(i, n) for(int i = 0; i < int(n); i++)
#define fore(i, l, r) for(int i = int(l); i < int(r); i++)
#define pb push_back
#define deb(x) cout<<#x<<" "<<x<<endl;
#define deb2(x, y) cout<<#x<<" "<<x<<" "<<#y<<" "<<y<<endl;
#define deb3(x, y, z) cout<<#x<<" "<<x<<" "<<#y<<" "<<y<<" "<<#z<<" "<<z<<endl;
#define all(x) x.begin(), x.end()
#define sz(a) int((a).size())
typedef long long ll;
typedef vector<int> vi;
typedef vector<vector<int>> vvi;
typedef vector<ll> vl;
typedef vector<vector<ll>> vvl;
typedef vector<string> vs;
typedef vector<bool> vb;
typedef pair<int, int> pii;
const int mod = 1e9 + 7;
template<class T, class U> inline void add_self(T &a, U b){a += b;if (a >= mod) a -= mod;if (a < 0) a += mod;}
template<class T, class U> inline void min_self(T &x, U y) { if (y < x) x = y; }
template<class T, class U> inline void max_self(T &x, U y) { if (y > x) x = y; }

template <typename T>void print(T v, bool show_index = false){int w = 2;if(show_index){for(int i=0; i<v.size(); i++)cout<<setw(w)<<i<<" ";cout<<endl;}for(auto i= v.begin(); i!=v.end(); i++)cout<<setw(w)<<*i<<" ";cout<<endl;}
template <typename T>void print_vv(T v){if(v.size()==0) {cout<<"Empty"<<endl; return;} int w = 3;cout<<setw(w)<<" ";for(int j=0; j<v[0].size(); j++)cout<<setw(w)<<j<<" ";cout<<endl;for(auto i= 0; i<v.size(); i++){cout<<i<<" {";for(auto j = 0; j!=v[i].size(); j++){cout<<setw(w)<<v[i][j]<<",";}cout<<"},"<<endl;}cout<<endl;}
template <class T, class U> void print_m(map<T,U> m, int w=3){if(m.empty()){cout<<"Empty"<<endl; return;}for(auto x: m)cout<<"("<<x.first<<": "<<x.second<<"),"<<endl;cout<<endl;}

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

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

#include <iostream>
#include <string>

using namespace std;

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

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

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

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

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

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


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

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

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

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

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

int main(){
    string s;

    cin >> s;

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

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;
using ll = long long;

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

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

#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<ll, ll>;

const ll INF = 1e18;
const ll MOD = 1000000007;
const ll MX = 0; //最大値

ll dp[MX][MX];
inline void chmax(ll& a, ll b) {
  a = max(a, b);
}

#define rep(i,n) for(ll i=0; i<(ll)(n); i++)
#define ALL(x) (x).begin(),(x).end()
#define SIZE(x) ((ll)(x).size()) //sizeをsize_tからllに直しておく
#define MAX(x) *max_element(ALL(x))
#define PB push_back


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:25:11: error: could not convert 's.std::__cxx11::basic_string<char>::operator=(((const char*)"ABC"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   25 |     if (s = "ABC") cout << "ARC" << endl;
      |         ~~^~~~~~~
      |           |
      |           std::__cxx11::basic_string<char>
Language: C

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

#define rep(i,n) for(int i=0;i<n;i++)
#define ll long long int
#define MAX 1000000007

using namespace std;

struct UnionFind{
  vector<int> par,num;

  UnionFind(int N) : par(N),num(N){
    for(int i=0;i<N;i++){
      par[i] = i;
      num[i] = 1;
    }
  }

  int root(int x){
    if(par[x] == x) return x;
    return par[x] = root(par[x]);
  }

  void unite(int x, int y){
    int rx = root(x);
    int ry = root(y);
    if(rx == ry) return;
    par[rx] = ry;
    num[ry] = num[ry]+num[rx]; 
  }

  int get_num(int x){
    int rx = root(x);
    return num[rx];
  }

  bool same(int x, int y){
    int rx = root(x);
    int ry = root(y);
    return rx == ry;
  }
};


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


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

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

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

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

#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
using P = pair<ll,ll>;
#define REP(i, n) for (ll i = 0; i < (int)(n); i++)
#define RREP(i, n) for (ll i = (int)(n)-1; i > -1 ; i--)
#define IN(T, x) T x;cin >> x;
#define AIN(T, a, n) vector<T> a(n);REP(i, n){cin >> a[i];}
#define A2IN(T1, a, T2, b, n) vector<T1> a(n);vector<T2> b(n);REP(i, n){cin >> a[i] >> b[i];}
#define ALL(a) (a).begin(),(a).end()
#define SORT(a) sort(ALL(a))
#define RSORT(a) SORT(a);reverse(ALL(a))
template<class T>bool chmax(T &a,const T &b){if(a<b){a=b;return 1;}return 0;}
template<class T>bool chmin(T &a,const T &b){if(b<a){a=b;return 1;}return 0;}
#define OUT(x) cout << x << endl
#define BOUT(b) if(b){OUT("Yes");}else{OUT("No");}
const ll INF = 100000007;

int main() {
  IN(ll,S);
  if("ABC" == S)
    OUT("ARC");
  else
    OUT("ABC");
}





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

AtCoder Inc. holds a contest every Saturday.

There are two types of contests called ABC and ARC, and just one of them is held at a time.

The company holds these two types of contests alternately: an ARC follows an ABC and vice versa.

Given a string 
S
 representing the type of the contest held last week, print the string representing the type of the contest held this week.

Constraints
S
 is ABC or ARC.


Compiler output:
a.cc:1:1: error: 'AtCoder' does not name a type
    1 | AtCoder Inc. holds a contest every Saturday.
      | ^~~~~~~
Language: C++

#include <cstdio>
#include <iostream>
#include <string>
#include <cstring>
#include <cmath>
#include <algorithm>

#define int long long
#define rr register

#define MAXN 1010
#define MAXM 10010
#define inf 1e18

using namespace std;

inline int read() {
	int s = 0, f = 0;
	char ch = getchar();
	while (!isdigit(ch)) {f |= ch == '-'; ch = getchar();}
	while (isdigit(ch)) {s = s * 10 + (ch ^ 48); ch = getchar();}
	return f ? -s : s;
}

signed main() {
    cout << "ABC\n
}

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

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

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


  cout<<a<<endl;
  

 
  return 0;
}

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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7: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 <bits/stdc++.h>
using namespace std;

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


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

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

int main()
{
    string s;
    cin >> s;
    int a,b,c,d;
    if(s == "ABC")
        cout << "ARC";
    else
        cout << "ABC";
}

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

#include <iostream>
#include <vector>
#include <cmath>
#include <algorithm>
#include <map>
 
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:11:7: error: could not convert 'S.std::__cxx11::basic_string<char>::operator=(((const char*)"ABC"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   11 |   if(S="ABC"){
      |      ~^~~~~~
      |       |
      |       std::__cxx11::basic_string<char>
Language: C++

#include <bits/stdc++.h>
#define rep(i, l, r) for(register int i = l; i < r; i++)
#define hrp(i, l, r) for(register int i = l; i <= r; i++)
#define rev(i, r, l) for(register int i = r; i >= l; i--)
#define pb push_back
#define int ll
#ifndef JOEON
#define D(...)
#define R(x, l)
#endif
using namespace std;
typedef long long ll;
typedef pair<int, int> pii;
template<typename tn> inline tn next(void);
template<typename tn> inline ostream& operator << (ostream& os, const vector<tn>& v);
signed main(void)
{
	#ifdef JOEON
//		freopen("C:\Users\Joeon\Desktop\IN.txt", "r", stdin);
//		freopen("C:\Users\Joeon\Desktop\OUT.txt", "w", stdout);
	#endif
	ios::sync_with_stdio(false);
	cin.tie(0);
	string str = next<int>();
	if (str == "ABC") cout<<"ARC"<<endl;
	else cout<<"ABC"<<endl;
	return 0;
}
template<typename tn> inline tn next(void)
{
	tn k;
	cin>>k;
	return k;
}
template<typename tn> inline ostream& operator << (ostream& os, const vector<tn>& v)
{
	rep(i, 0, v.size()) os<<v[i]<<' ';
	return os;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:24:31: error: conversion from 'long long int' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
   24 |         string str = next<int>();
      |                      ~~~~~~~~~^~
a.cc: In function 'std::ostream& operator<<(std::ostream&, const std::vector<_Tp>&)':
a.cc:37:13: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
   37 |         rep(i, 0, v.size()) os<<v[i]<<' ';
      |             ^
a.cc:2:39: note: in definition of macro 'rep'
    2 | #define rep(i, l, r) for(register int i = l; i < r; i++)
      |                                       ^
Language: C++

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

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


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

using namespace std;

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

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

#define ll long long
#define rep(i,n) for(ll i=0;i<n;i++)
#define rep2(i,a,b) for(ll i=a;i<=b;++i)
#define rep3(i,a,b) for(ll i=a;i>=b;i--)
#include <bits/stdc++.h>
 
using namespace std;
 
int main(void) {
    ll w, s;
    cin >> s >> w;
    if(w >= s){
        cout << "unsafe" << endl;
    }else{
        cout << "safe" << endl;
    }
    return 0;

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

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

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

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

	return 0;
}

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

import java.util.*;

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

Compiler output:
Main.java:6: error: incompatible types: String cannot be converted to int
		int S = sc.next();
		               ^
Main.java:7: error: cannot find symbol
        if(S.equals(ABC)) System.out.println("ARC");
                    ^
  symbol:   variable ABC
  location: class Main
Main.java:7: error: int cannot be dereferenced
        if(S.equals(ABC)) System.out.println("ARC");
            ^
3 errors
Language: C++

#include <iostream>
#include <cmath>
#include <utility>

using namespace std;

typedef pair<int,int> pii;
typedef long long ll;
#define mp make_pair
#define x first
#define y second

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



return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:25: error: expected ';' before 'return'
   17 |         else cout<<"ARC"
      |                         ^
      |                         ;
......
   21 | return 0;
      | ~~~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int mian()':
a.cc:11:1: warning: no return statement in function returning non-void [-Wreturn-type]
   11 | }
      | ^
/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 <algorithm>
#include <iomanip>
#include <iostream>
#include <string>
#include <vector>

std::string solve(const std::string& s)
{
  return s == "ABC" ? "ARC" : "ABC";
}

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

  std::cout << std::setprecision(20);
  std::cout << solve(s) << std::endl;
}


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

#include<bits/stdc++.h>
using namespace std;
#define  ft  ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
#define  ll  long long
#define  pi  pair<int,int>
#define  pb  push_back
#define  F   first
#define  S   second
const int N=2e5+3;
string s,p;
//vector<int>v;
//map<int,int>mp;

int main()
{
    ft
    ll t,i,j,n,m,l,r;
    cin>>s;
    (ss=="ABC")? cout<<"ARC\n": cout<<"ABC\n";
    return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:19:6: error: 'ss' was not declared in this scope; did you mean 's'?
   19 |     (ss=="ABC")? cout<<"ARC\n": cout<<"ABC\n";
      |      ^~
      |      s
Language: C++

#include<stdio.h>
#include<iostream>
#include<string.h>
#include<algorithm>
#include<queue>
#include<stack>
#include<math.h>
#include<map>
typedef long long int ll;
using namespace std;
#define maxn 0x3f3f3f3f
#define INF 0x3f3f3f3f3f3f3f3f
const int mm=1e6;
ll d[mm];
int main()
{
	ll n,m,i,j,k,kk,a,b,t;
	string s;
	cin>>s;
	if(s=="ABC");
	cout<<"ARC"<<endl;
	else 
	cout<<"ABC"<<endl;

}

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

#include<bits/stdc++.h>
using namespace std;
#define vi vector<int>
#define ff first
#define ss second
#define file_se_input  freopen("input.txt", "r", stdin); freopen("output.txt", "w", stdout);
#define pp long long int
#define setbits(x)      __builtin_popcountll(x)
#define zrobits(x)      __builtin_ctzll(x)
#define pb push_back
#define mp make_pair
#define pi 3.141592653589793238
#define eb emplace_back
#define rep(i,a,b) for (int i = a; i <= b; i++)
#define zip(i,a,b) for(int i=a;i<b;i++)
#define ll unsigned long long int
#define test long int t;cin>>t; while(t--)
#define um unordered_map
#define en '\n'
#define us unordered_set
#define mm 1000000007

bool check_prime(long long n)
{
    int flag=0;
    for(long long i=2;i*i<=n;i++)
    {
        if(n%i==0)
        {
            flag=1;
            break;
        }
    }
    if(n==1)
	   return false;
    else if(flag==0 || n==2 ||n==3)
    {
        return true;
    }
    else
    {
        return false;
    }

}

int binaryExponentiation(int x,int n)//function to calculate x raise to power n
{
    int result=1;
    while(n>0)
    {
        if(n % 2 ==1)
            result=result * x;
        x=x*x;
        n=n/2;
    }
    return result;
}

int main()
{
   ios_base::sync_with_stdio(false);
   cin.tie(NULL);
   cout.tie(0);
   #ifndef ONLINE_JUDGE
    if(fopen("input.txt","r"))
    {
    freopen ("input.txt" , "r" , stdin);
    freopen ("output.txt" , "w" , stdout);
    }
   #endif
    //_______________________________-code starts-______________________________________________________________________________


    string s;
    cin>>s;
    if(s[1]=='B')
    {
    	s[i]='R';
    }
    else
    {
    	s[i]='B';
    }
    cout<<s<<en;

  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:79:11: error: 'i' was not declared in this scope
   79 |         s[i]='R';
      |           ^
a.cc:83:11: error: 'i' was not declared in this scope
   83 |         s[i]='B';
      |           ^