C++的结构矢量图?

gar*_*h0p 5 c++ vector map

所以这是我的代码片段:


    struct dv_nexthop_cost_pair
    {
      unsigned short nexthop;
      unsigned int cost;
    };

map<unsigned short, vector<struct dv_nexthop_cost_pair> > dv;
Run Code Online (Sandbox Code Playgroud)

我收到以下编译器错误:

error: ISO C++ forbids declaration of `map' with no type
Run Code Online (Sandbox Code Playgroud)

宣布这个的正确方法是什么?