int main() { int n = 10; // Size of the vector std::vector myVector(n); // Creating a vector of size n return 0; }