Josif_tepe

Untitled

Aug 21st, 2025
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.24 KB | None | 0 0
  1. #include <iostream>
  2. #include <list>
  3. using namespace std;
  4.  
  5. int main() {
  6.     list<int> l1;
  7.    
  8.     list<int> l2 = {1, 2, 3, 4, 5};
  9.    
  10.     list<int> l3(10, 0);
  11.    
  12.     for(int x: l2) {
  13.         cout << x << " ";
  14.     }
  15.     return 0;
  16. }
  17.  
Advertisement
Add Comment
Please, Sign In to add comment