ISO C++ forbids declaration of ‘vector’ with no type

Hi,
Could anyone tell me what is the error here.
Thanks


medal.cpp:8: error: ISO C++ forbids declaration of ‘vector’ with no type
medal.cpp:8: error: expected ‘;’ before ‘<’ token
medal.cpp:19: error: expected `;' before ‘}’ token


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include <string>
#include <map>
using namespace std;

class MedalTable
{
	public:	
		vector<string> generate(vector<string> results)
		{
			vector<string>::iterator vsitr;
			vector<string> result;
			
			map<string, vector<int> > result_table;
			
//			for(vsitr=results.begin(); vsitr != results.end(); vsitr++)
			
			return result;
		}
};
My mistake..
Forgot to include vector.h :)
Topic archived. No new replies allowed.