Would there be a simpler way to do this?
Code:
                       
int i=0 , j=0;
  while (i < ((int)words2.size()))
  {
     {if (words1[j] == words2[i])
     
            cout << words1[j] <<" is the same as " << words2[i]<< "\n";
     
     else
            cout << words1[j] <<" is not the same as " << words2[i]<< "\n"; 
     }i++;
  }  
  i = 0; j++; 
   while (i < ((int)words2.size()))
  {
     {if (words1[j] == words2[i])
     
            cout << words1[j] <<" is the same as " << words2[i]<< "\n";
     
     else
            cout << words1[j] <<" is not the same as " << words2[i]<< "\n"; 
     }i++;
  }
Thanks!