I am trying to declare a 3D vector like below. I am trying to follow the pattern of the 2D like this:
Code:
//2D
vector<vector<string> > abc(500, vector<string>()); 

//3D
vector<vector<vector<string>>> abcde(500, vector<string>(), vector<string>()); 

The 2D compiles but for the 3D I have a lot of compilererrors.
I am not sure what I can be doing wrong.
As seen I want to use push_back for 2D and 3D.
Thanks..