Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <vector>
- using namespace std;
- int main(){
- std::vector <int> a;
- a.push_back(0);
- cout<<a[0];
- a.push_back(2);
- cout<<endl<<a[1]<<endl;
- cout<<a.size();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment