First of all you need read the sentence from the file the same way as you got the input from the user that is by means of getline
std::getline( input, line );
Then you should use std::istringstream and std::istream_iterator. For example
1 2 3 4 5 6 7 8 9 10 11 12 13 14
std::istringstream is( line );
auto it = std::find( std::istream_iterator<std::string>( is ),
std::istream_iterator<std::string>(),
word );
if ( it == std::istream_iterator<std::string>() )
{
std::cout << "Word \"" << word << "\" is not present\n";
}
else
{
std::cout << "Word \"" << word << "\" is present\n";
}