ERROR C2039: 'vector': is not a member of 'std' : <p>I am new to C++ and I am trying to make a little dungeon crawler game. Currently I have multiple vectors declared in my header files but they seem to give multiple errors. I have tried searching for this problem on StackOverflow but the answers don't really seem to work.</p>

<p>Here is one of my header files: (Hero.h)</p>

<pre><code>#pragma once

class Hero {
public:
    Hero();
    std::string name;
    int experience;
    int neededExperience;
    int health;
    int strength;
    int level;
    int speed;
    std::vector&lt;Item&gt; items = std::vector&lt;Item&gt;();
    void levelUp();
private:
};
</code></pre>

<p>Here is my .cpp file: (Hero.cpp)</p>

<pre><code>#include "stdafx.h"
#include &lt;vector&gt;
#include "Hero.h"
#include "Item.h"

Hero::Hero() {

}
void Hero::levelUp()
{

};
</code></pre>

<p>Like I said I am new to C++ so there might be a lot more wrong with my code than I know. This is just a test.</p>

<p>Below are the errors that are shown in the Error list of Visual Studio 2015:</p>

<pre><code>Error   C2039   'vector': is not a member of 'std'  CPPAssessment   hero.h  13  
Error   C2143   syntax error: missing ';' before '&lt;'    CPPAssessment   hero.h  13  
Error   C4430   missing type specifier - int assumed. Note: C++ does not support default-int    CPPAssessment   hero.h  13  
Error   C2238   unexpected token(s) preceding ';'   hero.h  13  
</code></pre>
