// C++ program to illustrate vector type

#include <iostream>
#include <vector>
using namespace std;

int main() 
{
   vector<int> num {1, 2, 3};

   // gives garbage value
   cout << "num[4] = " << num[4] << "\n\n";

   // throws an exception
   cout << "num.at(4) = " << num.at(4) << "\n\n";
}
