error: '>>' should be '> >' within a nested template argument list

vector> v;

在“<<”中加一个空格即可:

vector > v;

你可能感兴趣的:(c++)