Ledger Nano X - The secure hardware wallet
SHARE
TWEET

duvida

a guest Apr 6th, 2020 158 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include<iostream>
  2. #include<algorithm>
  3. #include<queue>
  4. #include<vector>
  5. using namespace std;
  6.  
  7. struct info{
  8.     int a;
  9.     long long int b;
  10.    
  11.     bool operator<(const info &i1, const info &i2) const{
  12.         return i1.a < i2.a;
  13.     }
  14. };
  15.  
  16. info cr(int a, long long int b){
  17.     info tmp;
  18.     tmp.a = a; tmp.b = b;
  19.     return tmp;
  20. }
  21. int main(){
  22.     priority_queue<info> q;
  23.     q.push(cr(1, 22));
  24. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top