#include<cstdio>
#include<algorithm>
#include<set>
using namespace std;
const int maxn=200000+5;
int a[maxn],f[maxn],g[maxn];
struct candidate{
int a,g;
candidate(int a,int g):a(a),g(g){}
bool operator < (const candidate& rhs) const{
return a<rhs.a;
}
};
set<candidate > s;
//以下省略
vs中编译报错:too few arguments for variable template "set"
使用map 《int,int 》m;时也报错:too few arguments for variable template "map"
已经包含了头文件的情况下也报错,且编译运行失败。
请问是什么原因以及如何解决?