Given a string in which words are separated by spaces, return the longest word. You may assume there is at least one word in the given list of words. If there are two words with equal length, return the first longest one.

Complete the following file:


#include <iostream> #include <string> #include <sstream> using namespace std; string firstLongestWord(string s) {