Language: C++

#include<bits/stdc++.h>
#define ll long long
using namespace std;
int main() {
	// ll cnt=0,cnt1=0;
	// string s;
	// getline(cin,s);
	// //int k=strlen(s);
	// ll k=sizeof(s);
	// for(ll i=0;i<k;i++){

	// 	if(s[i]=='h' ||s[i]=='H'){
	// 		cnt++;
	// 	}
	// 	else if(s[i]=='i'||s[i]=='I'){
	// 		cnt1++;
	// 	}
	// }
	// if(cnt>0 && cnt1>0){
	// 	if(cnt==cnt1){
	// 	cout<<"Yes"<<endl;
	// 	cnt=0;
	// 	cnt1=0;
	// }
	// else{
	// 	cout<<"No"<<endl;
	// }

	// }
	// else{
	// cout<<"No"<<endl;
	// }
	string s[10];
	strcpy(s[0], "hi");
	strcpy(s[1], "hihi");
	strcpy(s[2], "hihihi");
	strcpy(s[3], "hihihihi");
	strcpy(s[4], "hihihihihi");
	string ss;
	getline(cin, ss);
	int j=0;
	for (int i = 0; i < 5; i++){
		j = strcmp(ss, s[i]);
		if (j == 1) {cout <<"Yes"<< endl; 
		break;}
	}
	if (j == 0) cout <<"No"<< endl;
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:34:19: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'char*'
   34 |         strcpy(s[0], "hi");
      |                ~~~^
      |                   |
      |                   std::string {aka std::__cxx11::basic_string<char>}
In file included from /usr/include/c++/14/cstring:43,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:121,
                 from a.cc:1:
/usr/include/string.h:141:39: note:   initializing argument 1 of 'char* strcpy(char*, const char*)'
  141 | extern char *strcpy (char *__restrict __dest, const char *__restrict __src)
      |                      ~~~~~~~~~~~~~~~~~^~~~~~
a.cc:35:19: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'char*'
   35 |         strcpy(s[1], "hihi");
      |                ~~~^
      |                   |
      |                   std::string {aka std::__cxx11::basic_string<char>}
/usr/include/string.h:141:39: note:   initializing argument 1 of 'char* strcpy(char*, const char*)'
  141 | extern char *strcpy (char *__restrict __dest, const char *__restrict __src)
      |                      ~~~~~~~~~~~~~~~~~^~~~~~
a.cc:36:19: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'char*'
   36 |         strcpy(s[2], "hihihi");
      |                ~~~^
      |                   |
      |                   std::string {aka std::__cxx11::basic_string<char>}
/usr/include/string.h:141:39: note:   initializing argument 1 of 'char* strcpy(char*, const char*)'
  141 | extern char *strcpy (char *__restrict __dest, const char *__restrict __src)
      |                      ~~~~~~~~~~~~~~~~~^~~~~~
a.cc:37:19: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'char*'
   37 |         strcpy(s[3], "hihihihi");
      |                ~~~^
      |                   |
      |                   std::string {aka std::__cxx11::basic_string<char>}
/usr/include/string.h:141:39: note:   initializing argument 1 of 'char* strcpy(char*, const char*)'
  141 | extern char *strcpy (char *__restrict __dest, const char *__restrict __src)
      |                      ~~~~~~~~~~~~~~~~~^~~~~~
a.cc:38:19: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'char*'
   38 |         strcpy(s[4], "hihihihihi");
      |                ~~~^
      |                   |
      |                   std::string {aka std::__cxx11::basic_string<char>}
/usr/include/string.h:141:39: note:   initializing argument 1 of 'char* strcpy(char*, const char*)'
  141 | extern char *strcpy (char *__restrict __dest, const char *__restrict __src)
      |                      ~~~~~~~~~~~~~~~~~^~~~~~
a.cc:43:28: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'const char*'
   43 |                 j = strcmp(ss, s[i]);
      |                            ^~
      |                            |
      |                            std::string {aka std::__cxx11::basic_string<char>}
/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)
      |                    ~~~~~~~~~~~~^~~~