You have two main problems. Firstly you are including <string.h> which is the old C library header; it should be just <string> for the standard template library.
Secondly, you compare the search field with a blank string, instead of searching each in turn, so the search entry will never be found.
if (y == s[i]) cout<< y << " exists";
for (i=0; i < 3; i++)
{
if (y == s[i])
{
cout << y << " exists";
break;
}
}
if (i == 3)
cout << y <<" Does not exist";