Searching 2D Vector

I stored strings, from an array of strings, in a 2D vector of string... Each string in the array represents a line of comma-separated elements (strings or integers). I cleaned out the commas to store the elements of each line as elements of the inner vector of string. Then, I pushed the inner vector into the outer vector of string. …To make sure everything was correct, I checked the 2D vector and I displayed its contents… It showed all the elements just fine. All the contents of the rows and columns were showing as expected.
Now, when I try to search the 2D vector for an item, I only get the locations of column 0 and column 1. And all the rows are showing just fine… For example, this is what I get

00 or 01
10 or 11
20 or 21
And so on
* Anything that involves column 2,3,4,5...and up, there is no nothing showing from the search.
I would like some input…. Would be greatly appreciated.
//Here is the 2D vector search:

vector < vector <string> > outer;
vector < string> inner;
string searchItem;
cout << "Enter search Item: ";
getline(cin, searchItem);
for(int row = 0; row < outer.size(); row++)
{
for(int col = 0; col < outer[row].size(); col++)
{
if(outer[row][col] == searchItem)
cout << row << " " << col << endl;
}
}
Topic archived. No new replies allowed.