Josif_tepe

Untitled

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