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

#include <iostream>
#include <string>

using namespace std;

int n;
string s[100005];
int solutions[100005];

void fill_strategy(int start) {
	int d[3];
	d[0] = d[1] = d[2] = 0;
	for (int i = start; i < n; i++) {
		int first = s[i][0] - int('A');
		int second = s[i][1] - int('A');
		if (d[first] == 0 && d[second] == 0) {
			solutions[i] = first;
			d[first]++; d[second]--;			
		} else if (d[first] == -1 && d[second] == 1) {
			solutions[i] = first;
			d[first]++; d[second]--;
		} else if (d[first] == 1 && d[second] == -1) {
			solutions[i] = second;
			d[first]--; d[second]++;
		} else if (d[first] == 0 && d[second] == -1) {
			solutions[i] = second;
			d[first]--; d[second]++;
		} else if (d[first] == 0 && d[second] == 1) {
			solutions[i] = first;
			d[first]++; d[second]--;
		} else if (d[first] == -1 && d[second] == 0) {
      solutions[i] = first;
      d[first]++; d[second]--;
    } else if (d[first] == 1 && d[second] == 0) {
      solutions[i] = second;
      d[first]--; d[second]++;
    }
	}
}

int main() {
	cin >> n;
	int x[3]
	cin >> x[0] >> x[1] >> x[2];
	for (int i = 0; i < n; i++) {
		cin >> s[i];
	}

	for (int i = 0; i < n; i++) {
		if (x[0] >= 1 && x[1] >= 1 && x[2] >= 1) {
			fill_strategy(i);
			break;
		}
	  int first = s[i][0] - int('A');
    int second = s[i][1] - int('A');	
		if (x[first] == 0 && x[second] == 0) {
			cout << "No\n";
			return 0;
		}
		if (x[first] == 0) {
			solutions[i] = first;
			x[first]++; x[second]--;
			continue;
		} else if (x[second] == 0) {
			solutions[i] = second;
			x[first]--; x[second]++;
			continue;
		}
		
		// 1 1 0
		if (i == n - 1) {
			solutions[i] = first;
			continue;
		}

		int next_first = s[i][0] - int('A');
    int next_second = s[i][1] - int('A');
		if (next_first != first && first != next_second) {
			solutions[i] = second;
			x[first]--; x[second]++;
			continue;
		}
		if (next_second != second && second != next_first) {
			solutions[i] = first;
			x[first]++; x[second]--;
			continue;
		}
		solutions[i] = first;
		x[first]++; x[second]--;
	}

	cout << "Yes\n";
	for (int i = 0; i < n; i++)
		cout << char(solutions[i] + int('A')) << "\n";
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:44:9: error: expected initializer before 'cin'
   44 |         cin >> x[0] >> x[1] >> x[2];
      |         ^~~
a.cc:50:21: error: 'x' was not declared in this scope
   50 |                 if (x[0] >= 1 && x[1] >= 1 && x[2] >= 1) {
      |                     ^
a.cc:56:21: error: 'x' was not declared in this scope
   56 |                 if (x[first] == 0 && x[second] == 0) {
      |                     ^
a.cc:60:21: error: 'x' was not declared in this scope
   60 |                 if (x[first] == 0) {
      |                     ^
a.cc:80:25: error: 'x' was not declared in this scope
   80 |                         x[first]--; x[second]++;
      |                         ^
a.cc:85:25: error: 'x' was not declared in this scope
   85 |                         x[first]++; x[second]--;
      |                         ^
a.cc:89:17: error: 'x' was not declared in this scope
   89 |                 x[first]++; x[second]--;
      |                 ^
Language: C++

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

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

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

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

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

Compiler output:
a.cc:1:1: error: 'clude' does not name a type
    1 | clude <bits/stdc++.h>
      | ^~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' 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) {
      |            ^~~
a.cc:9:5: error: 'cout' was not declared in this scope
    9 |     cout << "ARC" << endl;
      |     ^~~~
a.cc:9:22: error: 'endl' was not declared in this scope
    9 |     cout << "ARC" << endl;
      |                      ^~~~
a.cc:11:17: error: 'ARC' was not declared in this scope
   11 |   else if (S == ARC){
      |                 ^~~
a.cc:12:5: error: 'cout' was not declared in this scope
   12 |     cout << "ABC" << endl;
      |     ^~~~
a.cc:12:22: error: 'endl' was not declared in this scope
   12 |     cout << "ABC" << endl;
      |                      ^~~~
Language: Java

class Main{public static void main(String[]a){System.ut.print(new java.util.Scanner(System.in).next().equals("ABC")?"ARC":"ABC");}}

Compiler output:
Main.java:1: error: cannot find symbol
class Main{public static void main(String[]a){System.ut.print(new java.util.Scanner(System.in).next().equals("ABC")?"ARC":"ABC");}}
                                                    ^
  symbol:   variable ut
  location: class System
1 error
Language: C++

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

Compiler output:
a.cc:1:1: error: 'clude' does not name a type
    1 | clude <bits/stdc++.h>
      | ^~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin >> x;
      |   ^~~
a.cc:6:10: error: 'x' was not declared in this scope
    6 |   cin >> x;
      |          ^
a.cc:8:12: error: 'ABC' was not declared in this scope
    8 |   if (x == ABC) {
      |            ^~~
a.cc:9:5: error: 'cout' was not declared in this scope
    9 |     cout << "ARC" << endl;
      |     ^~~~
a.cc:9:22: error: 'endl' was not declared in this scope
    9 |     cout << "ARC" << endl;
      |                      ^~~~
a.cc:11:17: error: 'ARC' was not declared in this scope
   11 |   else if (x == ARC){
      |                 ^~~
a.cc:12:5: error: 'cout' was not declared in this scope
   12 |     cout << "ABC" << endl;
      |     ^~~~
a.cc:12:22: error: 'endl' was not declared in this scope
   12 |     cout << "ABC" << endl;
      |                      ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
  int x;
    cin >> X;
  int check=0;
  for(int64_t i=-120;i<121;i++){
	for(int64_t j=-120;j<121;j++){
      if(i*i*i*i*i-j*j*j*j*j==X && check<1){
        cout << i << ' ' << j<<endl;
        
         check++;
      }
    }
  }
}



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

#include<bits/stdc++.h>
using namespace std ;
int main()
{
    int res;
    char s[100] ;
    gets(s) ;
    res=strcmp(s,"ABC") ;
    if(res==0)
        cout<<"ARC"<<endl ;
    else if(res!=0)
        cout<<"ABC"<<endl ;

    return 0;

}


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

#include<stdio.h>
#include<string.h>
int main()
{
    int res;
    char s[100] ;
    gets(s) ;
    res=strcmp(s,"ABC") ;
    if(res==0)
        printf("ARC\n") ;
    else if(res!=0)
        printf("ABC\n") ;

    return 0;

}


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

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:4:3: error: unknown type name 'string'; did you mean 'stdin'?
    4 |   string S;
      |   ^~~~~~
      |   stdin
main.c:6:9: warning: comparison between pointer and integer
    6 |   if (S == "ARC") printf("ABC");
      |         ^~
Language: C++

#include <iostream>
#include <string>

int main()
{
	std::string str;
	
	std::cin str;
	
	if ( str.compare("ABC"))
	{
		std::cout << "ABC";
	}else {
		std::cout << "ARC";
	}
	
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:17: error: expected ';' before 'str'
    8 |         std::cin str;
      |                 ^~~~
      |                 ;
Language: C++

#include <iostream>
#include <string>

int main()
{
	std::string str;
	
	std::cin str;
	
	if ( str.compare("ABC"))
	{
		std::cout << "ARC";
	}else {
		std::cout << "ABC";
	}
	
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:17: error: expected ';' before 'str'
    8 |         std::cin str;
      |                 ^~~~
      |                 ;
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");
	scanner.close();}}


Compiler output:
Main.java:12: error: cannot find symbol
	scanner.close();}}
	^
  symbol:   variable scanner
  location: class Main
1 error
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:7:22: warning: missing terminating " character
    7 | if(s=="ABC)cout<<"ARC"<<endl;
      |                      ^
a.cc:7:22: error: missing terminating " character
    7 | if(s=="ABC)cout<<"ARC"<<endl;
      |                      ^~~~~~~~
a.cc: In function 'int main()':
a.cc:7:7: error: unable to find string literal operator 'operator""ARC' with 'const char [11]', 'long unsigned int' arguments
    7 | if(s=="ABC)cout<<"ARC"<<endl;
      |       ^~~~~~~~~~~~~~~
a.cc:9:1: error: expected primary-expression before '}' token
    9 | }
      | ^
a.cc:8:24: error: expected ')' before '}' token
    8 | else cout<<"ABC"<<endl;
      |                        ^
      |                        )
    9 | }
      | ~                       
a.cc:7:3: note: to match this '('
    7 | if(s=="ABC)cout<<"ARC"<<endl;
      |   ^
a.cc:9:1: error: expected primary-expression before '}' token
    9 | }
      | ^
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:7:22: warning: missing terminating " character
    7 | if(s=="ABC)cout<<"ARC"<<endl;
      |                      ^
a.cc:7:22: error: missing terminating " character
    7 | if(s=="ABC)cout<<"ARC"<<endl;
      |                      ^~~~~~~~
a.cc: In function 'int main()':
a.cc:7:7: error: unable to find string literal operator 'operator""ARC' with 'const char [11]', 'long unsigned int' arguments
    7 | if(s=="ABC)cout<<"ARC"<<endl;
      |       ^~~~~~~~~~~~~~~
a.cc:9:1: error: expected primary-expression before '}' token
    9 | }
      | ^
a.cc:8:24: error: expected ')' before '}' token
    8 | else cout<<"ABC"<<endl;
      |                        ^
      |                        )
    9 | }
      | ~                       
a.cc:7:3: note: to match this '('
    7 | if(s=="ABC)cout<<"ARC"<<endl;
      |   ^
a.cc:9:1: error: expected primary-expression before '}' token
    9 | }
      | ^
Language: Java

import java.util.Scanner;

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

        if (s.equals("ABC")){
            System.out.println("ARC"); 
        }else {
            System.out.println ("ABC") ;
            scanner.close();
        }

    }
}

Compiler output:
Main.java:8: error: cannot find symbol
        String  s = scanner.vext();
                    ^
  symbol:   variable scanner
  location: class Main
Main.java:14: error: cannot find symbol
            scanner.close();
            ^
  symbol:   variable scanner
  location: class Main
2 errors
Language: C++

#include <iostream>

int main()
{
  String str;
  
  str << std::in;
  
  if( str.comp("ABC") )
  {
    std::out << "ARC" << std::endl;
  } else 
  {
    std::out << "ABC" << std::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:7:3: error: 'str' was not declared in this scope; did you mean 'std'?
    7 |   str << std::in;
      |   ^~~
      |   std
a.cc:7:15: error: 'in' is not a member of 'std'; did you mean 'min'?
    7 |   str << std::in;
      |               ^~
      |               min
a.cc:11:10: error: 'out' is not a member of 'std'; did you mean 'oct'?
   11 |     std::out << "ARC" << std::endl;
      |          ^~~
      |          oct
a.cc:14:10: error: 'out' is not a member of 'std'; did you mean 'oct'?
   14 |     std::out << "ABC" << std::endl;
      |          ^~~
      |          oct
Language: C++

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

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

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

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

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

Compiler output:
main.c: In function 'main':
main.c:6:14: warning: multi-character character constant [-Wmultichar]
    6 |     char O = 'ARC';
      |              ^~~~~
main.c:6:14: warning: overflow in conversion from 'int' to 'char' changes value from '4280899' to '67' [-Woverflow]
main.c:8:14: error: redeclaration of 'S' with no linkage
    8 |         char S[3],O[3];
      |              ^
main.c:5:10: note: previous declaration of 'S' with type 'char[3]'
    5 |     char S[3];
      |          ^
main.c:8:19: error: conflicting types for 'O'; have 'char[3]'
    8 |         char S[3],O[3];
      |                   ^
main.c:6:10: note: previous definition of 'O' with type 'char'
    6 |     char O = 'ARC';
      |          ^
Language: C++

#include<iostream>
using namespace std;
int main(){
  int x;
  cin>>x;
  unsigned long long a,b;
  for(int i=1;i<=x;i++){
    int k;
    k=x%i;
    for(a=-x,b=a+k;b<x;a=a+k,b=b+k){
      if(a*a*a*a*a-b*b*b*b*b==x){
        break;
      }
      if(a*a*a*a*a-b*b*b*b*b==-x){
        int tmp;
        tmp=a;
        a=b;
        b=tmp;
        break;
      }
      
    }
    if(a*a*a*a*a-b*b*b*b*b==x){
      break;
    }
  }
  cout<<a<<" "<<b<<endl;
  return 0;
}
    
      
#include<iostream>
using namespace std;
int main(){
  int x;
  cin>>x;
  unsigned long long a,b;
  for(int i=1;i<=n;i++){
    int k;
    k=x%i;
    for(a=-x,b=a+k;b<x;a=a+k,b=b+k){
      if(a*a*a*a*a-b*b*b*b*b==(unsigned long long)x){
        break;
      }
      if(a*a*a*a*a-b*b*b*b*b==(unsigned long long)-x){
        int tmp;
        tmp=a;
        a=b;
        b=tmp;
        break;
      }
      
    }
    if(a*a*a*a*a-b*b*b*b*b==(unsigned long long)x){
      break;
    }
  }
  cout<<a<<" "<<b<<endl;
  return 0;
}

Compiler output:
a.cc:34:5: error: redefinition of 'int main()'
   34 | int main(){
      |     ^~~~
a.cc:3:5: note: 'int main()' previously defined here
    3 | int main(){
      |     ^~~~
a.cc: In function 'int main()':
a.cc:38:18: error: 'n' was not declared in this scope
   38 |   for(int i=1;i<=n;i++){
      |                  ^
Language: C

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:5:8: error: array size missing in 'S'
    5 |   char S[];
      |        ^
main.c:7:7: warning: multi-character character constant [-Wmultichar]
    7 | if(S=='ABC')
      |       ^~~~~
main.c:7:5: warning: comparison between pointer and integer
    7 | if(S=='ABC')
      |     ^~
main.c:9:12: warning: multi-character character constant [-Wmultichar]
    9 | else if(S=='ARC')
      |            ^~~~~
main.c:9:10: warning: comparison between pointer and integer
    9 | else if(S=='ARC')
      |          ^~
Language: Java



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

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

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:5:8: error: array size missing in 'S'
    5 |   char S[];
      |        ^
main.c:7:7: error: 'ABC' undeclared (first use in this function)
    7 | if(S==ABC)
      |       ^~~
main.c:7:7: note: each undeclared identifier is reported only once for each function it appears in
main.c:9:12: error: 'ARC' undeclared (first use in this function)
    9 | else if(S==ARC)
      |            ^~~
Language: C

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:5:8: error: array size missing in 'S'
    5 |   char S[];
      |        ^
main.c:7:7: error: 'ABC' undeclared (first use in this function)
    7 | if(S==ABC)
      |       ^~~
main.c:7:7: note: each undeclared identifier is reported only once for each function it appears in
main.c:9:12: error: 'ARC' undeclared (first use in this function)
    9 | else if(S==ARC)
      |            ^~~
Language: C

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:5:8: error: array size missing in 'S'
    5 |   char S[];
      |        ^
main.c:7:7: error: 'ABC' undeclared (first use in this function)
    7 | if(S==ABC)
      |       ^~~
main.c:7:7: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:3: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
    8 |   print("ARC");
      |   ^~~~~
      |   printf
main.c:9:12: error: 'ARC' undeclared (first use in this function)
    9 | else if(S==ARC)
      |            ^~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:3:9: error: 'string' was not declared in this scope
    3 |         string S;
      |         ^~~~~~
a.cc:4:9: error: 'cin' was not declared in this scope
    4 |         cin >> S;
      |         ^~~
a.cc:4:16: error: 'S' was not declared in this scope
    4 |         cin >> S;
      |                ^
a.cc:5:9: error: 'cout' was not declared in this scope
    5 |         cout << (S == "ABC" ? "ARC" : "ABC");
      |         ^~~~
Language: C++

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

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:5:3: error: 'string' was not declared in this scope
    5 |   string s;
      |   ^~~~~~
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin>>s;
      |   ^~~
a.cc:6:8: error: 's' was not declared in this scope
    6 |   cin>>s;
      |        ^
a.cc:8:5: error: 'cout' was not declared in this scope
    8 |     cout<<"ARC";
      |     ^~~~
a.cc:10:5: error: 'cout' was not declared in this scope
   10 |     cout<<"ABC";
      |     ^~~~
Language: C

#include <stdio.h>

int main(void)
  char S[];
scanf("%s",S);
if(S==ABC)
  print("ARC");
else if(S==ARC)
  print("ABC");

return 0;

Compiler output:
main.c: In function 'main':
main.c:5:1: error: expected declaration specifiers before 'scanf'
    5 | scanf("%s",S);
      | ^~~~~
main.c:6:1: error: expected declaration specifiers before 'if'
    6 | if(S==ABC)
      | ^~
main.c:8:1: error: expected declaration specifiers before 'else'
    8 | else if(S==ARC)
      | ^~~~
main.c:11:1: error: expected declaration specifiers before 'return'
   11 | return 0;
      | ^~~~~~
main.c:3:5: error: old-style parameter declarations in prototyped function definition
    3 | int main(void)
      |     ^~~~
main.c:12: error: expected '{' at end of input
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(void){
   	int N;
   	int count = 0;
   	cin >> N;
   	vector<int> num(N);
   	for(int i=0;i<N;i++){
   		cin >> num.at(i);
   	}
   	
   	for(int i=0;i<N-1;i++){
   		for(int j=i;j<N;J++){
   			if(j-i==num.at(i)+num.at(j))
   				count++;
   		}
   	}
   	cout << count; 
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:33: error: 'J' was not declared in this scope
   13 |                 for(int j=i;j<N;J++){
      |                                 ^
Language: C

#include<stdio.h>

int main(void)
{
 int S;
  char S[1] = "ABC"
  Char S[2] = "ARC"
  if("S[0]")printf("ABC");
  if("S[1]") printf("ARC");
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:8: error: conflicting types for 'S'; have 'char[1]'
    6 |   char S[1] = "ABC"
      |        ^
main.c:5:6: note: previous declaration of 'S' with type 'int'
    5 |  int S;
      |      ^
main.c:7:3: error: expected ',' or ';' before 'Char'
    7 |   Char S[2] = "ARC"
      |   ^~~~
Language: C

#include<stdio.h>

int main(void)
{
 int S;
  char S[1]
  if("S[0]")printf("ABC");
  if("S[1]") printf("ARC");
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:3: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'if'
    7 |   if("S[0]")printf("ABC");
      |   ^~
Language: C

#include<stdio.h>

int main(void)
{
 int S;
  char S[1]
  if("S[0]")printf("ABC");
  if("[1]") printf("ARC");
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:3: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'if'
    7 |   if("S[0]")printf("ABC");
      |   ^~
Language: C++

#include <bits/stdc++.h>
#include<iostream>
#include<vector>
#include<string>
#include <sstream>
using namespace std;

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



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

#include <iostream>
#include <math.h>
using namespace std;

int main()
{
  int A,B,X,Y;
  cin >> X;
  Y=x/(pow(A,5)+pow(B,5));
  cout << A << B;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:5: error: 'x' was not declared in this scope
    9 |   Y=x/(pow(A,5)+pow(B,5));
      |     ^
Language: C++

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

int main() {
  int N, K;
  cin >> N >> K;
  
  int d[100];
  
  for (int i = 0; i < K; i++) {
    cin >> d[i];
    int A[100];
    
    for (int l = 0; l < d[i]; l++) {
      cin >> A[l];
    }  
    int y = A.size();  
  }
  cout << N -  y << endl;
}  


Compiler output:
a.cc: In function 'int main()':
a.cc:17:15: error: request for member 'size' in 'A', which is of non-class type 'int [100]'
   17 |     int y = A.size();
      |               ^~~~
a.cc:19:16: error: 'y' was not declared in this scope
   19 |   cout << N -  y << endl;
      |                ^
Language: C

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:5:8: error: array size missing in 'S'
    5 |   char S[];
      |        ^
main.c:7:9: error: 'ABC' undeclared (first use in this function)
    7 |   if(S==ABC)
      |         ^~~
main.c:7:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:7: error: 'ARC' undeclared (first use in this function)
    8 |     S=ARC;
      |       ^~~
main.c:12:3: error: expected declaration or statement at end of input
   12 |   return 0;
      |   ^~~~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:8:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
    8 |   char abc* = "ABC";
      |           ^
main.c:8:13: error: expected expression before '=' token
    8 |   char abc* = "ABC";
      |             ^
main.c:9:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
    9 |   char arc* = "ARC";
      |           ^
main.c:9:13: error: expected expression before '=' token
    9 |   char arc* = "ARC";
      |             ^
main.c:12:19: error: 'abc' undeclared (first use in this function)
   12 |   if ( strcmp( S, abc ) == 0 ){
      |                   ^~~
main.c:12:19: note: each undeclared identifier is reported only once for each function it appears in
main.c:13:21: error: 'arc' undeclared (first use in this function)
   13 |     printf( "%s\n", arc );
      |                     ^~~
Language: C

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

Compiler output:
main.c:6:15: error: expected declaration specifiers or '...' before string constant
    6 |         scanf("%s",S);
      |               ^~~~
main.c:6:20: error: expected declaration specifiers or '...' before 'S'
    6 |         scanf("%s",S);
      |                    ^
main.c:8:9: error: expected identifier or '(' before 'if'
    8 |         if(strcmp(S,A))
      |         ^~
main.c:10:9: error: expected identifier or '(' before 'else'
   10 |         else
      |         ^~~~
main.c:12:3: error: expected identifier or '(' before 'return'
   12 |   return 0;
      |   ^~~~~~
main.c:13:1: error: expected identifier or '(' before '}' token
   13 | }
      | ^
Language: C++

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

int main( )
{
 int s, ABC, ARC;
 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:8:9: error: conflicting declaration 'std::string s'
    8 |  string s;
      |         ^
a.cc:7:6: note: previous declaration as 'int s'
    7 |  int s, ABC, ARC;
      |      ^
a.cc:10:7: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |  if (s=="ABC")
      |      ~^~~~~~~
a.cc:13:24: error: expected ';' before 'return'
   13 |    cout <<"ABC" << endl
      |                        ^
      |                        ;
   14 |  return 0;
      |  ~~~~~~
Language: Java

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


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

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

Compiler output:
Main.java:6: error: ')' expected
  	if (s.equals("ABC") System.out.println("ARC");
  	                   ^
1 error
Language: C

S = gets.chomp
if S == "ABC"
  print "ARC"
else
  print "ABC"
end

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | S = gets.chomp
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 'S' [-Wimplicit-int]
main.c:1:5: error: 'gets' undeclared here (not in a function)
    1 | S = gets.chomp
      |     ^~~~
main.c:2:1: error: expected ',' or ';' before 'if'
    2 | if S == "ABC"
      | ^~
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:5:10: error: expected expression before ']' token
    5 |   if(str[]=="ABC"){
      |          ^
Language: C

#include<stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:4:12: error: 'ABC' undeclared (first use in this function)
    4 |     char S[ABC];
      |            ^~~
main.c:4:12: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

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

typedef long long int ll;
typedef long double ld;

#define nn "\n"


int main()
{
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
  
  	string a,b;
   cin>>a;
  if(a[1]=='R'){
    cout<<ABC<<endl;
  }else{
    cout<<"ARC"<<endl;}
  
    
    
    //cout<<"Case "<<cn<<": "<<"good"<<endl;
    return 0;
}

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

#include <iostream>
#include <string>
using namespace std;
int main(){
string S;
  cin>>S;
  if(S[1]=B){cout<<"ARC"<<endl;}
  else{cout<<"ABC"<<endl;}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:11: error: 'B' was not declared in this scope
    7 |   if(S[1]=B){cout<<"ARC"<<endl;}
      |           ^
Language: C++

#include<iostream>
using namespace std;
int S;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:23: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
    7 |                 if (S="ABC") {
      |                       ^~~~~
      |                       |
      |                       const char*
a.cc:13:32: error: expected '}' at end of input
   13 |                 return 0;
      |                          ^      
a.cc:5:12: note: to match this '{'
    5 | int main() {
      |            ^
Language: C++

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: expected unqualified-id before ',' token
    7 |   string, S;
      |         ^
a.cc:7:11: error: conflicting declaration 'std::string S'
    7 |   string, S;
      |           ^
a.cc:6:7: note: previous declaration as 'int S'
    6 |   int S, ABC, ARC;
      |       ^
a.cc:9:6: error: expected '(' before 'cin'
    9 |   if cin == "ABC"
      |      ^~~
      |      (
a.cc:11:3: error: 'else' without a previous 'if'
   11 |   else
      |   ^~~~
Language: C

#include <stdio.h>

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

  
  

Compiler output:
main.c: In function 'main':
main.c:8:10: warning: comparison between pointer and integer
    8 |   if(str == "ABC") {
      |          ^~
main.c:10:20: error: 'ARC' undeclared (first use in this function)
   10 |   } else if(str == ARC) {
      |                    ^~~
main.c:10:20: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:8:9: error: expected ',' or ';' before 'if'
    8 |         if(strcmp(S,A)==0)
      |         ^~
main.c:10:9: error: 'else' without a previous 'if'
   10 |         else
      |         ^~~~
Language: C

#include<stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:5:12: error: 'ABC' undeclared (first use in this function)
    5 |     char S[ABC];
      |            ^~~
main.c:5:12: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:5:12: error: 'ABC' undeclared (first use in this function)
    5 |     char S[ABC];
      |            ^~~
main.c:5:12: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:5:12: error: 'ABC' undeclared (first use in this function)
    5 |     char S[ABC]
      |            ^~~
main.c:5:12: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'scanf'
    6 |         scanf("%s",&O);
      |         ^~~~~
main.c:7:12: error: 'S' undeclared (first use in this function)
    7 |         if(S = O)
      |            ^
Language: C++

#include <iostream>
#include <string>

using std::cout;
using std::cin;
using std::endl;
using std::string;




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

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

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


Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inlcuede; did you mean #include?
    1 | #inlcuede<iostream>
      |  ^~~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin>>a>>b;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #inlcuede<iostream>
a.cc:7:14: error: 'cout' was not declared in this scope
    7 |   if(b=='B') cout<<"ARC"<<endl;
      |              ^~~~
a.cc:7:14: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:7:27: error: 'endl' was not declared in this scope
    7 |   if(b=='B') cout<<"ARC"<<endl;
      |                           ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #inlcuede<iostream>
a.cc:8:8: error: 'cout' was not declared in this scope
    8 |   else cout<<"ABC"<<endl;
      |        ^~~~
a.cc:8:8: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:8:21: error: 'endl' was not declared in this scope
    8 |   else cout<<"ABC"<<endl;
      |                     ^~~~
a.cc:8:21: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C

#include<stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:5:18: warning: multi-character character constant [-Wmultichar]
    5 |         char S = 'ABC';
      |                  ^~~~~
main.c:5:14: error: conflicting types for 'S'; have 'char'
    5 |         char S = 'ABC';
      |              ^
main.c:4:13: note: previous declaration of 'S' with type 'int'
    4 |         int S,O;
      |             ^
main.c:5:18: warning: overflow in conversion from 'int' to 'char' changes value from '4276803' to '67' [-Woverflow]
    5 |         char S = 'ABC';
      |                  ^~~~~
Language: C

#include

int main(){
  char a[4];
  scanf("%s",&a);
  
  if(a[1]=="R")
    printf("ABC");
  if(a[1]=="B")
    printf("ARC");
  return 0;

Compiler output:
main.c:1:9: error: #include expects "FILENAME" or <FILENAME>
    1 | #include
      |         ^
main.c: In function 'main':
main.c:5:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    5 |   scanf("%s",&a);
      |   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | #include
main.c:5:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    5 |   scanf("%s",&a);
      |   ^~~~~
main.c:5:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:7:10: warning: comparison between pointer and integer
    7 |   if(a[1]=="R")
      |          ^~
main.c:8:5: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    8 |     printf("ABC");
      |     ^~~~~~
main.c:8:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:8:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:8:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:9:10: warning: comparison between pointer and integer
    9 |   if(a[1]=="B")
      |          ^~
main.c:10:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   10 |     printf("ARC");
      |     ^~~~~~
main.c:10:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:11:3: error: expected declaration or statement at end of input
   11 |   return 0;
      |   ^~~~~~
Language: C++

#include <iostream>
#include <string>

using std::cout;
using std::cin;
using std::endl;
using std::string;




int main(){
	string s;
	cin >> s;
	switch(s){
		case "ABC":
			cout << "ARC";
			return 0;
		default:
			cout << "ABC";
			return 0;
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:16: error: switch quantity not an integer
   15 |         switch(s){
      |                ^
Language: C++

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

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inlcuede; did you mean #include?
    1 | #inlcuede<iostream>
      |  ^~~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope
    5 |   cin>>a>>b;
      |   ^~~
a.cc:6:14: error: 'cout' was not declared in this scope
    6 |   if(b=='B') cout<<"ARC"<<endl;
      |              ^~~~
a.cc:6:27: error: 'endl' was not declared in this scope
    6 |   if(b=='B') cout<<"ARC"<<endl;
      |                           ^~~~
a.cc:7:8: error: 'cout' was not declared in this scope
    7 |   else cout<<"ABC"<<endl;
      |        ^~~~
a.cc:7:21: error: 'endl' was not declared in this scope
    7 |   else cout<<"ABC"<<endl;
      |                     ^~~~
Language: C

int main{
  printf("文字列を入力してEnterボタンを押してください\n");
  char *str;
  scanf("%s", &str);
  if{
    *(str+1) == "B";
    printf("%s", "ARC");
  	}
  else{
   	 printf("%s", "ABC");
  	}
	return 0;
}

Compiler output:
main.c:1:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    1 | int main{
      |         ^
Language: C

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


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

#include<bits/stdc++h>
using namespace std;
int main()
{
  string s;
  cin>>s;
  cout<<(s=="ABC"?"ARC":"ABC");
}

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

#include<iostream>
#include<string>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |   cin >> str;
      |   ^~~
      |   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
      |                  ^~~
Language: C++

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

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

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

#include <stdio.h>

int main(){
  char str[100];
  fgets(str,sizeof(str),stdin);
  char abc[10]="ABC";
   int i=0;
  while(str[i]==abc[i]){
    i++;
  }
    if(i==3)
  print("ARC");
      else
        print("ABC");
  
}

Compiler output:
main.c: In function 'main':
main.c:12:3: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
   12 |   print("ARC");
      |   ^~~~~
      |   printf
Language: C

#include <stdio.h>

int main(){
  char str[100];
  fgets(str,sizeof(str),stdin);
  char abc[10]="ABC";
    i=0;
  while(str[i]==abc[i])
    i++;
  }
    if(i==3)
  print("ARC");
      else
        print("ABC");
  
}

Compiler output:
main.c: In function 'main':
main.c:7:5: error: 'i' undeclared (first use in this function)
    7 |     i=0;
      |     ^
main.c:7:5: note: each undeclared identifier is reported only once for each function it appears in
main.c: At top level:
main.c:11:5: error: expected identifier or '(' before 'if'
   11 |     if(i==3)
      |     ^~
main.c:13:7: error: expected identifier or '(' before 'else'
   13 |       else
      |       ^~~~
main.c:16:1: error: expected identifier or '(' before '}' token
   16 | }
      | ^
Language: C++

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

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

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

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

int main(void)
{
    char B[4] = "ABC";
    char R[4] = "ARC";
    char S[3];
    scanf_s("%s %s %s", &S[0], &S[1], &S[2]);
    
    if (strcmp(S, R) == 0) {
        printf("%s\n", B);
    }
    else {
        printf("%s\n", R);
    }

    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:5: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    9 |     scanf_s("%s %s %s", &S[0], &S[1], &S[2]);
      |     ^~~~~~~
      |     scanf
Language: C

#include<stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:5:18: warning: multi-character character constant [-Wmultichar]
    5 |         char S = 'ABC';
      |                  ^~~~~
main.c:5:14: error: conflicting types for 'S'; have 'char'
    5 |         char S = 'ABC';
      |              ^
main.c:4:13: note: previous declaration of 'S' with type 'int'
    4 |         int S,O;
      |             ^
main.c:5:18: warning: overflow in conversion from 'int' to 'char' changes value from '4276803' to '67' [-Woverflow]
    5 |         char S = 'ABC';
      |                  ^~~~~
Language: C++

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

int main(){

  int n;
  int k;
  int p=0;
  int ans=0;
  int an=0;
  
  vector <int> a;
  cin >>n>>k;
  for(int i=1;i <=k;i++){
    int mi;
    cin >>mi;
    for(int l=1;l<=mi;l++){
      int nl;
      cin >>nl;
      p +=1;
      a.push_back(nl);
    }
    l=1;
  }

for(int r=1;r<=n;r++){
  for(int q=0;q<p;q++){
   if(a[q]==r){
     an +=1;
   }
  }
  if(an ==0){
    ans+=1;
  }
  an =0;
}

 cout << ans <<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:23:5: error: 'l' was not declared in this scope
   23 |     l=1;
      |     ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:7:3: error: too few arguments to function 'fgets'
    7 |   fgets(S);
      |   ^~~~~
In file included from main.c:1:
/usr/include/stdio.h:654:14: note: declared here
  654 | extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream)
      |              ^~~~~
Language: C++

#include <iostream>
using namespace std;

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

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