error , Symbol 'vector' could not be resolved

后端 未结 12 933
心在旅途
心在旅途 2021-01-04 00:34

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

12条回答
  •  情歌与酒
    2021-01-04 00:58

    You need to include the STL vector definition in your program. Put:

    #include 
    

    at the top of your file and it should work.

提交回复
热议问题