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

#include <stdio.h>
 
int main(void){
  char S[3] = {0};
  
  printf("S =");
  fgets("%s", S);
  
  if(S[1] == 'B'){
    printf("ARC\n");
  }
  
  else if(S[1] == 'R'){
    printf("ABC\n");
  }
}

Compiler output:
main.c: In function 'main':
main.c:7:15: error: passing argument 2 of 'fgets' makes integer from pointer without a cast [-Wint-conversion]
    7 |   fgets("%s", S);
      |               ^
      |               |
      |               char *
In file included from main.c:1:
/usr/include/stdio.h:654:47: note: expected 'int' but argument is of type 'char *'
  654 | extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream)
      |                                           ~~~~^~~
main.c:7:3: error: too few arguments to function 'fgets'
    7 |   fgets("%s", S);
      |   ^~~~~
/usr/include/stdio.h:654:14: note: declared here
  654 | extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream)
      |              ^~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:18: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'const char*'
    6 |     if ( strcmp( s , "ABC") == 0 ) puts( "ARC" ) ;
      |                  ^
      |                  |
      |                  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>
#include <string.h>

int main(void)
{
    char S;    /* 入力文字列用 */

    printf("文字列 : ");  /* プロンプト表示 */
    scanf("%c",&S);          /* 文字列入力 */

    if(!strcmp(buff, "ABC"))    /* 文字列比較 */
        printf("ABC");    /* 表示 */
    else
        printf("ARC");   /* 表示 */
    return(0);
}


Compiler output:
main.c: In function 'main':
main.c:13:16: error: 'buff' undeclared (first use in this function)
   13 |     if(!strcmp(buff, "ABC"))    /* 文字列比較 */
      |                ^~~~
main.c:13:16: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

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

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


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

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

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

#include <stdio.h>
#include <string>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 'cin' was not declared in this scope
    8 |   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:9:8: error: could not convert 'x.std::__cxx11::basic_string<char>::operator=(((const char*)"ABC"))' from 'std::__cxx11::basic_string<char>' to 'bool'
    9 |   if(x = "ABC"){
      |      ~~^~~~~~~
      |        |
      |        std::__cxx11::basic_string<char>
a.cc:10:5: error: 'cout' was not declared in this scope
   10 |     cout << "ARC";
      |     ^~~~
a.cc:10:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:12:5: error: 'cout' was not declared in this scope
   12 |     cout << "ABC";
      |     ^~~~
a.cc:12: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[1] == "B"){
    cout << "ARC" << endl;
  }else{
    cout << "ABC" << endl;
  }
}

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

S = input()

if S == 'ABC':
    print('ARC')
if S == 'ARC':
    print('ABC')


Compiler output:
a.cc:3:9: warning: multi-character character constant [-Wmultichar]
    3 | if S == 'ABC':
      |         ^~~~~
a.cc:4:11: warning: multi-character character constant [-Wmultichar]
    4 |     print('ARC')
      |           ^~~~~
a.cc:5:9: warning: multi-character character constant [-Wmultichar]
    5 | if S == 'ARC':
      |         ^~~~~
a.cc:6:11: warning: multi-character character constant [-Wmultichar]
    6 |     print('ABC')
      |           ^~~~~
a.cc:1:1: error: 'S' does not name a type
    1 | S = input()
      | ^
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:5:3: error: 'String' was not declared in this scope
    5 |   String s;
      |   ^~~~~~
a.cc:6:10: error: 's' was not declared in this scope
    6 |   cin >> s;
      |          ^
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":
      | ^~
Language: C++

include <iostream>
using namespace std;

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

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope
    7 |   cin >> ;
      |   ^~~
a.cc:7:10: error: expected primary-expression before ';' token
    7 |   cin >> ;
      |          ^
a.cc:9:9: error: 'cout' was not declared in this scope
    9 |         cout << "ARC" << endl;
      |         ^~~~
a.cc:9:26: error: 'endl' was not declared in this scope
    9 |         cout << "ARC" << endl;
      |                          ^~~~
a.cc:11:5: error: 'cout' was not declared in this scope
   11 |     cout << "ABC" << endl;
      |     ^~~~
a.cc:11:22: error: 'endl' was not declared in this scope
   11 |     cout << "ABC" << endl;
      |                      ^~~~
a.cc:12:12: error: expected '}' at end of input
   12 |   return 0;
      |            ^
a.cc:5:1: note: to match this '{'
    5 | {
      | ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:11: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |   if(s[1] == "B"){
      |      ~~~~~^~~~~~
a.cc:10:26: error: expected ';' before ':' token
   10 |     cout << "ABC" << endl:
      |                          ^
      |                          ;
Language: C++

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

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


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

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

int main(){
fgets(str,sizeof(str),stdin);
if(strcmp(str,"ABC")==0){
printf("ARC");
}
else{
printf("ABC");
}
}

Compiler output:
main.c: In function 'main':
main.c:5:7: error: 'str' undeclared (first use in this function)
    5 | fgets(str,sizeof(str),stdin);
      |       ^~~
main.c:5:7: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>

int main(){
fgets(str,sizeof(str),stdin);
if(strcmp(str,"ABC")==0){
printf("ARC");
}
else{
printf("ABC");
}
}

Compiler output:
main.c: In function 'main':
main.c:4:7: error: 'str' undeclared (first use in this function)
    4 | fgets(str,sizeof(str),stdin);
      |       ^~~
main.c:4:7: note: each undeclared identifier is reported only once for each function it appears in
main.c:5:4: error: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration]
    5 | if(strcmp(str,"ABC")==0){
      |    ^~~~~~
main.c:2:1: note: include '<string.h>' or provide a declaration of 'strcmp'
    1 | #include <stdio.h>
  +++ |+#include <string.h>
    2 |
Language: C++

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

int main()
{
    char a[3];
    cin>>a[1]>>a[2]>>a[3];
    if(a[i]=='B')cout<<"ARC";
    else cout<<"ABC";
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:10: error: 'i' was not declared in this scope
    8 |     if(a[i]=='B')cout<<"ARC";
      |          ^
Language: C++

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

int main() {
  string S;
  S = ARC;
     
  cout << "S" << endl;
    
}


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

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


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

#include <stdio.h>
#include <string>
using namespace std;

int main()
{
  string x[3];
  cin >> x;
  if(x == "ABC"){
    cout << "ARC";
  }else{
    cout << "ABC";
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 'cin' was not declared in this scope
    8 |   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:9:8: error: comparison between distinct pointer types 'std::string*' {aka 'std::__cxx11::basic_string<char>*'} and 'const char*' lacks a cast
    9 |   if(x == "ABC"){
      |      ~~^~~~~~~~
a.cc:10:5: error: 'cout' was not declared in this scope
   10 |     cout << "ARC";
      |     ^~~~
a.cc:10:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:12:5: error: 'cout' was not declared in this scope
   12 |     cout << "ABC";
      |     ^~~~
a.cc:12: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;
  S = ABC, ARC;
     
  cout << "S" << endl;
    
}


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

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:10: error: expected primary-expression before ';' token
    7 |   cin >> ;
      |          ^
a.cc:8:6: error: expected '(' before 'cin'
    8 |   if cin = "ABC"
      |      ^~~
      |      (
a.cc:10:3: error: 'else' without a previous 'if'
   10 |   else
      |   ^~~~
a.cc:12:12: error: expected '}' at end of input
   12 |   return 0;
      |            ^
a.cc:5:1: note: to match this '{'
    5 | {
      | ^
Language: C++

#include <stdio.h>
#include <string>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 'cin' was not declared in this scope
    8 |   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:5: error: 'cout' was not declared in this scope
   10 |     cout << "ARC";
      |     ^~~~
a.cc:10:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:12:5: error: 'cout' was not declared in this scope
   12 |     cout << "ABC";
      |     ^~~~
a.cc:12: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;
  if (S = ABC) {
     
  cout << "S" << endl;
    
  }
}


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

#include<stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:6:13: error: expected expression before 'char'
    6 |         if (char S = 'ABC')
      |             ^~~~
main.c:6:22: warning: multi-character character constant [-Wmultichar]
    6 |         if (char S = 'ABC')
      |                      ^~~~~
Language: C++

#include <stdio.h>
#include <string>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 'cin' was not declared in this scope
    8 |   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:5: error: 'cout' was not declared in this scope
   10 |     cout << "ARC";
      |     ^~~~
a.cc:10:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:12:5: error: 'cout' was not declared in this scope
   12 |     cout << "ABC";
      |     ^~~~
a.cc:12: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;
#define rep(i, n) for(int i = 0; i < (int)(n); i++)
typedef long long int ll;
typedef pair<int, int> P;

string s;

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

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

void main(int argc, char *argv[]){
    char ar = args[1];

    if (ar == 'ABC'){
        printf('ARC');
    } else {
        printf('ABC');
    }
}

Compiler output:
main.c: In function 'main':
main.c:2:15: error: 'args' undeclared (first use in this function); did you mean 'argv'?
    2 |     char ar = args[1];
      |               ^~~~
      |               argv
main.c:2:15: note: each undeclared identifier is reported only once for each function it appears in
main.c:4:15: warning: multi-character character constant [-Wmultichar]
    4 |     if (ar == 'ABC'){
      |               ^~~~~
main.c:5:9: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    5 |         printf('ARC');
      |         ^~~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'printf'
  +++ |+#include <stdio.h>
    1 | void main(int argc, char *argv[]){
main.c:5:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
    5 |         printf('ARC');
      |         ^~~~~~
main.c:5:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:5:16: warning: multi-character character constant [-Wmultichar]
    5 |         printf('ARC');
      |                ^~~~~
main.c:5:16: error: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion]
    5 |         printf('ARC');
      |                ^~~~~
      |                |
      |                int
main.c:5:16: note: expected 'const char *' but argument is of type 'int'
main.c:7:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
    7 |         printf('ABC');
      |         ^~~~~~
main.c:7:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:7:16: warning: multi-character character constant [-Wmultichar]
    7 |         printf('ABC');
      |                ^~~~~
main.c:7:16: error: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion]
    7 |         printf('ABC');
      |                ^~~~~
      |                |
      |                int
main.c:7:16: note: expected 'const char *' but argument is of type 'int'
Language: C++

#include<iostream>
#include<string>
int main(){ 
  string a;
  cin>>a;
  if(a=="ABC")cout<<"ARC\n";
  else cout<<"ABC\n";
}

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:17: error: expected primary-expression before ')' token
    7 |   if(a == "ABC")){
      |                 ^
Language: C++

#include<iostream>
#include<String>
int main(){ 
  string a;
  cin>>a;
  if(a=="ABC")cout<<"ARC\n";
  else cout<<"ABC\n";
}

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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:12: error: unable to find string literal operator 'operator""l' with 'const char [4]', 'long unsigned int' arguments
   10 |     cout<< "ARC"l;
      |            ^~~~~~
Language: C++

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:8: error: request for member 'compare' in 'a', which is of non-class type 'char'
    7 |   if(a.compare("ABC") == 0){
      |        ^~~~~~~
Language: Java

class Sample 1
{
  public static void main(String[] args)
  {
    int char S;
    if(S == ABC){
      System.out.println("ARC");
    }
    else if(S == ARC){
      System.out.println("ABC");
    }
  }
}

Compiler output:
Main.java:1: error: '{' expected
class Sample 1
            ^
Main.java:5: error: not a statement
    int char S;
    ^
Main.java:5: error: ';' expected
    int char S;
       ^
3 errors
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:4:12: error: initialization of 'char' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
    4 |   char B = "ABC";
      |            ^~~~~
main.c:5:12: error: initialization of 'char' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
    5 |   char R = "ARC";
      |            ^~~~~
main.c:9:9: error: assignment to expression with array type
    9 |    if(S = B){
      |         ^
Language: C++

#include <stdio.h>
#include <string>
using namespace std;

int main()
{
  char x;
  string A1="ABC";
  string A2="ARC";
  
  cin >> x;
  if(x == string A1){
    cout << "ARC";
  }else{
    cout << "ABC";
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:3: error: 'cin' was not declared in this scope
   11 |   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:12:18: error: expected primary-expression before 'A1'
   12 |   if(x == string A1){
      |                  ^~
a.cc:12:17: error: expected ')' before 'A1'
   12 |   if(x == string A1){
      |     ~           ^~~
      |                 )
a.cc:13:5: error: 'cout' was not declared in this scope
   13 |     cout << "ARC";
      |     ^~~~
a.cc:13:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:15:5: error: 'cout' was not declared in this scope
   15 |     cout << "ABC";
      |     ^~~~
a.cc:15:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:4:12: error: initialization of 'char' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
    4 |   char B = "ABC";
      |            ^~~~~
main.c:5:12: error: initialization of 'char' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
    5 |   char R = "ARC";
      |            ^~~~~
main.c:9:11: error: assignment to expression with array type
    9 |    if(num = B){
      |           ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: 'ABC' was not declared in this scope
    8 |   string A=ABC;
      |            ^~~
a.cc:9:12: error: 'ARC' was not declared in this scope
    9 |   string B=ARC;
      |            ^~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:14: error: invalid conversion from 'char' to 'const char*' [-fpermissive]
    7 |   if(!strcmp(a, "ABC")){
      |              ^
      |              |
      |              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;
  inc >> S
    if(S="ABC"){
      cout << "ARC";
    }
  if(S="ARC"){
    cout << "ABC";
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'inc' was not declared in this scope; did you mean 'int'?
    6 |   inc >> S
      |   ^~~
      |   int
a.cc:10:7: error: could not convert 'S.std::__cxx11::basic_string<char>::operator=(((const char*)"ARC"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   10 |   if(S="ARC"){
      |      ~^~~~~~
      |       |
      |       std::__cxx11::basic_string<char>
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:8: error: storage size of 'x' isn't known
    6 |   char x[];
      |        ^
a.cc:10:3: error: 'cin' was not declared in this scope
   10 |   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:12:5: error: 'cout' was not declared in this scope
   12 |     cout << "ARC";
      |     ^~~~
a.cc:12:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:14:5: error: 'cout' was not declared in this scope
   14 |     cout << "ABC";
      |     ^~~~
a.cc:14: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;
  }
  if (S =ARC){
    cout <<"ABC" <<endl;
  }
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: 'ABC' was not declared in this scope
    8 |   if(S =ABC){
      |         ^~~
a.cc:11:10: error: 'ARC' was not declared in this scope
   11 |   if (S =ARC){
      |          ^~~
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:5:12: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
    5 |   char a = "";
      |            ^~
      |            |
      |            const char*
a.cc:7:8: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |   if(a == "ABC" ){
      |      ~~^~~~~~~~
Language: C++

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

int main() 
  
  cout << "ARC" << endl;

}

Compiler output:
a.cc:6:3: error: expected initializer before 'cout'
    6 |   cout << "ARC" << endl;
      |   ^~~~
a.cc:8:1: error: expected declaration before '}' token
    8 | }
      | ^
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:9:13: error: 'B' undeclared (first use in this function)
    9 |   if (S[1]==B) {
      |             ^
main.c:9:13: note: each undeclared identifier is reported only once for each function it appears in
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:8:10: error: 'ABC' was not declared in this scope
    8 |   if(S ==ABC){
      |          ^~~
a.cc:11:11: error: 'ARC' was not declared in this scope
   11 |   if (S ==ARC){
      |           ^~~
Language: C++

#include <iostream>
#include <vector>

using namespace std;

int main()
{
    cin >> S;
    
    auto res = S == "ABC" ? "ARC" : "ABC";

    cout << res << endl;
    

    return 0;
}

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

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

int main() 
  
  cout << "S" << endl;

}

Compiler output:
a.cc:6:3: error: expected initializer before 'cout'
    6 |   cout << "S" << endl;
      |   ^~~~
a.cc:8:1: error: expected declaration before '}' token
    8 | }
      | ^
Language: Java

import java.util.Scanner;
public class main{
  public static void main(String args[]){
    Scanner stdIn = new Scanner(System.in);
    
    String zenkai = stdIn.nextInt();
    String konkai = a;
    if(zenkai=ABC){
      konkai=ARC;
    }
    else if(zenkai=ARC){
      konkai=ABC;
    }
    System.out.println(konkai);
  }
}

      
      


Compiler output:
Main.java:2: error: class main is public, should be declared in a file named main.java
public class main{
       ^
Main.java:6: error: incompatible types: int cannot be converted to String
    String zenkai = stdIn.nextInt();
                                 ^
Main.java:7: error: cannot find symbol
    String konkai = a;
                    ^
  symbol:   variable a
  location: class main
Main.java:8: error: cannot find symbol
    if(zenkai=ABC){
              ^
  symbol:   variable ABC
  location: class main
Main.java:8: error: incompatible types: String cannot be converted to boolean
    if(zenkai=ABC){
             ^
Main.java:9: error: cannot find symbol
      konkai=ARC;
             ^
  symbol:   variable ARC
  location: class main
Main.java:11: error: cannot find symbol
    else if(zenkai=ARC){
                   ^
  symbol:   variable ARC
  location: class main
Main.java:11: error: incompatible types: String cannot be converted to boolean
    else if(zenkai=ARC){
                  ^
Main.java:12: error: cannot find symbol
      konkai=ABC;
             ^
  symbol:   variable ABC
  location: class main
9 errors
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<iostream>
#include<stdio.h>
#include<string.h>
#include<algorithm>
#include<vector>
#include<queue>
#include<map>
#include<set>
#include<iomanip>
#include<cmath>

#define REP(i,n) for (int i = 0; (i) < (n); ++ (i))
#define FOR(i,n) for (int i = 1; (i) <= (n); ++ (i))
#define dump(x)  cout << #x << " = " << (x) << endl;
#define pb push_back
#define int long long

const int INF = 1e18;
const int MOD = 1e9+7;
//const lint LINF = 1e18;
const double eps = 0.000000001;//もとの値の10^(-16)まで

using namespace std;

//typedef pair<int, int> P;
//priority_queue< P, vector<P>, greater<P> > q;//ダイクストラの時、greaterで小さい順
//cout << fixed << setprecision(10) << ans << endl;
//int gcd(int a,int b){return b?gcd(b,a%b):a;}

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

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

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

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


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

char st[5];
scanf("%s",st);
 
if (st != "ABC"){
  print("ARC");
}
else{
  print("ABC");
}


Compiler output:
main.c:2:7: error: expected declaration specifiers or '...' before string constant
    2 | scanf("%s",st);
      |       ^~~~
main.c:2:12: error: expected declaration specifiers or '...' before 'st'
    2 | scanf("%s",st);
      |            ^~
main.c:4:1: error: expected identifier or '(' before 'if'
    4 | if (st != "ABC"){
      | ^~
main.c:7:1: error: expected identifier or '(' before 'else'
    7 | else{
      | ^~~~
Language: C++

include <iostream>
using namespace std;

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

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:7:9: error: 'cin' was not declared in this scope
    7 |         cin >> >>;
      |         ^~~
a.cc:7:16: error: expected primary-expression before '>>' token
    7 |         cin >> >>;
      |                ^~
a.cc:7:18: error: expected primary-expression before ';' token
    7 |         cin >> >>;
      |                  ^
a.cc:8:12: error: expected '(' before 'cin'
    8 |         if cin = "ABC"
      |            ^~~
      |            (
a.cc:10:9: error: 'else' without a previous 'if'
   10 |         else
      |         ^~~~
a.cc:11:9: error: 'cout' was not declared in this scope
   11 |         cout << "ABC" << endl;
      |         ^~~~
a.cc:11:26: error: 'endl' was not declared in this scope
   11 |         cout << "ABC" << endl;
      |                          ^~~~
a.cc:12:18: error: expected '}' at end of input
   12 |         return 0;
      |                  ^
a.cc:5:1: note: to match this '{'
    5 | {
      | ^
Language: C


char st[5];
scanf("%s",st);
 
if (st != "ABC"){
  print("ARC");
}
else{
  print("ABC");
}

Compiler output:
main.c:3:7: error: expected declaration specifiers or '...' before string constant
    3 | scanf("%s",st);
      |       ^~~~
main.c:3:12: error: expected declaration specifiers or '...' before 'st'
    3 | scanf("%s",st);
      |            ^~
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<bits/stdc++.h>
using namespace std;
int main()
{
	int S;
	int ABC;
	int ARC;
	cin>>S;
	if(S==ABC)
	cout<<"ARC"<<endl;
	else
	cout<<"ABC"<<endl;
	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<stdio.h>
int main(void){
  char S[];
  scanf("%s", S);
  if(S=='ABC'){
    printf('ARC');
  }
  else if(S=='ARC'){
    printf('ABC');
  }
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:3:8: error: array size missing in 'S'
    3 |   char S[];
      |        ^
main.c:5:9: warning: multi-character character constant [-Wmultichar]
    5 |   if(S=='ABC'){
      |         ^~~~~
main.c:5:7: warning: comparison between pointer and integer
    5 |   if(S=='ABC'){
      |       ^~
main.c:6:12: warning: multi-character character constant [-Wmultichar]
    6 |     printf('ARC');
      |            ^~~~~
main.c:6:12: error: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion]
    6 |     printf('ARC');
      |            ^~~~~
      |            |
      |            int
In file included from main.c:1:
/usr/include/stdio.h:363:43: note: expected 'const char * restrict' but argument is of type 'int'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
main.c:8:14: warning: multi-character character constant [-Wmultichar]
    8 |   else if(S=='ARC'){
      |              ^~~~~
main.c:8:12: warning: comparison between pointer and integer
    8 |   else if(S=='ARC'){
      |            ^~
main.c:9:12: warning: multi-character character constant [-Wmultichar]
    9 |     printf('ABC');
      |            ^~~~~
main.c:9:12: error: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion]
    9 |     printf('ABC');
      |            ^~~~~
      |            |
      |            int
/usr/include/stdio.h:363:43: note: expected 'const char * restrict' but argument is of type 'int'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
Language: C++

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

int main() {
  // ここにプログラムを追記
  int 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:8:10: error: 'ABC' was not declared in this scope
    8 |   if(S ==ABC){
      |          ^~~
a.cc:11:11: error: 'ARC' was not declared in this scope
   11 |   if (S ==ARC){
      |           ^~~
Language: C++

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

int main() {
  // ここにプログラムを追記
  int 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:8:8: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |   if(S =="ABC"){
      |      ~~^~~~~~~
a.cc:11:9: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |   if (S =="ARC"){
      |       ~~^~~~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:6: error: expected ';' before 'x'
    7 |   str x;
      |      ^~
      |      ;
a.cc:8:6: error: expected ';' before 'A1'
    8 |   str A1 = "ABC";
      |      ^~~
      |      ;
a.cc:9:6: error: expected ';' before 'A2'
    9 |   str A2 = "ARC";
      |      ^~~
      |      ;
a.cc:11:3: error: 'cin' was not declared in this scope
   11 |   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:11:10: error: 'x' was not declared in this scope
   11 |   cin >> x;
      |          ^
a.cc:12:10: error: 'A1' was not declared in this scope
   12 |   if(x = A1){
      |          ^~
a.cc:13:5: error: 'cout' was not declared in this scope
   13 |     cout << "ARC";
      |     ^~~~
a.cc:13:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:14:17: error: 'A2' was not declared in this scope
   14 |   }else if( x = A2){
      |                 ^~
a.cc:15:5: error: 'cout' was not declared in this scope
   15 |     cout << "ABC";
      |     ^~~~
a.cc:15:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

#include<iterator>
#include<algorithm>
#include<bits/stdc++.h>
#define M 1000000007
#define C 998244353
using namespace std;
typedef unsigned long long int ll

void solve(){
    ll n,m,t,res=0,i;
    string s;
    cin >> s;
    if(s[1]=='R'){
        cout << "ABC" << "\n";
    }
    else{
        cout << "ARC" << "\n";
    }
}

int main()
{
    ll t = 1;
    for(ll f=0;f<t;f++){
        solve();
    }
}


Compiler output:
a.cc:9:1: error: expected initializer before 'void'
    9 | void solve(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:23:5: error: 'll' was not declared in this scope
   23 |     ll t = 1;
      |     ^~
a.cc:24:11: error: expected ';' before 'f'
   24 |     for(ll f=0;f<t;f++){
      |           ^~
      |           ;
a.cc:24:16: error: 'f' was not declared in this scope
   24 |     for(ll f=0;f<t;f++){
      |                ^
a.cc:24:18: error: 't' was not declared in this scope; did you mean 'tm'?
   24 |     for(ll f=0;f<t;f++){
      |                  ^
      |                  tm
a.cc:25:9: error: 'solve' was not declared in this scope
   25 |         solve();
      |         ^~~~~
Language: C

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

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

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

Compiler output:
main.c: In function 'main':
main.c:7:9: error: assignment to expression with array type
    7 |    if(S = "ABC"){
      |         ^
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:
a.cc: In function 'int main()':
a.cc:7:9: error: 'ABC' was not declared in this scope
    7 |   if(S =ABC){
      |         ^~~
a.cc:10:10: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
   10 |   if (S ="ARC"){
      |          ^~~~~
      |          |
      |          const char*
Language: C++

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


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

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

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

#include <iostream>
#include <cmath>
#include <string>
#include <vector>
#include <algorithm>
#include <cstdio>
#include <math.h>
#include <iomanip>
#include <bitset>
#include <cstring>
#include <stdlib.h>
#include <utility>
#include <set>
#include <map>
#include <string.h>
#include <cstring>
 
using namespace std;
long long digit(long long n){
    long long ans=0;
    while(n>0){
        n/=10;
        ans++;
    }
    return ans;
}

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


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

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

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:18:5: error: break statement not within loop or switch
   18 |     break;
      |     ^~~~~
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:
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:11: error: 'ARC' was not declared in this scope
   10 |   if (S ==ARC){
      |           ^~~
Language: C

#include<iostream>
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: iostream: No such file or directory
    1 | #include<iostream>
      |         ^~~~~~~~~~
compilation terminated.