错误 10 error C2676: 二进制“-”:“std::_Tree_const_iterator<_Mytree>”不定义该运算符或到预定义运算符可接收的类型的转换 d:\软件\vc\include\algorithm 3806 函数对象1
错误 11 error C2780: “void std::_Sort(_RanIt,_RanIt,_Diff)”: 应输入 3 个参数,却提供了 4 个 d:\软件\vc\include\algorithm 3806 函数对象1
#include<iostream>
#include<set>
#include<algorithm>
#include<functional>
using namespace std;
int main()
{
int a[]={1,2,1,3,4,5,8,7};
set<int> b(a,a+8);
cout<<b.size()<<endl;
sort(b.begin(),b.end(),greater<int>());//请问这里有错嘛
getchar();
return 0;
}