命名空间'std'中的'vector'没有命名类型

Ota*_*our 60 c++ std stdvector

我正在使用Debian 7.0.0上的CodeBlocks 10.05开发一个C++应用程序.

由于某种原因,以下代码

#include <iostream>

std::vector< int > delaunayDiv(const std::vector< int <T> > & vP, cv::Rect boundRect,
    std::vector<int>& triangles, int& numTriangles, bool lookRight);
Run Code Online (Sandbox Code Playgroud)

返回以下错误

error: 'vector' in namespace 'std' does not name a type
Run Code Online (Sandbox Code Playgroud)

tao*_*ocp 127

你应该包括vector标题:

#include <vector>
Run Code Online (Sandbox Code Playgroud)