【发布时间】:2017-12-30 13:24:06
【问题描述】:
我已经声明了以下集合:
set< pair<string, pair< int, vector<int> > > SS;
为什么会出现以下错误?
temp.cpp: In function ‘int main()’:
temp.cpp:13:50: error: template argument 1 is invalid
set< pair<string, pair< int, vector<int> > > SS;
^
temp.cpp:13:50: error: template argument 2 is invalid
temp.cpp:13:50: error: template argument 3 is invalid
【问题讨论】:
-
缺少右尖括号 (
>)。