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

#include <stdio.h>
int main(){
  char s[4];
  cin >> s:
  if (s == "ABC")
    	cout << "ARC" <<end;
  	else
      	cout << "ABC" <<end;
}
  

Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'cin' was not declared in this scope
    4 |   cin >> s:
      |   ^~~
a.cc:7:9: error: 'else' without a previous 'if'
    7 |         else
      |         ^~~~
a.cc:8:9: error: 'cout' was not declared in this scope
    8 |         cout << "ABC" <<end;
      |         ^~~~
a.cc:8:25: error: 'end' was not declared in this scope
    8 |         cout << "ABC" <<end;
      |                         ^~~
Language: C++

#include <iostream>
int main(){
  char s[4];
  cin >> s:
  if (s == "ABC")
    	cout << "ARC" <<end;
  	else
      	cout << "ABC" <<end;
}
  

Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |   cin >> s:
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:7:9: error: 'else' without a previous 'if'
    7 |         else
      |         ^~~~
a.cc:8:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |         cout << "ABC" <<end;
      |         ^~~~
      |         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:8:25: error: 'end' was not declared in this scope; did you mean 'std::end'?
    8 |         cout << "ABC" <<end;
      |                         ^~~
      |                         std::end
In file included from /usr/include/c++/14/string:53,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/bits/range_access.h:116:37: note: 'std::end' declared here
  116 |   template<typename _Tp> const _Tp* end(const valarray<_Tp>&) noexcept;
      |                                     ^~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:3:3: error: 'string' was not declared in this scope
    3 |   string s;
      |   ^~~~~~
a.cc:3: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:4:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |   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:4:10: error: 's' was not declared in this scope
    4 |   cin >> s:
      |          ^
a.cc:7:9: error: 'else' without a previous 'if'
    7 |         else
      |         ^~~~
a.cc:8:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |         cout << "ABC" <<end;
      |         ^~~~
      |         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:8:25: error: 'end' was not declared in this scope; did you mean 'std::end'?
    8 |         cout << "ABC" <<end;
      |                         ^~~
      |                         std::end
In file included from /usr/include/c++/14/string:53:
/usr/include/c++/14/bits/range_access.h:116:37: note: 'std::end' declared here
  116 |   template<typename _Tp> const _Tp* end(const valarray<_Tp>&) noexcept;
      |                                     ^~~
Language: C++

#include <iostream>
main(){
  string s;
  cin >> s:
  if (s == "ABC")
    	cout << "ARC" <<end;
  	else
      	cout << "ABC" <<end;
}
  

Compiler output:
a.cc:2:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    2 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:3:3: error: 'string' was not declared in this scope
    3 |   string s;
      |   ^~~~~~
a.cc:3: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:4:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |   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:4:10: error: 's' was not declared in this scope
    4 |   cin >> s:
      |          ^
a.cc:7:9: error: 'else' without a previous 'if'
    7 |         else
      |         ^~~~
a.cc:8:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |         cout << "ABC" <<end;
      |         ^~~~
      |         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:8:25: error: 'end' was not declared in this scope; did you mean 'std::end'?
    8 |         cout << "ABC" <<end;
      |                         ^~~
      |                         std::end
In file included from /usr/include/c++/14/string:53:
/usr/include/c++/14/bits/range_access.h:116:37: note: 'std::end' declared here
  116 |   template<typename _Tp> const _Tp* end(const valarray<_Tp>&) noexcept;
      |                                     ^~~
Language: C

#include <stdio.h>
int main(){
  string s;
  cin >> s:
  if (s == "ABC")
    	cout << "ARC" <<end;
  	else
      	cout << "ABC" <<end;
}
  

Compiler output:
main.c: In function 'main':
main.c:3:3: error: unknown type name 'string'; did you mean 'stdin'?
    3 |   string s;
      |   ^~~~~~
      |   stdin
main.c:4:3: error: 'cin' undeclared (first use in this function)
    4 |   cin >> s:
      |   ^~~
main.c:4:3: note: each undeclared identifier is reported only once for each function it appears in
main.c:4:11: error: expected ';' before ':' token
    4 |   cin >> s:
      |           ^
      |           ;
main.c:7:9: error: 'else' without a previous 'if'
    7 |         else
      |         ^~~~
main.c:8:9: error: 'cout' undeclared (first use in this function)
    8 |         cout << "ABC" <<end;
      |         ^~~~
main.c:8:25: error: 'end' undeclared (first use in this function)
    8 |         cout << "ABC" <<end;
      |                         ^~~
Language: C

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

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

#include <stdio.h>
main()
{
	char S[4];
  	gets(S);
  	if (S == "ABC")
        	printf("ARC");
        else
        	printf("ABC");
        }
 }

Compiler output:
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main()
      | ^~~~
main.c: In function 'main':
main.c:5:9: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
    5 |         gets(S);
      |         ^~~~
      |         fgets
main.c: At top level:
main.c:11:2: error: expected identifier or '(' before '}' token
   11 |  }
      |  ^
Language: C++

#include<iostream>
#include<string>
using namespace std;
int main()
{
	char a;
	cin>>a;
	if(a[1]=='B')
		cout<<"ARC";
	else if(a[1]=='R')
		cout<<"ABC";

	return 0;
}




Compiler output:
a.cc: In function 'int main()':
a.cc:8:13: error: invalid types 'char[int]' for array subscript
    8 |         if(a[1]=='B')
      |             ^
a.cc:10:18: error: invalid types 'char[int]' for array subscript
   10 |         else if(a[1]=='R')
      |                  ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
	string k;
	cin >> k;
	if(k[1] == 'R') k[1] = 'B';
	else k[1] = 'R';
	cout << k;A
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:19: error: 'A' was not declared in this scope
    8 |         cout << k;A
      |                   ^
Language: C++

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




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

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

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

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

Compiler output:
main.c:8:1: error: expected '=', ',', ';', 'asm' or '__attribute__' at end of input
    8 | }g
      | ^
Language: C++

include <stdio.h>
int main(void){
	char a[3],b[3];
    scanf("%c",&a);
    if(a[1] == 'B'){
    	print("ARC");
    }else{
    	print("ABC");
    }
    return 0;
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <stdio.h>
      | ^~~~~~~
Language: C++

#include<iostream>
#include <cmath>
#include <iomanip>
using namespace std;
int main()
{
  char S,ans;
  cin >> S;
  if(S=="ABC")ans="ARC";
  else ans="ABC";
  cout << ans;
  }


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")ans="ARC";
      |      ~^~~~~~~
a.cc:9:19: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
    9 |   if(S=="ABC")ans="ARC";
      |                   ^~~~~
      |                   |
      |                   const char*
a.cc:10:12: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
   10 |   else ans="ABC";
      |            ^~~~~
      |            |
      |            const char*
Language: C++

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

int main(){
  char s[3];
  char ans;
  
  scanf("%s",s);
  
  if(s==ABC){
    printf("ARC");
  }
  else{
    printf("ABC");
  }
}

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

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

int main(){
  char s[3];
  char ans;
  
  scanf("%s",s);
  
  if(s==ABC){
    printf("ARC");
  }
  else{
    printf("ABC")
  }

}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: 'ABC' was not declared in this scope
   10 |   if(s==ABC){
      |         ^~~
a.cc:14:18: error: expected ';' before '}' token
   14 |     printf("ABC")
      |                  ^
      |                  ;
   15 |   }
      |   ~
Language: C++

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

int main(){
  char s;
  char ans;
  scanf("%s",&s)
  print("%s\n",&ans)
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:17: error: expected ';' before 'print'
    7 |   scanf("%s",&s)
      |                 ^
      |                 ;
    8 |   print("%s\n",&ans)
      |   ~~~~~
Language: Java

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


Compiler output:
Main.java:6: error: ';' expected
    String S="ABC"
                  ^
1 error
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:5:11: error: 'ABC' undeclared (first use in this function)
    5 |   if(s == ABC){
      |           ^~~
main.c:5:11: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
int main(void){
	char s[100];
  gets(s);
  if(gets(s) == "ABC"){
	puts(ARC);
  }else{
    printf(ABC);
  }
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:3: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
    4 |   gets(s);
      |   ^~~~
      |   fgets
main.c:5:14: warning: comparison between pointer and integer
    5 |   if(gets(s) == "ABC"){
      |              ^~
main.c:6:14: error: 'ARC' undeclared (first use in this function)
    6 |         puts(ARC);
      |              ^~~
main.c:6:14: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:12: error: 'ABC' undeclared (first use in this function)
    8 |     printf(ABC);
      |            ^~~
Language: C++

#include<stdio.h>
int main(void){
	char s[100];
  gets(s);
  if(gets(s) == "ABC"){
	puts(ARC);
  }else{
    printf(ABC);
  }
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'gets' was not declared in this scope; did you mean 'getw'?
    4 |   gets(s);
      |   ^~~~
      |   getw
a.cc:6:14: error: 'ARC' was not declared in this scope
    6 |         puts(ARC);
      |              ^~~
a.cc:8:12: error: 'ABC' was not declared in this scope
    8 |     printf(ABC);
      |            ^~~
Language: C++

#include<iostream>2using namespace std;3int main(){4string s;5cin>>s;6if(s=="ABC"){7cout<<"ARC"<<endl;8}else{9cout<<"ABC"<<endl;10}11}

Compiler output:
a.cc:1:19: warning: extra tokens at end of #include directive
    1 | #include<iostream>2using namespace std;3int main(){4string s;5cin>>s;6if(s=="ABC"){7cout<<"ARC"<<endl;8}else{9cout<<"ABC"<<endl;10}11}
      |                   ^~~~~~
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:4:3: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    4 |   scanf_s("%s",s);
      |   ^~~~~~~
      |   scanf
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:4:3: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    4 |   scanf_s("%s",s);
      |   ^~~~~~~
      |   scanf
main.c: At top level:
main.c:10:1: error: expected identifier or '(' before 'return'
   10 | return 0;
      | ^~~~~~
main.c:11:1: error: expected identifier or '(' before '}' token
   11 | }
      | ^
Language: C++

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

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

clude <stdio.h>
 
int main(void){
  	char c[3];
  	int i;
  	
    for(i=0;i<3;i++){
    	scanf("%c",&c[i]);
    }
	if(c[1] == 'R'){
    	printf("ABC\n");
    }else{
    	printf("ARC\n");
    }
}

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

#include <stdio.h>
 
int main(void){
  	char c[3];
  	int i;
  	
    for(i=0;i<3;i++){
    	scanf("%c",&c[i]);
    }
	if(c[1] == 'R'){
    	printf("ABC\n");
    }else{
    	printf("ARC\n");
    }

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

#included <stdio.h>

int main(void){
  	char c[3];
  	int i;
  	
    for(i=0;i<3;i++){
    	scanf("%c",&c[i]);
    }
	if(c[1] == 'R'){
    	printf("ABC\n");
    }else{
    	printf("ARC\n");
    }
  
  	return 0;
}

Compiler output:
main.c:1:2: error: invalid preprocessing directive #included; did you mean #include?
    1 | #included <stdio.h>
      |  ^~~~~~~~
      |  include
main.c: In function 'main':
main.c:8:9: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    8 |         scanf("%c",&c[i]);
      |         ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | #included <stdio.h>
main.c:8:9: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    8 |         scanf("%c",&c[i]);
      |         ^~~~~
main.c:8:9: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:11:9: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   11 |         printf("ABC\n");
      |         ^~~~~~
main.c:11:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:11:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:11:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:13:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   13 |         printf("ARC\n");
      |         ^~~~~~
main.c:13:9: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: Java

import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * User: ngupta
 * Date: 4/5/2020 AD
 * Time: 23:41
 */
public class _166A {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("ABC".equals(sc.next()) ? "ARC" : "ABC");
    }
}

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

#include <iostream>

using namespace std;

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

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

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

Compiler output:
main.c: In function 'main':
main.c:10:3: error: 'retunr' undeclared (first use in this function)
   10 |   retunr 0;
      |   ^~~~~~
main.c:10:3: note: each undeclared identifier is reported only once for each function it appears in
main.c:10:9: error: expected ';' before numeric constant
   10 |   retunr 0;
      |         ^~
      |         ;
Language: C++

#include<stdio.h>
#include<iostream>
#include<string>
 
using namespace std;
 
int main(void){
 
  string S;
  cin >> S ;
  if(S=="ABC")	continue;
  else S="ARC";
  cout << S <<endl;
  return 0;
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:17: error: continue statement not within a loop
   11 |   if(S=="ABC")  continue;
      |                 ^~~~~~~~
Language: C++

#include<stdio.h>
#include<iostream.h>
#include<string.h>
 
using namespace std;
 
int main(void){
 
  string S;
  S = cin >> S ;
  if(S=="ABC")	continue;
  else S="ARC";
  cout << S <<endl;
  return 0;
  
}

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

#stdio.h<iostream>
#stdio.h<string>

using namespace std;

int main(void){

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

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #stdio
    1 | #stdio.h<iostream>
      |  ^~~~~
a.cc:2:2: error: invalid preprocessing directive #stdio
    2 | #stdio.h<string>
      |  ^~~~~
a.cc: In function 'int main()':
a.cc:8:3: error: 'string' was not declared in this scope
    8 |   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 | #stdio.h<iostream>
a.cc:9:3: error: 'S' was not declared in this scope
    9 |   S = cin >> S ;
      |   ^
a.cc:9:7: error: 'cin' was not declared in this scope
    9 |   S = 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 | #stdio.h<iostream>
a.cc:10:17: error: continue statement not within a loop
   10 |   if(S=="ABC")  continue;
      |                 ^~~~~~~~
a.cc:12:3: error: 'cout' was not declared in this scope
   12 |   cout << S <<endl;
      |   ^~~~
a.cc:12:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:12:15: error: 'endl' was not declared in this scope
   12 |   cout << S <<endl;
      |               ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #stdio.h<iostream>
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:5:9: error: 'ARC' undeclared (first use in this function)
    5 |   if(a==ARC){
      |         ^~~
main.c:5:9: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include<iostream.h>
#include<string>

using namespace std;

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


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

import.java.util.*

public class Main {

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

Compiler output:
Main.java:1: error: <identifier> expected
import.java.util.*
      ^
Main.java:1: error: ';' expected
import.java.util.*
                  ^
2 errors
Language: C++

#include <iostream>
#include <string>

int main(int argc, char **argv)
{
  std::string s;
  std::cin >> s;
  
  std::cout << "A" << (s[1] == 'B')? "R": "B" << "C";
  return 0;
}

Compiler output:
a.cc: In function 'int main(int, char**)':
a.cc:9:47: error: invalid operands of types 'const char [2]' and 'const char [2]' to binary 'operator<<'
    9 |   std::cout << "A" << (s[1] == 'B')? "R": "B" << "C";
      |                                           ~~~ ^~ ~~~
      |                                           |      |
      |                                           |      const char [2]
      |                                           const char [2]
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
	string s;
	cin>>s;
	s[1]=s[1]=='B'? 'R': 'B';
	puts(s); 
	return 0; 
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:14: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'const char*'
    7 |         puts(s);
      |              ^
      |              |
      |              std::string {aka std::__cxx11::basic_string<char>}
In file included from /usr/include/c++/14/cstdio:42,
                 from /usr/include/c++/14/ext/string_conversions.h:45,
                 from /usr/include/c++/14/bits/basic_string.h:4154,
                 from /usr/include/c++/14/string:54,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52,
                 from a.cc:1:
/usr/include/stdio.h:714:30: note:   initializing argument 1 of 'int puts(const char*)'
  714 | extern int puts (const char *__s);
      |                  ~~~~~~~~~~~~^~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:30: error: expected ';' before 'return'
    9 |                 cout<<"ABC";s
      |                              ^
      |                              ;
   10 |         return 0;
      |         ~~~~~~
Language: C

#include <iostream>
#include <string>
 
int main() {
    std::string x;
    std::cin >> x;

    const std::string ret = (x == "ABC") ? "ARC" : "ABC";

    std::cout << x << std::endl;            
}


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

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

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inclue; did you mean #include?
    1 | #inclue<bits/stdc++.h>
      |  ^~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:4:3: error: 'string' was not declared in this scope
    4 |   string k;cin>> k;
      |   ^~~~~~
a.cc:1:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
  +++ |+#include <string>
    1 | #inclue<bits/stdc++.h>
a.cc:4:12: error: 'cin' was not declared in this scope
    4 |   string k;cin>> k;
      |            ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #inclue<bits/stdc++.h>
a.cc:4:18: error: 'k' was not declared in this scope
    4 |   string k;cin>> k;
      |                  ^
a.cc:6:16: error: 'cout' was not declared in this scope
    6 |   if(k=="ARC") cout <<"ABC";
      |                ^~~~
a.cc:6:16: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:7:21: error: 'cout' was not declared in this scope
    7 |   else if(k=="ABC") cout <<"ARC";
      |                     ^~~~
a.cc:7:21: 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 {
  	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;
      |          ^
a.cc:8:12: error: 'ABC' was not declared in this scope
    8 |   if (s == ABC) {
      |            ^~~
Language: Java

import java.lang.Math;
import java.util.Scanner;
 
class Main {
    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        String x = sc.next();
        char ni = x.charAt(1);

        if(ni == "R"){
            System.out.print("ABC");
        }else{
            System.out.print("ARC");
        }

        System.out.print(x);
    }
}

Compiler output:
Main.java:11: error: bad operand types for binary operator '=='
        if(ni == "R"){
              ^
  first type:  char
  second type: String
1 error
Language: Java

import java.lang.Math;
import java.util.Scanner;
 
class Main {
    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        int x = sc.next();
        char ni = x.charAt(1);

        if(ni == "R"){
            System.out.print("ABC");
        }else{
            System.out.print("ARC");
        }

        System.out.print(x);
    }
}

Compiler output:
Main.java:8: error: incompatible types: String cannot be converted to int
        int x = sc.next();
                       ^
Main.java:9: error: int cannot be dereferenced
        char ni = x.charAt(1);
                   ^
Main.java:11: error: bad operand types for binary operator '=='
        if(ni == "R"){
              ^
  first type:  char
  second type: String
3 errors
Language: Java

import java.lang.Math;
import java.util.Scanner;
 
class Main {
    public static void main(String[] args) {
        int inf = 1000000000;

        Scanner sc = new Scanner(System.in);
        int x = sc.next();
        char ni = x.charAt(1);

        if(ni = "R"){
            System.out.print("ABC");
        }else{
            System.out.print("ARC");
        }
        // grh[0] = daik(grh,0);

        System.out.print(x);
    }
}

Compiler output:
Main.java:9: error: incompatible types: String cannot be converted to int
        int x = sc.next();
                       ^
Main.java:10: error: int cannot be dereferenced
        char ni = x.charAt(1);
                   ^
Main.java:12: error: incompatible types: String cannot be converted to char
        if(ni = "R"){
                ^
Main.java:12: error: incompatible types: char cannot be converted to boolean
        if(ni = "R"){
              ^
4 errors
Language: Java

import java.util.Scanner;


public class PaizaTest {
  public static void main(String[] args) {
	  Scanner stdIn = new Scanner(System.in);
	  try {
		  String preContestName = stdIn.next();
		  if (!preContestName.equals("ABC") && !preContestName.equals("ARC")) return;
		  char[] postContestName = preContestName.toCharArray();
		  if (postContestName[1] == 'B') {
			  postContestName[1] = 'R';
		  } else if (postContestName[1] == 'R') {
			  postContestName[1] = 'B';
		  }
		  System.out.println(postContestName);
	  } catch (Exception e) {
		  e.printStackTrace();
	  } finally {
		  stdIn.close();
	  }
  }
}

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

import java.util.Scanner;

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

}


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

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

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

cout << (S == "ABC")? "ARC" : "ABC" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:37: error: invalid operands of types 'const char [4]' and '<unresolved overloaded function type>' to binary 'operator<<'
    8 | cout << (S == "ABC")? "ARC" : "ABC" << endl;
      |                               ~~~~~~^~~~~~~
Language: Java

import java.util.*;

class main{
	public static void main(String args[]){
      Scanner scn=new Scanner(System.in);
      String s=scn.nextString();
      if(s.equals("abc")){
        System.out.plintln("arc");
      }else{
        System.out.plintln("abc");
      }
    }
}

Compiler output:
Main.java:6: error: cannot find symbol
      String s=scn.nextString();
                  ^
  symbol:   method nextString()
  location: variable scn of type Scanner
Main.java:8: error: cannot find symbol
        System.out.plintln("arc");
                  ^
  symbol:   method plintln(String)
  location: variable out of type PrintStream
Main.java:10: error: cannot find symbol
        System.out.plintln("abc");
                  ^
  symbol:   method plintln(String)
  location: variable out of type PrintStream
3 errors
Language: C++

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

typedef long long ll;
typedef unsigned long long ull;
typedef long double ld;
#define endl '\n';
#define FASTER ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL);
const ll POSITIVE_INFINITY = 9223372036854775807;
const ll NEGATIVE_INFINITY = -9223372036854775807;
const ll MOD = 1000000007;
const ld PI = acos(-1.0);

template <typename T> inline T bigMod(T A,T B,T M = MOD){A %= M;T ret = 1;while(B){if(B & 1) ret = (ret * A) % M;A = (A * A) % M;B = B >> 1;}return ret;}
template <typename T> inline T invMod (T A,T M = MOD){return bigMod(A,M-2,M);}

const int N = 200005;

int main(){
  FASTER;
  mp["ABC"] = "ARC";
  mp["ARC"] = "ABC";
  string s;
  cin >> s;
  cout << s << "\n";  
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:21:3: error: 'mp' was not declared in this scope
   21 |   mp["ABC"] = "ARC";
      |   ^~
Language: C++

    #include<iostream>
    #include<math.h>
    using namespace std;
    int main()
    {
      char s[3];
      cin>>s;
      if(!strcmp(s,"ABC"))
        cout<<"ARC";
      else
        cout<<"ABC";
      return 0;

    }


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

    #include<iostream>
    #include<math.h>
    using namespace std;
    int main()
    {
      char s[3];
      cin>>s;
      if(strcmp(s,"ABC"))
        cout<<"ARC";
      else
        cout<<"ABC";
      return 0;

    }


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

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

int main() {
    ios::sync_with_stdio(0);
  cin.tie(0);
  
  
  string S;
  cin >> S;
   if (s[1] == 'B') cout << "ARC":
  else cout << "ABC";
}


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

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

int main() {
  string S;
  cin >> S;
   if (s[1] == 'B') cout << "ARC":
  else cout << "ABC";
}


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

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

int main() {
  
  cout << "ARC" << endl
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:24: error: expected ';' before '}' token
    6 |   cout << "ARC" << endl
      |                        ^
      |                        ;
    7 | }
      | ~
Language: C

#include <bits/stdc++.h>
#define rep(i,n) for(int i = 0; i < (int)(n); i++)
#define all(x) (x).begin(),(x),end()
typedef long long ll;
using namespace std;
int main(){
    string S;
    cin >> S;
    cout << ((S == "ARC") ? "ABC" : "ARC") << 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>
# include <string>
# include <math.h>
using namespace std;

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

	
	
	

}


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

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

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

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

Compiler output:
main.c: In function 'main':
main.c:9:14: error: 'B' undeclared (first use in this function)
    9 |   if(S[1] == B ){
      |              ^
main.c:9:14: note: each undeclared identifier is reported only once for each function it appears in
main.c:14:3: error: expected declaration or statement at end of input
   14 |   return 0;
      |   ^~~~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:9:14: error: 'B' undeclared (first use in this function)
    9 |   if(S[1] == B ){
      |              ^
main.c:9:14: note: each undeclared identifier is reported only once for each function it appears in
main.c:14:3: error: expected declaration or statement at end of input
   14 |   return 0;
      |   ^~~~~~
Language: C

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

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

#include <stdio.h>

int main(void){  
  int 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:9:10: error: 'ABC' undeclared (first use in this function)
    9 |   if(S ==ABC ){
      |          ^~~
main.c:9:10: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include <string>
#include <iostream>
#include <stack>
#include <queue> // priority_queue も入ってる
#include <set>   // 要素数は size() で取得 multisetもある
#include <map>
#include <array> // sizeはコンパイル時定数で固定
#include <vector>
#include <numeric>   // accumulate, gcd
#include <algorithm> // count_ifに必要
#include <iomanip>   // cout << setprecision(15) << x で小数の出力精度を指定
#include <tuple>
#include <utility> //pair

using namespace std;
// 問題が起こるまでintは使用禁止2020-04-13
using ll = long long;

// template <class InputIterator, class T>
// bool contains_itr(InputIterator iterator, const T &value)
// {
//     if (find(iterator.begin(), iterator.end(), value) == iterator.end())
//         return false;
//     else
//         return true;
// }

// template <class T>
// bool contains_set(set<T> st, const T &value)
// {
//     if (st.find(value) == st.end())
//     {
//         return false;
//     }
//     else
//     {
//         return true;
//     }
// }

int main()
{
    set<string> xs;
    string s;
    cin >> s;
    xs.insert(s);
    if (xs.contains("ABC"))
    {
        cout << "ARC";
    }
    else
    {
        cout << "ABC";
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:47:12: error: 'class std::set<std::__cxx11::basic_string<char> >' has no member named 'contains'
   47 |     if (xs.contains("ABC"))
      |            ^~~~~~~~
Language: C

#include <stdio.h>

int main(void){
   
  int S, ABC, ARC;
  
  scanf("%d", &S);
  
  switch(S){
    case ABC:
      printf("ARC\n");
      break;
    default:
      printf("ABC\n");
      break;
  }
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:5: error: case label does not reduce to an integer constant
   10 |     case ABC:
      |     ^~~~
Language: C++


int main()
{
    set<string> xs;
    string s;
    cin >> s;
    xs.insert(s);
    if (xs.contains("ABC"))
    {
        cout << "ARC";
    }
    else
    {
        cout << "ABC";
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:5: error: 'set' was not declared in this scope
    4 |     set<string> xs;
      |     ^~~
a.cc:4:9: error: 'string' was not declared in this scope
    4 |     set<string> xs;
      |         ^~~~~~
a.cc:4:17: error: 'xs' was not declared in this scope
    4 |     set<string> xs;
      |                 ^~
a.cc:5:11: error: expected ';' before 's'
    5 |     string s;
      |           ^~
      |           ;
a.cc:6:5: error: 'cin' was not declared in this scope
    6 |     cin >> s;
      |     ^~~
a.cc:6:12: error: 's' was not declared in this scope
    6 |     cin >> s;
      |            ^
a.cc:10:9: error: 'cout' was not declared in this scope
   10 |         cout << "ARC";
      |         ^~~~
a.cc:14:9: error: 'cout' was not declared in this scope
   14 |         cout << "ABC";
      |         ^~~~
Language: C

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

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

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

Compiler output:
main.c: In function 'main':
main.c:8:8: error: 'ABC' undeclared (first use in this function)
    8 |   if(s=ABC){
      |        ^~~
main.c:8:8: note: each undeclared identifier is reported only once for each function it appears in
main.c: At top level:
main.c:17:5: error: redefinition of 'main'
   17 | int main(void){
      |     ^~~~
main.c:2:5: note: previous definition of 'main' with type 'int(void)'
    2 | int main(void){
      |     ^~~~
main.c: In function 'main':
main.c:23:8: error: 'ABC' undeclared (first use in this function)
   23 |   if(s=ABC){
      |        ^~~
Language: C

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

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'string' was not declared in this scope
    6 |   string S;
      |   ^~~~~~
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:15: error: 'S' was not declared in this scope
    8 |   std::cin >> S;
      |               ^
Language: C++

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

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

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

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

#include <iostream>
#include <string>

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

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

#include<iostream>
#include<cstdlib>
#include<cstdio>
#include<string>
#include<iomanip>
#include<algorithm>
#include<vector>
#include<math.h>
using namespace std;



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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:14:5: error: 'strin' was not declared in this scope; did you mean 'stdin'?
   14 |     strin s;
      |     ^~~~~
      |     stdin
a.cc:15:12: error: 's' was not declared in this scope
   15 |     cin >> s;
      |            ^