#include <vector> #include <array> std::vector<std::array<int, 2>> weights; std::array<int, 2> weight = {1, 2}; weights.push_back(weight);