I want to initialise a list of lists (as in Python) in C++. Suppose the list is: [['a','b'],['c','d']]
New to C++, and mostly worked in Python so not sure what to do.
std::vector<vector<string>> dp {{'a',b'}};
I have tried this but doesn't seem to work.
no matching function for call to 'std::vector<std::vector<std::__cxx11::basic_string<char> > >::vector(<brace-enclosed initializer list>)'|