You forgot to add std::
namespace prefix to vector
class name.
Related Contents:
- Undefined behavior and sequence points
- C++ sorting and keeping track of indexes
- Can I use if (pointer) instead of if (pointer != NULL)?
- Const before or const after?
- Stack, Static, and Heap in C++
- C++ SFINAE examples?
- Overloading member access operators ->, .*
- Is it possible to serialize and deserialize a class in C++?
- Is effective C++ still effective?
- Generate random numbers following a normal distribution in C/C++
- Correct way of declaring pointer variables in C/C++ [closed]
- Multi line preprocessor macros
- Is there any reason to use C instead of C++ for embedded development? [closed]
- Object files vs Library files and why?
- Why doesn’t ADL find function templates?
- Why does adding inline assembly comments cause such radical change in GCC’s generated code?
- How to declare constexpr extern?
- What is Security Development Lifecycle Checks option in Visual Studio?
- Print leading zeros with C++ output operator?
- If you’re in the “we don’t use exceptions” camp, then how do you use the standard library?
- #include all .cpp files into a single compilation unit?
- How to output a character as an integer through cout?
- Using ASSERT and EXPECT in GoogleTest
- Writing stringstream contents into ofstream
- Why is so much space allocated on the stack?
- Is it safe to use the “this” pointer in an initialization list?
- What is the best encryption library in C/C++? [closed]
- Why does auto x{3} deduce an initializer_list?
- C++ One std::vector containing template class of multiple types
- How to enforce the ‘override’ keyword?
- Does casting to an int after std::floor guarantee the right result?
- Difference between and
- How do I check for C++20 support? What is the value of __cplusplus for C++20? [duplicate]
- How to initialize member-struct in initializer list of C++ class?
- Class members that are objects – Pointers or not? C++
- Use of constexpr in header file
- Are there any downsides to marking all variables you don’t modify const?
- Is a destructor called when an object goes out of scope?
- Speed accessing a std::vector by iterator vs by operator[]/index?
- gcc optimization flag -O3 makes code slower than -O2
- Function default argument value depending on argument name in C++ [duplicate]
- Should I compare a std::string to “string” or “string”s?
- 0xDEADBEEF equivalent for 64-bit development?
- C++ int to byte array
- Is “inline” implicit in C++ member functions defined in class definition
- why doesn’t std::any_cast support implicit conversion?
- How to use NDK? Starting with ‘hello world’ app
- Accessing a matrix element in the “Mat” object (not the CvMat object) in OpenCV C++
- What is a C++ “Key Function” as described by gold?
- Which cannot be implemented without compiler hooks?