#include <iostream>
#include <vector>
#include <string>
#include <initializer_list>

std::vector<int> *createvec(std::initializer_list<int> il){
	std::vector<int> *pv = new std::vector<int>(il); // initialized the 
//vector through the initializer list il
	return pv;
}

void printvec(std::vector<int> *p){
	for(auto it = p->begin(); it != p->end(); ++it){
		std::cout<<*it<<std::endl;		
	}
	delete p;
}

int main(){
	
	std::vector<int> *thepointer = createvec({3,5,8,2});
	printvec(thepointer);
	thepointer = nullptr;
	return 0;
}
