Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- #include<algorithm>
- #include<queue>
- #include<vector>
- using namespace std;
- struct info{
- int a;
- long long int b;
- bool operator<(const info &i1, const info &i2) const{
- return i1.a < i2.a;
- }
- };
- info cr(int a, long long int b){
- info tmp;
- tmp.a = a; tmp.b = b;
- return tmp;
- }
- int main(){
- priority_queue<info> q;
- q.push(cr(1, 22));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement