I am using eclipse in linux to develop a c++ application and I am getting this editor annotation error \"Symbol \'vector\' could not be resolved\" from the following code
You need to include the STL vector definition in your program. Put:
#include
at the top of your file and it should work.