/* Given a vector, negate all the elements in the vector. * Negating a positive value -+n will return -n, * because all +'s are removed. * Negating a negative value --n will return n, * because the first - turns the second minus into a +. */ std::vector negate(std::vector vi) { for (int dur = 0; dur