I have a program that reads a list of assignments and removes the "bad" assignments, then writes into a new file. My function that removes the bad assignments works correctly as well as the function that reads the text file. How can I utilize the std::list and std::algorithm library to write to an output file without using any direct loops? Below is the code I have implemented so far for the removing of the bad assignmemnts (Prune) along with reading the text file. Also below is what I am attempting to get working for the write function commented out