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

#include<iostream>
#include<algorithm>
#include<climits>
#include<cmath>
#include<cstdio>
#include<cstdlib>
#include<ctime>
#include<string>
#include<cstring>
#include<vector>
#include<stack>
#include<queue>
#include<set>
#include<map>
#include<bitset>

using namespace std;

typedef long long ll;
typedef unsigned long long ull;
typedef pair<int, int> i_i;
typedef pair<long long, int> ll_i;

#define PI 3.141592653589793238462643383279
#define mod 1000000007LL
#define rep(i, n) for(i = 0;i < n;++i)
#define rep1(i, n) for(i = 1;i < n;++i)
#define per(i, n) for(i = n - 1;i > -1;--i)
#define int(x) int x; scanf("%d",&x)
#define int2(x, y) int x, y; scanf("%d%d",&x, &y)
#define int3(x, y, z) int x, y, z; scanf("%d%d%d",&x, &y, &z)
#define int4(v, x, y, z) int v, x, y, z; scanf("%d%d%d%d", &v, &x, &y, &z)
#define int5(v, w, x, y, z) int v, w, x, y, z; scanf("%d%d%d%d%d", &v, &w, &x, &y, &z)
#define pri(x) cout << (x) << "\n"
#define pri2(x, y) cout << (x) << " " << (y) << "\n"
#define pri3(x, y, z) cout << (x) << " " << (y) << " " << (z) << "\n"
#define pb push_back
#define mp make_pair
#define all(a) (a).begin(),(a).end()
#define kabe puts("---------------------------")
#define kara puts("")
#define debug(x) cout << " --- " << (x) << "\n"
#define debug2(x, y) cout << " --- " << (x) << " " << (y) << "\n"
#define debug3(x, y, z) cout << " --- " << (x) << " " << (y) << " " << (z) << "\n"
#define X first
#define Y second
#define eps 0.0001
#define prid(x) printf("%.15lf\n", x)


signed main(void){
  int i, j;
  for(int testcase = 0;testcase >= 0;testcase++){
    int(n);
    puts((x < 1200) ? "ABC" : "ARC");

/*/

//*/ break;
  }
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:55:11: error: 'x' was not declared in this scope
   55 |     puts((x < 1200) ? "ABC" : "ARC");
      |           ^
Language: Java

import java.util.*;
public class Main{
	public static void main(String atgs[]){
		Scanner scan = Scaner(System.in);
		int x = scan.nextInt();
		if(x<1200){System.out.println("ABC");}
		else{System.out.println("ARC");}
	}
}

Compiler output:
Main.java:4: error: cannot find symbol
		Scanner scan = Scaner(System.in);
		               ^
  symbol:   method Scaner(InputStream)
  location: class Main
1 error
Language: C

#include<stdio.h>
int main()
{
	int x;
	printf("Input x: ");
	while(true)
	{
		scanf("%d", &x);
		if (x <= 3000 && x >= 1)
			break;
		printf("x is fail (1 <= x <= 3000), please input again:  ");
	}
	if (x >= 1200)
		printf("ARC");
	else
		printf("ABC");
	return 0;

}



Compiler output:
main.c: In function 'main':
main.c:6:15: error: 'true' undeclared (first use in this function)
    6 |         while(true)
      |               ^~~~
main.c:2:1: note: 'true' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
    1 | #include<stdio.h>
  +++ |+#include <stdbool.h>
    2 | int main()
main.c:6:15: note: each undeclared identifier is reported only once for each function it appears in
    6 |         while(true)
      |               ^~~~
Language: C++

#include <bits/stdc++.h>
#define  ren(i,j,n) for(li i=(j);i<(n);i++)
#define  rep(i,n) ren(i,0,(n))
#define  all(a) begin(a),end(a)
using namespace std;
typedef long int li;
typedef unsigned long long ull;
typedef vector<int> vi;
typedef vector<string> vs;
 
int main()
{
    int a;
    cin>>a;
    if(a<1200) cout<<"ABC\n";
    else cour<<"ARC\n";
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:10: error: 'cour' was not declared in this scope
   16 |     else cour<<"ARC\n";
      |          ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
 
int main(){
int a;scanf("%d",&a);
if(a<1200)puts("ABC");
else puts("ARC");
}

Compiler output:
a.cc:3:1: error: extended character   is not valid in an identifier
    3 |  
      | ^
a.cc:3:1: error: '\U000000a0' does not name a type
    3 |  
      | ^
Language: C++

#include<iostream>
using namespace std;
 
int main()
{
    // get a integer
    int a;
    cin >> a;
    if (a < 1200) {
        cout << "ABC" << endl;
    else
        cout << "ARC" << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:5: error: expected '}' before 'else'
   11 |     else
      |     ^~~~
a.cc:9:19: note: to match this '{'
    9 |     if (a < 1200) {
      |                   ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:5: error: expected '}' before 'else'
   11 |     else
      |     ^~~~
a.cc:9:20: note: to match this '{'
    9 |     if (a <= 1200) {
      |                    ^
Language: C++

#import"cstdio"
x;
main(){scanf("%d",&x);puts(x<1200?"ABC":"ARC");}


Compiler output:
a.cc:1:2: warning: #import is a deprecated GCC extension [-Wdeprecated]
    1 | #import"cstdio"
      |  ^~~~~~
a.cc:2:1: error: 'x' does not name a type
    2 | x;
      | ^
a.cc:3:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    3 | main(){scanf("%d",&x);puts(x<1200?"ABC":"ARC");}
      | ^~~~
a.cc: In function 'int main()':
a.cc:3:20: error: 'x' was not declared in this scope
    3 | main(){scanf("%d",&x);puts(x<1200?"ABC":"ARC");}
      |                    ^
Language: C++

import Control.Applicative
import Control.Monad
import qualified Data.ByteString.Char8 as B
import Data.Maybe (fromJust)
import Text.Printf
import Debug.Trace

getInts :: IO [Int]
getInts = map (fst . fromJust . B.readInt) . B.words <$> B.getLine

main = do
  [x] <- getInts
  putStrLn $ if x < 1200 then "ABC" else "ARC"


Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import Control.Applicative
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
Language: C++

using namespace std;
int main()
{
    // 整数の入力
    int a;
    cin >> a;
    // スペース区切りの整数の入力
    //int b,c;
    //cin >> b >> c;
    // 文字列の入力
    string s, t;
    //cin >> s;
    // 出力
    s = "ABC";
    t = "ARC";
    if(a>=1200)
        cout << t << endl;
    else
        cout << s << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: 'cin' was not declared in this scope
    6 |     cin >> a;
      |     ^~~
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:11:5: error: 'string' was not declared in this scope
   11 |     string s, t;
      |     ^~~~~~
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:14:5: error: 's' was not declared in this scope
   14 |     s = "ABC";
      |     ^
a.cc:15:5: error: 't' was not declared in this scope
   15 |     t = "ARC";
      |     ^
a.cc:17:9: error: 'cout' was not declared in this scope
   17 |         cout << t << endl;
      |         ^~~~
a.cc:17:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:17:22: error: 'endl' was not declared in this scope
   17 |         cout << t << 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:19:9: error: 'cout' was not declared in this scope
   19 |         cout << s << endl;
      |         ^~~~
a.cc:19:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:19:22: error: 'endl' was not declared in this scope
   19 |         cout << s << endl;
      |                      ^~~~
a.cc:19:22: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

#include <assert.h>
#include <ctype.h>
#include <errno.h>
#include <float.h>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <limits>
#include <locale>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <wchar.h>
#include <wctype.h>
#include <algorithm>
#include <bitset>
#include <cctype>
#include <cerrno>
#include <clocale>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <deque>
#include <exception>
#include <fstream>
#include <functional>
#include <limits>
#include <map>
#include <iomanip>
#include <ios>
#include <iosfwd>
#include <istream>
#include <ostream>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <stdexcept>
#include <streambuf>
#include <string>
#include <utility>
#include <vector>
#include <cwchar>
#include <cwctype>
#include <complex.h>
#include <fenv.h>
#include <inttypes.h>
#include <stdbool.h>
#include <stdint.h>
#include <tgmath.h>
#include <conio.h>
using namespace std;
int main()
{
//	ios_base::sync_with_stdio(false);
	int n;
	cin>>n;
	cout<<(n<1200?"ABC":"ARC");
	return 0;
}


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

#include <assert.h>
#include <ctype.h>
#include <errno.h>
#include <float.h>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <limits>
#include <locale>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <wchar.h>
#include <wctype.h>
#include <algorithm>
#include <bitset>
#include <cctype>
#include <cerrno>
#include <clocale>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <deque>
#include <exception>
#include <fstream>
#include <functional>
#include <limits>
#include <map>
#include <iomanip>
#include <ios>
#include <iosfwd>
#include <istream>
#include <ostream>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <stdexcept>
#include <streambuf>
#include <string>
#include <utility>
#include <vector>
#include <cwchar>
#include <cwctype>
#include <complex.h>
#include <fenv.h>
#include <inttypes.h>
#include <stdbool.h>
#include <stdint.h>
#include <tgmath.h>
#include <conio.h>
using namespace std;
int main()
{
	ios_base::sync_with_stdio(false);
	int n;
	cin>>n;
	cout<<(n<1200?"ABC":"ARC");
	return 0;
}


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

//Written by Zhu Zeqi
//Come on,baby
//Hack,please
#include<cmath>
#include<math.h>
#include<ctype.h>
#include<algorithm>
#include<bitset>
#include<cassert>
#include<cctype>
#include<cerrno>
#include<cfloat>
#include<ciso646>
#include<climits>
#include<clocale>
#include<complex>
#include<csetjmp>
#include<csignal>
#include<cstdarg>
#include<cstddef>
#include<cstdio>
#include<cstdlib>
#include<cstring>
#include<ctime>
#include<cwchar>
#include<cwctype>
#include<deque>
#include<exception>
#include<fstream>
#include<functional>
#include<iomanip>
#include<ios>
#include<iosfwd>
#include<iostream>
#include<istream>
#include<iterator>
#include<limits>
#include<list>
#include<locale>
#include<map>
#include<memory>
#include<new>
#include<numeric>
#include<ostream>
#include<queue>
#include<set>
#include<sstream>
#include<stack>
#include<stdexcept>
#include<streambuf>
#include<string>
#include<typeinfo>
#include<utility>
#include<valarray>
#include<vector>
#include<string.h>
#include<stdlib.h>
#include<stdio.h>
#define pb push_back
#define mp make_pair
#define F first
#define S second
#define pii pair<int,int>
#define vi vector<int>
#define MAX 100000000000000000
#define MOD 1000000007
#define PI 3.141592653589793238462
#define INF 1000000000
typedef long long ll;
using namespace std;
//作者：中国江苏南京朱泽齐
int a;
int main(){
	//freopen("input.in","r",stdin);
	//freopen("output.out","w",stdout);
	cin>>a;
	if(a<1200)
	cout<<"ABC"<<endl;
	else
	cout<<"ARC"<<endl
	//system("pause");
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:80:26: error: expected ';' before 'return'
   80 |         cout<<"ARC"<<endl
      |                          ^
      |                          ;
   81 |         //system("pause");
   82 |         return 0;
      |         ~~~~~~
Language: C++

import std.stdio, std.conv, std.string;

void main() {
    (readln.chomp.to!int < 1200 ? "ABC" : "ARC").writeln;
}

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import std.stdio, std.conv, std.string;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: '::main' must return 'int'
    3 | void main() {
      | ^~~~
a.cc: In function 'int main()':
a.cc:4:6: error: 'readln' was not declared in this scope
    4 |     (readln.chomp.to!int < 1200 ? "ABC" : "ARC").writeln;
      |      ^~~~~~
a.cc:4:21: error: expected ')' before '!' token
    4 |     (readln.chomp.to!int < 1200 ? "ABC" : "ARC").writeln;
      |     ~               ^
      |                     )
Language: C++

#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
#include <stack>
#include <queue>
#include <set>
#include <cmath>
#include <map>
#include <fstream>

#define rep(i,a,n) for(int i=a;i<n;i++)
using namespace std;
typedef long long ll;
typedef pair<int, int> P;


template <typename T>
std::ostream &operator<<(std::ostream &out, const std::vector<T> &v){
    if(!v.empty()) {
        out << '[';
        std::copy(v.begin(), v.end(), std::ostream_iterator<T>(out, ", "));
        out << "\b\b]";
    }
    return out;
}

template <typename T1, typename T2>
std::ostream &operator<<(std::ostream &out, const std::pair<T1, T2> &p) {
    out << "[" << p.first << ", " << p.second << "]";
    return out;
}
//---------


int main(){
    cin.tie(0);
    ios::sync_with_stdio(false);
    //CLion Standard Input
    //--------------------------------------------------------------------------
    ifstream in("/Users/ryo/Dropbox/competition/CompetitiveProgramming/in.txt");
    cin.rdbuf(in.rdbuf());
    //-------------------------------------------------------------------------

    int x;
    cin >> x;
    if(x < 1200){
        cout << "ABC" << endl;
    }else{
        cout << "ARC " << endl;
    }
    return 0;
}

Compiler output:
a.cc: In function 'std::ostream& operator<<(std::ostream&, const std::vector<_Tp>&)':
a.cc:25:44: error: 'ostream_iterator' is not a member of 'std'
   25 |         std::copy(v.begin(), v.end(), std::ostream_iterator<T>(out, ", "));
      |                                            ^~~~~~~~~~~~~~~~
a.cc:14:1: note: 'std::ostream_iterator' is defined in header '<iterator>'; this is probably fixable by adding '#include <iterator>'
   13 | #include <fstream>
  +++ |+#include <iterator>
   14 | 
a.cc:25:62: error: expected primary-expression before '>' token
   25 |         std::copy(v.begin(), v.end(), std::ostream_iterator<T>(out, ", "));
      |                                                              ^
Language: C++

#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
#include <stack>
#include <queue>
#include <set>
#include <cmath>
#include <map>
#include <fstream>

#define rep(i,a,n) for(int i=a;i<n;i++)
using namespace std;
typedef long long ll;
typedef pair<int, int> P;


template <typename T>
std::ostream &operator<<(std::ostream &out, const std::vector<T> &v){
    if(!v.empty()) {
        out << '[';
        std::copy(v.begin(), v.end(), std::ostream_iterator<T>(out, ", "));
        out << "\b\b]";
    }
    return out;
}

template <typename T1, typename T2>
std::ostream &operator<<(std::ostream &out, const std::pair<T1, T2> &p) {
    out << "[" << p.first << ", " << p.second << "]";
    return out;
}
//---------


int main(){
    cin.tie(0);
    ios::sync_with_stdio(false);
    //CLion Standard Input
    //--------------------------------------------------------------------------
    ifstream in("/Users/ryo/Dropbox/competition/CompetitiveProgramming/in.txt");
    cin.rdbuf(in.rdbuf());
    //-------------------------------------------------------------------------

    int x;
    cin >> x;
    if(x < 1200) cout << "ABC" << endl;
    else cout << "ARC" << endl;
    return 0;
}

Compiler output:
a.cc: In function 'std::ostream& operator<<(std::ostream&, const std::vector<_Tp>&)':
a.cc:25:44: error: 'ostream_iterator' is not a member of 'std'
   25 |         std::copy(v.begin(), v.end(), std::ostream_iterator<T>(out, ", "));
      |                                            ^~~~~~~~~~~~~~~~
a.cc:14:1: note: 'std::ostream_iterator' is defined in header '<iterator>'; this is probably fixable by adding '#include <iterator>'
   13 | #include <fstream>
  +++ |+#include <iterator>
   14 | 
a.cc:25:62: error: expected primary-expression before '>' token
   25 |         std::copy(v.begin(), v.end(), std::ostream_iterator<T>(out, ", "));
      |                                                              ^
Language: Java

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException.;

public class Main {
           public static void main (String args[]){

           BufferedReader reader = new BufferedReader (new InputStreamReader (System.in));
           String line;

           try {
                   line = reader.readLine();
                   int number = Integer.parseInt(line);
                   if (number<1200){
                         System.out.print("ABC");
                  } else {
                        System.out.print("ARC");
                 }
                 }catch (IOException e){
                    System.out.print(e);
                 }catch (NumberFormatException e){
                     System.out.print("数字のみ");
                  }
}
}

Compiler output:
Main.java:3: error: <identifier> expected
import java.io.IOException.;
                           ^
1 error
Language: Java

import java.io.BufferedReader;
import java.io.InputStreamReader;

public class Main {
           public static void main (String args[]){

           BufferedReader reader = new BufferedReader (new InputStreamReader (System.in));
           String line;

           try {
                   line = reader.readLine();
                   int number = Integer.parseInt(line);
                   if (number<1200){
                         System.out.print("ABC");
                  } else {
                        System.out.print("ARC");
                 }
                 }catch (IOException e){
                    System.out.print(e);
                 }catch (NumberFormatException e){
                     System.out.print("数字のみ");
                  }
}
}

Compiler output:
Main.java:18: error: cannot find symbol
                 }catch (IOException e){
                         ^
  symbol:   class IOException
  location: class Main
1 error
Language: Java

import java.util.*;

public class Main {
           public static void main (String args[]){

           BufferedReader reader = new BufferedReader (new InputStreamReader (System.in));
           String line;

           try {
                   line = reader.readLine();
                   int number = Integer.parseInt(line);
                   if (number<1200){
                         System.out.println("ABC");
                  } else {
                        System.out.println("ARC");
                 }
                 }catch (IOException e){
                    System.out.println(e);
                 }
}
}


Compiler output:
Main.java:6: error: cannot find symbol
           BufferedReader reader = new BufferedReader (new InputStreamReader (System.in));
           ^
  symbol:   class BufferedReader
  location: class Main
Main.java:6: error: cannot find symbol
           BufferedReader reader = new BufferedReader (new InputStreamReader (System.in));
                                       ^
  symbol:   class BufferedReader
  location: class Main
Main.java:6: error: cannot find symbol
           BufferedReader reader = new BufferedReader (new InputStreamReader (System.in));
                                                           ^
  symbol:   class InputStreamReader
  location: class Main
Main.java:17: error: cannot find symbol
                 }catch (IOException e){
                         ^
  symbol:   class IOException
  location: class Main
4 errors
Language: Java

import java.util.*;

public class Main {
           public static void main (args[]){

           BufferedReader reader = new BufferedReader (new InputStreamReader (System.in));
           String line;

           try {
                   line = reader.readLine();
                   int number = Integer.parseInt(line);
                   if (number<1200){
                         System.out.println("ABC");
                  } else {
                        System.out.println("ARC");
                 }
                 }catch (IOException e){
                    System.out.println(e);
                 }
}
}


Compiler output:
Main.java:4: error: <identifier> expected
           public static void main (args[]){
                                          ^
1 error
Language: C++

import java.util.*;

public class Main {
    
           BufferedReader reader = new BufferedReader (new InputStreamReader (System.in));
           String line;

           try {
                   line = reader.readLine();
                   int number = Integer.parseInt(line);
                   if (number<1200){
                         System.out.println("ABC");
                  } else {
                        System.out.println("ARC");
                 }
                 }catch (IOException e){
                    System.out.println(e);
                 }

}



Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.*;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: expected unqualified-id before 'public'
    3 | public class Main {
      | ^~~~~~
Language: C++

#import<iostream>
main(int t){std::cin>>t;std::cout<<(hoge>=1200?"ARC":"ABC")<<"\n";}

Compiler output:
a.cc:1:2: warning: #import is a deprecated GCC extension [-Wdeprecated]
    1 | #import<iostream>
      |  ^~~~~~
a.cc:2:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    2 | main(int t){std::cin>>t;std::cout<<(hoge>=1200?"ARC":"ABC")<<"\n";}
      | ^~~~
a.cc:2:1: warning: 'int main(int)' takes only zero or two arguments [-Wmain]
a.cc: In function 'int main(int)':
a.cc:2:37: error: 'hoge' was not declared in this scope
    2 | main(int t){std::cin>>t;std::cout<<(hoge>=1200?"ARC":"ABC")<<"\n";}
      |                                     ^~~~
Language: C

#include <stdio.h>

int main()
{
	int x;
	if(x < 1200){printf(ABC\n);}
	else{printf(ARC\n);}
	return 0;
]



Compiler output:
main.c: In function 'main':
main.c:6:32: error: stray '\' in program
    6 |         if(x < 1200){printf(ABC\n);}
      |                                ^
main.c:6:29: error: 'ABC' undeclared (first use in this function)
    6 |         if(x < 1200){printf(ABC\n);}
      |                             ^~~
main.c:6:29: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:32: error: expected ')' before 'n'
    6 |         if(x < 1200){printf(ABC\n);}
      |                            ~   ^~
      |                                )
main.c:7:24: error: stray '\' in program
    7 |         else{printf(ARC\n);}
      |                        ^
main.c:7:21: error: 'ARC' undeclared (first use in this function)
    7 |         else{printf(ARC\n);}
      |                     ^~~
main.c:7:24: error: expected ')' before 'n'
    7 |         else{printf(ARC\n);}
      |                    ~   ^~
      |                        )
main.c:9:1: error: expected statement before ']' token
    9 | ]
      | ^
main.c:9:1: error: expected declaration or statement at end of input
Language: Java

import java.io.*;
public class Main {
    private static MyScanner scanner;

    public static void main (String[] args){
        Main instance = new Main();
        scanner = instance.new MyScanner();
        instance.solve();
    }

    private void solve() {
        try {
            long min_point = scanner.nextLong();
            long mod_min_point = min_point % 11;
            if ( 6 < mod_min_point < 6) {
                System.out.println(2*(min_point/11) + 2);
            } else if (0 < mod_min_point){
                System.out.println(2*(min_point/11) + 1);
            } else if (mod_min_point == 0){
                System.out.println(2*(min_point/11));
            }

        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    private class MyScanner {
        String[] s;
        int i;
        BufferedReader br;
        String reg = " ";

        MyScanner () {
            s = new String[0];
            i = 0;
            br = new BufferedReader(new InputStreamReader(System.in));
        }

        public String next() throws IOException {
            if (i < s.length) return s[i++];
            String line = br.readLine();
            while (line.equals("")) {
                line = br.readLine();
            }
            s = line.split(reg, 0);
            i = 0;
            return s[i++];
        }

        public int nextInt() throws NumberFormatException, IOException {
            return Integer.parseInt(next());
        }

        public double nextDouble() throws NumberFormatException, IOException {
            return Double.parseDouble(next());
        }

        public long nextLong() throws NumberFormatException, IOException {
            return Long.parseLong(next());
        }
    }
}

Compiler output:
Main.java:15: error: bad operand types for binary operator '<'
            if ( 6 < mod_min_point < 6) {
                                   ^
  first type:  boolean
  second type: int
1 error
Language: Java

public class Main {
    public static void main(String ...args) {
        Scanner sc = new Scanner(System.in);
        System.out.println(sc.nextInt() > 1200 ? "ARC" : "ABC");
    }
}

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

public class Main {
 public static void main(String args...) {
   Scanner sc = new Scanner(System.in);
   System.out.println(sc.nextInt() > 1200 ? "ARC" : "ABC");
 }
}

Compiler output:
Main.java:2: error: ',', ')', or '[' expected
 public static void main(String args...) {
                                    ^
1 error
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:10:1: error: expected declaration or statement at end of input
   10 | }
      | ^
Language: C

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

Compiler output:
main.c:3:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    3 | {
      | ^
Language: C++

/**
 * code generated by JHelper
 * More info: https://github.com/AlexeyDmitriev/JHelper
 * @author Yulian
 */

#include <iostream>
#include <iostream>
#include <fstream>
#include <vector>
#include <set>
#include <cmath>
#include <queue>
#include <deque>
#include <string>
#include <algorithm>
#include <map>
#include "../../library/lib.hpp"

#include <iostream>













int getTheAnswer() {
    return 42;
}

template< class InputIt>
void incAll(const InputIt &first, const InputIt &last){
  for(auto it = first; it != last; ++it){
    ++*it;
  }
}

template <class InputIt>
void printAll(const InputIt &first, const InputIt &last, std::ostream& out){
  for(InputIt it = first; it != last; ++it){
    out << *it << " ";
  }
}

// only for positive integers
int gcd(int a, int b){
  int tmp;
  if(a < b){
    tmp = a;
    a = b;
    b = tmp;
  }
  while(b != 0){
    tmp = a;
    a = b;
    b = tmp % b;
  }
  return a;
}

int lcm(int a, int b){
  return abs(a*b) / gcd(a, b);
}


using namespace std;
class TaskA {
public:
	void solve(std::istream& in, std::ostream& out) {
    ios::sync_with_stdio(false);
		vector<int> x(1);
    in >> x[0];
    if(x[0] < 1200){
      out << "ABC" << endl;
    }else{
      out << "ARC" << endl;
    }
	}
};


int main() {
	TaskA solver;
	std::istream& in(std::cin);
	std::ostream& out(std::cout);
	solver.solve(in, out);
	return 0;
}


Compiler output:
a.cc:18:10: fatal error: ../../library/lib.hpp: No such file or directory
   18 | #include "../../library/lib.hpp"
      |          ^~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Language: C++

/**
 * code generated by JHelper
 * More info: https://github.com/AlexeyDmitriev/JHelper
 * @author Yulian
 */



#include <iostream>


int getTheAnswer() {
  return 42;
}

template<class InputIt>
void incAll(const InputIt &first, const InputIt &last) {
  for (auto it = first; it != last; ++it) {
    ++*it;
  }
}

template<class InputIt>
void printAll(const InputIt &first, const InputIt &last, std::ostream &out) {
  for (InputIt it = first; it != last; ++it) {
    out << *it << " ";
  }
}

// only for positive integers
int gcd(int a, int b) {
  int tmp;
  if (a < b) {
    tmp = a;
    a = b;
    b = tmp;
  }
  while (b != 0) {
    tmp = a;
    a = b;
    b = tmp % b;
  }
  return a;
}

int lcm(int a, int b) {
  return abs(a * b) / gcd(a, b);
}


using namespace std;

class TaskA {
public:
  void solve(std::istream &in, std::ostream &out) {
    ios::sync_with_stdio(false);
    vector<int> x(1);
    in >> x[0];
    if (x[0] < 1200) {
      out << "ABC" << endl;
    } else {
      out << "ARC" << endl;
    }
  }
};


int main() {
  TaskA solver;
  std::istream &in(std::cin);
  std::ostream &out(std::cout);
  solver.solve(in, out);
  return 0;
}


Compiler output:
a.cc: In member function 'void TaskA::solve(std::istream&, std::ostream&)':
a.cc:57:5: error: 'vector' was not declared in this scope
   57 |     vector<int> x(1);
      |     ^~~~~~
a.cc:10:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    9 | #include <iostream>
  +++ |+#include <vector>
   10 | 
a.cc:57:12: error: expected primary-expression before 'int'
   57 |     vector<int> x(1);
      |            ^~~
a.cc:58:11: error: 'x' was not declared in this scope
   58 |     in >> x[0];
      |           ^
Language: C++

#include <iostream>

using namespace std;

int main()
{
  int rate;
  cin >> rate;
  if(rate < 1200) {
    cout "ABC"
  } else {
    cout "ARC"
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: expected ';' before string constant
   10 |     cout "ABC"
      |         ^~~~~~
      |         ;
a.cc:12:9: error: expected ';' before string constant
   12 |     cout "ARC"
      |         ^~~~~~
      |         ;
Language: C++

#include <stdio.h>

void main (){
   int x;
   scanf("%d",&x);
   if(x>1200&&x<3000)
    printf("ARC");
   else if(x>0)
    printf("ABC");
    return ;
     
}

Compiler output:
a.cc:3:1: error: '::main' must return 'int'
    3 | void main (){
      | ^~~~
a.cc: In function 'int main()':
a.cc:10:5: error: return-statement with no value, in function returning 'int' [-fpermissive]
   10 |     return ;
      |     ^~~~~~
Language: C

#include<stdio.h>
int main()
{
int x;
scnf("%d",&x);
if(x<1200) {
    printf("ABC");
}
else//x>1200)
 {
     printf("ARC");
 }
return 0;
}


Compiler output:
main.c: In function 'main':
main.c:5:1: error: implicit declaration of function 'scnf'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    5 | scnf("%d",&x);
      | ^~~~
      | scanf
Language: C

#include<stdio.h>
int main()
{
int x;
scnf("%d",&x);
if(x<1200)
    printf("ABC");

else//x>1200)
 {
     printf("ARC");
 }

}


Compiler output:
main.c: In function 'main':
main.c:5:1: error: implicit declaration of function 'scnf'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    5 | scnf("%d",&x);
      | ^~~~
      | scanf
Language: C++



    #include<stdio.h>

    int main(){

    int a;
    scanf("%d",&a);
    if(a<1200)

     printf("ABC");
    else if(a>1200)
    printf("ARC");
    return 0;
    }





    #include<stdio.h>

    int main(){

    int a;
    scanf("%d",&a);
    if(a<1200)

     printf("ABC");
    else if(a>1200)
    printf("ARC");
    return 0;
    }





Compiler output:
a.cc:23:9: error: redefinition of 'int main()'
   23 |     int main(){
      |         ^~~~
a.cc:5:9: note: 'int main()' previously defined here
    5 |     int main(){
      |         ^~~~
Language: Java

import java.math.*;
import java.io.*;
import java.util.*;
import java.lang.*;


public class number {

	public static void main(String[] args) {
		Scanner s=new Scanner(System.in);
		int n=s.nextInt();
		if(n<1200)	System.out.println("ABC");
		else System.out.println("ARC");

	}

}

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

#include<stdio.h>

int main(void)
{
  int x=0;
  
  scanf("%d",&x);

  if(1<=x && x<=3000)
{}
 else{}
if(1<=x && x<=1200)
{
printf("ABC\n");
}
if(1201<=x && x<=3000)
{
printf("ARC\n");

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:21:1: error: expected declaration or statement at end of input
   21 | }
      | ^
Language: C

#include<stdio.h>

int main(void)
{
  int x;
  
  scanf("%d",&x);

  if(1<=x && x<=3000)
{}
 else{}
if(1<=x && x<=1200)
{
printf("ABC\n");
}
if(1201<=x && x<=3000)
{
printf("ARC\n");

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:21:1: error: expected declaration or statement at end of input
   21 | }
      | ^
Language: C

#include<stdio.h>

int main(void)
{
  int x;
  
  scanf("%d",&x);

  if(1<=x && x<=3000)
{}
 else{}
if(1<=x && x<=1200)
{
printf("ABC\n",x);
}
if(1201<=x && x<=3000)
{
printf("ARC\n",x);

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:21:1: error: expected declaration or statement at end of input
   21 | }
      | ^
Language: C++

#include <bits/stdc++.h>
int main(){
    int x; cin >> x;
    std::cout << ((x < 1200) ? "ABC" : "ARC") << std::endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:3:12: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    3 |     int x; cin >> x;
      |            ^~~
      |            std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
Language: C++

#include <stdio.h>
#include <string.h>
char str[3000000];
int main(){
    scanf("%s",str);
    int l,r;
    int i;
    int rr;
    for(i=0;str[i] != \0; i++) {
        rr = i;
        if( str[i] == 'Z' ) r = i ;
    }
    for(i=rr; i>=0; i--){
        if(str[i] == 'A') l = i;
    }
    printf("%d\n",r - l + 1);
    return 0;


}

Compiler output:
a.cc:9:23: error: stray '\' in program
    9 |     for(i=0;str[i] != \0; i++) {
      |                       ^
Language: C++

x = int(input())

if(x < 1200):
	print 'ABC'
else:
	print 'ARC'

Compiler output:
a.cc:4:15: warning: multi-character character constant [-Wmultichar]
    4 |         print 'ABC'
      |               ^~~~~
a.cc:6:15: warning: multi-character character constant [-Wmultichar]
    6 |         print 'ARC'
      |               ^~~~~
a.cc:1:1: error: 'x' does not name a type
    1 | x = int(input())
      | ^
Language: C

include <stdio.h>
int main(){
    int x;
    scanf("%d",&x);
    printf( x < 1200 ? "ABC" : "ARC");
    return 0;
}

Compiler output:
main.c:1:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include <stdio.h>
      |         ^
Language: C

#include <stdio.h>
int main(){
    int x;
    scanf'("%d",&x);
    printf( x <= 1200 ? "ABC" : "ARC");
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:10: warning: missing terminating ' character
    4 |     scanf'("%d",&x);
      |          ^
main.c:4:10: error: missing terminating ' character
    4 |     scanf'("%d",&x);
      |          ^~~~~~~~~~~
main.c:4:10: error: expected ';' before 'printf'
    4 |     scanf'("%d",&x);
      |          ^
      |          ;
    5 |     printf( x <= 1200 ? "ABC" : "ARC");
      |     ~~~~~~
Language: C++

import java.util.Scanner;

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


Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.Scanner;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: expected unqualified-id before 'public'
    3 | public class Main {
      | ^~~~~~
Language: C++

package sg20170129;

import java.util.Scanner;

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


Compiler output:
a.cc:1:1: error: 'package' does not name a type
    1 | package sg20170129;
      | ^~~~~~~
a.cc:3:1: error: 'import' does not name a type
    3 | import java.util.Scanner;
      | ^~~~~~
a.cc:3:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:5:1: error: expected unqualified-id before 'public'
    5 | public class Main {
      | ^~~~~~
Language: C

#include<stdio.h>

int main(void){
	int x;
	scanf("%d,"&x);
	if (x < 1200)
		printf("ABC\n");
	else
		printf("ARC\n");
return 0;
}



Compiler output:
main.c: In function 'main':
main.c:5:20: error: invalid operands to binary & (have 'char *' and 'int')
    5 |         scanf("%d,"&x);
      |               ~~~~~^
      |               |
      |               char *
Language: C++

#include<stdio.h>

int main(void){
int x;
scanf("%d",x);
if (x < 1200)
	print("ABC\n");
else
	printf("ARC\n");
return 0;
}


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

#include<stdio.h>

int main(void){
int x;
scanf("%d",x);
if (x < 1200)
	print("ABC\n");
else
	printf("ARC\n");
return 0;
}


Compiler output:
main.c: In function 'main':
main.c:7:9: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
    7 |         print("ABC\n");
      |         ^~~~~
      |         printf
Language: Java

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


Compiler output:
Main.java:10: error: illegal start of expression
	}
	^
Main.java:15: error: class, interface, enum, or record expected
}
^
2 errors
Language: C++

#include <iostream>
using namespace std;

int main() {
  long long int x;
  cin >> x;
  if (x <= 6) {
    cout << 1 << endl;
  } else if (x > 6 && x <= 12) {
    cout << 2 << endl;
    // aaa }
  } else {
    long long int ans = ((x - 1) / 11) * 2;
    // printf("%lld\n", ans);
    int mod = (x - 1) % 11;
    // printf("%d\n", mod);
    // printf("%lld // 11 = %d", x - 1, mod);
    if (mod != 2 && mod != 5 && mod <= 6) {
      cout << ans + 1 << endl;
    } else if (mod == 2 || mod == 5) {
      cout << ans + 2 << endl;
    } else if (mod > 6 &&) {
      cout << ans + 2 << endl;
    }
  }
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:22:26: error: expected primary-expression before ')' token
   22 |     } else if (mod > 6 &&) {
      |                          ^
Language: Java

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

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

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int a = in.nextInt();
		if (1 <= a && a <= 3000) {
			if (a < 1200) {
				System.out.println("ABC");
			} else {
				System.out.println("ARC");
			}
		}
	}


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

#include<stdio.h>
#include<string.h>
int main()
{
  char s[200000];
  scanf("%s",s);
  int i;
  while(s[i]!=A)
  {
    i++;
  }
  int t=i;
  while(s[t]!=Z)
  {
    t++;
  }
  printf("%d",t-i+1);
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:8:15: error: 'A' undeclared (first use in this function)
    8 |   while(s[i]!=A)
      |               ^
main.c:8:15: note: each undeclared identifier is reported only once for each function it appears in
main.c:13:15: error: 'Z' undeclared (first use in this function)
   13 |   while(s[t]!=Z)
      |               ^
Language: C++

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

int main(void) {
	int x;
	char s[101];
	
	scanf("%d", &x);
	
	if(x >= 0 && x < 1200){
		strncat(s, "ABC");
	}else if(x >= 1200){
		strncat(s, "ARC");
	}
	
	printf("%s\n", s);
	
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:24: error: too few arguments to function 'char* strncat(char*, const char*, size_t)'
   11 |                 strncat(s, "ABC");
      |                 ~~~~~~~^~~~~~~~~~
In file included from a.cc:2:
/usr/include/string.h:152:14: note: declared here
  152 | extern char *strncat (char *__restrict __dest, const char *__restrict __src,
      |              ^~~~~~~
a.cc:13:24: error: too few arguments to function 'char* strncat(char*, const char*, size_t)'
   13 |                 strncat(s, "ARC");
      |                 ~~~~~~~^~~~~~~~~~
/usr/include/string.h:152:14: note: declared here
  152 | extern char *strncat (char *__restrict __dest, const char *__restrict __src,
      |              ^~~~~~~
Language: Java

package com.company.abc053;

import java.io.*;
import java.util.Scanner;

/**
 * Created by ueda on 2017/01/28.
 */
public class A {
    public static void main(String[] args) {
        out.println(in.nextInt() < 1200 ? "ABC" : "ARC");
    }
    public static final Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
    public static final PrintStream out = System.out;
}


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

#include<stdio.h>
2.int main()
3.{
4.  int x;
5.  scanf("%d",&x);
6.  if(x<1200)
7.  printf("ABC");
8.  else
9.  printf("ARC");
10.  return 0;
11.}
 

Compiler output:
main.c:2:1: error: invalid suffix "int" on floating constant
    2 | 2.int main()
      | ^~~~~
main.c:2:1: error: expected identifier or '(' before numeric constant
Language: C++

#include<stdio.h>
int main()
{
  int x;
  scanf("%d",&x);
  if(x1200)
  printf("ABC");
  else
  printf("ARC");
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:6: error: 'x1200' was not declared in this scope
    6 |   if(x1200)
      |      ^~~~~
Language: C++

#include <iostream>

using namespace std;

int main()
{
  int x;
  cin >> x;
  if(x>3000){
    return 0;
  }

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

#include <iostream>
#include <vector>

using namespace std;

#define debug(x) cout << #x << "==" << x << endl;

const int inf = 100000000;

typedef long long ll;

int main() {
  ios::sync_with_stdio(false);

  int X;
  cin >> X;#include <iostream>
#include <vector>

using namespace std;

#define debug(x) cout << #x << "==" << x << endl;

const int inf = 100000000;

typedef long long ll;

int main() {
  ios::sync_with_stdio(false);

  int X;
  cin >> X;

  if( X < 1200) {
    cout << "ABC\n";
  } else if ( X >= 1200 ) {
    cout << "ARC\n";
  }

  return 0;
}


  if( X < 1200) {
    cout << "ABC\n";
  } else if ( X >= 1200 ) {
    cout << "ARC\n";
  }

  return 0;
}


Compiler output:
a.cc:16:12: error: stray '#' in program
   16 |   cin >> X;#include <iostream>
      |            ^
a.cc: In function 'int main()':
a.cc:16:13: error: 'include' was not declared in this scope
   16 |   cin >> X;#include <iostream>
      |             ^~~~~~~
a.cc:16:30: error: expected primary-expression before '>' token
   16 |   cin >> X;#include <iostream>
      |                              ^
a.cc:19:1: error: expected primary-expression before 'using'
   19 | using namespace std;
      | ^~~~~
a.cc:27:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
   27 | int main() {
      |         ^~
a.cc:27:9: note: remove parentheses to default-initialize a variable
   27 | int main() {
      |         ^~
      |         --
a.cc:27:9: note: or replace parentheses with braces to value-initialize a variable
a.cc:27:12: error: a function-definition is not allowed here before '{' token
   27 | int main() {
      |            ^
Language: C++

#include <stdio.h>
int main(){
ilong long x;
scanf("%lld", &x);
printf(x>1200?"ARC":"ABC");
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:3:1: error: 'ilong' was not declared in this scope; did you mean 'long'?
    3 | ilong long x;
      | ^~~~~
      | long
a.cc:4:16: error: 'x' was not declared in this scope
    4 | scanf("%lld", &x);
      |                ^
Language: C++

#include <stdio.h>
int main(){
int x;
scanf("%d", &x);
printf("x>1200?"ARC":"ABC");
return 0;
}

Compiler output:
a.cc:5:26: warning: missing terminating " character
    5 | printf("x>1200?"ARC":"ABC");
      |                          ^
a.cc:5:26: error: missing terminating " character
    5 | printf("x>1200?"ARC":"ABC");
      |                          ^~~
a.cc: In function 'int main()':
a.cc:5:20: error: inconsistent user-defined literal suffixes 'ARC' and 'ABC' in string literal
    5 | printf("x>1200?"ARC":"ABC");
      |                    ^~~~~~
a.cc:5:20: error: unable to find string literal operator 'operator""ARC' with 'const char [9]', 'long unsigned int' arguments
Language: C++

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

int main() {

	int t;
	scanf("%d", &t);

	string ans = t < 1200 ? 'ABC' : 'ARC';
	cout << ans << endl;
	return 0;
}

Compiler output:
a.cc:9:33: warning: multi-character character constant [-Wmultichar]
    9 |         string ans = t < 1200 ? 'ABC' : 'ARC';
      |                                 ^~~~~
a.cc:9:41: warning: multi-character character constant [-Wmultichar]
    9 |         string ans = t < 1200 ? 'ABC' : 'ARC';
      |                                         ^~~~~
a.cc: In function 'int main()':
a.cc:9:31: error: conversion from 'int' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
    9 |         string ans = t < 1200 ? 'ABC' : 'ARC';
      |                      ~~~~~~~~~^~~~~~~~~~~~~~~
Language: Java

package atcoder;

import java.util.Scanner;

/**
 * Created by Abhilash on 28-01-2017.
 */
public class ABC_ARC {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        if(num<1200)
            System.out.println("ABC");
        else
            System.out.println("ARC");
    }
}


Compiler output:
Main.java:8: error: class ABC_ARC is public, should be declared in a file named ABC_ARC.java
public class ABC_ARC {
       ^
1 error