The code below transfers the two dimensional array in_arr and produces the output in out_arr. I then intialize a vector to look like in_arr. I'd like to do the same thing with the vector. What woudl the code look like in the transponse function for the vector?
Thanks in advance.

Code:

# include <vector>
# include <algorithm>
using namespace std; // this is bad but only here for test purposes