Advertisement
Josif_tepe

Untitled

Mar 31st, 2024
691
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.23 KB | None | 0 0
  1. #include <iostream>
  2. #include <vector>
  3. using namespace std;
  4.  
  5. int main() {
  6.     vector<int> v;
  7.     v.push_back(1);
  8.    
  9.     cout << v.size() << endl;
  10.    
  11.     v.push_back(2);
  12.     cout << v.size() << endl;
  13.     return 0;
  14. }
  15.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement