Can anyone help me with this error in c++
Please read the text below in the box and tell me how to solve this
cppcheck: Out of bounds access because “container is empty” but container is not empty
I have this simple test code that creates a vector of 2 elements and prints it’s size, then prints first element: