The following code
#include #include using namespace std; int main() { vector value; cout << value.
vector::size() is of type size_t which is an unsigned type, and unsigned integers can't represent negative numbers.
vector::size()
size_t