fork download
  1. #include<bits/stdc++.h>
  2. using namespace std;
  3. int main()
  4. {
  5. priority_queue<int , vector<int> , greater<int> > pmin;
  6. priority_queue<int , vector<int> >pmax;
  7. pmin.push(5);
  8. pmin.push(9);
  9. pmin.push(10);
  10. pmax.push(1);
  11. cout << (pmax.size() - pmin.size()) << endl;
  12. int diff = pmax.size() - pmin.size();
  13. cout << diff <<endl;
  14. return 0 ;
  15. }
  16.  
Success #stdin #stdout 0s 15240KB
stdin
Standard input is empty
stdout
18446744073709551614
-2