```
#include <iostream>
#include <vector>

int main()
{
     unsigned int numVec;
     unsigned int input;

     std::cout << "Enter Number of Vectors: ";
     std::cin >> numVec;

     std::vector<int>* Vec;
     for (unsigned int i = 0; i < numVec; i++)
     {
          std::cout << "Enter Vector Value " << i << ": ";
          std::cin >> input;
          Vec->push_back(input);
     }
     std::cout << std::endl;
     for (unsigned int i = 0; i < Vec->size(); i++)
     {
          std::cout << "Value at Index (" << i << ") " <<  Vec->at(i) << std::endl;
     }
     std::cout << std::endl;
     return 0;
}

```

I am trying to learn how Vectors work as it is a topic that i have withheld learning for a very long time for no apparently reason. 

**My above code will compile and run however once i put in a number to store in the Vector it will crash**. 

The program did work before when i was just using a vector without the pointer but just for learning reasons i wanted to try it with a pointer, I am just wondering what am i doing wrong with this code and if someone could possibly flame me for doing something or give me some good advice on what i am doing wrong in this situation so i can learn for future reference.