#include <iostream> // library for standard input output
#include <vector> // library for vectors
usingnamespace std;
int main() // the main function from which the program is run
{
vector<int> v (10, 0); // creates a vector of size 10 all with 0
for(int n = 0; n < v.size(); n++) // this is a loop that goes through the vector 1 by 1
v.at(n) = ((n+1)*(n+1)); // on every iteration of the loop this adds the square of the numbers 1 to 10
for(int n = 0; n < v.size(); n++) // this does the same as the loop above but just prints out the contents of the vector
cout << v.at(n) << endl;
}