Write a function that returns a sorted vector with the symmetric difference of two sorted vectors and . The result must have the elements in that are not in and the elements in that are not in , without repetitions. For example, the symmetric difference of a vector with and a vector with is a vector with .
vector<double> symmetric_difference(const vector<double>& v1, const vector<double>& v2);
You only need to submit the required procedure; your main program will be ignored.
Input
6 1 2 2 5 5 7 4 2 3 3 7
Output
3 1 3 5