#include
#include
#include
using namespace std;
/** Write the definition of the function modifyList().
*
* The function passes an STL list of type int and deletes all
* consecutive duplicates in the list.
*
* Restrictions:
* Must use function list::erase.
* Must use auto when declaring STL iterators.
*
* Example:
* {1, 1, 2} => {1, 2}
* {1, 2, 2, 1, 2, 2, 2} => {1, 2, 1, 2}
* {34, 76, 76, 54, 21, 98, 76, 99, 99} => {34, 76, 54, 21, 98, 76, 99}
*/
// Definition function modifyList
void modifyList(list& aList)