It provides instructions to the compiler that will allow further code to be able to write to the terminal.
All I remember is that a C++ file always needs an int main function. I’ll read other comments in order to fully remember why.
It returns an integer, specifically 0.
The first 3 expression statements display 2 lines of text on the terminal, to introduce the player to the game.
Then, the 3 declaration statements declare what types of values will be assigned to their respective variables, and whether they are constant or variable.
Then specific values, of which their type must match the declared type of their respective variables, are assigned to said variables.
The 2 declaration statements after demonstrate that the 3 previous initialized variables can be operated together in order to initiate new variables.
The last 3 expression statements display the sum and product in their own lines through a modified line breaker code syntax which makes the code shorter and thus more concise.
The return statement, which is the last statement in the body of the function it is part of, returns a value, in this case an integer of the value 0.
Also, for fun points, each statement ends with the ; character as per the syntax of C++.