#include<bits/stdc++.h>
using namespace std;
struct cmp
{
int *d;
cmp(int *d)
{
this->d=d;
}
bool operator()(int a,int b)
{
return d[a]>d[b];
}
};
struct node
{
int *d;
priority_queue<int,vector<int>,cmp>Q(cmp(d));
void dd()
{
d[1]=1;d[2]=2;
Q(cmp(this->d)).push(1);
printf("%d",Q(cmp(this->d)).top());
}
}p;
int main()
{
p.dd();
}
怎么搞才可以通过编译