Sobes.tech
Intern — Senior

Initialization of an integer vector in the main function

livecode

Task condition

It is necessary to declare an integer vector in the main function and immediately fill it with initial values.

#include <iostream>
#include <vector>

int main(int argc, char** argv) {
    std::vector<int> values = {1, 2, 3, 4, 5};
    return EXIT_SUCCESS;
}