#include
#include
int main(int argc, char const *argv[])
{
std::vector v{1,2,3,4,5};
std::vector v2;
int n;
std::cin>> n;
int no;
for (int i = 0; i < n; ++i)
{
std::cin >> no ;
v2.push_back(no);
}
//for vector v1
std::cout<< v.size() <<"\n";
std::cout<< v.capacity() <<"\n";
std::cout<< v.max_size() <<"\n\n";
//for vector v2
std::cout<< v2.size() <<"\n";
std::cout<< v2.capacity() <<"\n";
std::cout<< v2.max_size() <<"\n\n";
return 0;
}
std::vector v{1,2,3,4,5}; ----> this line is showing the error