Why does make_sentence() not store anything in the vector? Usually you can declare an empty vector and still use push_back() to add elements to it, what am I doing differently?
3. you aren't pushing back last word in line.
on line 10: There's a space required to store the word. No space no word stored.
after the loop: check if
test is not empty. If so store it in the vector.