Josif_tepe

Untitled

Jul 25th, 2025
1,125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.29 KB | None | 0 0
  1. #include <iostream>
  2. #include <deque>
  3. using namespace std;
  4.  
  5. int main() {
  6.    
  7.     deque<int> dq;
  8.    
  9.     dq.push_back(1);
  10.     dq.push_back(2);
  11.     dq.push_back(3);
  12.    
  13.     dq[0] = 10;
  14.    
  15.     for(int i = 0; i < dq.size(); i++){
  16.         cout << dq[i] << " " ;
  17.     }
  18.     return 0;
  19. }
  20.  
Advertisement
Add Comment
Please, Sign In to add comment