int main(int argc, char** argv) { std::vector<int> vec(10u, 2); std::cout << vec[5] << std::endl; std::cout << vec.at(5) << std::endl; return EXIT_SUCCESS; }