Advertisement
Josif_tepe

Untitled

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