Is there any problem with my code ?
std::vector weights; int weight[2] = {1,2}; weights.push_back(weight);
It can\'t be compi
Array can be added to container like this too.
int arr[] = {16,2,77,29}; std::vector myvec (arr, arr + sizeof(arr) / sizeof(int) );
Hope this helps someone.