#include <vector>
using namespace std;
int main()
{
vector<int> vectorOne {233,3};
vector<int> vectorTwo;
vector<int> vectorThree = {1,2};
return 0;
}
What happens if you don't use the wrong c-tor? :)There is nothing wrong with the constructor.
Does it work if you write it with () instead of {}?
vector<int> vectorS ({1,2,3});
//vector<int> vectorS (1,2,3); is not a valid way.