I need to write a C++ program taking a vector of strings and separating out the words in each, storing them into a vector, but I don't know how. Could anyone help me please?

Code:
Template Code:

vector <string> seperateWords (vector<string> lines) {
    vector<string > words;
    
    //Separating stuff goes here

    return words;
}
Thanks in advance!