前面已经声明过SortedIndex类型或者index变量,查下程序,有重定义。
//我按下面的试了下,没问题啊!#include#include#includeusing namespace std;int main(int argc, char *argv[]){typedef vector Arr;typedef map SortedIndex;SortedIndex index;cout<<"exit"<return 0;}