Integer 0 is found in vector calling for the -1 index? : When I initialize a vector:

    std::vector <int> someVec;

and I call:

    std::cout << someVec[-1];

with an arbitrary number of elements, 0 is always returned. Is there someway to get around this? This fault in cpp is messing up my "sort" function. Is there anyway to initialize said vector differently in order to return the last element in the vector, rather than 0 which seems to be the default. It seems that any index called outside the range of the vector will result in 0. It isn't wrapped which is baffling me. Thanks for the help, kind stranger!

