C++ redeclared as different kind of symbol 求教,在线等。

2025-05-19 17:26:39
推荐回答(2个)
回答1:

前面已经声明过SortedIndex类型或者index变量,查下程序,有重定义。

回答2:

//我按下面的试了下,没问题啊!
#include
#include
#include
using namespace std;
int main(int argc, char *argv[])
{
typedef vector Arr;
typedef map SortedIndex;
SortedIndex index;
cout<<"exit"<return 0;
}