Starting with:
int a[] = {10, 20, 30}; //i'm assuming a is just a placeholder
If you don't have a C++11 compiler and you don't want to use boost:
const int a[] = {10, 20, 30};
const std::vector<int> ints(a,a+sizeof(a)/sizeof(int)); //make it const if you can
If you don't have a C++11 compiler and can use boost:
#include <boost/assign.hpp>
const std::vector<int> ints = boost::assign::list_of(10)(20)(30);
If you do have a C++11 compiler:
const std::vector<int> ints = {10,20,30};