“does not name a type” error c++ : <p>I have a class declared as below, and I keep getting "Segment does not name a type" error. I've looked at other similar questions but I can't seem to find a solution to my problem. Any help? Thanks in advance! :)</p>

<pre><code>#ifndef ENTRANCE_H
#define ENTRANCE_H
#include "Segment.h"
#include &lt;vector&gt;
#include "Diodio.h"


class Entrance
{
    public:
        Entrance();
        ~Entrance();
        void operate();


    protected:
        Segment *givesEntryTo;
        std::vector&lt;Diodio&gt; elBooths;
            std::vector&lt;Diodio&gt; manBooths;

    private:
};

#endif // ENTRANCE_H
</code></pre>
