Do you mean the matrix product? Cross product is only defined when both operands are in R3.
C++ vectors are used to store arbitrarily long sequences of objects. They are not analogous to vectors in mathematics and they do not implement any of their operations. You need a linear algebra library, such as Eigen.