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

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

int main() {
  // ここにプログラムを追記
  int S;
  if(S ==ABC){
    cout<< "ARC"<<endl;
  }
  if (S ==ARC){
    cout <<"ABC" <<endl;
  }
  
}

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

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

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

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


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

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

int main() {
  string str1, str2;
  cin >> ABC;
  str2 = ", ARC";

  cout << str1 << str2 << endl;
}


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

#include <stdio.h>
#include <string>
using namespace std;
int main()
{
  string A1 = "ABC";
  string A2 = "ARC";
  string x;
  cin >> x;
  if(x = A1){
    cout << "ARC";
  }else if( x = A2){
    cout << "ABC";
  }
}
  

Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: 'cin' was not declared in this scope
    9 |   cin >> x;
      |   ^~~
a.cc:3:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    2 | #include <string>
  +++ |+#include <iostream>
    3 | using namespace std;
a.cc:10:8: error: could not convert 'x.std::__cxx11::basic_string<char>::operator=(A1)' from 'std::__cxx11::basic_string<char>' to 'bool'
   10 |   if(x = A1){
      |      ~~^~~~
      |        |
      |        std::__cxx11::basic_string<char>
a.cc:11:5: error: 'cout' was not declared in this scope
   11 |     cout << "ARC";
      |     ^~~~
a.cc:11:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:12:15: error: could not convert 'x.std::__cxx11::basic_string<char>::operator=(A2)' from 'std::__cxx11::basic_string<char>' to 'bool'
   12 |   }else if( x = A2){
      |             ~~^~~~
      |               |
      |               std::__cxx11::basic_string<char>
a.cc:13:5: error: 'cout' was not declared in this scope
   13 |     cout << "ABC";
      |     ^~~~
a.cc:13:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

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

int main() {
  string str1, str2;
  cin >> S;
  str2 = ", ARC";

  cout << str1 << str2 << endl;
}


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

#include <stdio.h>
int main(){
  char str[10];
  fgets(str,sizeof(str),stdin);
  if(str=='ABC'){
    return 'ARC'
  }
   if(str=='ARC'){
    return 'ABC'
  }
  
}

Compiler output:
main.c: In function 'main':
main.c:5:11: warning: multi-character character constant [-Wmultichar]
    5 |   if(str=='ABC'){
      |           ^~~~~
main.c:5:9: warning: comparison between pointer and integer
    5 |   if(str=='ABC'){
      |         ^~
main.c:6:12: warning: multi-character character constant [-Wmultichar]
    6 |     return 'ARC'
      |            ^~~~~
main.c:6:17: error: expected ';' before '}' token
    6 |     return 'ARC'
      |                 ^
      |                 ;
    7 |   }
      |   ~              
main.c:8:12: warning: multi-character character constant [-Wmultichar]
    8 |    if(str=='ARC'){
      |            ^~~~~
main.c:8:10: warning: comparison between pointer and integer
    8 |    if(str=='ARC'){
      |          ^~
main.c:9:12: warning: multi-character character constant [-Wmultichar]
    9 |     return 'ABC'
      |            ^~~~~
main.c:9:17: error: expected ';' before '}' token
    9 |     return 'ABC'
      |                 ^
      |                 ;
   10 |   }
      |   ~
Language: C++

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


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

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

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

#include <stdio>
#include <string>
using namespace std;
int main()
{
  string A1 = "ABC";
  string A2 = "ARC";
  string x;
  cin >> x;
  if(x = A1){
    cout << "ARC";
  }else if( x = A2){
    cout << "ABC";
  }
}

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

#include<bits/stdc++.h>

using namespace std;
int man()
{
 char c[4];
  cin>>c;
   if(c[1]=="B")
   {
   cout<<"ARC";
   }else
   {
   cout<<"ABC";
   }
  
}

Compiler output:
a.cc: In function 'int man()':
a.cc:8:11: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |    if(c[1]=="B")
      |       ~~~~^~~~~
a.cc:16:1: warning: no return statement in function returning non-void [-Wreturn-type]
   16 | }
      | ^
Language: C++

# include <iostream>
# include <string>

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:14: error: expected ';' before string constant
   10 |     else cout"ABC";
      |              ^~~~~
      |              ;
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.cotains("R")){System.out.println("ABC");}
    else{System.out.println("ARC");}
  }
}


Compiler output:
Main.java:6: error: cannot find symbol
    if(S.cotains("R")){System.out.println("ABC");}
        ^
  symbol:   method cotains(String)
  location: variable S of type String
1 error
Language: Java

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


Compiler output:
Main.java:4: error: cannot find symbol
   Scanner sc=new Scanner(Systm.in);
                          ^
  symbol:   variable Systm
  location: class Test
1 error
Language: C

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

int main() {
  string S;
  cin >> S;
  if ( S.at(1) == 'R'){
    S.at(1) = 'B';
  }
  else if (S.at(1) == 'B'){
    S.at(1) = 'R';
  }
  cout << S << endl;
}

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

include <stdio.h>
char a;
int main(){
	scanf("%c", &a);
	if(a == 'ABC') printf("ARC");
    else printf("ABC");
    return 0;
}


Compiler output:
a.cc:5:17: warning: multi-character character constant [-Wmultichar]
    5 |         if(a == 'ABC') printf("ARC");
      |                 ^~~~~
a.cc:1:1: error: 'include' does not name a type
    1 | include <stdio.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:4:22: error: 'a' was not declared in this scope
    4 |         scanf("%c", &a);
      |                      ^
a.cc:4:9: error: 'scanf' was not declared in this scope
    4 |         scanf("%c", &a);
      |         ^~~~~
a.cc:5:24: error: 'printf' was not declared in this scope
    5 |         if(a == 'ABC') printf("ARC");
      |                        ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | include <stdio.h>
a.cc:6:10: error: 'printf' was not declared in this scope
    6 |     else printf("ABC");
      |          ^~~~~~
a.cc:6:10: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
Language: Java

import java.util.Scanner;

public class Atcoder{

	public static void Main(String[] args){

		Scanner scan01 = new Scanner(System.in);
		String str = scan01.next();

		String abc = "ABC";
		String arc = "ARC";

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

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

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

Compiler output:
main.c: In function 'main':
main.c:5:7: warning: comparison between pointer and integer
    5 |   if(s=="ARC"){
      |       ^~
main.c:9:9: error: expected ';' before ':' token
    9 | return 0:
      |         ^
      |         ;
Language: Java

import java.util.*;
import java.util.Arrays;

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



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

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

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

#include<iostream>
#include<string>
usingf namespace std;
int main()
{
  string s,s1,s2;
  
  cin>>s;
  if(s="ABC")
  {
    cout<<"ARC";
  }
 else if(s="ABC")
 {
   cout<<"ARC";
 }
  return 0;
}
  

Compiler output:
a.cc:3:1: error: 'usingf' does not name a type
    3 | usingf namespace std;
      | ^~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'string' was not declared in this scope
    6 |   string s,s1,s2;
      |   ^~~~~~
a.cc:6:3: note: suggested alternatives:
In file included from /usr/include/c++/14/iosfwd:41,
                 from /usr/include/c++/14/ios:40,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
In file included from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44:
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:8:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    8 |   cin>>s;
      |   ^~~
      |   std::cin
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:8:8: error: 's' was not declared in this scope
    8 |   cin>>s;
      |        ^
a.cc:11:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |     cout<<"ARC";
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:15:4: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   15 |    cout<<"ARC";
      |    ^~~~
      |    std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:8: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'equals'
    7 |   if(s.equals("ABC")){ r = "ARC"; }else{ r = "ABC"; }
      |        ^~~~~~
Language: C++

include <stdio.h>
char a;
int main(){
	scanf("%c", &a);
	if(a == 'ABC") printf("ARC");
    else printf("ABC");
       return 0;
}

Compiler output:
a.cc:5:17: warning: missing terminating ' character
    5 |         if(a == 'ABC") printf("ARC");
      |                 ^
a.cc:5:17: error: missing terminating ' character
    5 |         if(a == 'ABC") printf("ARC");
      |                 ^~~~~~~~~~~~~~~~~~~~~
a.cc:1:1: error: 'include' does not name a type
    1 | include <stdio.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:4:22: error: 'a' was not declared in this scope
    4 |         scanf("%c", &a);
      |                      ^
a.cc:4:9: error: 'scanf' was not declared in this scope
    4 |         scanf("%c", &a);
      |         ^~~~~
a.cc:6:5: error: expected primary-expression before 'else'
    6 |     else printf("ABC");
      |     ^~~~
a.cc:7:8: error: expected primary-expression before 'return'
    7 |        return 0;
      |        ^~~~~~
a.cc:6:24: error: expected ')' before 'return'
    6 |     else printf("ABC");
      |                        ^
      |                        )
    7 |        return 0;
      |        ~~~~~~           
a.cc:5:11: note: to match this '('
    5 |         if(a == 'ABC") printf("ARC");
      |           ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:13:24: error: 'emdl' was not declared in this scope
   13 |     cout << "error" << emdl;
      |                        ^~~~
a.cc:14:4: error: expected '}' at end of input
   14 |   }
      |    ^
a.cc:3:12: note: to match this '{'
    3 | int main (){
      |            ^
Language: C++

#include<iostream.h>
#include<conio.h>
#include<stdio.h>
#include<string.h>
void main()
{
  char s[3],t[3];
  gets(s);
  if(strcpy(s,"ARC")==0)
  {
   strcmp(t,"ABC");
  }
  else if(strcmp(s,"ABC")==0)
  {
     strcmp(t,"ARC");
  }
  cout>>t;
  getch();
}

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



char st[5] = S;
 
if (st != "ABC"){
  print("ARC");
}
else{
  print("ABC");
}

Compiler output:
main.c:3:14: error: 'S' undeclared here (not in a function)
    3 | char st[5] = S;
      |              ^
main.c:5:1: error: expected identifier or '(' before 'if'
    5 | if (st != "ABC"){
      | ^~
main.c:8:1: error: expected identifier or '(' before 'else'
    8 | else{
      | ^~~~
Language: C

#include<stdio.h>
int main (void){
char s[3];
scanf("%s",s);

if(s=="ABC"){
printf("ARC");
}elif(s=="ARC"){
printf("ABC");
}

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:2: error: implicit declaration of function 'elif' [-Wimplicit-function-declaration]
    8 | }elif(s=="ARC"){
      |  ^~~~
main.c:8:16: error: expected ';' before '{' token
    8 | }elif(s=="ARC"){
      |                ^
      |                ;
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:8: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'equal'
    7 |   if(s.equal("ABC")){ r = "ARC"; }else{ r = "ABC"; }
      |        ^~~~~
a.cc:8:21: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |   std::cout << r << endl;
      |                     ^~~~
      |                     std::endl
In file included from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include<iostream>
using namespace std;
int main(){
  char a[100];
  cin>>a;
  if(a=='ABC'){
    cout<<"ARC";
  }
  if(a=='ARC'){
    cout<<ABC;
  }
  return 0;
}

Compiler output:
a.cc:6:9: warning: multi-character character constant [-Wmultichar]
    6 |   if(a=='ABC'){
      |         ^~~~~
a.cc:9:9: warning: multi-character character constant [-Wmultichar]
    9 |   if(a=='ARC'){
      |         ^~~~~
a.cc: In function 'int main()':
a.cc:6:7: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    6 |   if(a=='ABC'){
      |      ~^~~~~~~
a.cc:9:7: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |   if(a=='ARC'){
      |      ~^~~~~~~
a.cc:10:11: error: 'ABC' was not declared in this scope
   10 |     cout<<ABC;
      |           ^~~
Language: C++

#include <stdio.h>
#include <string>
using namespace std;
int main()
{
  string A1 = "ABC";
  string A2 = "ARC";
  char x;
  cin >> x;
  if(x = A1){
    cout << "ARC";
  }else if(x = A2){
    cout << "ABC";
  }
}
  

Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: 'cin' was not declared in this scope
    9 |   cin >> x;
      |   ^~~
a.cc:3:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    2 | #include <string>
  +++ |+#include <iostream>
    3 | using namespace std;
a.cc:10:10: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'char' in assignment
   10 |   if(x = A1){
      |          ^~
      |          |
      |          std::string {aka std::__cxx11::basic_string<char>}
a.cc:11:5: error: 'cout' was not declared in this scope
   11 |     cout << "ARC";
      |     ^~~~
a.cc:11:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:12:16: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'char' in assignment
   12 |   }else if(x = A2){
      |                ^~
      |                |
      |                std::string {aka std::__cxx11::basic_string<char>}
a.cc:13:5: error: 'cout' was not declared in this scope
   13 |     cout << "ABC";
      |     ^~~~
a.cc:13:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

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

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

st = s;
 
if (st != "ABC"){
  print("ARC");
}
else{
  print("ABC");
}

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | st = s;
      | ^~
main.c:1:1: error: type defaults to 'int' in declaration of 'st' [-Wimplicit-int]
main.c:1:6: error: 's' undeclared here (not in a function); did you mean 'st'?
    1 | st = s;
      |      ^
      |      st
main.c:3:1: error: expected identifier or '(' before 'if'
    3 | if (st != "ABC"){
      | ^~
main.c:6:1: error: expected identifier or '(' before 'else'
    6 | else{
      | ^~~~
Language: C

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

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



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

import java.util.Scanner;
 
public class main{
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        String str = scan.nextLine();
        int f;
     
        cons(str);
        scan.close();
    }
}

public static boid cons(string title){
  int flag;
  if(title.equals(ARC)){
    System.out.println("先週開催されたコンテストは ARC なので、今週は ABC が開催されます。");
    return; 
  }else if(title.equals(ABC)){
    System.out.println("先週開催されたコンテストは ABC なので、今週は ARC が開催されます。");
    return;  
  } else {
    System.out.println("コンテスト名が正しくありません。");
    return;
  }
  return flag;
}

Compiler output:
Main.java:14: error: unnamed classes are a preview feature and are disabled by default.
public static boid cons(string title){
              ^
  (use --enable-preview to enable unnamed classes)
1 error
Language: C++

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

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

#include <stdio.h>

int main(void){

  char s[];

  scanf("%s",s);
  if(s=="ABC"){
    printf("ARC\n");
  }else{
    printf("ABC\n");
  }

  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:5:8: error: array size missing in 's'
    5 |   char s[];
      |        ^
Language: C

st = S;
 
if (st != "ABC"){
  print("ARC");
}
else{
  print("ABC");
}

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | st = S;
      | ^~
main.c:1:1: error: type defaults to 'int' in declaration of 'st' [-Wimplicit-int]
main.c:1:6: error: 'S' undeclared here (not in a function)
    1 | st = S;
      |      ^
main.c:3:1: error: expected identifier or '(' before 'if'
    3 | if (st != "ABC"){
      | ^~
main.c:6:1: error: expected identifier or '(' before 'else'
    6 | else{
      | ^~~~
Language: Java

import java.util.Scanner;

public class Main {
  Scanner sc = new Scanner(System.in);
	String S = sc.nextLine();


			switch (S){
			   case ARC:
			    System.out.println("ABC");
			   case ABC:
			    System.out.println("ARC");
			}
}




Compiler output:
Main.java:13: error: <identifier> expected
			}
			 ^
1 error
Language: Java

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

Compiler output:
Main.java:6: error: unclosed character literal
   if((s.equals('ABC'))
                ^
Main.java:6: error: unclosed character literal
   if((s.equals('ABC'))
                    ^
Main.java:6: error: not a statement
   if((s.equals('ABC'))
                  ^
Main.java:7: error: unclosed character literal
      System.out.println('ARC');
                         ^
Main.java:7: error: unclosed character literal
      System.out.println('ARC');
                             ^
Main.java:7: error: not a statement
      System.out.println('ARC');
                           ^
Main.java:9: error: unclosed character literal
      System.out.println('ABC');
                         ^
Main.java:8: error: 'else' without 'if'
   else
   ^
Main.java:9: error: unclosed character literal
      System.out.println('ABC');
                             ^
Main.java:9: error: not a statement
      System.out.println('ABC');
                           ^
10 errors
Language: C++

#include<stdio.h>
#include<string>
int main(void) {
	char s[4] = "ABC";
	gets_s(s, 4);
	if (s[1] =='B') {
		printf("ARC");
	}
	else {
		printf("ABC");
	}
	return 0;
}

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

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

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

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

#include<stdio.h>
#include<string>
int main(void) {
	char s[4] = "ABC";
	gets_s(s, 4);
	if (s[1] =='B') {
		printf("ARC");
	}
	else {
		printf("ABC");
	}
	return 0;
}

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:12: error: 'strcmp' was not declared in this scope
    7 |         if(strcmp(a,"ABC")==0) cout<<"ARC";
      |            ^~~~~~
a.cc:3:1: note: 'strcmp' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    2 | #include <cmath>
  +++ |+#include <cstring>
    3 | using namespace std;
Language: C++

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

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

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

#include<stdio.h>
#include<string.h>
int main()
{
  char*S1="ABC";
  if(strcmp(S,S1)==0)
    printf("ARC");
  else
    printf("ABC");
  return 0;
}
  

Compiler output:
main.c: In function 'main':
main.c:6:13: error: 'S' undeclared (first use in this function); did you mean 'S1'?
    6 |   if(strcmp(S,S1)==0)
      |             ^
      |             S1
main.c:6:13: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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

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

int main () {
  string s;
  cin >> s;
  cout << s;
}

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

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

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

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

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

  cout << S << endl;
}

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:2:8: error: 'string' is not a member of 'std'
    2 |   std::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 | int main(){
a.cc:3:8: error: 'string' is not a member of 'std'
    3 |   std::string r;
      |        ^~~~~~
a.cc:3:8: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
a.cc:4:8: error: 'cin' is not a member of 'std'
    4 |   std::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 | int main(){
a.cc:4:15: error: 's' was not declared in this scope
    4 |   std::cin >> s;
      |               ^
a.cc:5:23: error: 'r' was not declared in this scope
    5 |   if(s.equal("ABC")){ r = "ARC"; }else{ r = "ABC"; }
      |                       ^
a.cc:5:41: error: 'r' was not declared in this scope
    5 |   if(s.equal("ABC")){ r = "ARC"; }else{ r = "ABC"; }
      |                                         ^
a.cc:6:8: error: 'cout' is not a member of 'std'
    6 |   std::cout << r << endl;
      |        ^~~~
a.cc:6:8: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:6:16: error: 'r' was not declared in this scope
    6 |   std::cout << r << endl;
      |                ^
a.cc:6:21: error: 'endl' was not declared in this scope
    6 |   std::cout << r << endl;
      |                     ^~~~
Language: C++

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

    return 0;
}

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

#include <iostream>
#include <string>

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: 'ARC' was not declared in this scope
    9 |   if(s==ARC) cout<<"ABC";
      |         ^~~
Language: Java

import java.util.Scanner;

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


Compiler output:
Main.java:8: error: cannot find symbol
   if( S == ABC)
            ^
  symbol:   variable ABC
  location: class Main
1 error
Language: C++

#include <iostream>
using namespace std;

int main(){
  char a,b;
  cin >> a >> b;
  if(b == 'B'){
	cout << "ARC\n";
  else{
    cout << "ABC\n";
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: expected '}' before 'else'
    9 |   else{
      |   ^~~~
a.cc:7:15: note: to match this '{'
    7 |   if(b == 'B'){
      |               ^
Language: C++

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

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

include <stdio.h>
char a;
int main(){
	scanf("%c", &a);
    if(a == 'ABC') printf("ARC");
    else printf("ABC")
    return 0;
}

Compiler output:
a.cc:5:13: warning: multi-character character constant [-Wmultichar]
    5 |     if(a == 'ABC') printf("ARC");
      |             ^~~~~
a.cc:1:1: error: 'include' does not name a type
    1 | include <stdio.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:4:22: error: 'a' was not declared in this scope
    4 |         scanf("%c", &a);
      |                      ^
a.cc:4:9: error: 'scanf' was not declared in this scope
    4 |         scanf("%c", &a);
      |         ^~~~~
a.cc:5:20: error: 'printf' was not declared in this scope
    5 |     if(a == 'ABC') printf("ARC");
      |                    ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | include <stdio.h>
a.cc:6:10: error: 'printf' was not declared in this scope
    6 |     else printf("ABC")
      |          ^~~~~~
a.cc:6:10: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
Language: Java

public class test1 {
    public static String main(String S) {
        if(S != null && S.equals("ABC")) {
            return "ARC";
        } else {
            return "ABC";
        }
    }
}


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

#include <bits/stdc++.h>
#define ALL(v) v.begin(), v.end()
#define MAX 510000
#define rrep(i, n) for(ll i = 0; i < (ll)(n); i++)
#define rep(i, n) for(ll i = 1; i <= (ll)(n); i++)
#define dcout cout<<fixed<<setprecision(15);

using namespace std;
typedef long long int  ll;
typedef pair<ll, ll> P;

constexpr int MOD = 1e9 + 7;
constexpr ll inf = 1LL << 60;

//lcm//
ll gcd(ll x, ll y) {
	if (x == 0) return y;
	return gcd(y%x, x);
}
ll lcm(ll x, ll y) { return x * y / gcd(x, y); }

//a^n mod p//
ll modpow(ll a, ll n, ll p) {
  if (n == 1) return a % p;
  if (n % 2 == 1) return (a * modpow(a, n - 1, p)) % p;
  ll t = modpow(a, n / 2, p);
  return (t * t) % p;
}

//inversemod//
long long modinv(long long a, long long m) {
	long long b = m, u = 1, v = 0;
	while (b) {
		long long t = a / b;
		a -= t * b; swap(a, b);
		u -= t * v; swap(u, v);
	}
	u %= m;
	if (u < 0) u += m;
	return u;
}

//Cmonp//
ll fac[MAX], finv[MAX], inv[MAX];
// 
void COMinit() {
	fac[0] = fac[1] = 1;
	finv[0] = finv[1] = 1;
	inv[1] = 1;
	for (int i = 2; i < MAX; i++) {
		fac[i] = fac[i - 1] * i % MOD;
		inv[i] = MOD - inv[MOD%i] * (MOD / i) % MOD;
		finv[i] = finv[i - 1] * inv[i] % MOD;
	}
}

// 
ll COM(ll n, ll k) {
	if (n < k) return 0;
	if (n < 0 || k < 0) return 0;
	return fac[n] * (finv[k] * finv[n - k] % MOD) % MOD;
}

//LARGE n
ll com(ll n,ll m){
    if(n<m || n<=0 ||m<0){
		return 0;
	}
	if( m==0 || n==m){
		return 1;
	}
	ll k=1;
	for(ll i=1;i<=m;i++){
       k*=(n-i+1); 
	   k%=MOD;
	   k*=modinv(i,MOD);
	   k%=MOD;
	}
	return k;
}

//radP
ll rad(ll u, ll p){
ll cnt=0;
	while(u%p==0){
		u/=p;
		cnt++;
	}
	return cnt;
}


////////////////////////////////////////////////////////////////////

int main() {

string s;
string p;
if(s=="ABC")p="ARC";
else p="ABC"
cout<<p<<endl;
return 0;


}



Compiler output:
a.cc: In function 'int main()':
a.cc:100:13: error: expected ';' before 'cout'
  100 | else p="ABC"
      |             ^
      |             ;
  101 | cout<<p<<endl;
      | ~~~~
Language: C++

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

int main(void) {
  string S;
  cin >> S;
  if (S[0] == 'B') {
    cout << "ARC";
  } else if {
    cout << "ABC"
  }
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:13: error: expected '(' before '{' token
   10 |   } else if {
      |             ^
      |             (
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:11: error: expected ';' before 'if'
    6 |   cin >> N
      |           ^
      |           ;
    7 |   if( N=="ARC" ){
      |   ~~       
a.cc:10:5: error: 'else' without a previous 'if'
   10 |     else{
      |     ^~~~
Language: C

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

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




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

#include <iostream>
using namespace std;

int main() {
    char s[4];
    cin >> s;
    if (!strncmp(s, "ABC", 3)) {
        cout << "ARC";
    } else if (!strncmp(s, "ARC", 3)) {
        cout << "ABC";
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:10: error: 'strncmp' was not declared in this scope
    7 |     if (!strncmp(s, "ABC", 3)) {
      |          ^~~~~~~
a.cc:2:1: note: 'strncmp' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    1 | #include <iostream>
  +++ |+#include <cstring>
    2 | using namespace std;
Language: C

#include <stdio.h>

int main(void)
{
  char s;
  
  scanf("%s",&s);
  if(s == "ARC"){
    printf("ABC\n");
  }else{
    prinf("ARC\n");
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:8: warning: comparison between pointer and integer
    8 |   if(s == "ARC"){
      |        ^~
main.c:11:5: error: implicit declaration of function 'prinf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   11 |     prinf("ARC\n");
      |     ^~~~~
      |     printf
Language: C++

#include <iostream>
#include <stdio.h>


using namespace std;

int main(){
    
    char str[4];
    scanf("%s",str);
    
    
    if(strcmp(str, "ABC")==0){
        printf("%s\n","ARC");
    }else{
        printf("%s\n","ABC");
    }
    
    
    
   
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:8: error: 'strcmp' was not declared in this scope
   13 |     if(strcmp(str, "ABC")==0){
      |        ^~~~~~
a.cc:2:1: note: 'strcmp' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    1 | #include <iostream>
  +++ |+#include <cstring>
    2 | #include <stdio.h>
Language: C++

#include <stdio.h>
using namespace std;
int main()
{
  char ABC,ARC;
  char x;
  cin >> x;
  if(x == ABC){
    cout << "ARC";
  }else if( x== ARC){
    cout << "ABC";
  }
}
  

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

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

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

#include<iostream>
#include<string.h>
using namespace std;
int main(){
	char aaa[4];
	cin >> aaa;
	if(strcmp(aaa,"ARC"){
			cout << "ABC";
	}
	if(strcmp(aaa,"ABC"){
			cout << "ARC";
	}
	return 0;
}




Compiler output:
a.cc: In function 'int main()':
a.cc:7:29: error: expected ')' before '{' token
    7 |         if(strcmp(aaa,"ARC"){
      |           ~                 ^
      |                             )
Language: C

#include<stdio.h>
#include<string.h>
int main()
{
  char s[];
  char s1[]= "ABC" ;
  int c;
  scanf("%s",&s);
  c= strcmp(s,s1);
  if(c==0)
    printf("ARC");
  else
    printf("ABC");
}

Compiler output:
main.c: In function 'main':
main.c:5:8: error: array size missing in 's'
    5 |   char s[];
      |        ^
Language: C

#include<stdio.h>

int main(){
    char now[3], previous[3];
    scanf("%s", previous);
    if ((previous[1] == 'B')
        printf("ARC");
    else if (previous[1] == 'R')
        printf("ABC");
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:6:29: error: expected ')' before 'printf'
    6 |     if ((previous[1] == 'B')
      |        ~                    ^
      |                             )
    7 |         printf("ARC");
      |         ~~~~~~               
main.c:11:1: error: expected expression before '}' token
   11 | }
      | ^
Language: C

s = input()
if s =='ABC':
    print("ARC")
else:
    print("ABC")


Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | s = input()
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 's' [-Wimplicit-int]
main.c:1:5: error: implicit declaration of function 'input' [-Wimplicit-function-declaration]
    1 | s = input()
      |     ^~~~~
main.c:1:5: error: initializer element is not constant
main.c:2:1: error: expected ',' or ';' before 'if'
    2 | if s =='ABC':
      | ^~
main.c:2:8: warning: multi-character character constant [-Wmultichar]
    2 | if s =='ABC':
      |        ^~~~~
Language: C++

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



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

#include <stdio.h>
#include <iostream>
using namespace std;
int main()
{
  char ABC,ARC;  
  cin >> x;
  if(x == ABC){
    cout << "ARC";
  }else if( x== ARC){
    cout << "ABC";
  }
}

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

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

Compiler output:
Main.java:10: error: cannot find symbol
        System.out.prtinln(ans);
                  ^
  symbol:   method prtinln(String)
  location: variable out of type PrintStream
1 error
Language: C++

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

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

#include<stdio.h>

int main()
{
  char t[3];
  char key[3]='ABC';
  
  scanf("%s",t);
  
  if(t==key)
  {
   printf("ARC"); 
  }else
  {
   printf("ABC"); 
  }
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:6:15: warning: multi-character character constant [-Wmultichar]
    6 |   char key[3]='ABC';
      |               ^~~~~
main.c:6:15: error: invalid initializer
Language: C++

#include "iostream"


using namespace std;

void main() {
	string S;

	cin >> S;

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

}

Compiler output:
a.cc:6:1: error: '::main' must return 'int'
    6 | void main() {
      | ^~~~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:10: error: 'ABC' was not declared in this scope
    7 |   if (S==ABC){
      |          ^~~
a.cc:10:10: error: 'ARC' was not declared in this scope
   10 |   if (S==ARC){
      |          ^~~
Language: Java

import java.util.Scanner;

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


Compiler output:
Main.java:6: error: cannot find symbol
   String S = next();
              ^
  symbol:   method next()
  location: class Main
Main.java:8: error: cannot find symbol
   if( S == ABC)
            ^
  symbol:   variable ABC
  location: class Main
2 errors
Language: C++

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

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

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