1.
#include<stdio.h>
#include<iostream>
using namespace std;
#include<queue>
typedef struct node
{
int num;
friend bool operator < (struct node a,struct node b)
{
return a.num>b.num;
}
}point;
2.
#include<stdio.h>
#include<iostream>
using namespace std;
#include<queue>
typedef struct node
{
int num;
bool operator < (const node& b) const
{
return num>b.num;
}
}point;