#include "Utils.hpp" #include #include #include #include using namespace std; int main(int argc, char **argv) { int const NUM_SQUARES = 5; vector squares = {}; // Put the squares into the list for (auto i = 0; i < NUM_SQUARES; ++i) { Utils::push(squares, i * i); } // Print out the squares from the list for (auto i = 0; i < squares.size(); ++i) { cout << fmt::format("{0:d}^2 = {1:d}", i, squares[i]) << endl; } cout << Utils::to_string(squares) << endl; return 0; }