Advertisement
Josif_tepe

Untitled

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