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

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


Compiler output:
a.cc:1:10: fatal error: bits\stdc++.h: No such file or directory
    1 | #include <bits\stdc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
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:9:27: error: expected '}' at end of input
    9 |         cout<<"ABC"<<endl;
      |                           ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

#include <iostream>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |         if(s[1]=="B"){
      |            ~~~~^~~~~
a.cc:9:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |     }else if(s[1]=="R"){
      |              ~~~~^~~~~
Language: C++

#include <iostream>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:17: error: invalid types 'char[int]' for array subscript
    6 |         cin >> s[4];
      |                 ^
a.cc:7:13: error: invalid types 'char[int]' for array subscript
    7 |         if(s[1]=="B"){
      |             ^
a.cc:9:15: error: invalid types 'char[int]' for array subscript
    9 |     }else if(s[1]=="R"){
      |               ^
Language: C++

#include <iostream>
using namespace std;

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


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

#include <bits/stdc++>

using namespace std;

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


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

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:5:9: error: expected identifier or '(' before '[' token
    5 |     char[255] s;
      |         ^
main.c:6:17: error: 's' undeclared (first use in this function)
    6 |     scanf("%s", s);
      |                 ^
main.c:6:17: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>

int main(void)
{
    char[255] s;
    scanf("%s", &s);
    if (s[1] == 'B') {
        printf ("ARC\n");
    } else {
        printf ("ABC\n");
    }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:9: error: expected identifier or '(' before '[' token
    5 |     char[255] s;
      |         ^
main.c:6:18: error: 's' undeclared (first use in this function)
    6 |     scanf("%s", &s);
      |                  ^
main.c:6:18: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

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

Compiler output:
a.cc:3:3: error: expected initializer before 'int'
    3 |   int S;
      |   ^~~
a.cc:4:8: error: expected constructor, destructor, or type conversion before '(' token
    4 |   scanf("%s"&S);
      |        ^
a.cc:5:1: error: expected unqualified-id before 'if'
    5 | if(S=ABC){printf("%s","ABR");}
      | ^~
a.cc:6:1: error: expected unqualified-id before 'else'
    6 | else{printf("%s","ABC")};
      | ^~~~
a.cc:7:3: error: expected unqualified-id before 'return'
    7 |   return 0;
      |   ^~~~~~
Language: C

#include<stdio.h>
int main(void)
{
    int a;
    scanf("%d",&a);
    if (a == "ABC"){
        printf("ARC\n");
    }
    eles{
        printf("ABE\n");
    }
}

Compiler output:
main.c: In function 'main':
main.c:6:11: warning: comparison between pointer and integer
    6 |     if (a == "ABC"){
      |           ^~
main.c:9:5: error: 'eles' undeclared (first use in this function)
    9 |     eles{
      |     ^~~~
main.c:9:5: note: each undeclared identifier is reported only once for each function it appears in
main.c:9:9: error: expected ';' before '{' token
    9 |     eles{
      |         ^
      |         ;
Language: C

#include‹bits/stdc++.h›

using namespace std;

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

Compiler output:
main.c:1:9: error: #include expects "FILENAME" or <FILENAME>
    1 | #include‹bits/stdc++.h›
      |         ^
main.c:3:1: error: unknown type name 'using'
    3 | using namespace std;
      | ^~~~~
main.c:3:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'
    3 | using namespace std;
      |                 ^~~
main.c: In function 'main':
main.c:6:3: error: unknown type name 'string'
    6 |   string S;
      |   ^~~~~~
main.c:7:3: error: 'cin' undeclared (first use in this function)
    7 |   cin >> S;
      |   ^~~
main.c:7:3: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:9: warning: multi-character character constant [-Wmultichar]
    8 |   if(S=='ARC'){
      |         ^~~~~
main.c:9:5: error: 'cout' undeclared (first use in this function)
    9 |     cout << 'ABC';
      |     ^~~~
main.c:9:13: warning: multi-character character constant [-Wmultichar]
    9 |     cout << 'ABC';
      |             ^~~~~
main.c:11:13: warning: multi-character character constant [-Wmultichar]
   11 |     cout << 'ARC';
      |             ^~~~~
Language: Java

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

Compiler output:
Main.java:9: error: incompatible types: String cannot be converted to boolean
		if(S="ABC"){
		    ^
1 error
Language: Java

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

Compiler output:
Main.java:9: error: bad operand types for binary operator '=='
		if(S=="ABC"){
		    ^
  first type:  int
  second type: String
1 error
Language: Java

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

Compiler output:
Main.java:9: error: incompatible types: String cannot be converted to int
		if(S="ABC"){
		     ^
Main.java:9: error: incompatible types: int cannot be converted to boolean
		if(S="ABC"){
		    ^
2 errors
Language: Java

import java.util.*;
public class main {// Main
	static BufferedReader in;
	static FastScanner sc;
	static PrintWriter out;

	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);

		String a = sc.next();
		if(a.equals("ABC")) {
			System.out.println("ARC");
		}else {
			System.out.println("ABC");
		}
			}

	class FastScanner {
		BufferedReader in;
		StringTokenizer st;

		public FastScanner(BufferedReader in) {
			this.in = in;
		}

		public String nextToken() throws Exception {
			while (st == null || !st.hasMoreTokens()) {
				st = new StringTokenizer(in.readLine());
			}
			return st.nextToken();
		}

		public int nextInt() throws Exception {
			return Integer.parseInt(nextToken());
		}

		public long nextLong() throws Exception {
			return Long.parseLong(nextToken());
		}

		public double nextDouble() throws Exception {
			return Double.parseDouble(nextToken());
		}
	}
}


Compiler output:
Main.java:2: error: class main is public, should be declared in a file named main.java
public class main {// Main
       ^
Main.java:3: error: cannot find symbol
	static BufferedReader in;
	       ^
  symbol:   class BufferedReader
  location: class main
Main.java:5: error: cannot find symbol
	static PrintWriter out;
	       ^
  symbol:   class PrintWriter
  location: class main
Main.java:19: error: cannot find symbol
		BufferedReader in;
		^
  symbol:   class BufferedReader
  location: class main.FastScanner
Main.java:22: error: cannot find symbol
		public FastScanner(BufferedReader in) {
		                   ^
  symbol:   class BufferedReader
  location: class main.FastScanner
5 errors
Language: Java

import java.util.*;
public class Main {// Main
	static BufferedReader in;
	static FastScanner sc;
	static PrintWriter out;

	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);

		String a = sc.next();
		if(a.equals("ABC")) {
			System.out.println("ARC");
		}else {
			System.out.println("ABC");
		}
			}

	class FastScanner {
		BufferedReader in;
		StringTokenizer st;

		public FastScanner(BufferedReader in) {
			this.in = in;
		}

		public String nextToken() throws Exception {
			while (st == null || !st.hasMoreTokens()) {
				st = new StringTokenizer(in.readLine());
			}
			return st.nextToken();
		}

		public int nextInt() throws Exception {
			return Integer.parseInt(nextToken());
		}

		public long nextLong() throws Exception {
			return Long.parseLong(nextToken());
		}

		public double nextDouble() throws Exception {
			return Double.parseDouble(nextToken());
		}
	}
}


Compiler output:
Main.java:3: error: cannot find symbol
	static BufferedReader in;
	       ^
  symbol:   class BufferedReader
  location: class Main
Main.java:5: error: cannot find symbol
	static PrintWriter out;
	       ^
  symbol:   class PrintWriter
  location: class Main
Main.java:19: error: cannot find symbol
		BufferedReader in;
		^
  symbol:   class BufferedReader
  location: class Main.FastScanner
Main.java:22: error: cannot find symbol
		public FastScanner(BufferedReader in) {
		                   ^
  symbol:   class BufferedReader
  location: class Main.FastScanner
4 errors
Language: Java


import java.io.BufferedReader;
import java.io.PrintWriter;
import java.util.Scanner;
import java.util.StringTokenizer;


public class a {
	static BufferedReader in;
	static FastScanner sc;
	static PrintWriter out;

	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);

		String a = sc.next();
		if(a.equals("ABC")) {
			System.out.println("ARC");
		}else {
			System.out.println("ABC");
		}
			}

	class FastScanner {
		BufferedReader in;
		StringTokenizer st;

		public FastScanner(BufferedReader in) {
			this.in = in;
		}

		public String nextToken() throws Exception {
			while (st == null || !st.hasMoreTokens()) {
				st = new StringTokenizer(in.readLine());
			}
			return st.nextToken();
		}

		public int nextInt() throws Exception {
			return Integer.parseInt(nextToken());
		}

		public long nextLong() throws Exception {
			return Long.parseLong(nextToken());
		}

		public double nextDouble() throws Exception {
			return Double.parseDouble(nextToken());
		}
	}
}


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

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

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

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


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

#include<iostream>

using namespace std;

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

Compiler output:
a.cc:8:13: error: stray '\' in program
    8 |   cin >> S; \\ ABC or ARC
      |             ^
a.cc:8:14: error: stray '\' in program
    8 |   cin >> S; \\ ABC or ARC
      |              ^
a.cc:10:14: warning: multi-character character constant [-Wmultichar]
   10 |     if (S == 'ABC') cout << "ARC" << endl;
      |              ^~~~~
a.cc: In function 'int main()':
a.cc:8:16: error: 'ABC' was not declared in this scope
    8 |   cin >> S; \\ ABC or ARC
      |                ^~~
a.cc:8:23: error: 'ARC' was not declared in this scope
    8 |   cin >> S; \\ ABC or ARC
      |                       ^~~
a.cc:11:9: error: 'else' without a previous 'if'
   11 |         else cout << "ABC" << endl;
      |         ^~~~
Language: C++

#include<bits/srdc++.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:1:9: fatal error: bits/srdc++.h: No such file or directory
    1 | #include<bits/srdc++.h>
      |         ^~~~~~~~~~~~~~~
compilation terminated.
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:33: error: continue statement not within a loop
    7 |     if(s=="ABC") {cout<<"ARC\n";continue;}
      |                                 ^~~~~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:33: error: continue statement not within a loop
    7 |     if(s=="ABC") {cout<<"ARC\n";continue;}
      |                                 ^~~~~~~~
Language: C++

#include <bits/srdc++.h>

using namespace std;

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

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

package hilbert.codef;

import static java.time.Clock.system;
import java.util.Scanner;

/**
 *
 * @author HP
 */
public class HilbertCodef {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        
        Scanner sc= new Scanner(System.in);
         
        String A= sc.nextLine();
        
        if(A.charAt(1)=='B')
        {
            System.out.println("ARC");
        }
        else
        {
            System.out.println("ABC");
        }
               
        
    }
    
}


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

import static java.time.Clock.system;
import java.util.Scanner;

/**
 *
 * @author HP
 */
public class HilbertCodef {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        
        Scanner sc= new Scanner(System.in);
         
        String A= sc.nextLine();
        
        if(A.charAt(1)=='B')
        {
            System.out.println("ARC");
        }
        else
        {
            System.out.println("ABC");
        }
               
        
    }
    
}


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

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

}

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

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:6:11: error: expected expression before '=' token
    6 |   if (S === "ABC") {
      |           ^
Language: C

#include<stdio.h>
int main(void){
  	int i=0;
 	char S[]; 
  	
  	scanf("%s",S);
  	if(S[1]=='B')	S[1]='R';
  	else if(S[1]=='R') S[1]='B';
  	while(i<3){
      printf("%s",S[i]);
      i++;
    }
}


Compiler output:
main.c: In function 'main':
main.c:4:14: error: array size missing in 'S'
    4 |         char S[];
      |              ^
Language: C

#include<stdio.h>
int main(void){
  	int i=0;
 	char S[]; 
  	
  	scanf("%s",S);
  	if(S[1]=="B")	S[1]="R";
  	else if(S[1]=="R") S[1]="B";
  	while(i<3){
      printf("%s",S[i]);
      i++;
    }
}


Compiler output:
main.c: In function 'main':
main.c:4:14: error: array size missing in 'S'
    4 |         char S[];
      |              ^
main.c:7:16: warning: comparison between pointer and integer
    7 |         if(S[1]=="B")   S[1]="R";
      |                ^~
main.c:7:29: error: assignment to 'char' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
    7 |         if(S[1]=="B")   S[1]="R";
      |                             ^
main.c:8:21: warning: comparison between pointer and integer
    8 |         else if(S[1]=="R") S[1]="B";
      |                     ^~
main.c:8:32: error: assignment to 'char' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
    8 |         else if(S[1]=="R") S[1]="B";
      |                                ^
Language: C

#include<stdio.h>
int main(void){
  	int i=0;
 	char S[]; 
  	
  	scanf("%s",&S);
  	if(S[1]=="B")	S[1]="R";
  	else if(S[1]=="R") S[1]="B";
  	while(i<3){
      printf("%s",S[i]);
      i++;
    }
}


Compiler output:
main.c: In function 'main':
main.c:4:14: error: array size missing in 'S'
    4 |         char S[];
      |              ^
main.c:7:16: warning: comparison between pointer and integer
    7 |         if(S[1]=="B")   S[1]="R";
      |                ^~
main.c:7:29: error: assignment to 'char' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
    7 |         if(S[1]=="B")   S[1]="R";
      |                             ^
main.c:8:21: warning: comparison between pointer and integer
    8 |         else if(S[1]=="R") S[1]="B";
      |                     ^~
main.c:8:32: error: assignment to 'char' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
    8 |         else if(S[1]=="R") S[1]="B";
      |                                ^
Language: C

#include<stdio.h>
int main(void){
  	int i=0;
 	char S[]; 
  	
  	scanf("%s",&s);
  	if(S[1]=="B")	S[1]="R";
  	else if(S[1]=="R") S[1]="B";
  	while(i<3){
      printf("%s",S[i]);
      i++;
    }
}

Compiler output:
main.c: In function 'main':
main.c:4:14: error: array size missing in 'S'
    4 |         char S[];
      |              ^
main.c:6:21: error: 's' undeclared (first use in this function)
    6 |         scanf("%s",&s);
      |                     ^
main.c:6:21: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:16: warning: comparison between pointer and integer
    7 |         if(S[1]=="B")   S[1]="R";
      |                ^~
main.c:7:29: error: assignment to 'char' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
    7 |         if(S[1]=="B")   S[1]="R";
      |                             ^
main.c:8:21: warning: comparison between pointer and integer
    8 |         else if(S[1]=="R") S[1]="B";
      |                     ^~
main.c:8:32: error: assignment to 'char' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
    8 |         else if(S[1]=="R") S[1]="B";
      |                                ^
Language: C++

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

string s;

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

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namesce'
    2 | using namesce std;
      |       ^~~~~~~
a.cc:4:1: error: 'string' does not name a type; did you mean 'stdin'?
    4 | string s;
      | ^~~~~~
      | stdin
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |   cin>>s;
      |   ^~~
      |   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
      |                  ^~~
a.cc:7:8: error: 's' was not declared in this scope
    7 |   cin>>s;
      |        ^
a.cc:8:16: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |   if(s=="ABC") cout<<"ARC\n";
      |                ^~~~
      |                std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:9:8: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |   else cout<<"ABC\n";
      |        ^~~~
      |        std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: Java

import java.util.Scanner;

public class Contest {

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

			Scanner sc = new Scanner(System.in);

			String str=sc.nextLine();

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

			}

			sc.close();

	}

}


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

#incldue<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:1:2: error: invalid preprocessing directive #incldue; did you mean #include?
    1 | #incldue<bits/stdc++.h>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:4:3: error: 'string' was not declared in this scope
    4 |   string a;
      |   ^~~~~~
a.cc:1:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
  +++ |+#include <string>
    1 | #incldue<bits/stdc++.h>
a.cc:5:3: error: 'cin' was not declared in this scope
    5 |   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 | #incldue<bits/stdc++.h>
a.cc:5:8: error: 'a' was not declared in this scope
    5 |   cin>>a;
      |        ^
a.cc:7:5: error: 'cout' was not declared in this scope
    7 |     cout<<"ARC"<<endl;
      |     ^~~~
a.cc:7:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:7:18: error: 'endl' was not declared in this scope
    7 |     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 | #incldue<bits/stdc++.h>
a.cc:10:5: error: 'cout' was not declared in this scope
   10 |     cout<<"ABC"<<endl;
      |     ^~~~
a.cc:10:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:10:18: error: 'endl' was not declared in this scope
   10 |     cout<<"ABC"<<endl;
      |                  ^~~~
a.cc:10:18: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

#include <iostream>
#include <string>
using namespace std;
string s, Ans;

cin >> s;

if(s == 'ABC') Ans = 'ARC'
else Ans = "ABC"  

cout << s << endl;

Compiler output:
a.cc:8:9: warning: multi-character character constant [-Wmultichar]
    8 | if(s == 'ABC') Ans = 'ARC'
      |         ^~~~~
a.cc:8:22: warning: multi-character character constant [-Wmultichar]
    8 | if(s == 'ABC') Ans = 'ARC'
      |                      ^~~~~
a.cc:6:1: error: 'cin' does not name a type
    6 | cin >> s;
      | ^~~
a.cc:8:1: error: expected unqualified-id before 'if'
    8 | if(s == 'ABC') Ans = 'ARC'
      | ^~
Language: C

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

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

    string out;
    if (i == "ABC")
        out = "ARC";
    else
        out = "ABC";

    cout << out << endl;
}


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

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

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

    string out;
    if (i == "ABC")
        out = "ARC";
    else
        out = "ABC";

    cout << out << 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++

/*A - A?C*/
#include <bits/stdc+.h>
using namespace std;
int main(){

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

	string cad;

	cin >> cad;

	if(cad == "ABC")
		cout << "ARC";
	else
		cout << "ABC";
	
	return 0;
}


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

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

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

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

Compiler output:
Main.java:8: error: cannot find symbol
    String s = key.nextLine();
               ^
  symbol:   variable key
  location: class Main
1 error
Language: Java

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

Compiler output:
Main.java:8: error: cannot find symbol
    String s = k.nextline();
                ^
  symbol:   method nextline()
  location: variable k of type Scanner
1 error
Language: Java

import java.util.Scanner;

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

Compiler output:
Main.java:8: error: cannot find symbol
    String s = key.nextline();
               ^
  symbol:   variable key
  location: class Main
1 error
Language: C++

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

Compiler output:
a.cc:5:14: warning: multi-character character constant [-Wmultichar]
    5 |   string a,b='ARC',c='ABC';
      |              ^~~~~
a.cc:5:22: warning: multi-character character constant [-Wmultichar]
    5 |   string a,b='ARC',c='ABC';
      |                      ^~~~~
a.cc: In function 'int main()':
a.cc:5:14: error: conversion from 'int' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
    5 |   string a,b='ARC',c='ABC';
      |              ^~~~~
a.cc:5:22: error: conversion from 'int' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
    5 |   string a,b='ARC',c='ABC';
      |                      ^~~~~
Language: C++

#include <bits/stdc++.h>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:5: error: 'string' was not declared in this scope
    4 |     string s;
      |     ^~~~~~
a.cc:4:5: note: suggested alternatives:
In file included from /usr/include/c++/14/string:41,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52,
                 from a.cc:1:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:5:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |     cin >> s;
      |     ^~~
      |     std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:5:12: error: 's' was not declared in this scope
    5 |     cin >> s;
      |            ^
a.cc:7:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |         cout << "ARC" << endl;
      |         ^~~~
      |         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:7:26: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |         cout << "ARC" << endl;
      |                          ^~~~
      |                          std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:9:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |         cout << "ABC" << endl;
      |         ^~~~
      |         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:9:26: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |         cout << "ABC" << endl;
      |                          ^~~~
      |                          std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

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


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

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

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #included; did you mean #include?
    1 | #included <bits/stdc++.h>
      |  ^~~~~~~~
      |  include
a.cc:2:7: error: expected nested-name-specifier before 'nameapace'
    2 | using nameapace std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:5:1: error: 'string' was not declared in this scope
    5 | string s;
      | ^~~~~~
a.cc:6:1: error: 'cin' was not declared in this scope
    6 | cin>>s;
      | ^~~
a.cc:6:6: error: 's' was not declared in this scope
    6 | cin>>s;
      |      ^
a.cc:7:13: error: 'cout' was not declared in this scope
    7 | if(s=="ABC")cout<<"ARC";
      |             ^~~~
a.cc:8:6: error: 'cout' was not declared in this scope
    8 | else cout<<"ABC";
      |      ^~~~
Language: C++

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

Compiler output:
a.cc:7:27: warning: missing terminating " character
    7 |   if(s=="ABC)   cout<<"ARC";
      |                           ^
a.cc:7:27: error: missing terminating " character
    7 |   if(s=="ABC)   cout<<"ARC";
      |                           ^~
a.cc: In function 'int main()':
a.cc:7:9: error: unable to find string literal operator 'operator""ARC' with 'const char [12]', 'long unsigned int' arguments
    7 |   if(s=="ABC)   cout<<"ARC";
      |         ^~~~~~~~~~~~~~~~~~
a.cc:9:6: error: expected primary-expression before '}' token
    9 |      }
      |      ^
a.cc:8:29: error: expected ')' before '}' token
    8 |      else       cout<<"ABC";
      |                             ^
      |                             )
    9 |      }
      |      ~                       
a.cc:7:5: note: to match this '('
    7 |   if(s=="ABC)   cout<<"ARC";
      |     ^
a.cc:9:6: error: expected primary-expression before '}' token
    9 |      }
      |      ^
Language: C++

#include <bits/stdc++.h>
#define ll long long int
#define fo(i,n) for(int i=0;i<n;i++)
using namespace std;
int main()
{
   ll T,n,m,l,b,a,k;
  string s; 
  cin>>s;
 if(strcmp(s,"ABC")==0)
 {cout<<"ARC"<<endl;}
  else
  {cout<<"ABC"<<endl;}
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:12: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'const char*'
   10 |  if(strcmp(s,"ABC")==0)
      |            ^
      |            |
      |            std::string {aka std::__cxx11::basic_string<char>}
In file included from /usr/include/c++/14/cstring:43,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:121,
                 from a.cc:1:
/usr/include/string.h:156:32: note:   initializing argument 1 of 'int strcmp(const char*, const char*)'
  156 | extern int strcmp (const char *__s1, const char *__s2)
      |                    ~~~~~~~~~~~~^~~~
Language: C

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

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

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

Compiler output:
main.c: In function 'main':
main.c:7:7: error: assignment to expression with array type
    7 |   if(S="ABC"){
      |       ^
main.c:10:13: error: assignment to expression with array type
   10 |   }else if(S="ARC"){
      |             ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:6:7: warning: comparison of distinct pointer types lacks a cast [-Wcompare-distinct-pointer-types]
    6 |   if(S=="ABC"){
      |       ^~
main.c:9:7: warning: comparison of distinct pointer types lacks a cast [-Wcompare-distinct-pointer-types]
    9 |   if(S=="ARC")
      |       ^~
main.c: At top level:
main.c:12:3: error: expected identifier or '(' before 'return'
   12 |   return 0;
      |   ^~~~~~
main.c:13:1: error: expected identifier or '(' before '}' token
   13 | }
      | ^
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:8:8: 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") {
      |      ~~^~~~~~~
      |        |
      |        std::__cxx11::basic_string<char>
Language: C++

#include<stdio.h>
#include<string.h>
int main(){
    char S[3], b[]="ABC", c[]="ARC";
    gets(S);
    if(strcmp(S,b)==0)
        printf("They held an %s last week, so they will hold an %s this week.", S, c);
    else
        printf("They held an %s last week, so they will hold an %s this week.", S, b);
    return 0;
}


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

#include<stdio.h>
#include<string.h>
int main(){
    char S[3], b[]="ABC", c[]="ARC";
    gets(S);
    if(strcmp(S,b)==0)
        printf("They held an ABC last week, so they will hold an %s this week.",c);
    else
        printf("They held an ARC last week, so they will hold an %s this week.", b);
    return 0;
}


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

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

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

    string s;
    cin>>s;

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


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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:13: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'const char*'
    7 |   if(strcmp(s, "ABC"))
      |             ^
      |             |
      |             std::string {aka std::__cxx11::basic_string<char>}
In file included from /usr/include/c++/14/cstring:43,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:121,
                 from a.cc:1:
/usr/include/string.h:156:32: note:   initializing argument 1 of 'int strcmp(const char*, const char*)'
  156 | extern int strcmp (const char *__s1, const char *__s2)
      |                    ~~~~~~~~~~~~^~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:6: error: 'strcmpi' was not declared in this scope; did you mean 'strcmp'?
    7 |   if(strcmpi(s, "ABC"))
      |      ^~~~~~~
      |      strcmp
Language: C++

#include<iostream>
#include<sting>

using namespace std;

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

Compiler output:
a.cc:2:9: fatal error: sting: No such file or directory
    2 | #include<sting>
      |         ^~~~~~~
compilation terminated.
Language: Java

import java.util.Scanner;
public class Main {
	public static void main(String[] args) {
      Scanner scanner = new Scanner(System.in);
      String input = scanner.nextLine();

      if(input.equals("ABC")) {
        System.out.prinln("ARC");
      }
      else {
        System.out.prinln("ABC");
      }
	}
}

Compiler output:
Main.java:8: error: cannot find symbol
        System.out.prinln("ARC");
                  ^
  symbol:   method prinln(String)
  location: variable out of type PrintStream
Main.java:11: error: cannot find symbol
        System.out.prinln("ABC");
                  ^
  symbol:   method prinln(String)
  location: variable out of type PrintStream
2 errors
Language: Java

import java.util.Scanner;
public class Main {
	public static void main(String[] args) {
      Scanner scanner = new Scanner(System.in);
      String input = scanner.nextInt();

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

Compiler output:
Main.java:5: error: incompatible types: int cannot be converted to String
      String input = scanner.nextInt();
                                    ^
1 error
Language: Java

import java.util.Scanner;
public class Main {
	public static void main(String[] args) {
      Scanner scanner = new Scanner(System.in);
      String input = scanner.nextInt();

      if(input.equals("ABC")) {
        System.out.prinln("ARC");
      }
      else {
        System.out.prinln("ABC");
      }
	}
}

Compiler output:
Main.java:5: error: incompatible types: int cannot be converted to String
      String input = scanner.nextInt();
                                    ^
Main.java:8: error: cannot find symbol
        System.out.prinln("ARC");
                  ^
  symbol:   method prinln(String)
  location: variable out of type PrintStream
Main.java:11: error: cannot find symbol
        System.out.prinln("ABC");
                  ^
  symbol:   method prinln(String)
  location: variable out of type PrintStream
3 errors
Language: Java

import java.util.Scanner;
public class Main {
	public static void main(String[] args) {
      Scanner scanner = new Scanner(System.in);
      String input = scanner.nextInt();

      if(input.equals("ABC") {
        System.out.prinln("ARC");
      }
      else {
        System.out.prinln("ABC");
      }
	}
}

Compiler output:
Main.java:7: error: ')' expected
      if(input.equals("ABC") {
                            ^
1 error
Language: Java

public static void main(String[] args) {
	Scanner scanner = new Scanner(System.in);
  	String input = scanner.nextInt();
  	
  	if(input.equals("ABC") {
      System.out.prinln("ARC");
    }
    else {
      System.out.prinln("ABC");
    }
}

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)
Main.java:5: error: ')' expected
  	if(input.equals("ABC") {
  	                      ^
2 errors
Language: Java

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

Compiler output:
Main.java:1: error: class Solution is public, should be declared in a file named Solution.java
public class Solution {
       ^
Main.java:3: error: cannot find symbol
    	Scanner scanner = new Scanner(System.in);
    	^
  symbol:   class Scanner
  location: class Solution
Main.java:3: error: cannot find symbol
    	Scanner scanner = new Scanner(System.in);
    	                      ^
  symbol:   class Scanner
  location: class Solution
3 errors
Language: Java

import java.util.Scanner;

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

Compiler output:
Main.java:7: error: cannot find symbol
    if(X.eqals("ARC")) {
        ^
  symbol:   method eqals(String)
  location: variable X of type String
1 error
Language: Java

import java.util.Scanner;

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

Compiler output:
Main.java:7: error: cannot find symbol
    if(S==ARC) {
          ^
  symbol:   variable ARC
  location: class Main
1 error
Language: Java

import java.util.Scanner;

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

Compiler output:
Main.java:7: error: cannot find symbol
    if(S==ARC) {
          ^
  symbol:   variable ARC
  location: class Main
1 error