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

#include <iostream>
#include <string>
#include <vector>
#include <sstream>
#include <algorithm>
#include <stdio.h>
#include <cstring>
#include <iomanip>
#define _USE_MATH_DEFINES
#include <math.h>
#include <numeric>
#include <regex>
#include <locale>

//#include <map>

using namespace std;

int main()
{
	string W, T;
	getline(cin, W);

	while (1)
	{
		string st;
		getline(cin, st);
		if (st == "END_OF_TEXT")break;

		T += st;
	}

	regex rg( W, regex_constants::icase);
	smatch match;

	int count = 0;

	for (auto it = T.cbegin();
		regex_search(it, T.cend(), match, rg);
		it += match.position(0) + match.length(0))
	{
		count++;
	}

	cout << count << endl;

	return 0;

Compiler output:
a.cc: In function 'int main()':
a.cc:47:18: error: expected '}' at end of input
   47 |         return 0;
      |                  ^
a.cc:20:1: note: to match this '{'
   20 | {
      | ^
Language: C++

#include <iostream>
#include <string>
#include <algorithm>
using namespace std;
 
int main() {
    int count = 0;
    string s, p;
    cin >> s;
    std::transform(s.begin(), s.end(), s.begin(), ::toupper);
    while(cin >> p){
        if(p == "END_OF_TEXT") break;
        std::transform(p.begin(), p.end(), p.begin(), ::toupper);
        if (s.compare(c) >= 0) {
            count += 1;
        }   
    }
    cout << count << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:23: error: 'c' was not declared in this scope
   14 |         if (s.compare(c) >= 0) {
      |                       ^
Language: C++

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

int main(){
 int count = 0;
 string w,str;

 cin >> w >> str;

 while(str != END_OF_TEXT){
  if(str == w)
   count++;
 }

 return 0;
}

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

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

int main(){
 int count = 0;
 string w,str;

 cin >> w >> str;

 while(str != END_OF_TEXT){
  if(str == w)
   count++;
 }

 return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:15: error: 'END_OF_TEXT' was not declared in this scope
   11 |  while(str != END_OF_TEXT){
      |               ^~~~~~~~~~~
Language: C++

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

int main()
{
	int i,count = 0;
	char W[11],T[1001];
	
	scanf("%s",W);
	while(1){
		scanf("%s",T);
		if(strcmp(T,"END_OF_TEXT") == 0)  break;
		for(i = 0;i < strlen(W);i++) W[i] = tolower(W[i]);
		for(i = 0;i < strlen(T);i++) T[i] = tolower(T[i]);
		if(strcmp(W,T) == 0) count++;
	}
	printf("%d\n",count);
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:53: error: 'tolower' was not declared in this scope
   13 |                 for(i = 0;i < strlen(W);i++) W[i] = tolower(W[i]);
      |                                                     ^~~~~~~
a.cc:14:53: error: 'tolower' was not declared in this scope
   14 |                 for(i = 0;i < strlen(T);i++) T[i] = tolower(T[i]);
      |                                                     ^~~~~~~
Language: C++

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

int main(){
	string W, T;
	long i = 0;
	cin >> W;
	const char *W2 = W;
	W = transform(W2.begin(), W2.end(), W2.begin(), ::tolower);
	while (cin >> T){
		if (T == "END_OF_TEXT") break;
		const char *T2 = T;
		T2 = transform(T2.begin(), T2.end(), T2.begin(), ::tolower);
		if (T == W) i++;
	}
	cout << i << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:26: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'const char*' in initialization
   10 |         const char *W2 = W;
      |                          ^
      |                          |
      |                          std::string {aka std::__cxx11::basic_string<char>}
a.cc:11:26: error: request for member 'begin' in 'W2', which is of non-class type 'const char*'
   11 |         W = transform(W2.begin(), W2.end(), W2.begin(), ::tolower);
      |                          ^~~~~
a.cc:11:38: error: request for member 'end' in 'W2', which is of non-class type 'const char*'
   11 |         W = transform(W2.begin(), W2.end(), W2.begin(), ::tolower);
      |                                      ^~~
a.cc:11:48: error: request for member 'begin' in 'W2', which is of non-class type 'const char*'
   11 |         W = transform(W2.begin(), W2.end(), W2.begin(), ::tolower);
      |                                                ^~~~~
a.cc:14:34: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'const char*' in initialization
   14 |                 const char *T2 = T;
      |                                  ^
      |                                  |
      |                                  std::string {aka std::__cxx11::basic_string<char>}
a.cc:15:35: error: request for member 'begin' in 'T2', which is of non-class type 'const char*'
   15 |                 T2 = transform(T2.begin(), T2.end(), T2.begin(), ::tolower);
      |                                   ^~~~~
a.cc:15:47: error: request for member 'end' in 'T2', which is of non-class type 'const char*'
   15 |                 T2 = transform(T2.begin(), T2.end(), T2.begin(), ::tolower);
      |                                               ^~~
a.cc:15:57: error: request for member 'begin' in 'T2', which is of non-class type 'const char*'
   15 |                 T2 = transform(T2.begin(), T2.end(), T2.begin(), ::tolower);
      |                                                         ^~~~~
Language: C++

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

int main(){
	string W, T;
	long i = 0;
	cin >> W;
	const char * W2 = W.c_str();
	W = transform(W2.begin(), W2.end(), W2.begin(), ::tolower);
	while (cin >> T){
		if (T == "END_OF_TEXT") break;
		const char * T2 = T.c_str();
		T = transform(T2.begin(), T2.end(), T2.begin(), ::tolower);
		if (T == W) i++;
	}
	cout << i << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:26: error: request for member 'begin' in 'W2', which is of non-class type 'const char*'
   11 |         W = transform(W2.begin(), W2.end(), W2.begin(), ::tolower);
      |                          ^~~~~
a.cc:11:38: error: request for member 'end' in 'W2', which is of non-class type 'const char*'
   11 |         W = transform(W2.begin(), W2.end(), W2.begin(), ::tolower);
      |                                      ^~~
a.cc:11:48: error: request for member 'begin' in 'W2', which is of non-class type 'const char*'
   11 |         W = transform(W2.begin(), W2.end(), W2.begin(), ::tolower);
      |                                                ^~~~~
a.cc:15:34: error: request for member 'begin' in 'T2', which is of non-class type 'const char*'
   15 |                 T = transform(T2.begin(), T2.end(), T2.begin(), ::tolower);
      |                                  ^~~~~
a.cc:15:46: error: request for member 'end' in 'T2', which is of non-class type 'const char*'
   15 |                 T = transform(T2.begin(), T2.end(), T2.begin(), ::tolower);
      |                                              ^~~
a.cc:15:56: error: request for member 'begin' in 'T2', which is of non-class type 'const char*'
   15 |                 T = transform(T2.begin(), T2.end(), T2.begin(), ::tolower);
      |                                                        ^~~~~
Language: C++

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

int main(){
	string W, T;
	long i = 0;
	cin >> W;
	const char* W2 = W.c_str();
	W = transform(W2.begin(), W2.end(), W2.begin(), ::tolower);
	while (cin >> T){
		if (T == "END_OF_TEXT") break;
		const char* T2 = T.c_str();
		T = transform(T2.begin(), T2.end(), T2.begin(), ::tolower);
		if (T == W) i++;
	}
	cout << i << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:26: error: request for member 'begin' in 'W2', which is of non-class type 'const char*'
   11 |         W = transform(W2.begin(), W2.end(), W2.begin(), ::tolower);
      |                          ^~~~~
a.cc:11:38: error: request for member 'end' in 'W2', which is of non-class type 'const char*'
   11 |         W = transform(W2.begin(), W2.end(), W2.begin(), ::tolower);
      |                                      ^~~
a.cc:11:48: error: request for member 'begin' in 'W2', which is of non-class type 'const char*'
   11 |         W = transform(W2.begin(), W2.end(), W2.begin(), ::tolower);
      |                                                ^~~~~
a.cc:15:34: error: request for member 'begin' in 'T2', which is of non-class type 'const char*'
   15 |                 T = transform(T2.begin(), T2.end(), T2.begin(), ::tolower);
      |                                  ^~~~~
a.cc:15:46: error: request for member 'end' in 'T2', which is of non-class type 'const char*'
   15 |                 T = transform(T2.begin(), T2.end(), T2.begin(), ::tolower);
      |                                              ^~~
a.cc:15:56: error: request for member 'begin' in 'T2', which is of non-class type 'const char*'
   15 |                 T = transform(T2.begin(), T2.end(), T2.begin(), ::tolower);
      |                                                        ^~~~~
Language: C++

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

int main(){
	string W, T;
	long i = 0;
	cin >> W;
	const char* W2 = W.c_str();
	W = transform(W.begin(), W.end(), W2.begin(), ::tolower);
	while (cin >> T){
		if (T == "END_OF_TEXT") break;
		const char* T2 = T.c_str();
		T = transform(T.begin(), T.end(), T2.begin(), ::tolower);
		if (T == W) i++;
	}
	cout << i << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:46: error: request for member 'begin' in 'W2', which is of non-class type 'const char*'
   11 |         W = transform(W.begin(), W.end(), W2.begin(), ::tolower);
      |                                              ^~~~~
a.cc:15:54: error: request for member 'begin' in 'T2', which is of non-class type 'const char*'
   15 |                 T = transform(T.begin(), T.end(), T2.begin(), ::tolower);
      |                                                      ^~~~~
Language: C++

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

int main(){
	string W, T;
	long i = 0;
	cin >> W;
	char* W2 = W.c_str();
	W = transform(W2.begin(), W2.end(), W2.begin(), ::tolower);
	while (cin >> T){
		if (T == "END_OF_TEXT") break;
		char* T2 = T.c_str();
		T = transform(T2.begin(), T2.end(), T2.begin(), ::tolower);
		if (T == W) i++;
	}
	cout << i << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:27: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]
   10 |         char* W2 = W.c_str();
      |                    ~~~~~~~^~
      |                           |
      |                           const char*
a.cc:11:26: error: request for member 'begin' in 'W2', which is of non-class type 'char*'
   11 |         W = transform(W2.begin(), W2.end(), W2.begin(), ::tolower);
      |                          ^~~~~
a.cc:11:38: error: request for member 'end' in 'W2', which is of non-class type 'char*'
   11 |         W = transform(W2.begin(), W2.end(), W2.begin(), ::tolower);
      |                                      ^~~
a.cc:11:48: error: request for member 'begin' in 'W2', which is of non-class type 'char*'
   11 |         W = transform(W2.begin(), W2.end(), W2.begin(), ::tolower);
      |                                                ^~~~~
a.cc:14:35: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]
   14 |                 char* T2 = T.c_str();
      |                            ~~~~~~~^~
      |                                   |
      |                                   const char*
a.cc:15:34: error: request for member 'begin' in 'T2', which is of non-class type 'char*'
   15 |                 T = transform(T2.begin(), T2.end(), T2.begin(), ::tolower);
      |                                  ^~~~~
a.cc:15:46: error: request for member 'end' in 'T2', which is of non-class type 'char*'
   15 |                 T = transform(T2.begin(), T2.end(), T2.begin(), ::tolower);
      |                                              ^~~
a.cc:15:56: error: request for member 'begin' in 'T2', which is of non-class type 'char*'
   15 |                 T = transform(T2.begin(), T2.end(), T2.begin(), ::tolower);
      |                                                        ^~~~~
Language: C++

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

int main() {
    string w, t;
    int count = 0;
    cin >> w;
    transform(w.begin(), w.end(), w.begin(), ::toupper);

    while(1){
        cin >> t;
        if (t.find("END_OF_TEXT")!=string::npos) break;
        transform(t.begin(), t.end(), t.begin(), ::toupper);
        if (t == w)count++;
        cout << count << endl;
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:5: error: 'transform' was not declared in this scope
   10 |     transform(w.begin(), w.end(), w.begin(), ::toupper);
      |     ^~~~~~~~~
Language: C++

#include<iostream>
#include<string>
using namespace std;
int main(){
  int num=0;
  string exp_str,str;
  cin>>exp_str;
  while(str!="END_OF_TEXT"){
  cin>>str;
  if(str==exp_str)num++;
}
cout<<num<<endl;
  return 0;
}
a#include<iostream>
#include<string>
#include<cctype>
using namespace std;
int main(){
  int num=0;
  string W,T;
  cin>>W;
  for(int i=0;i<W.size();i++)W[i]=tolower(W[i]);
  while (cin>>T,T!="END_OF_TEXT"){
    for(int i=0;i<T.size();i++)T[i]=tolower(T[i]);
    if(T==W)num++;
  }
cout<<num<<endl;
  return 0;
}

Compiler output:
a.cc:15:2: error: stray '#' in program
   15 | a#include<iostream>
      |  ^
a.cc:15:1: error: 'a' does not name a type
   15 | a#include<iostream>
      | ^
a.cc:19:5: error: redefinition of 'int main()'
   19 | int main(){
      |     ^~~~
a.cc:4:5: note: 'int main()' previously defined here
    4 | int main(){
      |     ^~~~
Language: C++

w = gets.chomp.lowercase
res = 0
loop do
  s = gets.chomp
  break if s=='END_OF_TEXT'

  res += s.lowercase.split.count(w)
end

puts res

Compiler output:
a.cc:5:15: warning: multi-character literal with 11 characters exceeds 'int' size of 4 bytes
    5 |   break if s=='END_OF_TEXT'
      |               ^~~~~~~~~~~~~
a.cc:1:1: error: 'w' does not name a type
    1 | w = gets.chomp.lowercase
      | ^
Language: C++

#include <iostream>
using namespace std;
#include <stdio.h>
int main()
{
	char W[10], T[1000], END[] = {"END_OF_TEXT"};
	int count = 0, a = 0, b = 0, Bool = 0, k;
	scanf_s("%c" ,W, 1);
	for(int i=0;!(Bool);i++){
		T[i] = getchar();
		if ('A' <= T[i] && T[i] <= 'Z') T[i] = (T[i] - 'A') + 'a';
		if (T[i] == W[a]) {
			a++;
			if (W[a] == '\0'){ count++; a = 0; }
		}
		else a = 0;
		if (T[i] == '\n' || T[i] == '\0'){ i = 0; a = 0; }
		if (T[i] == END[b]) {
			b++;
			if (END[b + 1] == '\0'){ Bool = 1; }
		}
	}
	printf("%d\n", count);
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
    8 |         scanf_s("%c" ,W, 1);
      |         ^~~~~~~
      |         scanf
Language: C++

#include <iostream>
using namespace std;
#include <stdio.h>
#include <string.h>
int main()
{
	char W[10], T[1000], END[13] = {"end_of_text"};
	int count = 0, a = 0, b = 0, Bool = 0, k;
	scanf_s("%s" ,W, 10);
	for(int i=0;!(Bool);i++){
		T[i] = getchar();
		T[i] = tolower(T[i]);
		if (T[i] == W[a]) {
			a++;
			if (W[a] == '\0'){ count++; a = 0; }
		}
		else a = 0;
		if (T[i] == '\n' || T[i] == '\0'){ i = 0; a = b = 0; }
		if (T[i] == END[b]) {
			b++;
			if (END[b] == '\0'){ Bool = 1; }
		}
		else b = 0;
	}
	printf("%d\n", count);
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
    9 |         scanf_s("%s" ,W, 10);
      |         ^~~~~~~
      |         scanf
Language: C++

#include <iostream>
#include <string>
#include <sstream>

using namespace std;

int main()
{
	string W, T;
	cin >> W;

	while (true)
	{
		string s;
		getline(cin, s);

		if (s == "END_OF_TEXT")
			break;

		T += s + " ";
	}

	istringstream is(T);
	string word;
	int count = 0;
	while (is >> word)
	{
		if (!_stricmp(W.c_str(), word.c_str()))
			++count;
	}

	cout << count << endl;

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:28:22: error: '_stricmp' was not declared in this scope
   28 |                 if (!_stricmp(W.c_str(), word.c_str()))
      |                      ^~~~~~~~
Language: C++

#include <iostream>
#include <string>
#include <sstream>

using namespace std;

int main()
{
	string W, T;
	cin >> W;

	while (true)
	{
		string s;
		getline(cin, s);

		if (s == "END_OF_TEXT")
			break;

		T += s + " ";
	}

	istringstream is(T);
	string word;
	int count = 0;
	while (is >> word)
	{
		if (!stricmp(W.c_str(), word.c_str()))
			++count;
	}

	cout << count << endl;

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:28:22: error: 'stricmp' was not declared in this scope
   28 |                 if (!stricmp(W.c_str(), word.c_str()))
      |                      ^~~~~~~
Language: C++

#include <iostream>
#include <string>
#include <cstring>
#include <sstream>

using namespace std;

int main()
{
	string W, T;
	cin >> W;

	while (true)
	{
		string s;
		getline(cin, s);

		if (s == "END_OF_TEXT")
			break;

		T += s + " ";
	}

	istringstream is(T);
	string word;
	int count = 0;
	while (is >> word)
	{
		if (!stricmp(W.c_str(), word.c_str()))
			++count;
	}

	cout << count << endl;

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:29:22: error: 'stricmp' was not declared in this scope; did you mean 'strncmp'?
   29 |                 if (!stricmp(W.c_str(), word.c_str()))
      |                      ^~~~~~~
      |                      strncmp
Language: C++

#include <iostream>
#include <string>
#include <sstream>
#include <algorithm>

using namespace std;

int main()
{
	string W, T;
	cin >> W;

	while (true)
	{
		string s;
		getline(cin, s);

		if (s == "END_OF_TEXT")
			break;

		T += s + " ";
	}

	transform(T.begin(), T.end(), T.begin(), ::tolower);

	istringstream is(T);
	string word;
	int count = 0;
	while (is >> word)
	{
		if (!strcmp(W.c_str(), word.c_str()))
			++count;
	}

	cout << count << endl;

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:31:22: error: 'strcmp' was not declared in this scope
   31 |                 if (!strcmp(W.c_str(), word.c_str()))
      |                      ^~~~~~
a.cc:5:1: note: 'strcmp' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    4 | #include <algorithm>
  +++ |+#include <cstring>
    5 |
Language: C++

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

using namespace std;

int main()
{
	string W, str;
	int cnt = 0;
	cin >> W;
	{

	}
	do {
		cin >> str;
		if (_stricmp(W.c_str(), str.c_str()) == 0) cnt++;
	} while (str != "END_OF_TEXT");
	cout << cnt << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:21: error: '_stricmp' was not declared in this scope; did you mean 'strncmp'?
   17 |                 if (_stricmp(W.c_str(), str.c_str()) == 0) cnt++;
      |                     ^~~~~~~~
      |                     strncmp
Language: C++

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

int main()
{
    char s[1000], c[10];
    int sum = 0;
    cin >> c;
    for (unsigned i = 0; i < strlen(c); i++)c[i] = tolower(c[i]);
    while (1)
    {
        cin >> s;
        if (strcmp(s, "END_OF_TEXT") == 0)break;
        for (unsigned i = 0; i < strlen(s); i++)s[i] = tolower(s[i]);
        if (strcmp(s, c) == 0)sum++;
    }
    cout << sum << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:30: error: 'strlen' was not declared in this scope
   10 |     for (unsigned i = 0; i < strlen(c); i++)c[i] = tolower(c[i]);
      |                              ^~~~~~
a.cc:2:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    1 | #include<iostream>
  +++ |+#include <cstring>
    2 | #include<string>
a.cc:14:13: error: 'strcmp' was not declared in this scope
   14 |         if (strcmp(s, "END_OF_TEXT") == 0)break;
      |             ^~~~~~
a.cc:14:13: note: 'strcmp' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
a.cc:15:34: error: 'strlen' was not declared in this scope
   15 |         for (unsigned i = 0; i < strlen(s); i++)s[i] = tolower(s[i]);
      |                                  ^~~~~~
a.cc:15:34: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
a.cc:16:13: error: 'strcmp' was not declared in this scope
   16 |         if (strcmp(s, c) == 0)sum++;
      |             ^~~~~~
a.cc:16:13: note: 'strcmp' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
Language: C++

#include<iostream>
#include<string>
#include<ctype.h>
using namespace std;

int main()
{
    char s[1000], c[10];
    int sum = 0;
    cin >> c;
    for (unsigned i = 0; i < strlen(c); i++)c[i] = tolower(c[i]);
    while (1)
    {
        cin >> s;
        if (strcmp(s, "END_OF_TEXT") == 0)break;
        for (unsigned i = 0; i < strlen(s); i++)s[i] = tolower(s[i]);
        if (strcmp(s, c) == 0)sum++;
    }
    cout << sum << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:30: error: 'strlen' was not declared in this scope
   11 |     for (unsigned i = 0; i < strlen(c); i++)c[i] = tolower(c[i]);
      |                              ^~~~~~
a.cc:2:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    1 | #include<iostream>
  +++ |+#include <cstring>
    2 | #include<string>
a.cc:15:13: error: 'strcmp' was not declared in this scope
   15 |         if (strcmp(s, "END_OF_TEXT") == 0)break;
      |             ^~~~~~
a.cc:15:13: note: 'strcmp' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
a.cc:16:34: error: 'strlen' was not declared in this scope
   16 |         for (unsigned i = 0; i < strlen(s); i++)s[i] = tolower(s[i]);
      |                                  ^~~~~~
a.cc:16:34: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
a.cc:17:13: error: 'strcmp' was not declared in this scope
   17 |         if (strcmp(s, c) == 0)sum++;
      |             ^~~~~~
a.cc:17:13: note: 'strcmp' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
Language: C++

#include <iostream>
#include <string>
#include <algorithm>

using namespace std;

int main()
{
	string W, str;
	int cnt = 0;
	cin >> W;
	transform(W.begin(), W.end(), W.begin(), ::tolower);
	do {
		cin >> str;
		if (_stricmp(W.c_str(), str.c_str()) == 0) cnt++;
	} while (str != "END_OF_TEXT");
	cout << cnt << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:21: error: '_stricmp' was not declared in this scope
   15 |                 if (_stricmp(W.c_str(), str.c_str()) == 0) cnt++;
      |                     ^~~~~~~~
Language: C++

#include <iostream>
#include <string>

using namespace std;

int main(){
	int count = 0;
	string w, t;
	cin >> w;
	transform(w.begin(), w.end(), w.begin(), ::tolower);
	while(cin >> t){
		if(t == "END_OF_TEXT") break;
		transform(t.begin(), t.end(), t.begin(), ::tolower);
		if(w == t) count++;
	}
	cout << count << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: 'transform' was not declared in this scope
   10 |         transform(w.begin(), w.end(), w.begin(), ::tolower);
      |         ^~~~~~~~~
Language: C++

#include <iostream>
#include <string>

using namespace std;

int main(){
	int count = 0;
	string w, t;
	cin >> w;
	std::transform(w.begin(), w.end(), w.begin(), ::tolower);
	while(cin >> t){
		if(t == "END_OF_TEXT") break;
		std::transform(t.begin(), t.end(), t.begin(), ::tolower);
		if(w == t) count++;
	}
	cout << count << endl;
	
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:14: error: 'transform' is not a member of 'std'
   10 |         std::transform(w.begin(), w.end(), w.begin(), ::tolower);
      |              ^~~~~~~~~
a.cc:13:22: error: 'transform' is not a member of 'std'
   13 |                 std::transform(t.begin(), t.end(), t.begin(), ::tolower);
      |                      ^~~~~~~~~
Language: C++

#include <iostream>
#include <string>
#include <cctype>

using namespace std;

int main(){
	int count = 0;
	string w, t;
	cin >> w;
	transform(w.begin(), w.end(), w.begin(), ::tolower);
	while(cin >> t){
		if(t == "END_OF_TEXT") break;
		transform(t.begin(), t.end(), t.begin(), ::tolower);
		if(w == t) count++;
	}
	cout << count << endl;
	
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:9: error: 'transform' was not declared in this scope
   11 |         transform(w.begin(), w.end(), w.begin(), ::tolower);
      |         ^~~~~~~~~
Language: C++

#include <iostream???
using namespace std;
int main() {
	int x = 0;
	string W, T;
	cin >> W;
	while (cin >> T, T != "END_OF_TEXT") {
		for (int i = 0; i < T.size(); i++) T[i] = tolower(T[i]);
		if (W == T) x++;
	}
	cout << x << endl;
}

Compiler output:
a.cc:1:22: error: missing terminating > character
    1 | #include <iostream???
      |                      ^
a.cc:1:10: fatal error: iostream???: No such file or directory
    1 | #include <iostream???
      |          ^
compilation terminated.
Language: C++

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

int main() {
    string w,t;
    int count=0;
    cin >> w;
    for(int i=0,i<w.size();i++){
        w[i] = tolower(w[i]);
    }
    while(cin >> t){
        if(t =="END_OF_TEXT") break;
        for(int i=0,i<t.size();i++){
            t[i] = tolower(t[i]);
        }
        if(t == w){
            count++;
        }
    }
    cout << count << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:18: error: expected ';' before '<' token
   10 |     for(int i=0,i<w.size();i++){
      |                  ^
      |                  ;
a.cc:10:18: error: expected primary-expression before '<' token
a.cc:15:22: error: expected ';' before '<' token
   15 |         for(int i=0,i<t.size();i++){
      |                      ^
      |                      ;
a.cc:15:22: error: expected primary-expression before '<' token
Language: C++

count = 0
arr = gets
while moij = gets.chomp
  
  if moji == "END_OF_TEXT" then
    break
  end
  
  if moji == arr then
    count = count + 1
  end
  puts count
end

Compiler output:
a.cc:1:1: error: 'count' does not name a type
    1 | count = 0
      | ^~~~~
Language: C++

import java.util.Scanner;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class Main {
	void run(){
		Scanner s = new Scanner(System.in);
		String W = s.next().toLowerCase();
		String T="";
		String txt = "";
		int cnt=0;
		while(!"END_OF_TEXT".equals(txt)){
			T += txt.toLowerCase();
			txt = s.nextLine();
		}
		Pattern p = Pattern.compile(W);
		Matcher mch = p.matcher(T);
		while(mch.find()){
			cnt++;
			mch.region(mch.end(),T.length());
		}
		System.out.println(cnt);
	}
	public static void main(String args[]){
		new Main().run();
	}
}

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.Scanner;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:2:1: error: 'import' does not name a type
    2 | import java.util.regex.Matcher;
      | ^~~~~~
a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: 'import' does not name a type
    3 | import java.util.regex.Pattern;
      | ^~~~~~
a.cc:3:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:5:1: error: expected unqualified-id before 'public'
    5 | public class Main {
      | ^~~~~~
Language: C++

#include <iostream>
#include <string>

int main(void) {
  std::string word;
  std::string text;

  std::cin >> word;
  std::cin >> text;

  int count = 0;
  
  while (text != "END_OF_TEXT") {
    std::transform(text.begin(), text.end(), text.begin(), ::tolower);      
				  
    if (text == word) {
      count++;
    }
    
    std::cin >> text;
  }

  std::cout << count << std::endl;
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:10: error: 'transform' is not a member of 'std'
   14 |     std::transform(text.begin(), text.end(), text.begin(), ::tolower);
      |          ^~~~~~~~~
Language: C++

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

int main (void){
	int i,j=0;
	char in[1010],n[1010];
	scanf("%s",n);
	while(1){
		scanf("%s",in);
		if(!strcmp(in,"END_OF_TEXT")){
			break;
		}
		for(i=0;i<strlen(in);i++){
			in[i]=tolower(in[i]);
		}
		if(!strcmp(n,in)){
			j++;
		}
	}
	printf("%d\n",j);
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:31: error: 'tolower' was not declared in this scope
   14 |                         in[i]=tolower(in[i]);
      |                               ^~~~~~~
Language: C++

#include <iostream>
#include <string>
#include <stddef.h>
#include <stack>
#include <queue>
#include <cctype>
#include <stdio.h>

using namespace std;


int main() {
	string s;
	string w;
	int count=0;
	cin >> w;
	transform(w.begin(), w.end(), w.begin(), tolower);
	while (cin >> s) {
		if (s == "END_OF_TEXT") break;
		transform(s.begin(), s.end(), s.begin(), tolower);
		if (s == w) count++;
	}
	cout << count << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:9: error: 'transform' was not declared in this scope
   17 |         transform(w.begin(), w.end(), w.begin(), tolower);
      |         ^~~~~~~~~
Language: C++

import java.io.*;

public class Main {

	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		
		String w = br.readLine().toLowerCase();

		String t    = null;
		String line	= null;
		int	sum		= 0;
		
		do {
			line = br.readLine().toLowerCase();
			if ("end_of_text".equals(line)) break;
			t += line;
		} while (true);
		
		for (int i = 0; i < t.length(); i++) {
			int j = t.indexOf(w, i);
			if (j >= 0) {
				sum++;
				i = j;
			}
		}
		
		System.out.println(sum);
	}
}

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.io.*;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: expected unqualified-id before 'public'
    3 | public class Main {
      | ^~~~~~
Language: C++

import java.io.*;

public class Main {

	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		
		String w = br.readLine().toLowerCase();

		String t    = null;
		String line	= null;
		int	sum		= 0;
		
		do {
			line = br.readLine().toLowerCase();
			if ("END_OF_TEXT".equals(line.toUpperCase())) break;
			t += line;
		} while (true);
		
		for (int i = 0; i < t.length(); i++) {
			int j = t.indexOf(w, i);
			if (j >= 0) {
				sum++;
				i = j;
			}
		}
		
		System.out.println(sum);
	}
}

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.io.*;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: expected unqualified-id before 'public'
    3 | public class Main {
      | ^~~~~~
Language: C++

#include <iostream>
using namespace std;

int main(){

	string w, t;
	int count = 0;

	cin >> w;
	for(int i=0; i<w.size(); i++){
		if('A'<=w[i] && w[i]<='Z'){
			w[i] = w[i] - 'A' + 'a';
		}
	}
	while(cin >> t){
		if(s=="END_OF_TEXT") break;
		if(t.size() != s.size()) continue;
		for(int i=0; i<t.size(); i++){
			if('A'<=t[i] && t[i]<='Z'){
				t[i] = t[i] - 'A' + 'a';
			}
			if(s[i] == t[i]){
				count++;
			}
		}
	}

	cout << count << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:20: error: 's' was not declared in this scope
   16 |                 if(s=="END_OF_TEXT") break;
      |                    ^
a.cc:17:32: error: 's' was not declared in this scope
   17 |                 if(t.size() != s.size()) continue;
      |                                ^
a.cc:22:28: error: 's' was not declared in this scope
   22 |                         if(s[i] == t[i]){
      |                            ^
Language: C++

#include <iostream>
using namespace std;

int main(){

	string w, t;
	int count = 0;

	cin >> w;
	for(int i=0; i<w.size(); i++){
		if('A'<=w[i] && w[i]<='Z'){
			w[i] = w[i] - 'A' + 'a';
		}
	}
	while(cin >> t){
		if(s=="END_OF_TEXT") break;
		if(t.size() != t.size()) continue;
		for(int i=0; i<t.size(); i++){
			if('A'<=t[i] && t[i]<='Z'){
				t[i] = t[i] - 'A' + 'a';
			}
			if(w[i] == t[i]){
				count++;
			}
		}
	}

	cout << count << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:20: error: 's' was not declared in this scope
   16 |                 if(s=="END_OF_TEXT") break;
      |                    ^
Language: C++

word = gets.chomp.downcase
len = word.size
j = 0

while true
  t = gets.chomp
  break if t=="END_OF_TEXT"  
  t.downcase!
  
  for i in 0..len-1
    if t[i]==word[0]
      for k in 1..len
        break if t[i+k]!=word[k]
        j+=1 if k==len
      end
    end
  end
end

puts j

Compiler output:
a.cc:10:12: error: too many decimal points in number
   10 |   for i in 0..len-1
      |            ^~~~~~
a.cc:12:16: error: too many decimal points in number
   12 |       for k in 1..len
      |                ^~~~~~
a.cc:1:1: error: 'word' does not name a type
    1 | word = gets.chomp.downcase
      | ^~~~
Language: C++



#include <iostream>
#include <string>
#include <cctype>
using namespace std;
 
int main()
{
	int i,count = 0;
	char w[10],t[1000];
	int T_length;//?????????t???byte??°?????????
	string str;//??????????????????
	string w;//?????????
	
	cin >>w;//?????????????????????
	for( i = 0; w[i] != 0; i++){
		if(isupper(w[i])) w[i] = tolower(w[i]);
	}
	
	while(1){
		cin >> t;//????????????????????????
		if(str == "END_OF_TEXT") break;
		
		T_length = str;
		for( i = 0; w[i] != 0; i++){
			if(isupper(T[i])) T[i] = tolower(T[i]);
		}if (str == w) count++;
	}
	cout << count << endl;
	return 0;
}
	

Compiler output:
a.cc: In function 'int main()':
a.cc:14:16: error: conflicting declaration 'std::string w'
   14 |         string w;//?????????
      |                ^
a.cc:11:14: note: previous declaration as 'char w [10]'
   11 |         char w[10],t[1000];
      |              ^
a.cc:25:28: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'int' in assignment
   25 |                 T_length = str;
      |                            ^~~
      |                            |
      |                            std::string {aka std::__cxx11::basic_string<char>}
a.cc:27:36: error: 'T' was not declared in this scope
   27 |                         if(isupper(T[i])) T[i] = tolower(T[i]);
      |                                    ^
Language: C++



#include <iostream>
#include <string>
#include <cctype>
using namespace std;
 
int main()
{
	int i,count = 0;
	char w[10],t[1000];
	int T_length;//?????????t???byte??°?????????
	string str;//??????????????????
	string w;//?????????
	
	cin >>w;//?????????????????????
	for( i = 0; w[i] != 0; i++){
		if(isupper(w[i])) w[i] = tolower(w[i]);
	}
	
	while(1){
		cin >> t;//????????????????????????
		if(str == "END_OF_TEXT") break;
		
		T_length = str;
		for( i = 0; w[i] != 0; i++){
			if(isupper(t[i])) t[i] = tolower(T[i]);
		}if (str == w) count++;
	}
	cout << count << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:16: error: conflicting declaration 'std::string w'
   14 |         string w;//?????????
      |                ^
a.cc:11:14: note: previous declaration as 'char w [10]'
   11 |         char w[10],t[1000];
      |              ^
a.cc:25:28: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'int' in assignment
   25 |                 T_length = str;
      |                            ^~~
      |                            |
      |                            std::string {aka std::__cxx11::basic_string<char>}
a.cc:27:58: error: 'T' was not declared in this scope
   27 |                         if(isupper(t[i])) t[i] = tolower(T[i]);
      |                                                          ^
Language: C++

#include<cstdio>
#include<iostream>
#include<algorithm>
#include<vector>
#include<string>
using namespace std;
 
int main()
{
	int i,count = 0;
	char w[10],t[1000];
	int T_length;//?????????t???byte??°?????????
	string str;//??????????????????
	string w;//?????????
	
	cin >>w;//?????????????????????
	for( i = 0; w[i] != 0; i++){
		if(isupper(w[i])) w[i] = tolower(w[i]);
	}
	
	while(1){
		cin >> t;//????????????????????????
		if(str == "END_OF_TEXT") break;
		
		T_length = str;
		for( i = 0; w[i] != 0; i++){
			if(isupper(t[i])) t[i] = tolower(T[i]);
		}if (str == w) count++;
	}
	cout << count << endl;
	return 0;
}
	

Compiler output:
a.cc: In function 'int main()':
a.cc:14:16: error: conflicting declaration 'std::string w'
   14 |         string w;//?????????
      |                ^
a.cc:11:14: note: previous declaration as 'char w [10]'
   11 |         char w[10],t[1000];
      |              ^
a.cc:25:28: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'int' in assignment
   25 |                 T_length = str;
      |                            ^~~
      |                            |
      |                            std::string {aka std::__cxx11::basic_string<char>}
a.cc:27:58: error: 'T' was not declared in this scope
   27 |                         if(isupper(t[i])) t[i] = tolower(T[i]);
      |                                                          ^
Language: C++

#include<cstdio>
#include<iostream>
#include<algorithm>
#include<vector>
#include<string>
using namespace std;
 
int main()
{
	int i,count = 0;
	char w [10], t [1000];
	int T_length;//?????????t???byte??°?????????
	std::string s,W;//?????????
	
	cin >>w;//?????????????????????
	for( i = 0; w[i] != 0; i++){
		if(isupper(w[i])) w[i] = tolower(w[i]);
	}
	
	while(1){
		cin >> t;//????????????????????????
		if(s == "END_OF_TEXT") break;
		
		if (s.length() > W.length() + 1) continue;
		for( i = 0; i < s.length; i++){
			if (s[i] == '.' && i == s.length() - 1) s.erase(i);
			if(isupper(t[i])) t[i] = tolower(t[i]);
		}if (s == w) count++;
	}
	cout << count << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:25:35: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::length() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]' (did you forget the '()' ?)
   25 |                 for( i = 0; i < s.length; i++){
      |                                 ~~^~~~~~
      |                                         ()
Language: C++

#include<cstdio>
#include<iostream>
#include<algorithm>
#include<vector>
#include<string>
using namespace std;
 
int main()
{
	int i,count = 0;
	char w [10], t [1000];
	int T_length;//?????????t???byte??°?????????
	std::string s,W;//?????????
	
	cin >>w;//?????????????????????
	for( i = 0; w[i] != 0; i++){
		if(isupper(w[i])) w[i] = tolower(w[i]);
	}
	
	while(1){
		cin >> t;//????????????????????????
		if(s == "END_OF_TEXT") break;
		
		if (s.length() > w.length() + 1) continue;
		for( i = 0; w[i] != 0; i++){
			if(isupper(t[i])) t[i] = tolower(t[i]);
		}if (s == w) count++;
	}
	cout << count << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:24:36: error: request for member 'length' in 'w', which is of non-class type 'char [10]'
   24 |                 if (s.length() > w.length() + 1) continue;
      |                                    ^~~~~~
Language: C++

#include<cstdio>
#include<iostream>
#include<algorithm>
#include<vector>
#include<string>
using namespace std;
 
int main()
{
	int i,count = 0;
	char w [10], t [1000];
	int T_length;//?????????t???byte??°?????????
	std::string s,W;//?????????
	
	cin >>w;//?????????????????????
	for( i = 0; w[i] != 0; i++){
		if(isupper(w[i])) w[i] = tolower(w[i]);
	}
	
	while(1){
		cin >> t;//????????????????????????
		if(s == "END_OF_TEXT") break;
		
		if (s.length() > W.length() + 1) continue;
		for( i = 0; i < s.length; i++){
			if(isupper(t[i])) t[i] = tolower(t[i]);
		}if (s == w) count++;
	}
	cout << count << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:25:35: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::length() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]' (did you forget the '()' ?)
   25 |                 for( i = 0; i < s.length; i++){
      |                                 ~~^~~~~~
      |                                         ()
Language: C++

<?php
$W = trim(fgets(STDIN));
$cnt = 0;
while($t = fgets(STDIN)){
    $t = trim($t);
    $cnt += preg_match_all("/".$W."/i",$t,$ok);
}
echo $cnt."\n";

Compiler output:
a.cc:1:1: error: expected unqualified-id before '<' token
    1 | <?php
      | ^
a.cc:3:1: error: '$cnt' does not name a type
    3 | $cnt = 0;
      | ^~~~
a.cc:4:1: error: expected unqualified-id before 'while'
    4 | while($t = fgets(STDIN)){
      | ^~~~~
a.cc:8:1: error: 'echo' does not name a type
    8 | echo $cnt."\n";
      | ^~~~
Language: C++

#include<cstdio>
#include<iostream>
#include<algorithm>
#include<vector>
#include<string>
using namespace std;
  
int main()
{
    int i,count = 0;
    char w [10], t [1000];
    int T_length;
    std::string s,W;
     
    cin >>w;//?????????????????????
    for( i = 0; w[i] != 0; i++){
        if(isupper(w[i])) w[i] = tolower(w[i]);
    }
     
    while(1){
        cin >> t;
        if(s == "END_OF_TEXT") break;
         
        if (w.length() > W.length() + 1) continue;
        for( i = 0; w[i] != 0; i++){
            if(isupper(t[i])) t[i] = tolower(t[i]);
        }if (s == w) count++;
    }
    cout << count << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:24:15: error: request for member 'length' in 'w', which is of non-class type 'char [10]'
   24 |         if (w.length() > W.length() + 1) continue;
      |               ^~~~~~
Language: C++

#include<iostream>
#include<cctype>
#include<string>
using namespace std;
  
int main()
{
	int i,count = 0;
	string w , t;
	
	cin >>w;//?????????????????????
	
	for( i = 0; w[i] != 0; i++){
		w[i] = toupper(w[i]);
	}
	
	while(1){
		cin >> t;
		if(t == "END_OF_TEXT") break;//END_OF_TEXT??§????????????
		
		for( i = 0; i<y.size; i++){
        	t[i] = toupper(t[i]);
		}
    	if (t == w) count++;
	}
	cout << count << endl;
	return 0;
}

//???????????????????????£???

Compiler output:
a.cc: In function 'int main()':
a.cc:21:31: error: 'y' was not declared in this scope
   21 |                 for( i = 0; i<y.size; i++){
      |                               ^
Language: C++

#include<iostream>
#include<cctype>
#include<string>
using namespace std;
  
int main()
{
	int i,count = 0;
	string w , t;
	
	cin >>w;//?????????????????????
	
	for( i = 0; w[i] != 0; i++){
		w[i] = toupper(w[i]);
	}
	
	while(1){
		cin >> t;
		if(t == "END_OF_TEXT") break;//END_OF_TEXT??§????????????
		
		for( i = 0; i<t.size; i++){
        	t[i] = toupper(t[i]);
		}
    	if (t == w) count++;
	}
	cout << count << endl;
	return 0;
}

//???????????????????????£???

Compiler output:
a.cc: In function 'int main()':
a.cc:21:33: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]' (did you forget the '()' ?)
   21 |                 for( i = 0; i<t.size; i++){
      |                               ~~^~~~
      |                                     ()
Language: C++

#include<cstdio>
#include<iostream>
#include<algorithm>
#include<vector>
#include<string>
using namespace std;
 
int main()
{
	int i,count = 0;
	char w[10],t[1000];
	int T_length;//?????????t???byte??°?????????
	 string str;//??????????????????
	string w;//?????????
	
	cin >>w;//?????????????????????
	for( i = 0; w[i] != 0; i++){
		if(isupper(w[i])) w[i] = tolower(w[i]);
	}
	
	while(1){
		cin >> t;//????????????????????????
		if(str == "END_OF_TEXT") break;
		
		T_length = str;
		for( i = 0; w[i] != 0; i++){
			if(isupper(t[i])) t[i] = tolower(t[i]);
		}if (str == w) count++;
	}
	cout << count << endl;
	return 0;
}
	
	
	

Compiler output:
a.cc: In function 'int main()':
a.cc:14:16: error: conflicting declaration 'std::string w'
   14 |         string w;//?????????
      |                ^
a.cc:11:14: note: previous declaration as 'char w [10]'
   11 |         char w[10],t[1000];
      |              ^
a.cc:25:28: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'int' in assignment
   25 |                 T_length = str;
      |                            ^~~
      |                            |
      |                            std::string {aka std::__cxx11::basic_string<char>}
Language: C++

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

int main() {
  string W, T;
  int count = 0;
  cin >> W;
  transform(W.begin(), W.end(), W.begin(), ::tolower);
  while (1) {
    cin >> T;
    if (T == "END_OF_TEXT") break;
    transform(T.begin(), T.end(), T.begin(), ::tolower);
    if (W == T) count++;
  }
  cout << count << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:3: error: 'transform' was not declared in this scope
   10 |   transform(W.begin(), W.end(), W.begin(), ::tolower);
      |   ^~~~~~~~~
Language: C++

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

string Transition(string Word){
	for(int i = 0; i < Word.size(); i++){
		if('a' <= Word[i] && Word[i] <= 'z') Word[i] += 'A' - 'a';
	}
	return Word;
}

vector<string> ReadWords(){
//	?????????????????????????????????END_OF_TEXT??§???????????°??§???????????´?????????????????????????????????
	vector<string> Sentence;
	while(1){
		string Go;
		cin >> Go;
		if(Go == "END_OF_TEXT") break;
		for(int i = 0; i < Go.size(); i++){
			if('a' <= Go[i] && Go[i] <= 'z') Go[i] += 'A' - 'a';
		}
		Sentence.push_back(Go);
	}
	return Sentence;
}

int Count(string Word, vector<string> Sentence){
//	?????????????????????????????????????????????????????°?????????
	int C = 0;
	for(int i = 0; i < Sentence.size(); i++){
		if(Sentence[i] == Word) C++;
	}
	return C;
}

int main(){
//	??????????????????????????§???????????´??????
	string Word;
	cin >> Word;
	Word = Transition(Word);
//	????????????????????????	
	vector<string> Sentence = ReadWords();
//	?????????????????????????????????????????°??????????????????
	int X = Count(Word, Sentence);
	cout << X << endl;
	
//	system("pause");
	return 0;
}

Compiler output:
a.cc: In function 'std::vector<std::__cxx11::basic_string<char> > ReadWords()':
a.cc:17:17: error: 'cin' was not declared in this scope
   17 |                 cin >> Go;
      |                 ^~~
a.cc:3:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    2 | #include<vector>
  +++ |+#include <iostream>
    3 | using namespace std;
a.cc: In function 'int main()':
a.cc:39:9: error: 'cin' was not declared in this scope
   39 |         cin >> Word;
      |         ^~~
a.cc:39:9: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:45:9: error: 'cout' was not declared in this scope
   45 |         cout << X << endl;
      |         ^~~~
a.cc:45:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:45:22: error: 'endl' was not declared in this scope
   45 |         cout << X << endl;
      |                      ^~~~
a.cc:3:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    2 | #include<vector>
  +++ |+#include <ostream>
    3 | using namespace std;