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

#include<iostream>
#include<string>
#include<algorithm>
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
Language: C++

#include<stdio.h>
#include<stdio.h>
#include<ctype.h>
int main(){
    int i;
    int c=0;
    char word[10];
    char s[1000];
    scanf("%s",word);
    for(i=0; i<strlen(word); i++) word[i]=toupper(word[i]);
    while(1){
        scanf("%s", s);
        for(i=0; i<strlen(s); i++) s[i]=toupper(s[i]);
        if(strcmp(s,"END_OF_TEXT")==0)break;
        if(strcmp(s,word)==0)c++;
    }
    printf("%d\n", c);
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:16: error: 'strlen' was not declared in this scope
   10 |     for(i=0; i<strlen(word); i++) word[i]=toupper(word[i]);
      |                ^~~~~~
a.cc:4:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    3 | #include<ctype.h>
  +++ |+#include <cstring>
    4 | int main(){
a.cc:13:20: error: 'strlen' was not declared in this scope
   13 |         for(i=0; i<strlen(s); i++) s[i]=toupper(s[i]);
      |                    ^~~~~~
a.cc:13:20: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
a.cc:14:12: error: 'strcmp' was not declared in this scope
   14 |         if(strcmp(s,"END_OF_TEXT")==0)break;
      |            ^~~~~~
a.cc:14:12: note: 'strcmp' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
a.cc:15:12: error: 'strcmp' was not declared in this scope
   15 |         if(strcmp(s,word)==0)c++;
      |            ^~~~~~
a.cc:15:12: note: 'strcmp' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
Language: C++

#include <iostream>
#include <stdio.h>
#include <string>
 
int main(){
    int p;
    int tes=0;
    std::string str,g,h;
    std::cin >> g;
    //std::cin >> str;
    scanf("%s",str);
    p=str.find( "END_OF_TEXT" );
    for(int a=0;a<=p;a++){
        for(int b=0;b<=p-a;b++){
            h=str.substr(a,b);
            ??????std::cout << h << std::endl;
            if(h==g)tes++;
        }
    }
    std::cout << tes;
    return 0;
}
 

Compiler output:
a.cc: In function 'int main()':
a.cc:16:13: error: expected primary-expression before '?' token
   16 |             ??????std::cout << h << std::endl;
      |             ^
a.cc:16:14: error: expected primary-expression before '?' token
   16 |             ??????std::cout << h << std::endl;
      |              ^
a.cc:16:15: error: expected primary-expression before '?' token
   16 |             ??????std::cout << h << std::endl;
      |               ^
a.cc:16:16: error: expected primary-expression before '?' token
   16 |             ??????std::cout << h << std::endl;
      |                ^
a.cc:16:17: error: expected primary-expression before '?' token
   16 |             ??????std::cout << h << std::endl;
      |                 ^
a.cc:16:18: error: expected primary-expression before '?' token
   16 |             ??????std::cout << h << std::endl;
      |                  ^
a.cc:16:46: error: expected ':' before ';' token
   16 |             ??????std::cout << h << std::endl;
      |                                              ^
      |                                              :
a.cc:16:46: error: expected primary-expression before ';' token
a.cc:16:46: error: expected ':' before ';' token
   16 |             ??????std::cout << h << std::endl;
      |                                              ^
      |                                              :
a.cc:16:46: error: expected primary-expression before ';' token
a.cc:16:46: error: expected ':' before ';' token
   16 |             ??????std::cout << h << std::endl;
      |                                              ^
      |                                              :
a.cc:16:46: error: expected primary-expression before ';' token
a.cc:16:46: error: expected ':' before ';' token
   16 |             ??????std::cout << h << std::endl;
      |                                              ^
      |                                              :
a.cc:16:46: error: expected primary-expression before ';' token
a.cc:16:46: error: expected ':' before ';' token
   16 |             ??????std::cout << h << std::endl;
      |                                              ^
      |                                              :
a.cc:16:46: error: expected primary-expression before ';' token
a.cc:16:46: error: expected ':' before ';' token
   16 |             ??????std::cout << h << std::endl;
      |                                              ^
      |                                              :
a.cc:16:46: error: expected primary-expression before ';' token
Language: C++

#include <iostream>
#include <string>

int main(){
    int tes=0;
    std::string str,g,h;
    std::cin >> g;
    while(true){
        std::cin >> h;
        if(h=="END_OF_TEXT")break;
        h= tolower(h);
        if(g==h)tes++;
    }
    std::cout << tes;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:19: error: no matching function for call to 'tolower(std::string&)'
   11 |         h= tolower(h);
      |            ~~~~~~~^~~
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: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/ios:43:
/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 <iostream>
#include <string>

int main(){
    int tes=0;
    char str,g;
    char h;
    std::cin >> g;
    while(true){
        std::cin >> h;
        if(h=="END_OF_TEXT")break;
        h=tolower(h);
        if(g==h)tes++;
    }
    std::cout << tes;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |         if(h=="END_OF_TEXT")break;
      |            ~^~~~~~~~~~~~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int fuck;
string str,value;

int main(){
    cin >> value;
    while(1){
        cin >> str;
        if(str == "END_OF_TEXT") break;
        if(! stricmp( str.c_str() , value.c_str() )) fuck++;
    }

    cout << fuck << endl;
}

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

#include<bits/stdc++.h>
using namespace std;
int fuck;
string str,value;

int main(){
    cin >> value;
    while(1){
        cin >> str;
        if(str == "END_OF_TEXT") break;
        if(! _stricmp( str.c_str() , value.c_str() )) fuck++;
    }

    cout << fuck << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:14: error: '_stricmp' was not declared in this scope; did you mean 'strncmp'?
   11 |         if(! _stricmp( str.c_str() , value.c_str() )) fuck++;
      |              ^~~~~~~~
      |              strncmp
Language: C++

#include<bits/stdc++.h>
using namespace std;
int fuck;
string str,value;

int main(){
    cin >> value;
    while(1){
        cin >> str;
        if(str == "END_OF_TEXT") break;
        if(! stricmp( str.c_str() , value.c_str() )) fuck++;
    }

    cout << fuck << endl;
    return 0;
}

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

 #include<iostream>
#include<string>
using namespace std;
void tim(string &a){
    
    for(int i=0;a[i];i++){
        if(a[i]<97)
        {    a[i]=(char)(a[i]+32);     
        }   
    } 
}
int main(){
    string w,t;
    cin >>w;
    int n=w.size();
    tim(w) ;
    getline(cin,t);
    int d=0;
    while(t!="END_OF_TEXT") {
        tim(t);
        int x=0;
        while(x!=-1){
        x=t.find(w);
        if(x!=-1 && t.at(x+n)==(char)" "){
            d++;
            t.replace(x,n,"");  }
        }
        getline(cin,t);
    }
    cout <<d<<endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:24:32: error: cast from 'const char*' to 'char' loses precision [-fpermissive]
   24 |         if(x!=-1 && t.at(x+n)==(char)" "){
      |                                ^~~~~~~~~
Language: C++

 #include<iostream>
#include<string>
using namespace std;
string tim(string &a){
    
    for(int i=0;a[i];i++){
        if(a[i]<97)
        {    a[i]=(char)(a[i]+32);     
        }   
    } 
      return a;
}
int main(){
    string w,t;
    cin>>w;
    int n=w.size(),i=0,j=0;
    tim(w) ;
    cout<<w;
    getline(cin,t);
     int d=0;
   while(t!="END_OF_TEXT") {
        tim(t);
        int x=0;
        while(x!=-1){
        x=t.find(w);
        if(x!=-1){
            
            t.replace(x,n,"");
            if(t[x]=="")
                d++;
        }
        
        }
        getline(cin,t);
    }
    cout <<d<<endl;
	return 0;
}

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

#include<iostream>
#include<string>
using namespace std;
void tim(string &a){
     
    for(int i=0;a[i];i++){
        if(a[i]<97)
        {    a[i]=(char)(a[i]+32);     
        }   
    } 
int timkiem(string a,string b){
    int i=0,j=0,n=b.size(),d=0;
    for(j;j<n;j++)
    {
        if(b[i]==a[0]){
            while(b[j]==a[i++])
            {                 j++;
            }
            if(a[i]==NULL)
                d++;
            i=0;
        }
    }
    return d;
}
int main(){
    string w,t;
    cin >>w;
    int n=w.size(),i,j;
    tim(w) ;
    getline(cin,t);
    int d=0;
    while(t!="END_OF_TEXT") {
        
        d+=timkiem(w,t);
        getline(cin,t);
    }
    cout <<d<<endl;
    return 0;
}

Compiler output:
a.cc: In function 'void tim(std::string&)':
a.cc:11:31: error: a function-definition is not allowed here before '{' token
   11 | int timkiem(string a,string b){
      |                               ^
a.cc:26:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
   26 | int main(){
      |         ^~
a.cc:26:9: note: remove parentheses to default-initialize a variable
   26 | int main(){
      |         ^~
      |         --
a.cc:26:9: note: or replace parentheses with braces to value-initialize a variable
a.cc:26:11: error: a function-definition is not allowed here before '{' token
   26 | int main(){
      |           ^
a.cc:40:2: error: expected '}' at end of input
   40 | }
      |  ^
a.cc:4:20: note: to match this '{'
    4 | void tim(string &a){
      |                    ^
Language: C++

/**
 * ?????????????´¢

??????????????? W ??¨?????? T ????????????????????????T ??????????????? W
?????°???????????????????????°?????????????????????????????????

?????? T ????????????????????????????????????????????§????????????????????????????????? Ti
??¨???????????????????????? Ti ?????????????????? W ??¨??????????????????????????°??????????????????

???????????§????????¨?°???????????????\???????????????

Constraints
W????????????????????????10????¶????????????????
T??????????????????????????????????????????1000????¶????????????????
Input
?????????????????? W ????????????????????????

?¶???????????????°????????????????????£??????????????????????????????END_OF_TEXT
??¨??????????????????????????????????????????????????????

Output
?????? W ?????°???????????????????????????

Sample Input
computer
Nurtures computer scientists and highly-skilled computer engineers
who will create and exploit "knowledge" for the new era.
Provides an outstanding computer environment.
END_OF_TEXT
Sample Output
3
 */

#include <iostream>
#include <sstream>

int main(int argc, char const *argv[]) {
  std::string W, T;
  getline(std::cin, W);
  std::transform(W.begin(), W.end(), W.begin(), ::tolower);
  unsigned int Count = 0;

  while (true) {
    getline(std::cin, T);
    if (T == "END_OF_TEXT") {
      break;
    } else {
      std::transform(T.begin(), T.end(), T.begin(), ::tolower);
      std::string::size_type pos = 0;

      while (pos = T.find(W, pos), pos != std::string::npos) {
        Count++;
        pos += W.length();
      }
    }
  }
  std::cout << Count << std::endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:40:8: error: 'transform' is not a member of 'std'
   40 |   std::transform(W.begin(), W.end(), W.begin(), ::tolower);
      |        ^~~~~~~~~
a.cc:48:12: error: 'transform' is not a member of 'std'
   48 |       std::transform(T.begin(), T.end(), T.begin(), ::tolower);
      |            ^~~~~~~~~
Language: C++

/**
 * ?????????????´¢

??????????????? W ??¨?????? T ????????????????????????T ??????????????? W
?????°???????????????????????°?????????????????????????????????

?????? T ????????????????????????????????????????????§????????????????????????????????? Ti
??¨???????????????????????? Ti ?????????????????? W ??¨??????????????????????????°??????????????????

???????????§????????¨?°???????????????\???????????????

Constraints
W????????????????????????10????¶????????????????
T??????????????????????????????????????????1000????¶????????????????
Input
?????????????????? W ????????????????????????

?¶???????????????°????????????????????£??????????????????????????????END_OF_TEXT
??¨??????????????????????????????????????????????????????

Output
?????? W ?????°???????????????????????????

Sample Input
computer
Nurtures computer scientists and highly-skilled computer engineers
who will create and exploit "knowledge" for the new era.
Provides an outstanding computer environment.
END_OF_TEXT
Sample Output
3
 */

#include <iostream>
#include <sstream>
#include <locale>

int main(int argc, char const *argv[]) {
  std::string W, T;
  getline(std::cin, W);
  std::transform(W.begin(), W.end(), W.begin(), ::tolower);
  unsigned int Count = 0;

  while (true) {
    getline(std::cin, T);
    if (T == "END_OF_TEXT") {
      break;
    } else {
      std::transform(T.begin(), T.end(), T.begin(), ::tolower);
      std::string::size_type pos = 0;

      while (pos = T.find(W, pos), pos != std::string::npos) {
        Count++;
        pos += W.length();
      }
    }
  }
  std::cout << Count << std::endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:41:8: error: 'transform' is not a member of 'std'
   41 |   std::transform(W.begin(), W.end(), W.begin(), ::tolower);
      |        ^~~~~~~~~
a.cc:49:12: error: 'transform' is not a member of 'std'
   49 |       std::transform(T.begin(), T.end(), T.begin(), ::tolower);
      |            ^~~~~~~~~
Language: C++

/**
 * ?????????????´¢

??????????????? W ??¨?????? T ????????????????????????T ??????????????? W
?????°???????????????????????°?????????????????????????????????

?????? T ????????????????????????????????????????????§????????????????????????????????? Ti
??¨???????????????????????? Ti ?????????????????? W ??¨??????????????????????????°??????????????????

???????????§????????¨?°???????????????\???????????????

Constraints
W????????????????????????10????¶????????????????
T??????????????????????????????????????????1000????¶????????????????
Input
?????????????????? W ????????????????????????

?¶???????????????°????????????????????£??????????????????????????????END_OF_TEXT
??¨??????????????????????????????????????????????????????

Output
?????? W ?????°???????????????????????????

Sample Input
computer
Nurtures computer scientists and highly-skilled computer engineers
who will create and exploit "knowledge" for the new era.
Provides an outstanding computer environment.
END_OF_TEXT
Sample Output
3
 */

#include <iostream>
#include <sstream>
#include <locale>

int main(int argc, char const *argv[]) {
  std::string W, T;
  getline(std::cin, W);
  transform(W.begin(), W.end(), W.begin(), ::tolower);
  unsigned int Count = 0;

  while (true) {
    getline(std::cin, T);
    if (T == "END_OF_TEXT") {
      break;
    } else {
      transform(T.begin(), T.end(), T.begin(), ::tolower);
      std::string::size_type pos = 0;

      while (pos = T.find(W, pos), pos != std::string::npos) {
        Count++;
        pos += W.length();
      }
    }
  }
  std::cout << Count << std::endl;
  return 0;
}

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

/**
 * ?????????????´¢

??????????????? W ??¨?????? T ????????????????????????T ??????????????? W
?????°???????????????????????°?????????????????????????????????

?????? T ????????????????????????????????????????????§????????????????????????????????? Ti
??¨???????????????????????? Ti ?????????????????? W ??¨??????????????????????????°??????????????????

???????????§????????¨?°???????????????\???????????????

Constraints
W????????????????????????10????¶????????????????
T??????????????????????????????????????????1000????¶????????????????
Input
?????????????????? W ????????????????????????

?¶???????????????°????????????????????£??????????????????????????????END_OF_TEXT
??¨??????????????????????????????????????????????????????

Output
?????? W ?????°???????????????????????????

Sample Input
computer
Nurtures computer scientists and highly-skilled computer engineers
who will create and exploit "knowledge" for the new era.
Provides an outstanding computer environment.
END_OF_TEXT
Sample Output
3
 */

#include <iostream>
#include <sstream>
#include <locale>

int main(int argc, char const *argv[]) {
  std::string W, T;
  getline(std::cin, W);
  std::transform(W.begin(), W.end(), W.begin(), tolower);
  unsigned int Count = 0;

  while (true) {
    getline(std::cin, T);
    if (T == "END_OF_TEXT") {
      break;
    } else {
      std::transform(T.begin(), T.end(), T.begin(), tolower);
      std::string::size_type pos = 0;

      while (pos = T.find(W, pos), pos != std::string::npos) {
        Count++;
        pos += W.length();
      }
    }
  }
  std::cout << Count << std::endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:41:8: error: 'transform' is not a member of 'std'
   41 |   std::transform(W.begin(), W.end(), W.begin(), tolower);
      |        ^~~~~~~~~
a.cc:49:12: error: 'transform' is not a member of 'std'
   49 |       std::transform(T.begin(), T.end(), T.begin(), tolower);
      |            ^~~~~~~~~
Language: C++

count = 0
W = input().lower()
T = [0]
while True:
    try:
        if T[0] == "END_OF_TEXT":
            break
        for t in T:
            if W == t:
                count += 1
        T = [x.lower() for x in input().split()]
    except EOFError:
        break
print(count)

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

#include <stdio.h>
#include <iostream>
#include <cstdlib>
#include <stdlib>
#include <string>
#include <algorithm>

using namespace std;

int main() {
	string W;
	string tlow;
	string endtext("END_OF_TEXT");
	getline(cin, W);
	std::transform(W.begin(), W.end(), W.begin(), tolower);

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

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

pl;,

Compiler output:
a.cc:1:1: error: 'pl' does not name a type
    1 | pl;,
      | ^~
a.cc:1:4: error: expected unqualified-id before ',' token
    1 | pl;,
      |    ^
a.cc:1:5: error: expected unqualified-id at end of input
    1 | pl;,
      |     ^
Language: C++

#include<string.h>
#include<iostream>
#include<ctype.h>
using namespace std;
int main()
{
	char w[16], wc[16] , t[1024],tc[1024];
	int c = 0;
	cin >> wc;
	strcpy_s(w, wc);
	for (int i = 0;; i++){
		w[i] = tolower(wc[i]);
		if (wc[i] = '0')break;
	}
	while (1){
		cin >> tc;
		if (!(strcmp("END_OF_TEXT", tc))){
			break;
		}
		strcpy_s(t, tc);
		for (int i = 0;; i++){
			t[i] = tolower(tc[i]);
			if (tc[i] = '0')break;
		}
		if (!(strcmp(w, t))){
			c++;
		}
	}
	cout << c<<endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: 'strcpy_s' was not declared in this scope; did you mean 'strcpy'?
   10 |         strcpy_s(w, wc);
      |         ^~~~~~~~
      |         strcpy
Language: C++

#include<string.h>
#include<iostream>
#include<ctype.h>
using namespace std;
int main()
{
	char w[16], wc[16] , t[1024],tc[1024];
	int c = 0;
	cin >> wc;
	strcpy(w, wc);
	for (int i = 0;; i++){
		w[i] = tolower(wc[i]);
		if (wc[i] = '0')break;
	}
	while (1){
		cin >> tc;
		if (!(strcmp("END_OF_TEXT", tc))){
			break;
		}
		strcpy_s(t, tc);
		for (int i = 0;; i++){
			t[i] = tolower(tc[i]);
			if (tc[i] = '0')break;
		}
		if (!(strcmp(w, t))){
			c++;
		}
	}
	cout << c<<endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:17: error: 'strcpy_s' was not declared in this scope; did you mean 'strcpy'?
   20 |                 strcpy_s(t, tc);
      |                 ^~~~~~~~
      |                 strcpy
Language: C++

#include <iostream>
#include <sstream>
#include <vector>
#include <algorithm>
#include <string>
#include <functional>
#include <numeric>
#include <ctype.h>
#include <cstdlib>


using namespace std;


int main()
{
	string t, input;
	int count = 0;

	cin >> t;

	while (true)
	{
		cin >> input;


		if (input == "END_OF_TEXT")
			break;
		if (!stricmp(input.c_str(), t.c_str())) 
		{
			count++;
		}
	}

	cout << count << endl;
}

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

#include <iostream>
#include <sstream>
#include <vector>
#include <algorithm>
#include <string>
#include <functional>
#include <numeric>
#include <ctype.h>
#include <cstdlib>
#include <string.h>


using namespace std;


int main()
{
	string t, input;
	int count = 0;

	cin >> t;

	while (true)
	{
		cin >> input;


		if (input == "END_OF_TEXT")
			break;
		if (!stricmp(input.c_str(), t.c_str())) 
		{
			count++;
		}
	}

	cout << count << endl;
}

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

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

int main(){
	string a;
	stirng b[10]{};
	int c=0;
	cin >>a;
	for(int i=0;i<10;i++){
		cin>>b[i];
		if(b[i]='END_OF_TEXT')break;
		if(b[i].find(a)>0)c++;
	}
	cout <<c<<endl;
}

Compiler output:
a.cc:11:25: warning: multi-character literal with 11 characters exceeds 'int' size of 4 bytes
   11 |                 if(b[i]='END_OF_TEXT')break;
      |                         ^~~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:6:9: error: 'stirng' was not declared in this scope
    6 |         stirng b[10]{};
      |         ^~~~~~
a.cc:10:22: error: 'b' was not declared in this scope
   10 |                 cin>>b[i];
      |                      ^
Language: C++

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

int main(){
	string a;
	string b[10]{};
	int c=0;
	cin >>a;
	for(int i=0;i<10;i++){
		cin>>b[i];
		if(b[i]='END_OF_TEXT')break;
		if(b[i].find(a)>0)c++;
	}
	cout <<c<<endl;
}

Compiler output:
a.cc:11:25: warning: multi-character literal with 11 characters exceeds 'int' size of 4 bytes
   11 |                 if(b[i]='END_OF_TEXT')break;
      |                         ^~~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:11:25: warning: overflow in conversion from 'int' to 'char' changes value from '1413830740' to '84' [-Woverflow]
a.cc:11:24: error: could not convert 'b[i].std::__cxx11::basic_string<char>::operator=(84)' from 'std::__cxx11::basic_string<char>' to 'bool'
   11 |                 if(b[i]='END_OF_TEXT')break;
      |                    ~~~~^~~~~~~~~~~~~~
      |                        |
      |                        std::__cxx11::basic_string<char>
Language: C++

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

int main(){
	string a;
	string b[10]{};
	int c=0;
	cin >>a;
	for(int i=0;i<10;i++){
		cin>>b[i];
		if(b[i]=="END_OF_TEXT")break;
		for(int j=0;j<b.length();j++){
			if(b[i].substr(i,a.length()-1)find(a)<0)c++;
		}
	}
	cout <<c<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:33: error: request for member 'length' in 'b', which is of non-class type 'std::string [10]' {aka 'std::__cxx11::basic_string<char> [10]'}
   12 |                 for(int j=0;j<b.length();j++){
      |                                 ^~~~~~
a.cc:13:55: error: expected ')' before 'find'
   13 |                         if(b[i].substr(i,a.length()-1)find(a)<0)c++;
      |                           ~                           ^~~~
      |                                                       )
a.cc:13:39: error: could not convert 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::substr(size_type, size_type) const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int](((std::__cxx11::basic_string<char>::size_type)i), (a.std::__cxx11::basic_string<char>::length() - 1))' from 'std::__cxx11::basic_string<char>' to 'bool'
   13 |                         if(b[i].substr(i,a.length()-1)find(a)<0)c++;
      |                            ~~~~~~~~~~~^~~~~~~~~~~~~~~~
      |                                       |
      |                                       std::__cxx11::basic_string<char>
Language: C++

#include<iostream>
#include<string>
using namespace std;
int main(){
int count = 0;
string W,T;
for(int i = 0;i < W.size; i++){
if(isupper(W[i])){
W[i] = tolower(W[i]);
}
}


cin>>W;
while(){
for(int i = 0;i < T.size; i++){
if(isupper(T[i])){
T[i] = tolower(T[i]);
}
}
cin>>T;
if(W==T){
count++;
}
if(cin>>"end_of_text)break;

}
return 0;
}

Compiler output:
a.cc:25:9: warning: missing terminating " character
   25 | if(cin>>"end_of_text)break;
      |         ^
a.cc:25:9: error: missing terminating " character
   25 | if(cin>>"end_of_text)break;
      |         ^~~~~~~~~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:7:21: 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 '()' ?)
    7 | for(int i = 0;i < W.size; i++){
      |                   ~~^~~~
      |                         ()
a.cc:15:7: error: expected primary-expression before ')' token
   15 | while(){
      |       ^
a.cc:16:21: 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 '()' ?)
   16 | for(int i = 0;i < T.size; i++){
      |                   ~~^~~~
      |                         ()
a.cc:27:1: error: expected primary-expression before '}' token
   27 | }
      | ^
a.cc:25:9: error: expected ')' before '}' token
   25 | if(cin>>"end_of_text)break;
      |   ~     ^
      |         )
   26 | 
   27 | }
      | ~        
a.cc:27:1: error: expected primary-expression before '}' token
   27 | }
      | ^
Language: C++

#include<iostream>
#include<string>
using namespace std;
int main(){
int count = 0;
string W,T;
for(int i = 0;i < W.size; i++){
if(isupper(W[i])){
W[i] = tolower(W[i]);
}
}


cin>>W;
while(){
for(int i = 0;i < T.size; i++){
if(isupper(T[i])){
T[i] = tolower(T[i]);
}
}
cin>>T;
if(W==T){
count++;
}
if(cin>>"end_of_text)break;

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

Compiler output:
a.cc:25:9: warning: missing terminating " character
   25 | if(cin>>"end_of_text)break;
      |         ^
a.cc:25:9: error: missing terminating " character
   25 | if(cin>>"end_of_text)break;
      |         ^~~~~~~~~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:7:21: 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 '()' ?)
    7 | for(int i = 0;i < W.size; i++){
      |                   ~~^~~~
      |                         ()
a.cc:15:7: error: expected primary-expression before ')' token
   15 | while(){
      |       ^
a.cc:16:21: 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 '()' ?)
   16 | for(int i = 0;i < T.size; i++){
      |                   ~~^~~~
      |                         ()
a.cc:27:1: error: expected primary-expression before '}' token
   27 | }
      | ^
a.cc:25:9: error: expected ')' before '}' token
   25 | if(cin>>"end_of_text)break;
      |   ~     ^
      |         )
   26 | 
   27 | }
      | ~        
a.cc:27:1: error: expected primary-expression before '}' token
   27 | }
      | ^
Language: C++

#include<iostream>
#include<string>
using namespace std;
int main(){
int count = 0;
string W,T;
cin>>W;
for(int i = 0;i < W.size; i++){
if(isupper(W[i])){
W[i] = tolower(W[i]);
}
}


cin>>W;
while(){
cin>>T;
for(int i = 0;i < T.size; i++){
if(isupper(T[i])){
T[i] = tolower(T[i]);
}
}

if(W==T){
count++;
}
if(cin>>"end_of_text)break;

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

Compiler output:
a.cc:27:9: warning: missing terminating " character
   27 | if(cin>>"end_of_text)break;
      |         ^
a.cc:27:9: error: missing terminating " character
   27 | if(cin>>"end_of_text)break;
      |         ^~~~~~~~~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:8:21: 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 '()' ?)
    8 | for(int i = 0;i < W.size; i++){
      |                   ~~^~~~
      |                         ()
a.cc:16:7: error: expected primary-expression before ')' token
   16 | while(){
      |       ^
a.cc:18:21: 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 '()' ?)
   18 | for(int i = 0;i < T.size; i++){
      |                   ~~^~~~
      |                         ()
a.cc:29:1: error: expected primary-expression before '}' token
   29 | }
      | ^
a.cc:27:9: error: expected ')' before '}' token
   27 | if(cin>>"end_of_text)break;
      |   ~     ^
      |         )
   28 | 
   29 | }
      | ~        
a.cc:29:1: error: expected primary-expression before '}' token
   29 | }
      | ^
Language: C++

#include <iostream>
#include <string>

using namespace std;

int main()
{
 	int count = 0;
  while(1){
  	string w,t;
	for (int i = 0 ; i <= w.size ; i++ ){
		if (isupper(w[i])){
			w[i] = tolower(w[i]);
		}


	}

	cin >> w;

	while(1){
		cin >> t;

		if (p == "end_of_text")break

		for (int j = 0 ; j <= t.size ; j++ ){
			if ( isupper(w[j])){
				w[i] = tolower(w[j]);
			}
		}

		if (t = w )count++;

	}

  }
    cout << count << emdl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11: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 '()' ?)
   11 |         for (int i = 0 ; i <= w.size ; i++ ){
      |                               ~~^~~~
      |                                     ()
a.cc:24:21: error: 'p' was not declared in this scope
   24 |                 if (p == "end_of_text")break
      |                     ^
a.cc:24:45: error: expected ';' before 'for'
   24 |                 if (p == "end_of_text")break
      |                                             ^
      |                                             ;
   25 | 
   26 |                 for (int j = 0 ; j <= t.size ; j++ ){
      |                 ~~~                          
a.cc:26:41: 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 '()' ?)
   26 |                 for (int j = 0 ; j <= t.size ; j++ ){
      |                                       ~~^~~~
      |                                             ()
a.cc:28:35: error: 'i' was not declared in this scope
   28 |                                 w[i] = tolower(w[j]);
      |                                   ^
a.cc:32:23: error: could not convert 't.std::__cxx11::basic_string<char>::operator=(w)' from 'std::__cxx11::basic_string<char>' to 'bool'
   32 |                 if (t = w )count++;
      |                     ~~^~~
      |                       |
      |                       std::__cxx11::basic_string<char>
a.cc:37:22: error: 'emdl' was not declared in this scope
   37 |     cout << count << emdl;
      |                      ^~~~
Language: C++

#include <iostream>
#include <string>

using namespace std;

int main()
{
 	int count = 0;
  while(1){
  	string w;
  	cin = w;
	for (int i = 0 ; i < w.size() ; i++ ){
		if (isupper(w[i])){
			w[i] = tolower(w[i]);
		}


	}

	string t;

	while(1){
		cin >> t;

		if (t == "END_OF_TEXT")break;

		for (int j = 0 ; j < t.size() ; j++ ){
			if ( isupper(t[j])){
				t[i] = tolower(t[j]);
			}
		}
		string t;

		if (t = w )count++;

	}

  }
    cout << count << emdl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:15: error: no match for 'operator=' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'std::string' {aka 'std::__cxx11::basic_string<char>'})
   11 |         cin = w;
      |               ^
In file included from /usr/include/c++/14/iostream:42,
                 from a.cc:1:
/usr/include/c++/14/istream:718:7: note: candidate: 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator=(std::basic_istream<_CharT, _Traits>&&) [with _CharT = char; _Traits = std::char_traits<char>]'
  718 |       operator=(basic_istream&& __rhs)
      |       ^~~~~~~~
/usr/include/c++/14/istream:718:33: note:   no known conversion for argument 1 from 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'std::basic_istream<char>&&'
  718 |       operator=(basic_istream&& __rhs)
      |                 ~~~~~~~~~~~~~~~~^~~~~
a.cc:29:35: error: 'i' was not declared in this scope
   29 |                                 t[i] = tolower(t[j]);
      |                                   ^
a.cc:34:23: error: could not convert 't.std::__cxx11::basic_string<char>::operator=(w)' from 'std::__cxx11::basic_string<char>' to 'bool'
   34 |                 if (t = w )count++;
      |                     ~~^~~
      |                       |
      |                       std::__cxx11::basic_string<char>
a.cc:39:22: error: 'emdl' was not declared in this scope
   39 |     cout << count << emdl;
      |                      ^~~~
Language: C++

#include <iostream>
#include <string>

using namespace std;

int main()
{
 	int count = 0;
  
  	string w;
  	cin = w;
	for (int i = 0 ; i < w.size() ; i++ ){
		if (isupper(w[i])){
			w[i] = tolower(w[i]);
		}


	}

	string t;

	while(1){
		cin >> t;

		if (t == "END_OF_TEXT")break;

		for (int j = 0 ; j < t.size() ; j++ ){
			if ( isupper(t[j])){
				t[i] = tolower(t[j]);
			}
		}
		string t;

		if (t = w )count++;

	}


    cout << count << emdl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:15: error: no match for 'operator=' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'std::string' {aka 'std::__cxx11::basic_string<char>'})
   11 |         cin = w;
      |               ^
In file included from /usr/include/c++/14/iostream:42,
                 from a.cc:1:
/usr/include/c++/14/istream:718:7: note: candidate: 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator=(std::basic_istream<_CharT, _Traits>&&) [with _CharT = char; _Traits = std::char_traits<char>]'
  718 |       operator=(basic_istream&& __rhs)
      |       ^~~~~~~~
/usr/include/c++/14/istream:718:33: note:   no known conversion for argument 1 from 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'std::basic_istream<char>&&'
  718 |       operator=(basic_istream&& __rhs)
      |                 ~~~~~~~~~~~~~~~~^~~~~
a.cc:29:35: error: 'i' was not declared in this scope
   29 |                                 t[i] = tolower(t[j]);
      |                                   ^
a.cc:34:23: error: could not convert 't.std::__cxx11::basic_string<char>::operator=(w)' from 'std::__cxx11::basic_string<char>' to 'bool'
   34 |                 if (t = w )count++;
      |                     ~~^~~
      |                       |
      |                       std::__cxx11::basic_string<char>
a.cc:39:22: error: 'emdl' was not declared in this scope
   39 |     cout << count << emdl;
      |                      ^~~~
Language: C++

#include <iostream>//aoj String-Finding a Word
using namespace std;
int main(void)
{
	char w[11]={0}, t[1001];
	int count=0;

	cin >> w;

	for (;;)
	{
		cin >> t;
		if (!strcmp(t, "END_OF_TEXT"))
		{
			break;
		}
		else if (!strcmp(t, w))
		{
			count+=1;
		}
	}

	cout << count << endl;

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:22: error: 'strcmp' was not declared in this scope
   13 |                 if (!strcmp(t, "END_OF_TEXT"))
      |                      ^~~~~~
a.cc:2:1: note: 'strcmp' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    1 | #include <iostream>//aoj String-Finding a Word
  +++ |+#include <cstring>
    2 | using namespace std;
Language: C++

#include <iostream>//aoj String-Finding a Word
#include <string>
using namespace std;
int main(void)
{
	char w[11]={0}, t[1001];
	int count=0;

	cin >> w;

	for (;;)
	{
		cin >> t;
		if (!strcmp(t, "END_OF_TEXT"))
		{
			break;
		}
		else if (!strcmp(t, w))
		{
			count+=1;
		}
	}

	cout << count << endl;

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:22: error: 'strcmp' was not declared in this scope
   14 |                 if (!strcmp(t, "END_OF_TEXT"))
      |                      ^~~~~~
a.cc:2:1: note: 'strcmp' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    1 | #include <iostream>//aoj String-Finding a Word
  +++ |+#include <cstring>
    2 | #include <string>
Language: C++

#include <iostream>//aoj String-Finding a Word
#include <string>
using namespace std;
int main(void)
{
	char w[11]={0}, t[1001];
	int count=0;

	cin >> w;

	for (;;)
	{
		cin >> t;
		
		if (!strcmp(t, "END_OF_TEXT"))
		{
			break;
		}
		else if (!strcmp(t, w))
		{
			count+=1;
		}
	}

	cout << count << endl;

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:22: error: 'strcmp' was not declared in this scope
   15 |                 if (!strcmp(t, "END_OF_TEXT"))
      |                      ^~~~~~
a.cc:2:1: note: 'strcmp' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    1 | #include <iostream>//aoj String-Finding a Word
  +++ |+#include <cstring>
    2 | #include <string>
Language: C++

#include<iostream>
#include<string>

using namespace std;

int main()
{
	string w1, t1;
	//const char *w, *t;
	int ans = 0;
	cin >> w1;
	while (1)
	{

		cin >> t1;
		if (! stricmp(w1.c_str(), t1.c_str()))
		{
			ans++;
		}
		if(! stricmp(t1.c_str(),"END_OF_TEXT"))
		{
			break;
		}
	}
	cout << ans << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:23: error: 'stricmp' was not declared in this scope
   16 |                 if (! stricmp(w1.c_str(), t1.c_str()))
      |                       ^~~~~~~
a.cc:20:22: error: 'stricmp' was not declared in this scope
   20 |                 if(! stricmp(t1.c_str(),"END_OF_TEXT"))
      |                      ^~~~~~~
Language: C++

#include<iostream>
#include<string>

using namespace std;

int main()
{
	string w1, t1;
	//const char *w, *t;
	int ans = 0;
	cin >> w1;
	while (1)
	{

		cin >> t1;
		if (! _stricmp(w1.c_str(), t1.c_str()))
		{
			ans++;
		}
		if(! _stricmp(t1.c_str(),"END_OF_TEXT"))
		{
			break;
		}
	}
	cout << ans << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:23: error: '_stricmp' was not declared in this scope
   16 |                 if (! _stricmp(w1.c_str(), t1.c_str()))
      |                       ^~~~~~~~
a.cc:20:22: error: '_stricmp' was not declared in this scope
   20 |                 if(! _stricmp(t1.c_str(),"END_OF_TEXT"))
      |                      ^~~~~~~~
Language: C++

#include<iostream>
#include<string>

using namespace std;

int main()
{
	string w1, t1;
	//const char *w, *t;
	int ans = 0;
	cin >> w1;
	while (1)
	{

		cin >> t1;
		if (! strcmp(w1.c_str(), t1.c_str()))
		{
			ans++;
		}
		if(! strcmp(t1.c_str(),"END_OF_TEXT"))
		{
			break;
		}
	}
	cout << ans << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:23: error: 'strcmp' was not declared in this scope
   16 |                 if (! strcmp(w1.c_str(), t1.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 | #include<string>
a.cc:20:22: error: 'strcmp' was not declared in this scope
   20 |                 if(! strcmp(t1.c_str(),"END_OF_TEXT"))
      |                      ^~~~~~
a.cc:20:22: note: 'strcmp' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
Language: C++

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

using namespace std;

int main()
{
	string w1, t1;
	//const char *w, *t;
	int ans = 0;
	cin >> w1;
	while (1)
	{

		cin >> t1;
		if (! stricmp(w1.c_str(), t1.c_str()))
		{
			ans++;
		}
		if(! stricmp(t1.c_str(),"END_OF_TEXT"))
		{
			break;
		}
	}
	cout << ans << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:23: error: 'stricmp' was not declared in this scope; did you mean 'strncmp'?
   17 |                 if (! stricmp(w1.c_str(), t1.c_str()))
      |                       ^~~~~~~
      |                       strncmp
a.cc:21:22: error: 'stricmp' was not declared in this scope; did you mean 'strncmp'?
   21 |                 if(! stricmp(t1.c_str(),"END_OF_TEXT"))
      |                      ^~~~~~~
      |                      strncmp
Language: C++

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

using namespace std;

int main()
{
	string w1, t1;
	//const char *w, *t;
	int ans = 0;
	cin >> w1;
	while (1)
	{

		cin >> t1;
		if (! _stricmp(w1.c_str(), t1.c_str()))
		{
			ans++;
		}
		if(! _stricmp(t1.c_str(),"END_OF_TEXT"))
		{
			break;
		}
	}
	cout << ans << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:23: error: '_stricmp' was not declared in this scope; did you mean 'strncmp'?
   17 |                 if (! _stricmp(w1.c_str(), t1.c_str()))
      |                       ^~~~~~~~
      |                       strncmp
a.cc:21:22: error: '_stricmp' was not declared in this scope; did you mean 'strncmp'?
   21 |                 if(! _stricmp(t1.c_str(),"END_OF_TEXT"))
      |                      ^~~~~~~~
      |                      strncmp