Please solve the issue my vector problem please send the code of it?

i wnat to know that how to initilse and declare vector in predefine vector v {1, 2, 3, 4}; i m getting error in the code please send me this vector code so that i can use in my program and please send complete code of vector initilse and declare in predefinr manner…

@kailash_01
various ways to initialise vector
a)vector v = {1, 2, 3, 4};

b) vector v;
v.push_back(1);
v.push_back(2);
v.push_back(3);

c) int tmp[] = { 1, 2, 3 };
vector v( tmp, tmp+3 );

some other ways are also there u can checkout on internet .I mostly use above one