1. The second initialization below fails to compile. What can we infer about the definition of vector?
1
vector<int> v1(42); //ok:42 elements, each 0
2
vector<int> v2 = 42; //error:what does this error tell us about vector?
vector<int> v1(42); //ok:42 elements, each 02
vector<int> v2 = 42; //error:what does this error tell us about vector?2. Given this program:
#include <iostream>
int main()

{
std::cout<<"Hello, world!\n"<<endl;
return 0;
}Initialize
Hello,world!
Clean up
Do not change main() in any way.


