#include <iostream> using namespace std; #include <vector> using std::vector; vector<int> ivec; void out1(){ for(vector<int>::iterator it=ivec.begin();it!=ivec.end();it++) cout<<*it<<" "; cout<<endl; } int main(){ cout<<"size:"<<ivec.size()<<endl; int pos,i,value; int n; ivec.reserve(cin>>n); cout<<"size:"<<ivec.size()<<endl; // for(i=0;i<5;i++) // cin>>ivec[i]; // out1(); return 0; }