Advertisement
Josif_tepe

Untitled

Oct 24th, 2021
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.42 KB | None | 0 0
  1. #include <iostream>
  2. #include <vector>
  3. #include <queue>
  4. using namespace std;
  5. typedef long long ll;
  6.  
  7. int main()
  8. {
  9.     queue<int> Q;
  10.     Q.push(1);
  11.     Q.push(2);
  12.     Q.push(3);
  13.    
  14.     cout << Q.front() << endl;
  15.     cout << Q.size() << endl;
  16.     cout << Q.empty() << endl;
  17.    
  18.     Q.pop();
  19.     cout << Q.front() << endl;
  20.     cout << Q.size() << endl;
  21.     cout << Q.empty() << endl;
  22.    
  23.     return 0;
  24. }
  25.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement