Searching for the word in A . If while searching , we reach the end of the string , then the word is not present in the string
if ( s1 . find ( words ) == string :: npos || s2 . find ( words ) == string :: npos ) cout << words ;