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

public class Main {
	public static void main(String[] args){
		java.util.Scanner scan = new java.util.Scanner(System.in);
		scan.useDelimiter("//n");
		int count = 0;
		do{
			String str = scan.nextLine();

			if(str == "END_OF_TEXT"){
				break;
			}
			for(int i = 0; i < str.length();i++){
				String y = scan.next();
				if(str.indexOf("w") != -1){
					count++;
				}
			}
		}while(scan.hasNext());
		System.out.println(count);
	}

}

Compiler output:
a.cc:1:1: error: expected unqualified-id before 'public'
    1 | public class Main {
      | ^~~~~~
Language: C++

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

using namespace std;

int main(){
	string word,text;
	int cnt = 0;
	
	getline(cin,word);
	
	while(cin >> text){
		transform(text.begin(), text.end(), text.begin(), ::tolower);
		if(text == "end_of_text") break;
		else if(text == word) cnt++;
	}
	cout << cnt << endl;

	return 0;
}

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

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

int main() {
	string s[200],w;
	cin >> w;
	int i = 0;
	int sum= 0;
	while (1) {
		cin >> s[i];
		if (s[i] == END_OF_TEXT) break;
		if (s[i] == w) sum++;
		i++;
	}
	cout << sum << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:29: error: 'END_OF_TEXT' was not declared in this scope
   12 |                 if (s[i] == END_OF_TEXT) break;
      |                             ^~~~~~~~~~~
Language: C++

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

int main(){
	char W[11],T[1001];
	int count = 0;
	scanf("%s",W);
	while(true){
		scanf("%s",T);
		if(strcmp("END_OF_TEXT",T) == 0) break;
		if(stricmp(T, W) == 0) count++;
	}
	printf("%d\n",count);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:20: error: 'stricmp' was not declared in this scope; did you mean 'strncmp'?
   11 |                 if(stricmp(T, W) == 0) count++;
      |                    ^~~~~~~
      |                    strncmp
Language: C++

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

int main(){
	char W[11],T[1001];
	int count = 0;
	scanf("%s",W);
	while(true){
		scanf("%s",T);
		if(strcmp("END_OF_TEXT",T) == 0) break;
		if(_stricmp(T, W) == 0) count++;
	}
	printf("%d\n",count);
}

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

#include <cstdio>
int main()
{
    int i=0,j=0,k,num,num2,count=0;
    char text[1001];
	char word[11];
	char tmp=1;
    while(tmp!='\n'){   
		scanf("%c",&tmp);
        word[j]=tmp;
        j++;
    }
	num2=j-1;
	while(scanf("%c",&tmp)!=EOF){   
        text[i]=tmp;
        i++;
    }
    num=i-12;
    for(i=0;i<num;i++){
		for(j=0,k=i;j<num2;j++,k++){
			if(word[j]!=text[k])break;
			if(j==num2-1){
				count+=1;
			}	
		}
	}
	std::cout<<count<<std::endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:27:14: error: 'cout' is not a member of 'std'
   27 |         std::cout<<count<<std::endl;
      |              ^~~~
a.cc:2:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include <cstdio>
  +++ |+#include <iostream>
    2 | int main()
a.cc:27:32: error: 'endl' is not a member of 'std'
   27 |         std::cout<<count<<std::endl;
      |                                ^~~~
a.cc:2:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    1 | #include <cstdio>
  +++ |+#include <ostream>
    2 | int main()
Language: C++

#include<iostream>
using namespace std;
 
int main() {
    char W[10],T[1000];
	char a[11]={'E','N','D','_','O','F','_','T','E','X','T'};
	int Wl,Tl,b,c,Tc,Wc,count=0;
	cin >> W;
	Wl=strlen(W);//W??????????????????????????????
  

	while(1){
		cin >> T;
		Tl=strlen(T);//T??????????????????????????????

		for(int i=0;i<Tl;i++){
			if( Tl==11 && T[i]==a[i]){//
				b++;
			}
		}
		if( b==11 ) break;


		for(int i=0;i<Wl;i++){
			Tc=0;
            Wc=0;
            Tc=T[i]-'A';
            Wc=W[i]-'A';

            if(Tc==Wc) c++;
		}

		if( c==Wl && Tl==Wl ) count++;
	}

	cout << count << "\n";
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:12: error: 'strlen' was not declared in this scope
    9 |         Wl=strlen(W);//W??????????????????????????????
      |            ^~~~~~
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 | using namespace std;
Language: C++

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

#define MAX_W_LEN (10)
#define MAX_T_LEN (1000)
#define MAX_T_SIZE (1000)

using namespace std;

int main()
{
    int      size;
    int      count = 0;
    string   W;
    string** T = new string*[MAX_T_SIZE + 1];
   
    for (int i = 0; i < MAX_T_SIZE + 1; i++) {
         T[i] = new string[MAX_T_LEN];
    }

    do {
        cin >> W;
    } while (W.length() > MAX_W_LEN);

    for (int i = 0; i < MAX_T_SIZE + 1; i++) {
         for (j = 0; j < MAX_T_LEN; j++) {
              cin >> T[i][j];

              if (j == 0 && T[i][j] == "end_of_text") {
                  size = i;
                  break;
              } else {              
                  if (T[i][j] == '\n') {                
                      break;
                  } else {
                      T[i][j] = all_lower(T[i][j]);
                  } 
             }
         }
    }

    for (int i = 0; i < size; i++) {
         for (int j = 0; str[i][j] != '\n'; j++) {
              if (strcmp(T[i][j], W) == 0) {
                  count++;
              }
         }
    }

    cout << count << endl;

    delete[] W;
   
    for (int i = 0; i < MAX_T_SIZE + 1; i++) {
         delete[] T[i];
    }

    free(T);

    return (0);
}

void all_lower(string str)
{  
     for (int i = 0; str[i] != '\0'; i++) {    
          if (str[i] >= 'A' && str[i] <= 'Z') {	   
 	      str[i] = tolower(str[i]);
	  } 
     }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:28:15: error: 'j' was not declared in this scope
   28 |          for (j = 0; j < MAX_T_LEN; j++) {
      |               ^
a.cc:38:33: error: 'all_lower' was not declared in this scope
   38 |                       T[i][j] = all_lower(T[i][j]);
      |                                 ^~~~~~~~~
a.cc:45:26: error: 'str' was not declared in this scope; did you mean 'std'?
   45 |          for (int j = 0; str[i][j] != '\n'; j++) {
      |                          ^~~
      |                          std
a.cc:46:32: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'const char*'
   46 |               if (strcmp(T[i][j], W) == 0) {
      |                          ~~~~~~^
      |                                |
      |                                std::string {aka std::__cxx11::basic_string<char>}
In file included from /usr/include/c++/14/cstring:43,
                 from a.cc:2:
/usr/include/string.h:156:32: note:   initializing argument 1 of 'int strcmp(const char*, const char*)'
  156 | extern int strcmp (const char *__s1, const char *__s2)
      |                    ~~~~~~~~~~~~^~~~
a.cc:54:14: error: type 'std::string' {aka 'class std::__cxx11::basic_string<char>'} argument given to 'delete', expected pointer
   54 |     delete[] W;
      |              ^
Language: C++

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

using namespace std;

int main()
{
  string str;
  cin >> str;
  for(int i=0;str[i]!='\0';i++)
    {
      if('A'<=str[i]&&str[i]<='Z')
	str[i]=(char)(str[i]-'A'+'a');
    }

  string s='0';
  int sum=0;
  cin >> s;
  while(s!="END_OF_TEXT")
    {
      for(int i=0;s[i]!='\0';i++)
	{
	  if('A'<=s[i]&&s[i]<='Z')
	    s[i]=(char)(s[i]-'A'+'a');
	}
      if(str==s)
	sum++;
      cin >> s;
    }
  

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:12: error: conversion from 'char' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
   17 |   string s='0';
      |            ^~~
Language: C++

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

int main()
{
    int count=0;
	string word;
	string text;
	string eot="END_OF_TEXT";
	
	cin>>word;
	while(1)
	{
		cin>>text;
		if ( 0== stricmp( word.c_str() , text.c_str() ) ) count+=1;
		if(text==eot)break;
	}
	cout<<count<<endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:26: error: 'stricmp' was not declared in this scope; did you mean 'strncmp'?
   16 |                 if ( 0== stricmp( word.c_str() , text.c_str() ) ) count+=1;
      |                          ^~~~~~~
      |                          strncmp
Language: C++

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

int main()
{
    int count=0;
	string word;
	string text;
	string eot="END_OF_TEXT";
	
	cin>>word;
	while(1)
	{
		cin>>text;
		if ( 0== stricmp( word.c_str() , text.c_str() ) ) count+=1;
		if(text==eot)break;
	}
	cout<<count<<endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:26: error: 'stricmp' was not declared in this scope; did you mean 'strncmp'?
   16 |                 if ( 0== stricmp( word.c_str() , text.c_str() ) ) count+=1;
      |                          ^~~~~~~
      |                          strncmp
Language: C++

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

int main()
{
    int judge,count=0;
	string word;
	string text;
	string eot="END_OF_TEXT";
	
	cin>>word;
	while(1)
	{
		cin>>text;
		if ( 0== (judge=stricmp( word.c_str() , text.c_str()))) count+=1;
		if(text==eot)break;
	}
	cout<<count<<endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:33: error: 'stricmp' was not declared in this scope; did you mean 'strncmp'?
   16 |                 if ( 0== (judge=stricmp( word.c_str() , text.c_str()))) count+=1;
      |                                 ^~~~~~~
      |                                 strncmp
Language: C++

#include <iostream>
#include <cstring>
#include <cctype>

#define MAX_W_LEN (10)
#define MAX_T_LEN (1000)
#define MAX_T_SIZE (1000)

using namespace std;

void all_lower(string str);

int main()
{
    int      size;
    int      count = 0;

    char* W = new char[MAX_W_LEN + 1];
  
    do {
        cin >> W;
    } while (W.length() > MAX_W_LEN);

    char** T = new char*[MAX_T_SIZE + 1];
   
    for (int i = 0; i < MAX_T_SIZE + 1; i++) {
         T[i] = new char[MAX_T_LEN + 1];
    }

    for (int i = 0; i < MAX_T_SIZE + 1; i++) {        
         do {
             cin >> T[i];
         } while (strlen(T[i]) > MAX_T_LEN);

         all_lower(T[i]);

         T[i][strlen(T[i] - 1] = '\0';

         if (strcmp(T[i], "end_of_text") == 0) {
             size = i;
             break;
         } 
    }

    for (int i = 0; i < size; i++) {
         count += word_count(W, T[i]);
    }
    
    cout << count << endl;

    delete[] W;
   
    for (int i = 0; i < MAX_T_SIZE + 1; i++) {
         delete[] T[i];
    }

    free(T);

    return (0);
}

void all_lower(string str)
{  
     for (int i = 0; str[i] != '\0'; i++) {    
          if (str[i] >= 'A' && str[i] <= 'Z') {	   
 	      str[i] = tolower(str[i]);
	  } 
     }
}

int word_count(char str1[], char str2[])
{
    int i, j;
    int count = 0;

    for (i = 0; i < strlen(str2) - strlen(str1) + 1; i++) {
         for (j = 0; j < strlen(str1); j++) {
	      if (str2[i + j] == str1[j]) {
		  ;
              } else {
		  break;
              }
         }

         if (j == strlen(str1)) {
	     count++;
         }
    }

    return (count);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:22:16: error: request for member 'length' in 'W', which is of non-class type 'char*'
   22 |     } while (W.length() > MAX_W_LEN);
      |                ^~~~~~
a.cc:37:30: error: expected ')' before ']' token
   37 |          T[i][strlen(T[i] - 1] = '\0';
      |                     ~        ^
      |                              )
a.cc:46:19: error: 'word_count' was not declared in this scope
   46 |          count += word_count(W, T[i]);
      |                   ^~~~~~~~~~
Language: C++

#include <iostream>
#include <cstring>
#include <cctype>

#define MAX_W_LEN (10)
#define MAX_T_LEN (1000)
#define MAX_T_SIZE (1000)

using namespace std;

void all_lower(string str);

int main()
{
    int      size;
    int      count = 0;

    char* W = new char[MAX_W_LEN + 1];
  
    do {
        cin >> W;
    } while (strlen(W) > MAX_W_LEN);

    char** T = new char*[MAX_T_SIZE + 1];
   
    for (int i = 0; i < MAX_T_SIZE + 1; i++) {
         T[i] = new char[MAX_T_LEN + 1];
    }

    for (int i = 0; i < MAX_T_SIZE + 1; i++) {        
         do {
             cin >> T[i];
         } while (strlen(T[i]) > MAX_T_LEN);

         all_lower(T[i]);

         T[i][strlen(T[i] - 1] = '\0';

         if (strcmp(T[i], "end_of_text") == 0) {
             size = i;
             break;
         } 
    }

    for (int i = 0; i < size; i++) {
         count += word_count(W, T[i]);
    }
    
    cout << count << endl;

    delete[] W;
   
    for (int i = 0; i < MAX_T_SIZE + 1; i++) {
         delete[] T[i];
    }

    free(T);

    return (0);
}

void all_lower(string str)
{  
     for (int i = 0; str[i] != '\0'; i++) {    
          if (str[i] >= 'A' && str[i] <= 'Z') {	   
 	      str[i] = tolower(str[i]);
	  } 
     }
}

int word_count(char str1[], char str2[])
{
    int i, j;
    int count = 0;

    for (i = 0; i < strlen(str2) - strlen(str1) + 1; i++) {
         for (j = 0; j < strlen(str1); j++) {
	      if (str2[i + j] == str1[j]) {
		  ;
              } else {
		  break;
              }
         }

         if (j == strlen(str1)) {
	     count++;
         }
    }

    return (count);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:37:30: error: expected ')' before ']' token
   37 |          T[i][strlen(T[i] - 1] = '\0';
      |                     ~        ^
      |                              )
a.cc:46:19: error: 'word_count' was not declared in this scope
   46 |          count += word_count(W, T[i]);
      |                   ^~~~~~~~~~
Language: C++

//
// Created by tac on 2016/10/15.
//

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

namespace  {

std::string string_to_upper(const std::string str) {
    std::string ret = str;

    std::transform(str.cbegin(), str.cend(), ret.begin(), ::toupper);

    return ret;
}

int count_word(const std::string text, const std::string word) {
    int count = 0;

    auto pos = text.find(word);
    while (pos != std::string::npos) {
        ++count;
        pos = text.find(word, pos + word.length());
    }

    return count;
}

}


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

    getline(std::cin, word);
    int count = 0;
    while (true) {
        getline(std::cin, text);
        if (text == "END_OF_TEXT") {
            break;
        }
        count += count_word(string_to_upper(text), stringh_to_upper(word));
    }
    std::cout << count << std::endl;

    return EXIT_SUCCESS;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:46:52: error: 'stringh_to_upper' was not declared in this scope
   46 |         count += count_word(string_to_upper(text), stringh_to_upper(word));
      |                                                    ^~~~~~~~~~~~~~~~
Language: C++

#include<cstdio>
#include<vector>

using namespace std;

int main(){
	int ans = 0;
	vector<string> sen;
	char str[100],str_1[100];
	gets(str);
	for(int i = 0;;i++){
		gets(str_1);
		sen.push_back(str_1);
		if(sen[i] == "END_OF_TEXT")break;
		if(sen[i] == str) ans += 1;
	}
	printf("%d",ans);
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:16: error: 'string' was not declared in this scope
    8 |         vector<string> sen;
      |                ^~~~~~
a.cc:3:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
    2 | #include<vector>
  +++ |+#include <string>
    3 | 
a.cc:8:22: error: template argument 1 is invalid
    8 |         vector<string> sen;
      |                      ^
a.cc:8:22: error: template argument 2 is invalid
a.cc:10:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
   10 |         gets(str);
      |         ^~~~
      |         getw
a.cc:13:21: error: request for member 'push_back' in 'sen', which is of non-class type 'int'
   13 |                 sen.push_back(str_1);
      |                     ^~~~~~~~~
a.cc:14:23: error: invalid types 'int[int]' for array subscript
   14 |                 if(sen[i] == "END_OF_TEXT")break;
      |                       ^
a.cc:15:23: error: invalid types 'int[int]' for array subscript
   15 |                 if(sen[i] == str) ans += 1;
      |                       ^
Language: C++

#include<cstdio>
#include<iostream>
#include<vector>

using namespace std;

int main(){
	int ans = 0;
	vector<string> sen;
	char str[100],str_1[100];
	gets(str);
	for(int i = 0;;i++){
		gets(str_1);
		sen.push_back(str_1);
		if(sen[i] == "END_OF_TEXT")break;
		if(sen[i] == str) ans += 1;
	}
	printf("%d",ans);
	return 0;
}

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

#include<cstdio>
#include<iostream>
#include<vector>

using namespace std;

int main(){
	int ans = 0;
	vector<string> sen;
	char str[100],str_1[100];
	gets_s(str);
	for(int i = 0;;i++){
		gets_s(str_1);
		sen.push_back(str_1);
		if(sen[i] == "END_OF_TEXT")break;
		if(sen[i] == str) ans += 1;
	}
	printf("%d",ans);
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:9: error: 'gets_s' was not declared in this scope
   11 |         gets_s(str);
      |         ^~~~~~
Language: C++

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

static const string END_OF_TEXT = "END_OF_TEXT";

int main(void) {
    int cnt = 0;
    string input, target;
    cin >> target;
    transform(target.begin(), target.end(), target.begin(), ::toupper);
    do {
        cin >> input;
        transform(input.begin(), input.end(), input.begin(), ::toupper);
        cout << target << " : " << input << endl;
        if(string::npos != input.find(target)) cnt++;
    } while(input != END_OF_TEXT);
    cout << cnt << endl;

    return 0;
}

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

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

string toUpper(string s){
  string t;
  for (int i = 0; i < s.size(); i++)
    t[i] = toupper(s[i])

    return t;
}

int main(){
  int a = 0; //a??????????????????????????????
  string str1, str2;
  cin >> str2;
  str2 = toUpper(str2);
  
  while (1) {
    cin >> str1;
    if (str1 == "END_OF_TEXT") break;
    str1 = toUpper(str1);

    if (str1 == str2) a++;

  }

  cout << a << endl;

return 0;
}

Compiler output:
a.cc: In function 'std::string toUpper(std::string)':
a.cc:9:25: error: expected ';' before 'return'
    9 |     t[i] = toupper(s[i])
      |                         ^
      |                         ;
   10 | 
   11 |     return t;
      |     ~~~~~~               
a.cc:12:1: warning: no return statement in function returning non-void [-Wreturn-type]
   12 | }
      | ^
Language: C++

#include <iostream>
#include <string>

using namespace std;

int main(){
	int count=0;
	string W,word;
	while(1){
		cin >> W;
		if(W == "END_OF_TEXT") break;
		cin >> word;
		if(word == W) count++;
		}
	cout << count << endl;
	}
	return 0;
}

Compiler output:
a.cc:17:9: error: expected unqualified-id before 'return'
   17 |         return 0;
      |         ^~~~~~
a.cc:18:1: error: expected declaration before '}' token
   18 | }
      | ^
Language: C++

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

int main() {
    char c1[200], c2[200], c3[200];
    scanf("%s",c1);
    strcpy(c2,c1);
    strcat(c1,c2);
    scanf("%s",c3);

    if (strstr(c1,c3) == NULL) printf("No\n");
    else printf("Yes\n");

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:5: error: 'strcpy' was not declared in this scope
    9 |     strcpy(c2,c1);
      |     ^~~~~~
a.cc:5:1: note: 'strcpy' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    4 | #include <cctype>
  +++ |+#include <cstring>
    5 | 
a.cc:10:5: error: 'strcat' was not declared in this scope
   10 |     strcat(c1,c2);
      |     ^~~~~~
a.cc:10:5: note: 'strcat' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
a.cc:13:9: error: 'strstr' was not declared in this scope
   13 |     if (strstr(c1,c3) == NULL) printf("No\n");
      |         ^~~~~~
a.cc:13:9: note: 'strstr' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
Language: C++

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

int main() {
    string W, S;
    int num = 0;
    cin >> W;
    while (1) {
        cin >> S;
        if (S == "END_OF_TEXT") break;
        else if (S == W) num++;

    }

    cout << numl;

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:13: error: 'numl' was not declared in this scope; did you mean 'num'?
   17 |     cout << numl;
      |             ^~~~
      |             num
Language: C++

T = raw_input()
wordList = []

W = raw_input()
while(W!="END_OF_TEXT"):
    wordList.extend(W.split(" "))
    W = raw_input()

cnt = 0
for word in wordList:
    if(word.lower() == T.lower()):
        cnt += 1
print cnt

Compiler output:
a.cc:1:1: error: 'T' does not name a type
    1 | T = raw_input()
      | ^
Language: C++

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

int main() {
        string str, str2;
        int r, i;
        r = 0;
        cin >> str;
        for(i = 0; i < 1000; i++) {
                cin >> str2;
                if (str2 == "END_OF_TEXT") break;
                else if( !stricmp( str.c_str() , str2.c_str()) {
                        r++
                }
        }
        return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:27: error: 'stricmp' was not declared in this scope
   13 |                 else if( !stricmp( str.c_str() , str2.c_str()) {
      |                           ^~~~~~~
a.cc:13:63: error: expected ')' before '{' token
   13 |                 else if( !stricmp( str.c_str() , str2.c_str()) {
      |                        ~                                      ^~
      |                                                               )
a.cc:16:9: error: expected primary-expression before '}' token
   16 |         }
      |         ^
Language: C++

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

int main() {
        string str, str2;
        int r, i;
        r = 0;
        cin >> str;
        for(i = 0; i < 1000; i++) {
                cin >> str2;
                if (str2 == "END_OF_TEXT") break;
                else if( ! strcmp( str.c_str() , str2.c_str())) {
                        r++;
                }
        }
        cout << r << endl;
        return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:28: error: 'strcmp' was not declared in this scope
   13 |                 else if( ! strcmp( str.c_str() , str2.c_str())) {
      |                            ^~~~~~
a.cc:2:1: note: 'strcmp' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    1 | #include<iostream>
  +++ |+#include <cstring>
    2 | using namespace std;
Language: C++

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


	char word[16];
	char sentense[1024];
	char t[1024];
	char tmp[16];

	int num[50];
	int combo[50];

	scanf("%s", word);
	scanf("%s", tmp);

	int cnt = 0;
	while (fgets(sentense, 1024, stdin) != NULL) {
		if ( strcmp(sentense, "END_OF_TEXT\n") == 0 ) {
			break;
		}
		int len = strlen(sentense) - 1;
		if (len > 0) {
			sentense[len - 1] = '\0';
		}
		char *ptr = strtok(sentense, " ");
		while (ptr != NULL ) {
			if (stricmp(ptr, word) == 0) {
				cnt++;
			}
			ptr = strtok(NULL, " ");
		}

	}

	printf("%d\n", cnt);

}

Compiler output:
a.cc:3:1: error: '::main' must return 'int'
    3 | void main(void) {
      | ^~~~
a.cc: In function 'int main()':
a.cc:28:29: error: 'stricmp' was not declared in this scope; did you mean 'strncmp'?
   28 |                         if (stricmp(ptr, word) == 0) {
      |                             ^~~~~~~
      |                             strncmp
Language: C++

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


	char word[16];
	char sentense[1024];
	char t[1024];
	char tmp[16];

	int num[50];
	int combo[50];

	scanf("%s", word);
	scanf("%s", tmp);

	int cnt = 0;
	while (fgets(sentense, 1024, stdin) != NULL) {
		if ( strcmp(sentense, "END_OF_TEXT\n") == 0 ) {
			break;
		}
		int len = strlen(sentense) - 1;
		if (len > 0) {
			sentense[len - 1] = '\0';
		}
		char *ptr = strtok(sentense, " ");
		while (ptr != NULL ) {
			if (stricmp(ptr, word) == 0) {
				cnt++;
			}
			ptr = strtok(NULL, " ");
		}

	}

	printf("%d\n", cnt);

	return 0;

}

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

#include <string>
#include <iostream>
#include <sstream> // isstringstream
using namespace std;

int main(){
	int sum = 0;
	string w = "";
	string line = "";
	string word = "";

	cin >> w;
	while(1){
		getline(cin, line);
		if(line == "END_OF_TEXT")
			break;

		istringstream words(line);
		while(words >> word){
			if (tolower(word) == tolower(w)) ++sum;
		}
	}
	cout << sum << endl;

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:36: error: no matching function for call to 'tolower(std::string&)'
   20 |                         if (tolower(word) == tolower(w)) ++sum;
      |                             ~~~~~~~^~~~~~
In file included from /usr/include/c++/14/bits/basic_ios.h:37,
                 from /usr/include/c++/14/ios:46,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:2:
/usr/include/c++/14/bits/locale_facets.h:2693:5: note: candidate: 'template<class _CharT> _CharT std::tolower(_CharT, const locale&)'
 2693 |     tolower(_CharT __c, const locale& __loc)
      |     ^~~~~~~
/usr/include/c++/14/bits/locale_facets.h:2693:5: note:   candidate expects 2 arguments, 1 provided
In file included from /usr/include/c++/14/cctype:42,
                 from /usr/include/c++/14/bits/localefwd.h:42,
                 from /usr/include/c++/14/string:45,
                 from a.cc:1:
/usr/include/ctype.h:122:12: note: candidate: 'int tolower(int)'
  122 | extern int tolower (int __c) __THROW;
      |            ^~~~~~~
/usr/include/ctype.h:122:25: note:   no known conversion for argument 1 from 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'int'
  122 | extern int tolower (int __c) __THROW;
      |                     ~~~~^~~
a.cc:20:53: error: no matching function for call to 'tolower(std::string&)'
   20 |                         if (tolower(word) == tolower(w)) ++sum;
      |                                              ~~~~~~~^~~
/usr/include/c++/14/bits/locale_facets.h:2693:5: note: candidate: 'template<class _CharT> _CharT std::tolower(_CharT, const locale&)'
 2693 |     tolower(_CharT __c, const locale& __loc)
      |     ^~~~~~~
/usr/include/c++/14/bits/locale_facets.h:2693:5: note:   candidate expects 2 arguments, 1 provided
/usr/include/ctype.h:122:12: note: candidate: 'int tolower(int)'
  122 | extern int tolower (int __c) __THROW;
      |            ^~~~~~~
/usr/include/ctype.h:122:25: note:   no known conversion for argument 1 from 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'int'
  122 | extern int tolower (int __c) __THROW;
      |                     ~~~~^~~
Language: C++

#include <string>
#include <iostream>
#include <sstream> // isstringstream
using namespace std;

int main(){
	int sum = 0;
	string w = "";
	string line = "";
	string word = "";

	cin >> w;
	while(1){
		getline(cin, line);
		if(line == "END_OF_TEXT")
			break;
		transform(line.begin(), line.end(), line.begin(), ::tolower);

		istringstream words(line);
		while(words >> word){
			if (word == w) ++sum;
		}
	}
	cout << sum << endl;

	return 0;
}

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

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

int main(){
    int count;
    string target,text;
    cin>>target;
    target=toupper(target);
    while(1){
        cin>>text;
        if(text=="END_OF_TEXT") break;
        text=toupper(text);
        if(text==target) count++;
    }
    cout<<count<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:19: error: no matching function for call to 'toupper(std::string&)'
   10 |     target=toupper(target);
      |            ~~~~~~~^~~~~~~~
In file included from /usr/include/c++/14/bits/basic_ios.h:37,
                 from /usr/include/c++/14/ios:46,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/locale_facets.h:2687:5: note: candidate: 'template<class _CharT> _CharT std::toupper(_CharT, const locale&)'
 2687 |     toupper(_CharT __c, const locale& __loc)
      |     ^~~~~~~
/usr/include/c++/14/bits/locale_facets.h:2687:5: note:   candidate expects 2 arguments, 1 provided
In file included from /usr/include/c++/14/cctype:42,
                 from /usr/include/c++/14/bits/localefwd.h:42,
                 from /usr/include/c++/14/ios:43:
/usr/include/ctype.h:125:12: note: candidate: 'int toupper(int)'
  125 | extern int toupper (int __c) __THROW;
      |            ^~~~~~~
/usr/include/ctype.h:125:25: note:   no known conversion for argument 1 from 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'int'
  125 | extern int toupper (int __c) __THROW;
      |                     ~~~~^~~
a.cc:14:21: error: no matching function for call to 'toupper(std::string&)'
   14 |         text=toupper(text);
      |              ~~~~~~~^~~~~~
/usr/include/c++/14/bits/locale_facets.h:2687:5: note: candidate: 'template<class _CharT> _CharT std::toupper(_CharT, const locale&)'
 2687 |     toupper(_CharT __c, const locale& __loc)
      |     ^~~~~~~
/usr/include/c++/14/bits/locale_facets.h:2687:5: note:   candidate expects 2 arguments, 1 provided
/usr/include/ctype.h:125:12: note: candidate: 'int toupper(int)'
  125 | extern int toupper (int __c) __THROW;
      |            ^~~~~~~
/usr/include/ctype.h:125:25: note:   no known conversion for argument 1 from 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'int'
  125 | extern int toupper (int __c) __THROW;
      |                     ~~~~^~~
Language: C++

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

int main(){
    int count;
    string target,text;
    cin>>target;
    target=toUpper(target);
    while(1){
        cin>>text;
        if(text=="END_OF_TEXT") break;
        text=toUpper(text);
        if(text==target) count++;
    }
    cout<<count<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:12: error: 'toUpper' was not declared in this scope; did you mean 'toupper'?
   10 |     target=toUpper(target);
      |            ^~~~~~~
      |            toupper
Language: C++

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

string toUpper(string s){
    string t=s;
    for(int i=0;i<s.size();i++){
        t[i]=toupper.s[i];
    }
    return t;
}

int main(){
    string target source;
    cin>>target;
    target=toUpper(target);
    int count;
    while(1){
        cin>>source;
        if(source=="END_OF_TEXT") break;
        source = toupper(source);
        if(target==source) count++
    }
    cout<<count<<endl;
}

Compiler output:
a.cc: In function 'std::string toUpper(std::string)':
a.cc:9:22: error: overloaded function with no contextual type information
    9 |         t[i]=toupper.s[i];
      |                      ^
a.cc: In function 'int main()':
a.cc:15:19: error: expected initializer before 'source'
   15 |     string target source;
      |                   ^~~~~~
a.cc:16:10: error: 'target' was not declared in this scope
   16 |     cin>>target;
      |          ^~~~~~
a.cc:20:14: error: 'source' was not declared in this scope
   20 |         cin>>source;
      |              ^~~~~~
a.cc:23:35: error: expected ';' before '}' token
   23 |         if(target==source) count++
      |                                   ^
      |                                   ;
   24 |     }
      |     ~
Language: C++

<?php
$W=trim(fgets(STDIN));
$Wl=strlen($W);
for($k=0;$k<$Wl;$k++){
  $n=ord($W[$k]);
  if($n<65) continue;
  if($n<91) $W[$k]=chr($n+32);
}

$C=0;
while(1){
  $T=trim(fgets(STDIN));
  if($T=='END_OF_TEXT') break;

  $Tl=strlen($T);
  for($k=0;$k<$Tl;$k++){
    $n=ord($T[$k]);
    if($n<65) continue;
    if($n<91) $T[$k]=chr($n+32);
  }

  $Ts=explode(' ',$T);
  foreach($Ts as $t) if($t==$W) ++$C;
}
echo $C;
?>

Compiler output:
a.cc:13:10: warning: multi-character literal with 11 characters exceeds 'int' size of 4 bytes
   13 |   if($T=='END_OF_TEXT') break;
      |          ^~~~~~~~~~~~~
a.cc:1:1: error: expected unqualified-id before '<' token
    1 | <?php
      | ^
a.cc:3:1: error: '$Wl' does not name a type
    3 | $Wl=strlen($W);
      | ^~~
a.cc:4:1: error: expected unqualified-id before 'for'
    4 | for($k=0;$k<$Wl;$k++){
      | ^~~
a.cc:4:10: error: '$k' does not name a type
    4 | for($k=0;$k<$Wl;$k++){
      |          ^~
a.cc:4:17: error: '$k' does not name a type
    4 | for($k=0;$k<$Wl;$k++){
      |                 ^~
a.cc:10:1: error: '$C' does not name a type
   10 | $C=0;
      | ^~
a.cc:11:1: error: expected unqualified-id before 'while'
   11 | while(1){
      | ^~~~~
a.cc:25:1: error: 'echo' does not name a type
   25 | echo $C;
      | ^~~~
a.cc:26:1: error: expected unqualified-id before '?' token
   26 | ?>
      | ^
Language: C++

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

using namespace std;

int main(){
	char w[11], t[1001];
	int count = 0;
	cin >> w;
	for(int i = 0; i < (int)strlen(w); i++){
		w[i] = toupper(w[i]);
	}
	
	while(1){
		cin >> t;
		if(strcmp(t, "END_OF_TEXT") == 0) break;
		
		for(int i = 0; i < (int)strlen(t); i++){
			t[i] = toupper(t[i]);
		}
		if(strcmp(t,w) == 0) count++;
		
	}
	
	cout << count << endl;
	
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:33: error: 'strlen' was not declared in this scope
   11 |         for(int i = 0; i < (int)strlen(w); i++){
      |                                 ^~~~~~
a.cc:4:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    3 | #include <cctype>
  +++ |+#include <cstring>
    4 | 
a.cc:17:20: error: 'strcmp' was not declared in this scope
   17 |                 if(strcmp(t, "END_OF_TEXT") == 0) break;
      |                    ^~~~~~
a.cc:17:20: note: 'strcmp' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
a.cc:19:41: error: 'strlen' was not declared in this scope
   19 |                 for(int i = 0; i < (int)strlen(t); i++){
      |                                         ^~~~~~
a.cc:19:41: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
a.cc:22:20: error: 'strcmp' was not declared in this scope
   22 |                 if(strcmp(t,w) == 0) count++;
      |                    ^~~~~~
a.cc:22:20: note: 'strcmp' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
Language: C++

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

using namespace std;

int main(){
	char w[11], t[1001];
	int count = 0;
	cin >> w;
	for(int i = 0; i < (int)strlen(w); i++){
		w[i] = toupper(w[i]);
	}
	
	while(1){
		cin >> t;
		if(strcmp(t, "END_OF_TEXT") == 0) break;
		
		for(int i = 0; i < (int)strlen(t); i++){
			t[i] = toupper(t[i]);
		}
		if(strcmp(t, w) == 0) count++;
		
	}
	
	cout << count << endl;
	
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:33: error: 'strlen' was not declared in this scope
   11 |         for(int i = 0; i < (int)strlen(w); i++){
      |                                 ^~~~~~
a.cc:4:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    3 | #include <cctype>
  +++ |+#include <cstring>
    4 | 
a.cc:17:20: error: 'strcmp' was not declared in this scope
   17 |                 if(strcmp(t, "END_OF_TEXT") == 0) break;
      |                    ^~~~~~
a.cc:17:20: note: 'strcmp' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
a.cc:19:41: error: 'strlen' was not declared in this scope
   19 |                 for(int i = 0; i < (int)strlen(t); i++){
      |                                         ^~~~~~
a.cc:19:41: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
a.cc:22:20: error: 'strcmp' was not declared in this scope
   22 |                 if(strcmp(t, w) == 0) count++;
      |                    ^~~~~~
a.cc:22:20: note: 'strcmp' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
Language: C++

/*
    ????????°??§???????????¨????????????
*/

#include <stdio.h>
#include <string.h>
#include <ctype.h>
#include <stdlib.h>
#include <math.h>
#include <time.h>
#include <limits.h>
#include <iostream>
#include <algorithm>
#include <string>
#include <iterator>
#include <vector>
#include <map>
#include <utility>
#define LLU unsigned long long int
#define LL long long int
#define LD long double
using namespace std;
#define LLUmax ULLONG_MAX
#define LLmax LLONG_MAX
#define dmax INT_MAX
#define vd vector<int>
#define vLL vector<long long int>
#define vLLU vector<unsigned long long int> 
#define pb push_back
#define mp make_pair
#define fi first
#define sec second
#define debug printf("asd\n")
#define debugd(a) printf("--%d\n",a)
#define debugdd(a,b) printf("--%d %d\n",a,b)
#define debugarr(a,b) for(int i=0 ; i<b ; i++)printf("%d ",a[i]);printf("\n")
#define newline printf("\n")
#define forin(a,b,c) for(int a=b ; a<c ; a++)
#define forde(a,b,c) for(int a=b ; a<c ; a--)


inline void scd(int &a){scanf("%d",&a);}
inline void scdd(int &a,int &b){scanf("%d %d",&a,&b);}
inline void sctd(int &a,int &b,int &c){scanf("%d %d %d",&a,&b,&c);}
inline void scdlld(long int &a,long int &b){scanf("%I64d %I64d",&a,&b);}
inline void sclld(long long int &a){scanf("%I64d",&a);}

#define scarrd(a,b) for(int i=0 ; i<b ; i++)scanf("%d",&a[i])
#define prdlld(a,b) printf("%I64d %I64d",a,b)
#define prdd(a,b) printf("%d %d",a,b)
#define prd(a) printf("%d",a)
#define prarr(a,b) for(int i=0 ; i<b ; i++)printf("%d ",a[i])
#define iniarr(a,b) for(int i=0 ; i<b ;i++)a[i]=0
#define arr(a,b) int *a=(int *)malloc(b*sizeof(int))
#define llarr(a,b) long long int *a=(long long int *)malloc(b*sizeof(long long int))
#define st(a,b) char *a=(char *)malloc(b*sizeof(char))
#define grav 9.8
#define pi 3.14159265

int main()
{
	char a[2000];
	char b[2000];
	int d=0;
	scanf("%s",b);
	scanf("%s",a);
	while(strcmp(a,"END_OF_TEXT")!=0)
	{
		if(strcmpi(a,b)==0)
		d++;
		
		scanf("%s",a);
	}
	printf("%d\n",d);
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:69:20: error: 'strcmpi' was not declared in this scope; did you mean 'strcmp'?
   69 |                 if(strcmpi(a,b)==0)
      |                    ^~~~~~~
      |                    strcmp
Language: C++

#include <stdio.h>
#include <stdlib.h>
int main(void){
	int i,len,kensaku=0,ENDcount=0;
	char W[11],T[1001],serchlen,Wcount=0;
	char END[]="END_OF_TEXT";
	//fgets(W,sizeof W,stdin);
	scanf("%s",W);
	serchlen=strlen(W)-1;
	while(1){
		fgets(T,sizeof T,stdin);
		len=strlen(T);				//len=文章長さ
		for(i=0;i<len;i++){			//文章長さまで
			if(T[i]==W[kensaku]){	//文章[i]==検索語句[i]なら
				//printf("Debug[1][%c]-文字一致-\n",T[i]);
				kensaku++;			//一致文字++
				if(kensaku==serchlen){	//一致文字==検索語句数なら
					//puts("Debug[2][0]-語句全一致しました-");
					Wcount++;			//一致単語数++
					kensaku=0;
				}
			}
			else if(T[i]==W[0]){
				kensaku=1;
				//printf("Debug[3][%c]-新規検索開始-\n",T[i]);
			}
			else{
				kensaku=0;
				//printf("Debug[4][%c]-一致しません-\n",T[i]);
			}
		}
		for(i=0;i<len;i++){
			if(T[i]==END[i]){
				ENDcount++;
			}
			else{
				ENDcount=0;
				}
			if(ENDcount==11){
				//puts("Debug[5]-終了-");
				break;
			}
		}
		if(ENDcount==11){
				break;
			}
	//printf("Debug[while][%d]\n/------------/\n",Wcount);
	}
	printf("%d\n",Wcount);
	
	
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:18: error: 'strlen' was not declared in this scope
    9 |         serchlen=strlen(W)-1;
      |                  ^~~~~~
a.cc:3:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    2 | #include <stdlib.h>
  +++ |+#include <cstring>
    3 | int main(void){
Language: C++

#include<iostream>
#include<string>
#include<algorithm>
#define REP(i,n) for(int i=0;i<(n);++i)
using namespace std;
int main(){
	string w,t;
	int ans=0;
	cin >> w;
	while(cin >>t){
		if(t=="END_OF_TEXT") break;
		transform(w.begin(),w.end(),w.begin(),tolower);

		if(t==w) ans++;
	}
	cout << ans << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:26: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)'
   12 |                 transform(w.begin(),w.end(),w.begin(),tolower);
      |                 ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:61,
                 from a.cc:3:
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)'
 4209 |     transform(_InputIterator __first, _InputIterator __last,
      |     ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note:   template argument deduction/substitution failed:
a.cc:12:26: note:   couldn't deduce template parameter '_UnaryOperation'
   12 |                 transform(w.begin(),w.end(),w.begin(),tolower);
      |                 ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)'
 4247 |     transform(_InputIterator1 __first1, _InputIterator1 __last1,
      |     ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note:   candidate expects 5 arguments, 4 provided
In file included from /usr/include/c++/14/algorithm:86:
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)'
  156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result,
      | ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note:   candidate expects 5 arguments, 4 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)'
  162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2,
      | ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note:   candidate expects 6 arguments, 4 provided
Language: C++

#include<iostream>
#include<string>
#include<algorithm>
#define REP(i,n) for(int i=0;i<(n);++i)
using namespace std;
int main(){
	string w,t;
	int ans=0;
	cin >> w;
	while(cin >>t){
		if(t=="END_OF_TEXT") break;
		transform(t.begin(),t.end(),t.begin(),tolower);

		if(t==w) ans++;
	}
	cout << ans << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:26: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)'
   12 |                 transform(t.begin(),t.end(),t.begin(),tolower);
      |                 ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:61,
                 from a.cc:3:
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)'
 4209 |     transform(_InputIterator __first, _InputIterator __last,
      |     ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note:   template argument deduction/substitution failed:
a.cc:12:26: note:   couldn't deduce template parameter '_UnaryOperation'
   12 |                 transform(t.begin(),t.end(),t.begin(),tolower);
      |                 ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)'
 4247 |     transform(_InputIterator1 __first1, _InputIterator1 __last1,
      |     ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note:   candidate expects 5 arguments, 4 provided
In file included from /usr/include/c++/14/algorithm:86:
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)'
  156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result,
      | ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note:   candidate expects 5 arguments, 4 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)'
  162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2,
      | ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note:   candidate expects 6 arguments, 4 provided