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

include<stdio.h>

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




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

include<stdio.h>

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


Compiler output:
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include<stdio.h>
      |        ^
main.c:9:1: error: expected identifier or '(' before 'return'
    9 | return 0;
      | ^~~~~~
main.c:10:1: error: expected identifier or '(' before '}' token
   10 | }
      | ^
Language: C++

#include<bits/stdc++.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";
    return 0;
}s

Compiler output:
a.cc:16:2: error: 's' does not name a type
   16 | }s
      |  ^
Language: C++


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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'string' was not declared in this scope
    4 |   string s;
      |   ^~~~~~
a.cc:5:3: error: 'cin' was not declared in this scope
    5 |   cin >> s;
      |   ^~~
a.cc:5:10: error: 's' was not declared in this scope
    5 |   cin >> s;
      |          ^
a.cc:8:5: error: 'cout' was not declared in this scope
    8 |     cout << "ARC" << endl;
      |     ^~~~
a.cc:8:22: error: 'endl' was not declared in this scope
    8 |     cout << "ARC" << endl;
      |                      ^~~~
a.cc:10:5: error: 'cout' was not declared in this scope
   10 |     cout << "ABC" << endl;
      |     ^~~~
a.cc:10:22: error: 'endl' was not declared in this scope
   10 |     cout << "ABC" << endl;
      |                      ^~~~
Language: C++

#include <bits/stdc++.h>


using namesapce std;

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

Compiler output:
a.cc:4:7: error: expected nested-name-specifier before 'namesapce'
    4 | using namesapce std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:8:5: error: 'ios' has not been declared
    8 |     ios::sync_with_stdio(0);
      |     ^~~
a.cc:9:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    9 |     cin.tie(0);
      |     ^~~
      |     std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:10:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |     cout.tie(0);
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:12:5: error: 'string' was not declared in this scope
   12 |     string s;
      |     ^~~~~~
a.cc:12:5: note: suggested alternatives:
In file included from /usr/include/c++/14/string:41,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:13:12: error: 's' was not declared in this scope
   13 |     cin >> s;
      |            ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:8: error: expected initializer before '>>' token
    7 |     cin>>s;
      |        ^~
a.cc:8:12: error: 's' was not declared in this scope
    8 |         if(s=="ARC")
      |            ^
Language: Java

public static void main(args[]){
 string S;
  if(S.equals("ABC")){
    System.out.println("ARC");
  }else{
    System.out.println("ABC");
  }
}


Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
public static void main(args[]){
              ^
  (use --enable-preview to enable unnamed classes)
Main.java:1: error: <identifier> expected
public static void main(args[]){
                              ^
2 errors
Language: Java

public static int main(args[]){
 string S;
  if(S.equals("ABC")){
    System.out.println("ARC");
  }else{
    System.out.println("ABC");
  }
}

Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
public static int main(args[]){
              ^
  (use --enable-preview to enable unnamed classes)
Main.java:1: error: <identifier> expected
public static int main(args[]){
                             ^
2 errors
Language: Java

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

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

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

Compiler output:
main.c: In function 'main':
main.c:7:13: error: passing argument 1 of 'strcmp' from incompatible pointer type [-Wincompatible-pointer-types]
    7 |   if(strcmp(a,"ARC") == 0){
      |             ^
      |             |
      |             char **
In file included from main.c:2:
/usr/include/string.h:156:32: note: expected 'const char *' but argument is of type 'char **'
  156 | extern int strcmp (const char *__s1, const char *__s2)
      |                    ~~~~~~~~~~~~^~~~
main.c:12:11: error: expected ';' before '}' token
   12 |   return 0
      |           ^
      |           ;
   13 | }
      | ~
Language: C

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

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


Compiler output:
main.c: In function 'main':
main.c:7:13: error: passing argument 1 of 'strcmp' from incompatible pointer type [-Wincompatible-pointer-types]
    7 |   if(strcmp(a,"ARC") == 0){
      |             ^
      |             |
      |             int *
In file included from main.c:2:
/usr/include/string.h:156:32: note: expected 'const char *' but argument is of type 'int *'
  156 | extern int strcmp (const char *__s1, const char *__s2)
      |                    ~~~~~~~~~~~~^~~~
main.c:12:11: error: expected ';' before '}' token
   12 |   return 0
      |           ^
      |           ;
   13 | }
      | ~
Language: C++

#include <bits/stdc++.h>

using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:20: error: 'print' was not declared in this scope; did you mean 'rint'?
    8 |     if(s == "ABC") print("ARC");
      |                    ^~~~~
      |                    rint
a.cc:9:20: error: 'print' was not declared in this scope; did you mean 'rint'?
    9 |     if(s == "ARC") print("ABC");
      |                    ^~~~~
      |                    rint
Language: Java

import java.util.Scanner;

public class Main{
  public static void main(String arg[]){
    Scanner scan = new Scanner(System.io);
    
    String abc = scan.nextLine();
    
    if(abc == "ABC"){
      System.out.println("ARC");
    }else{
      System.out.println("ABC");
    }
  }
}

Compiler output:
Main.java:5: error: cannot find symbol
    Scanner scan = new Scanner(System.io);
                                     ^
  symbol:   variable io
  location: class System
1 error
Language: Java

import java.util.Scanner;

public class Main{
  public static void main(String arg[]){
    Scanner scan = new Scanner();
    
    String abc = scan.nextLine();
    
    if(abc == "ABC"){
      System.out.println("ARC");
    }else{
      System.out.println("ABC");
    }
  }
}

Compiler output:
Main.java:5: error: no suitable constructor found for Scanner(no arguments)
    Scanner scan = new Scanner();
                   ^
    constructor Scanner.Scanner(Readable,Pattern) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(Readable) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(InputStream) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(InputStream,String) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(InputStream,Charset) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(File) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(File,String) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(File,Charset) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(File,CharsetDecoder) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(Path) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(Path,String) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(Path,Charset) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(String) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(ReadableByteChannel) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(ReadableByteChannel,String) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(ReadableByteChannel,Charset) is not applicable
      (actual and formal argument lists differ in length)
1 error
Language: Java

import java.util.Scanner;

public class Main{
  public static void main(String args()){
    Scanner scan = new Scanner();
    
    String abc = scan.nextLine();
    
    if(abc == "ABC"){
      System.out.println("ARC");
    }else{
      System.out.println("ARC");
    }
  }
}

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

import java.util.Scanner;

public class Main {

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

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

Compiler output:
Main.java:14: error: reached end of file while parsing
	}
	 ^
1 error
Language: C++

#include <bits/stdc++.h>
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:7:11: error: 'ABC' was not declared in this scope
    7 |   if (A = ABC) cout << "ARC";
      |           ^~~
Language: C++

#include <bits/stdc++.h>
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:7:12: error: 'ABC' was not declared in this scope
    7 |   if (A == ABC) cout << "ARC";
      |            ^~~
Language: Java

import java.util.Scanner;

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

        Stiring str =sc.next();

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

Compiler output:
Main.java:7: error: cannot find symbol
        Stiring str =sc.next();
        ^
  symbol:   class Stiring
  location: class Main
1 error
Language: C++

#include <iostream>
#include <string>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'string' was not declared in this scope
    5 |   string str;
      |   ^~~~~~
a.cc:5: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:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin>>str;
      |   ^~~
      |   std::cin
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:6:8: error: 'str' was not declared in this scope; did you mean 'std'?
    6 |   cin>>str;
      |        ^~~
      |        std
a.cc:9:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |     cout<<"ARC"<<endl;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:9:18: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |     cout<<"ARC"<<endl;
      |                  ^~~~
      |                  std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:11:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |     cout<<"ABC"<<endl;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:11:18: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   11 |     cout<<"ABC"<<endl;
      |                  ^~~~
      |                  std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include "pch.h"
#include <iostream>
#include <cstring>
using namespace std;

int main()
{
	char today[10];
	char next[10];

	cin >> today;

	if (strcmp(today, "ABC") == 0) {
		cout << "ARC";
	}else {
		cout << "ABC";
	}

}


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

#include <bits/stdc++.h>

using namespace std;

int main() {
  string s;
  cin >> s;
  string result = (s == "ARC") ? "ABC" : "ARC";
  cout << result << "\n";
}


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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:2:3: error: 'strign' was not declared in this scope
    2 |   strign s;
      |   ^~~~~~
a.cc:3:3: error: 'cin' was not declared in this scope
    3 |   cin >> s;
      |   ^~~
a.cc:3:10: error: 's' was not declared in this scope
    3 |   cin >> s;
      |          ^
a.cc:4:19: error: 'cout' was not declared in this scope
    4 |   if (s == "ABC") cout << "ARC";
      |                   ^~~~
a.cc:5:9: error: 'cout' was not declared in this scope
    5 |   else  cout << "ABC";
      |         ^~~~
Language: C++

#include <iostream> // cout, endl, cin
#include <string> // string, to_string, stoi
#include <vector> // vector
#include <algorithm> // min, max, swap, sort, reverse, lower_bound, upper_bound
#include <utility> // pair, make_pair
#include <tuple> // tuple, make_tuple
#include <cstdint> // int64_t, int*_t
#include <cstdio> // printf
#include <map> // map
#include <queue> // queue, priority_queue
#include <set> // set
#include <stack> // stack
#include <deque> // deque
#include <unordered_map> // unordered_map
#include <unordered_set> // unordered_set
#include <bitset> // bitset
#include <cctype> // isupper, islower, isdigit, toupper, tolower
using namespace std;
#define int long long

signed int main() {
		int N;
		cin >> N;
		int ans = 0;

		cout << ans << endl;
		return 0;
}	


Compiler output:
cc1plus: error: '::main' must return 'int'
Language: C++

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


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

#include <iostream>
#include <string>
 
 
int main(int argc, char const* argv[])
{
 std::string a;
    cin >> a;
   
 if(a=="ARC"){
    cout << "ABC"  << endl;
 }else if(a=="ARC"){
    cout << "ARC"  << endl;
 }
        return 0;
}

Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:8:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    8 |     cin >> a;
      |     ^~~
      |     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:11:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |     cout << "ABC"  << endl;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:11:23: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   11 |     cout << "ABC"  << endl;
      |                       ^~~~
      |                       std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:13:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   13 |     cout << "ARC"  << endl;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:13:23: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   13 |     cout << "ARC"  << endl;
      |                       ^~~~
      |                       std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include <iostream>
#include <string>


int main(int argc, char const* argv[])
{
 string a;
    cin >> a;
   
 if(a=="ARC"){
    cout << "ABC"  << endl;
 }else if(a=="ARC"){
    cout << "ARC"  << endl;
 }
        return 0;
}

Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:7:2: error: 'string' was not declared in this scope
    7 |  string a;
      |  ^~~~~~
a.cc:7:2: 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:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    8 |     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:8:12: error: 'a' was not declared in this scope
    8 |     cin >> a;
      |            ^
a.cc:11:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |     cout << "ABC"  << endl;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:11:23: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   11 |     cout << "ABC"  << endl;
      |                       ^~~~
      |                       std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:13:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   13 |     cout << "ARC"  << endl;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:13:23: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   13 |     cout << "ARC"  << endl;
      |                       ^~~~
      |                       std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: Java

import java.util.Scanner;

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

Compiler output:
Main.java:5: error: ';' expected
    Scanner sc = new Scanner(System.in));
                                       ^
Main.java:8: error: ')' expected
    if(input.equals("ABC"){
                          ^
2 errors
Language: Java

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

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

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

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

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

Compiler output:
Main.java:6: error: ')' expected
    if(input.equals("ABC"){
                          ^
Main.java:9: error: ';' expected
      System.out.println("ABC")
                               ^
2 errors
Language: Java

public static void main(String[] args) {
  	public static void return_name(String name){
    	switch(name){
          case ABC:
            System.out.println("ARC");
          case ARC:
            System.out.println("ABC");
    	}
    Scanner scanner = new Scanner(System.in);
  	String con = scanner.nextline();
  	return_name(con)
}

Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
public static void main(String[] args) {
              ^
  (use --enable-preview to enable unnamed classes)
Main.java:2: error: illegal start of expression
  	public static void return_name(String name){
  	^
Main.java:11: error: ';' expected
  	return_name(con)
  	                ^
3 errors
Language: C++

#include<iostream>
using namespace std;
int main{
  string s; cin >>s;
  cout << (s[0]=='B'?"ARC":"ABC");
}

Compiler output:
a.cc:3:5: error: cannot declare '::main' to be a global variable
    3 | int main{
      |     ^~~~
a.cc:4:10: error: expected primary-expression before 's'
    4 |   string s; cin >>s;
      |          ^
a.cc:4:10: error: expected '}' before 's'
a.cc:3:9: note: to match this '{'
    3 | int main{
      |         ^
a.cc:4:13: error: 'cin' does not name a type
    4 |   string s; cin >>s;
      |             ^~~
a.cc:5:3: error: 'cout' does not name a type
    5 |   cout << (s[0]=='B'?"ARC":"ABC");
      |   ^~~~
a.cc:6:1: error: expected declaration before '}' token
    6 | }
      | ^
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:7:9: error: 'ABC' was not declared in this scope
    7 |   if(S==ABC){
      |         ^~~
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:7:9: error: 'ABC' was not declared in this scope
    7 |   if(S==ABC){
      |         ^~~
a.cc:8:11: error: 'ARC' was not declared in this scope
    8 |     cout<<ARC<<endl;
      |           ^~~
Language: C++

string s;
cin >> s;
cout << (s=="ABC"?"ARC":"ABC") << endl;

Compiler output:
a.cc:1:1: error: 'string' does not name a type
    1 | string s;
      | ^~~~~~
a.cc:2:1: error: 'cin' does not name a type
    2 | cin >> s;
      | ^~~
a.cc:3:1: error: 'cout' does not name a type
    3 | cout << (s=="ABC"?"ARC":"ABC") << endl;
      | ^~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:18: error: expected ';' before '}' token
   10 |     cout << "ABC"
      |                  ^
      |                  ;
   11 |   }
      |   ~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define reps(i, n, s) for (int i = s; i < (int)(n); i++)
#define twopo(k)  1 << k

typedef vector<int> vec1;
typedef vector<vector<int>> vec2;
typedef vector<vector<char>> cvec2;
typedef pair<int, int> pairi;

vec1 vecplus(const vec1 &first, const vec1 &second){
  int length = first.size();
  vec1 answer(length);
  rep(i,length){
    answer.at(i) = first.at(i) + second.at(i);
  }
  return answer;
}

vec2 listmake(const int &row, const int &col){
  vec2 list;
  rep(i,row){
    vec1 v(col);
    rep(j,col){
      cin >> v.at(j);
    }
    list.push_back(v);
  }
  return list;
}

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:39:26: error: expected ';' before ':' token
   39 |     cout << "ABC" << endl:
      |                          ^
      |                          ;
Language: C++

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

const int INF = 1e9;

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

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

#incude<iostream>

using namespce std;

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


Compiler output:
a.cc:1:2: error: invalid preprocessing directive #incude; did you mean #include?
    1 | #incude<iostream>
      |  ^~~~~~
      |  include
a.cc:3:7: error: expected nested-name-specifier before 'namespce'
    3 | using namespce std;
      |       ^~~~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'string' was not declared in this scope
    6 |   string a, b = "ARC";
      |   ^~~~~~
a.cc:7:3: error: 'cin' was not declared in this scope
    7 |   cin >> a;
      |   ^~~
a.cc:7:10: error: 'a' was not declared in this scope
    7 |   cin >> a;
      |          ^
a.cc:8:11: error: 'b' was not declared in this scope
    8 |   if(a == b) cout << "ABC" << endl;
      |           ^
a.cc:8:14: error: 'cout' was not declared in this scope
    8 |   if(a == b) cout << "ABC" << endl;
      |              ^~~~
a.cc:8:31: error: 'endl' was not declared in this scope
    8 |   if(a == b) cout << "ABC" << endl;
      |                               ^~~~
a.cc:9:8: error: 'cout' was not declared in this scope
    9 |   else cout << b << endl;
      |        ^~~~
a.cc:9:21: error: 'endl' was not declared in this scope
    9 |   else cout << b << endl;
      |                     ^~~~
Language: C++

#incude<iostrea>

using namespce std;

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

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #incude; did you mean #include?
    1 | #incude<iostrea>
      |  ^~~~~~
      |  include
a.cc:3:7: error: expected nested-name-specifier before 'namespce'
    3 | using namespce std;
      |       ^~~~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'string' was not declared in this scope
    6 |   string a, b = "ARC";
      |   ^~~~~~
a.cc:7:3: error: 'cin' was not declared in this scope
    7 |   cin >> a;
      |   ^~~
a.cc:7:10: error: 'a' was not declared in this scope
    7 |   cin >> a;
      |          ^
a.cc:8:11: error: 'b' was not declared in this scope
    8 |   if(a == b) cout << "ABC" << endl;
      |           ^
a.cc:8:14: error: 'cout' was not declared in this scope
    8 |   if(a == b) cout << "ABC" << endl;
      |              ^~~~
a.cc:8:31: error: 'endl' was not declared in this scope
    8 |   if(a == b) cout << "ABC" << endl;
      |                               ^~~~
a.cc:9:8: error: 'cout' was not declared in this scope
    9 |   else cout << b << endl;
      |        ^~~~
a.cc:9:21: error: 'endl' was not declared in this scope
    9 |   else cout << b << endl;
      |                     ^~~~
Language: C

#include <iostream>
#include <string>

using namespace std;

int main()
{
  string s;
  cin >> s;
  string ans = "ABC";
  if(s[1] == 'B')
    ans = "ARC";

  cout << ans << 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 <bits/stdc++.h>
using namespace std;
int main(){
    char s[5];
    scanf("%s\n",s);
    if(s[1] == "B") printf("ARC");
    else if(s[1] == "R") printf("ABC");
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    6 |     if(s[1] == "B") printf("ARC");
      |        ~~~~~^~~~~~
a.cc:7:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |     else if(s[1] == "R") printf("ABC");
      |             ~~~~~^~~~~~
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:3:1: error: extended character   is not valid in an identifier
    3 |  
      | ^
a.cc:3:1: error: '\U000000a0' does not name a type
    3 |  
      | ^
Language: Java

//164B(Atcoder)
import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int N = sc.nextInt();
      	int K = sc.nextInt();
      	int[] d=new int[K];
      	int[][] A=new int[K][K];
      	for(int i=0;i<K;i++){
          int d[i]=sc.nextInt();
        for(int j=0;j<K;j++){
          int A[i][j]=sc.nextInt();
        }}
		
      	int count = 0;
        for (int i = 0; i < N; i++) {
          for (int j = 0; j < N; i++) {
            if (a[i][j] == 0) {
                count++;
            }
        }
 
        // 出力
        System.out.println(count);
    }
}

Compiler output:
Main.java:12: error: ']' expected
          int d[i]=sc.nextInt();
                ^
Main.java:12: error: ';' expected
          int d[i]=sc.nextInt();
                 ^
Main.java:14: error: ']' expected
          int A[i][j]=sc.nextInt();
                ^
Main.java:14: error: ';' expected
          int A[i][j]=sc.nextInt();
                 ^
Main.java:14: error: not a statement
          int A[i][j]=sc.nextInt();
                   ^
Main.java:14: error: ';' expected
          int A[i][j]=sc.nextInt();
                    ^
Main.java:28: error: reached end of file while parsing
}
 ^
7 errors
Language: Java

package aProblemsOfABC;
import java.util.Scanner;

public class A166 {

	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);
		String str=scan.nextLine();

		if(str.equals("ABC")) {

			//S=ABC then the output is ARC
			System.out.println("ARC");

		}else if(str.equals("ARC")) {

			//S=ARC then the output is ABC
			System.out.println("ABC");

		}else{

			System.out.println("Incorrect input");

		}

		scan.close();

	}

}


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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:12: error: no context to resolve type of 'std::endl'
    6 |   cin >> S,endl;
      |            ^~~~
Language: C

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

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


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

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

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


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

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

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

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

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

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

  }

}


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

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

int main() {
  int S ;
  cin >> "S" >> endl;
  if( S == B ){
  cout << "A" << "R" << "C" << endl; 
  }
  if else(S == R ){
  cout << "A" << "B" << "C" << endl;
  }
  else {
  cout << "error" << endl;
  }
  }

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

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

int main() {
  int S ;
  cin >> S >> endl;
  if( S == B ){
  cout << A << R << C << endl; 
  }
  if else(S == R ){
  cout << A << B << C << endl;
  }
  else {
  cout << "error" << endl;
  }
  }

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

#include <iostream>
#include <cmath>
#include <vector>
#include <map>
#include <iomanip>
#include <algorithm>
#include <sstream>
#include <string>
#include <math.h>
#include <set>
using namespace std;
typedef long long ll;
 
int main() {
	ios::sync_with_stdio(false);
	string s;
	cin >> s;
	if (s=="ABC") cout << "ARC";
	else cout << "ABC";
}

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

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

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

#include<iostream>
using namespace std;

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

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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:11:30: error: expected ';' before '}' token
   11 |                 cout << "ABC"
      |                              ^
      |                              ;
   12 |         }
      |         ~
Language: C++

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

string S;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:15:24: error: expected ';' before ':' token
   15 |   cout << "ABC" << endl:
      |                        ^
      |                        ;
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:12:11: error: expected ';' before ':' token
   12 |   return 0:
      |           ^
      |           ;
Language: C

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


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

＃include <iostream>

using namespace std;

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

Compiler output:
a.cc:1:1: error: '\U0000ff03include' does not name a type
    1 | ＃include <iostream>
      | ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'string' was not declared in this scope
    6 |   string a;
      |   ^~~~~~
a.cc:7:3: error: 'cin' was not declared in this scope
    7 |   cin >> a;
      |   ^~~
a.cc:7:10: error: 'a' was not declared in this scope
    7 |   cin >> a;
      |          ^
a.cc:9:5: error: 'cout' was not declared in this scope
    9 |     cout << "ABC" << endl;
      |     ^~~~
a.cc:9:22: error: 'endl' was not declared in this scope
    9 |     cout << "ABC" << endl;
      |                      ^~~~
a.cc:12:5: error: 'cout' was not declared in this scope
   12 |     cout << "ARC" << endl;
      |     ^~~~
a.cc:12:22: error: 'endl' was not declared in this scope
   12 |     cout << "ARC" << endl;
      |                      ^~~~
Language: C

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:8:11: warning: missing terminating " character
    8 |   if(S == "ABC){
      |           ^
main.c:8:11: error: missing terminating " character
    8 |   if(S == "ABC){
      |           ^~~~~~
main.c:9:21: error: expected ')' before ';' token
    9 |      printf("ARC\n");
      |                     ^
      |                     )
main.c:8:5: note: to match this '('
    8 |   if(S == "ABC){
      |     ^
main.c:10:6: error: expected expression before '}' token
   10 |      }else if(S == "ARC"){
      |      ^
main.c: At top level:
main.c:10:7: error: expected identifier or '(' before 'else'
   10 |      }else if(S == "ARC"){
      |       ^~~~
main.c:13:9: error: expected identifier or '(' before 'return'
   13 |         return (0);
      |         ^~~~~~
main.c:14:1: error: expected identifier or '(' before '}' token
   14 | }
      | ^
Language: C++

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

#define rep(i, n) for (int i = 0; i < (n); i++)
#define contains(v, t) (find(v.begin(), v.end(), t) != v.end())
#define MOD 1000000007
typedef long long ll;
typedef unsigned long long ull;

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

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

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

int main() {
  int N, K; cin >> N >> K;
  vector<int> d(K);
  vector<bool> hvany(N,false);
  int a;
  for (int i=0; i<K; i++) {
    cin >> d.at(i);
    for (int j=0; j<d.at(i); j++) {
      cin >> a;
      hvany.at(a-1) = true;
    }
  }
  int sum=0;
  for (int i=0; i<N; i++) {
    if ( hvany.at(i)  == ) false sum++ ;
  }
  cout << sum << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:26: error: expected primary-expression before ')' token
   18 |     if ( hvany.at(i)  == ) false sum++ ;
      |                          ^
a.cc:18:33: error: expected ';' before 'sum'
   18 |     if ( hvany.at(i)  == ) false sum++ ;
      |                                 ^~~~
      |                                 ;
Language: Java

import java.util.Scanner;

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


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

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

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

#include <bits/stdc++.h>
using namespace std;
#define all(x) (x).begin(),(x).end()
using ll=long long;

int main(){
    int s;
    cin>>s;
    cout<<(s[1]=='B' ? "ARC" : "ABC");


    return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:9:13: error: invalid types 'int[int]' for array subscript
    9 |     cout<<(s[1]=='B' ? "ARC" : "ABC");
      |             ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define all(x) (x).begin(),(x).end()
using ll=long long;

int main(){
    int s;
    cin>>s;
    cout<<(s[1]=="B" ? "ARC" : "ABC");


    return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:9:13: error: invalid types 'int[int]' for array subscript
    9 |     cout<<(s[1]=="B" ? "ARC" : "ABC");
      |             ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:8:13: error: 'B' undeclared (first use in this function)
    8 |   if(s[1] = B)
      |             ^
main.c:8:13: note: each undeclared identifier is reported only once for each function it appears in
main.c:11:12: warning: missing terminating " character
   11 |     printf("ARC);
      |            ^
main.c:11:12: error: missing terminating " character
   11 |     printf("ARC);
      |            ^~~~~~
main.c:13:3: error: expected expression before 'return'
   13 |   return 0;
      |   ^~~~~~
main.c:13:12: error: expected ';' before '}' token
   13 |   return 0;
      |            ^
      |            ;
   14 |  }
      |  ~
Language: C++

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

int main(){
  string s;
  cin >> s;
  if(s.find(B)==2)cout << "ARC" <<endl;
  else cout << "ARC" << endl;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:13: error: 'B' was not declared in this scope
    7 |   if(s.find(B)==2)cout << "ARC" <<endl;
      |             ^