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

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

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

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namesace'
    2 | using namesace std;
      |       ^~~~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'string' was not declared in this scope
    6 |   string str;
      |   ^~~~~~
a.cc:6:3: 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,
                 from a.cc:1:
/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:7:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |   cin>>str;
      |   ^~~
      |   std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:7:8: error: 'str' was not declared in this scope; did you mean 'std'?
    7 |   cin>>str;
      |        ^~~
      |        std
a.cc:9:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |         cout<<"ARC";
      |         ^~~~
      |         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:10:8: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |   else cout<<"ABC";
      |        ^~~~
      |        std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int,int> P;
ll const mod = 1e9+7;

int main() {
    string S;
    string abc = "ABC", arc = "ARC";
    cin >> S;
    if (S == abc)   cout << arc << endl;
    else 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 a;
  string str;
  cin>>str;
  if(s=="ABC")
  cout<<"ARC"<<endl;
   else
     cout<<"ABC"<<endl;
}
     

Compiler output:
a.cc:3:1: error: expected unqualified-id before '{' token
    3 | {
      | ^
Language: C++

#include <iostream>
#include <string>
int main()
{
string s; cin >> s;
if (s[1] == 'B') s[1] = 'R';
  else s[1] = 'B';
  cout << s << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:1: error: 'string' was not declared in this scope
    5 | string s; cin >> s;
      | ^~~~~~
a.cc:5:1: note: suggested alternatives:
In file included from /usr/include/c++/14/iosfwd:41,
                 from /usr/include/c++/14/ios:40,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
In file included from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44:
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:5:11: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 | string s; cin >> s;
      |           ^~~
      |           std::cin
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:5:18: error: 's' was not declared in this scope
    5 | string s; cin >> s;
      |                  ^
a.cc:8:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |   cout << s << 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:8:16: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |   cout << s << 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 Mondai1 {
	public static void main (String args[]) {
		Scanner scan=new Scanner(System.in);
		String str=scan.next();
		if(str.equals("ABC")) {
			System.out.println("ARC");
		}
		else {
			System.out.println("ABC");
		}
	}
	
}

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


#include<iostream>
#include<stdio.h>
#include<string.h>
using namespace std;
int main()
{   int i,l;

    char str2[5];
    gets(str2);
    l=strlen(str2);
    for(i=0;i<l;i++)
    {
        if(str2[i]== 'A' && str2[i+1]== 'B'&&str2[i+2]== 'C')
            {cout<<"ARC";
            return 0;
            }

    }
    cout<<"ABC";
}


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


#include<iostream>
#include<stdio.h>
#include<string.h>
using namespace std;
int main()
{   int i;

    char str2[5];
    gets(str2);
    for(i=0;i<strlen(str2);i++)
    {
        if(str2[i]== 'A' && str2[i+1]== 'B'&&str2[i+2]== 'C')
            {cout<<"ARC";
            return 0;
            }

    }
    cout<<"ABC";
}


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


#include<bits/stdc++.h>
#include<stdio.h>
#include<string.h>
using namespace std;
int main()
{   int i;

    char str2[5];
    gets(str2);
    for(i=0;i<strlen(str2);i++)
    {
        if(str2[i]== 'A' && str2[i+1]== 'B'&&str2[i+2]== 'C')
            {cout<<"ARC";
            return 0;
            }

    }
    cout<<"ABC";
}


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


#include<bits/stdc++.h>
using namespace std;
int main()
{   int i;

    char str2[5];
    gets(str2);
    for(i=0;i<strlen(str2);i++)
    {
        if(str2[i]== 'A' && str2[i+1]== 'B'&&str2[i+2]== 'C')
            {cout<<"ARC";
            return 0;
            }

    }
    cout<<"ABC";
}


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

#include<stdio.h>

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


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

#include<stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:6:13: error: 'ABC' undeclared (first use in this function)
    6 |   if(str == ABC) print("ARC");
      |             ^~~
main.c:6:13: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:18: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
    6 |   if(str == ABC) print("ARC");
      |                  ^~~~~
      |                  printf
main.c:7:19: error: 'ARC' undeclared (first use in this function)
    7 |   else if (str == ARC) print("ABC");
      |                   ^~~
Language: Java

	public static class Main {
		public static void main(String[] args) {
			String contest = args[0];
			if(contest.equals("ARC")) {
				System.out.println("ABC");
			} else {
				System.out.println("ARC");
			}
		}
	}


Compiler output:
Main.java:1: error: modifier static not allowed here
	public static class Main {
	              ^
1 error
Language: C++

//#include<bits/stdc++.h>
#include<iostream>

using namespace std;

int main(){
	char s[5];
	for(int i=0;i<3;i++){
		cin>>s[i];
	}
	if(s[1]=='B'){
		cout<<"ARC"<<endl;
	}esle{
		cout<<"ABC"<<endl;
	}

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:10: error: 'esle' was not declared in this scope
   13 |         }esle{
      |          ^~~~
Language: C++

#include<bits/stdc++.h>

using namespace std;

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

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:10: error: 'esle' was not declared in this scope
   11 |         }esle{
      |          ^~~~
Language: Java

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

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

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

Compiler output:
Main.java:10: error: ';' expected
    	System.out.println("ABC")
    	                         ^
1 error
Language: C++

#include <bits/stcdc++.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:1:10: fatal error: bits/stcdc++.h: No such file or directory
    1 | #include <bits/stcdc++.h>
      |          ^~~~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include <bits/stcdc++.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:1:10: fatal error: bits/stcdc++.h: No such file or directory
    1 | #include <bits/stcdc++.h>
      |          ^~~~~~~~~~~~~~~~
compilation terminated.
Language: C++

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

Compiler output:
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C++

#include<bits/stdc++>
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:1:9: fatal error: bits/stdc++: No such file or directory
    1 | #include<bits/stdc++>
      |         ^~~~~~~~~~~~~
compilation terminated.
Language: C++

using namespace std;
int main(){
	vector<int> a;
  	string b;
  	priority_queue c;
  	int d;
    cin >> b;
  if(b == "ABC") cout << "ARC";
  else cout << "ABC";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:9: error: 'vector' was not declared in this scope
    3 |         vector<int> a;
      |         ^~~~~~
a.cc:1:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
  +++ |+#include <vector>
    1 | using namespace std;
a.cc:3:16: error: expected primary-expression before 'int'
    3 |         vector<int> a;
      |                ^~~
a.cc:4:9: error: 'string' was not declared in this scope
    4 |         string b;
      |         ^~~~~~
a.cc:1:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
  +++ |+#include <string>
    1 | using namespace std;
a.cc:5:9: error: 'priority_queue' was not declared in this scope
    5 |         priority_queue c;
      |         ^~~~~~~~~~~~~~
a.cc:1:1: note: 'std::priority_queue' is defined in header '<queue>'; this is probably fixable by adding '#include <queue>'
  +++ |+#include <queue>
    1 | using namespace std;
a.cc:7:5: error: 'cin' was not declared in this scope
    7 |     cin >> b;
      |     ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | using namespace std;
a.cc:7:12: error: 'b' was not declared in this scope
    7 |     cin >> b;
      |            ^
a.cc:8:18: error: 'cout' was not declared in this scope
    8 |   if(b == "ABC") cout << "ARC";
      |                  ^~~~
a.cc:8:18: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:9:8: error: 'cout' was not declared in this scope
    9 |   else cout << "ABC";
      |        ^~~~
a.cc:9:8: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

int main(){
	vector<int> a;
  	string b;
  	priority_queue c;
  	int d;
    cin >> b;
  if(b == "ABC") cout << "ARC";
  else cout << "ABC";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:2:9: error: 'vector' was not declared in this scope
    2 |         vector<int> a;
      |         ^~~~~~
a.cc:2:16: error: expected primary-expression before 'int'
    2 |         vector<int> a;
      |                ^~~
a.cc:3:9: error: 'string' was not declared in this scope
    3 |         string b;
      |         ^~~~~~
a.cc:4:9: error: 'priority_queue' was not declared in this scope
    4 |         priority_queue c;
      |         ^~~~~~~~~~~~~~
a.cc:6:5: error: 'cin' was not declared in this scope
    6 |     cin >> b;
      |     ^~~
a.cc:6:12: error: 'b' was not declared in this scope
    6 |     cin >> b;
      |            ^
a.cc:7:18: error: 'cout' was not declared in this scope
    7 |   if(b == "ABC") cout << "ARC";
      |                  ^~~~
a.cc:8:8: error: 'cout' was not declared in this scope
    8 |   else cout << "ABC";
      |        ^~~~
Language: Java


import java.util.Scanner;

public class Contest {

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

    }

}


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

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

int n, k;
vector<int> d;
vector<vector<int>> a;

void input(){

  cin >> n >> k; 
  d.resize(k);
  a.resize(k, vector<int>);
  for(int i = 0; i < k; i++){
    cin >> d[i];
    a[i].resize(d[i]);
    for(int j = 0; j < d[i]; j++){
      cin >> a[i][j];
    }
  }
}

void solve(){
  int ans = 0;
  for(int i = 1; i <= n; i++){
    bool have = false;
    for(auto v: a){
      for(auto e: v){
        if(e == i) have = true;
      }
    }
    if(!have) ans++;
  }
  cout << ans << endl;
}

int main(){
  
  input();
  solve();
  return 0;
}

Compiler output:
a.cc: In function 'void input()':
a.cc:12:26: error: expected primary-expression before ')' token
   12 |   a.resize(k, vector<int>);
      |                          ^
Language: C++

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

int n, k;
vector<int> d;
vector<vector<int>> a;

void input(){

  cin >> n >> k; 
  d.resize[k];
  for(int i = 0; i < k; i++){
    cin >> d[i];
    a[i].resize[d[i]];
    for(int j = 0; j < d[i]; j++){
      cin >> a[i][j];
    }
  }
}

void solve(){
  int ans = 0;
  for(int i = 1; i < n; i++){
    bool have = false;
    for(auto v: a){
      for(auto e: v){
        if(e == i) have = true;
      }
    }
    if(!have) ans++;
  }
  cout << ans << endl;
}

int main(){
  
  input();
  solve();
  return 0;
}

Compiler output:
a.cc: In function 'void input()':
a.cc:11:11: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   11 |   d.resize[k];
      |           ^
a.cc:14:16: error: invalid types '<unresolved overloaded function type>[__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type {aka int}]' for array subscript
   14 |     a[i].resize[d[i]];
      |                ^
Language: C++

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

int n, k;
vector<int> d;
vector<vector<int>> a;

void input(){

  cin >> n >> k; 
  d.resize[k];
  for(int i = 0; i < k; i++){
    cin >> d[i];
    a[i].resize[d[i]];
    for(int j = 0; j < d[i]; j++){
      cin >> a[i][j];
    }
  }
}

void solve(){
  int ans = 0;
  for(int i = 1; i < n; i++){
    bool have = false;
    for(auto v: a){
      for(auto e: v){
        if(e == i) have = true;
      }
    }
    if(!have) ans++;
  }
  cout << ans << endl;
}

int main(){
  
  input();
  solve();
  return 0;
}

Compiler output:
a.cc: In function 'void input()':
a.cc:12:11: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   12 |   d.resize[k];
      |           ^
a.cc:15:16: error: invalid types '<unresolved overloaded function type>[__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type {aka int}]' for array subscript
   15 |     a[i].resize[d[i]];
      |                ^
Language: C++

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

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

#include<iostream>
#include<cstdio>

using namespace std;

int main(){
  	char s[3];
	cin >> s;
  	// cout << s << '\n';

  	if(strncmp (s,"ABC",3) == 0)
      cout << "ARC" << endl;
  	else
      cout << "ABC" << endl;
}

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

#include<stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:5:17: error: expected ';' before 'if'
    5 |   scanf("%c",&s)
      |                 ^
      |                 ;
    6 |     if(s == "ABC")
      |     ~~           
main.c:8:10: warning: comparison between pointer and integer
    8 |     if(s == "ARC")
      |          ^~
Language: C++

#include<iostream>
#include<string>
#include<bits/stdc++.h>
#define ll long long
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:7:5: error: 'string' was not declared in this scope
    7 |     string str;
      |     ^~~~~~
a.cc:7:5: 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>>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:8:10: error: 'str' was not declared in this scope; did you mean 'std'?
    8 |     cin>>str;
      |          ^~~
      |          std
a.cc:10:6: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |      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:10:19: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   10 |      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:12:6: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   12 |      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:12:19: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   12 |      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 <stdio.h>
int main(void){
char S[10];
  if(S[1]==B){
  printf("ABC");
    else{
      
      printf("ARC");
  
  }
return 0;

}

Compiler output:
main.c: In function 'main':
main.c:4:12: error: 'B' undeclared (first use in this function)
    4 |   if(S[1]==B){
      |            ^
main.c:4:12: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:5: error: expected '}' before 'else'
    6 |     else{
      |     ^~~~
Language: C

#include<stdio.h>
int main(void){

char S;
  printf("来週開催されるコンテストはなにか");
  scanf"%c",&S);
printf("%c",S);
  
  return 0;
}






Compiler output:
main.c: In function 'main':
main.c:6:8: error: expected ';' before string constant
    6 |   scanf"%c",&S);
      |        ^~~~
      |        ;
main.c:6:15: error: expected statement before ')' token
    6 |   scanf"%c",&S);
      |               ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<ll, ll> pll;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:11:26: error: expected ';' before 'return'
   11 |         else cout <<"ARC"
      |                          ^
      |                          ;
   12 |         return 0;
      |         ~~~~~~
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:10:20: error: expected ';' before '{' token
   10 |   else (S == "ARC"){
      |                    ^
      |                    ;
a.cc:10:11: warning: ignoring return value of 'bool std::operator==(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const _CharT*) [with _CharT = char; _Traits = char_traits<char>; _Alloc = allocator<char>]', declared with attribute 'nodiscard' [-Wunused-result]
   10 |   else (S == "ARC"){
      |        ~~~^~~~~~~~~
In file included from /usr/include/c++/14/string:54,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52,
                 from a.cc:1:
/usr/include/c++/14/bits/basic_string.h:3772:5: note: declared here
 3772 |     operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
      |     ^~~~~~~~
Language: C++

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

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inport; did you mean #import?
    1 | #inport "iostream"
      |  ^~~~~~
      |  import
a.cc: In function 'int main()':
a.cc:4:3: error: 'string' was not declared in this scope
    4 |   string s;cin>>s;
      |   ^~~~~~
a.cc:1:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
  +++ |+#include <string>
    1 | #inport "iostream"
a.cc:4:12: error: 'cin' was not declared in this scope
    4 |   string s;cin>>s;
      |            ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #inport "iostream"
a.cc:4:17: error: 's' was not declared in this scope
    4 |   string s;cin>>s;
      |                 ^
a.cc:5:15: error: 'cout' was not declared in this scope
    5 |   if(s=="ABC")cout << "ARC" << endl;
      |               ^~~~
a.cc:5:15: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:5:32: error: 'endl' was not declared in this scope
    5 |   if(s=="ABC")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 | #inport "iostream"
a.cc:6:8: error: 'cout' was not declared in this scope
    6 |   else cout << "ABC" << endl;
      |        ^~~~
a.cc:6:8: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:6:25: error: 'endl' was not declared in this scope
    6 |   else cout << "ABC" << endl;
      |                         ^~~~
a.cc:6:25: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

#include<bits/stdc++.h >
using namespace std;
deque < int > edge[1000005];
int h[1000005];
int main()
{
	int n,m;
    cin>>n>>m;
    for(int i = 1; i<=n; i++)
    	cin>>h[i];
	for(int i = 0; i<m; i++)
	{
		int u,v;
		cin>>u>>v;
		edge[u].push_back(v);
		edge[v].push_back(u);
	}
	int cnt=0;
	for(int i=1;i<=n;i++)
	{
		bool flag=true;
		for(int to=0;to<edge[i].size();to++)
		{
			if(h[i]==h[to])
			{
				flag=false;
				break;
			}
		}
		cnt+=flag;
	}
	cout<<cnt<<endl;
	return 0;
}

Compiler output:
a.cc: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;
deque < int > edge[1000005];
int h[1000005];
int main()
{
	int n,m;
    cin>>n>>m;
    for(int i = 1; i<=n; i++)
    	cin>>h[i];
	for(int i = 0; i<m; i++)
	{
		int u,v;
		cin>>u>>v;
		edge[u].push_back(v);
		edge[v].push_back(u);
	}
	int cnt=0;
	for(int i=1;i<=n;i++)
	{
		bool flag=true;
		for(int to=0;to<edge[i].size();to++)
		{
			if(h[i]==h[to])
			{
				flag=false;
				break;
			}
		}
		cnt+=flag;
	}
	cout<<cnt<<endl;
	return 0;
}

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

import java.util.Scanner;
public class ABC166A {

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

}


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

#include <iostream>;

using namespace std;

main () {
  char i;
  cin >> i;
  if (i == "ARC") {
      cout << "ABC";
    } else {
      cout << "ARC";
    }

  return 0
}

Compiler output:
a.cc:1:20: warning: extra tokens at end of #include directive
    1 | #include <iostream>;
      |                    ^
a.cc:5:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    5 | main () {
      | ^~~~
a.cc: In function 'int main()':
a.cc:8:9: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |   if (i == "ARC") {
      |       ~~^~~~~~~~
a.cc:14:11: error: expected ';' before '}' token
   14 |   return 0
      |           ^
      |           ;
   15 | }
      | ~
Language: C++

#include<iostream>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'string' was not declared in this scope
    5 |   string s;
      |   ^~~~~~
a.cc: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 >> s;
      |   ^~~
      |   std::cin
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:6:10: error: 's' was not declared in this scope
    6 |   cin >> s;
      |          ^
a.cc:8:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |     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:8:22: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |     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:10:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |     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:10:22: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   10 |     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 <bits/stdc++.h>
using namespace std;
int main(){
  cin>>x;
  for(int i = -120; i <= 120; ++i)
  {
    for(int j = -120; i <=120; ++i)
    {
      if(i*i*i*i*i-j*j*j*j*j==x)
      {
        print(i,j);
        return 0;
      }
    }
  }
}

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

import java.util.Scanner;
	public static void main(String[] args) {
		String str = new Scanner(System.in).next();

		if (str.equals("ARC")) {
			str = "ABC";
		}
		else {
			str = "ARC";
		}

		System.out.println(str);
	}

Compiler output:
Main.java:2: 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)
1 error
Language: Java

import java.util.Scanner;

public class A166 {
	public static void main(String[] args) {
		String str = new Scanner(System.in).next();

		if (str.equals("ARC")) {
			str = "ABC";
		}
		else {
			str = "ARC";
		}

		System.out.println(str);
	}
}

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

import java.util.Scanner;

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


Compiler output:
Main.java:11: error: incompatible types: int cannot be converted to boolean
		if (str.compareTo(ans)) {
		                 ^
1 error
Language: Java

import java.util.*;

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

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

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

int main(){
  string s1{};
  getline(cin,s1);

  
  if(s.at(1)=="B"){
    s1.at(1)="R";
  }
  else{
    s1.at(1)=="B";
  }
  cout<<s1<<endl;
 return 0;
}
  

Compiler output:
a.cc: In function 'int main()':
a.cc:10:6: error: 's' was not declared in this scope; did you mean 's1'?
   10 |   if(s.at(1)=="B"){
      |      ^
      |      s1
a.cc:11:14: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
   11 |     s1.at(1)="R";
      |              ^~~
      |              |
      |              const char*
a.cc:14:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   14 |     s1.at(1)=="B";
      |     ~~~~~~~~^~~~~
Language: C++

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

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

Compiler output:
a.cc:3:7: error: expected nested-name-specifier before 'namspace'
    3 | using namspace std;
      |       ^~~~~~~~
a.cc: In function 'int main()':
a.cc:7:1: error: 'string' was not declared in this scope
    7 | string s;
      | ^~~~~~
a.cc:7:1: 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:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    8 | cin>>s;
      | ^~~
      | std::cin
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:8:6: error: 's' was not declared in this scope
    8 | cin>>s;
      |      ^
a.cc:9:14: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 | if(s=="ARC") cout<<"ABC\n";
      |              ^~~~
      |              std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:10:6: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 | else cout<<"ARC\n";
      |      ^~~~
      |      std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#include <iostream>

using namespace std;

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

Compiler output:
a.cc:8:35: warning: missing terminating " character
    8 |     cout << (s == "ABC" ? "ARC" : "ABC) << endl;
      |                                   ^
a.cc:8:35: error: missing terminating " character
    8 |     cout << (s == "ABC" ? "ARC" : "ABC) << endl;
      |                                   ^~~~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:9:1: error: expected primary-expression before '}' token
    9 | }
      | ^
a.cc:8:34: error: expected ')' before '}' token
    8 |     cout << (s == "ABC" ? "ARC" : "ABC) << endl;
      |             ~                    ^
      |                                  )
    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: In function 'int main()':
a.cc:7:10: error: 'ABC' was not declared in this scope
    7 |   if (S==ABC) {
      |          ^~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:10: error: expected unqualified-id before '>>' token
    6 |   string >> S;
      |          ^~
a.cc:8:10: error: 'ABC' was not declared in this scope
    8 |   if (S==ABC) {
      |          ^~~
Language: C

#include <bits/stdc++.h>
using namespace std;
char(abc,arc,a);
int main(){
  for(i=0;i<=n;++i)
    cin >> a;
  if(cin=abc){
    cout<<"arc"<<endl;
  }
    if(cin=arc){
      cout<<"abc"<<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()
{
    string a,b;
    cin >> a;
    if(a=="ABC")
        cout << "ARC" << endl;
    else
        cout << "ABC" << endl;
    return 0;
}


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

#include<stdio.h>
int main() {
  char s;
  scanf("%s\n", &s);
  if (s[1] == 'B') {
    puts("先週開催されたコンテストはABCなので、今週はARCが開催されます。");
  } else{
    puts("先週開催されたコンテストはARCなので、今週はABCが開催されます。");
  }
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:5:8: error: subscripted value is neither array nor pointer nor vector
    5 |   if (s[1] == 'B') {
      |        ^
Language: C++

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


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

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


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

#include<stdio.h>
int main() {
  int s;
  scanf("%s\n", &s);
  if (s == 'ABC') {
    printf("先週開催されたコンテストは%sなので、今週はARCが開催されます。\n",s );
  } else{
    printf("先週開催されたコンテストはARCなので、今週は%sが開催されます。\n", s);
  }
  return 0;


Compiler output:
main.c: In function 'main':
main.c:5:12: warning: multi-character character constant [-Wmultichar]
    5 |   if (s == 'ABC') {
      |            ^~~~~
main.c:10:3: error: expected declaration or statement at end of input
   10 |   return 0;
      |   ^~~~~~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:8: error: cannot convert 'char*' to 'FILE*'
    6 |   getw(s):
      |        ^
      |        |
      |        char*
In file included from a.cc:1:
/usr/include/stdio.h:643:24: note:   initializing argument 1 of 'int getw(FILE*)'
  643 | extern int getw (FILE *__stream) __nonnull ((1));
      |                  ~~~~~~^~~~~~~~
a.cc:9:9: error: 'else' without a previous 'if'
    9 |         else
      |         ^~~~
a.cc:10:9: error: 'cout' was not declared in this scope
   10 |         cout << "ABC" <<end;
      |         ^~~~
a.cc:3:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    2 | #include <string.h>
  +++ |+#include <iostream>
    3 | using namespace std;
a.cc:10:25: error: 'end' was not declared in this scope
   10 |         cout << "ABC" <<end;
      |                         ^~~
a.cc:3:1: note: 'std::end' is defined in header '<iterator>'; this is probably fixable by adding '#include <iterator>'
    2 | #include <string.h>
  +++ |+#include <iterator>
    3 | using namespace std;
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'get' was not declared in this scope; did you mean 'getw'?
    6 |   get(s):
      |   ^~~
      |   getw
a.cc:9:9: error: 'else' without a previous 'if'
    9 |         else
      |         ^~~~
a.cc:10:9: error: 'cout' was not declared in this scope
   10 |         cout << "ABC" <<end;
      |         ^~~~
a.cc:3:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    2 | #include <string.h>
  +++ |+#include <iostream>
    3 | using namespace std;
a.cc:10:25: error: 'end' was not declared in this scope
   10 |         cout << "ABC" <<end;
      |                         ^~~
a.cc:3:1: note: 'std::end' is defined in header '<iterator>'; this is probably fixable by adding '#include <iterator>'
    2 | #include <string.h>
  +++ |+#include <iterator>
    3 | using namespace std;
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'gets' was not declared in this scope; did you mean 'getw'?
    6 |   gets(s):
      |   ^~~~
      |   getw
a.cc:9:9: error: 'else' without a previous 'if'
    9 |         else
      |         ^~~~
a.cc:10:9: error: 'cout' was not declared in this scope
   10 |         cout << "ABC" <<end;
      |         ^~~~
a.cc:3:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    2 | #include <string.h>
  +++ |+#include <iostream>
    3 | using namespace std;
a.cc:10:25: error: 'end' was not declared in this scope
   10 |         cout << "ABC" <<end;
      |                         ^~~
a.cc:3:1: note: 'std::end' is defined in header '<iterator>'; this is probably fixable by adding '#include <iterator>'
    2 | #include <string.h>
  +++ |+#include <iterator>
    3 | using namespace std;
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'gets' was not declared in this scope; did you mean 'getw'?
    5 |   gets(s):
      |   ^~~~
      |   getw
a.cc:8:9: error: 'else' without a previous 'if'
    8 |         else
      |         ^~~~
a.cc:9:9: error: 'cout' was not declared in this scope
    9 |         cout << "ABC" <<end;
      |         ^~~~
a.cc:9:25: error: 'end' was not declared in this scope
    9 |         cout << "ABC" <<end;
      |                         ^~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'gets' was not declared in this scope; did you mean 'getw'?
    4 |   gets(s):
      |   ^~~~
      |   getw
a.cc:7:9: error: 'else' without a previous 'if'
    7 |         else
      |         ^~~~
a.cc:8:9: error: 'cout' was not declared in this scope
    8 |         cout << "ABC" <<end;
      |         ^~~~
a.cc:8:25: error: 'end' was not declared in this scope
    8 |         cout << "ABC" <<end;
      |                         ^~~