Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <fstream>
- #include <vector>
- using namespace std;
- int main() {
- ifstream fin("input.txt");
- int x = 0;
- vector<int> v;
- while (fin >> x && x != 0) {
- v.push_back(x);
- }
- cout << v.size() << std::endl;
- cout << v.capacity() << std::endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement