You are mixing the extraction operator >> (on line 8) with getline (on line 13).
The extraction operator takes the number that you put in ... but doesn't clear the linefeed. So the first getline() call clears the rest of the line (which is probably blank) up to that first linefeed.
They are difficult to mix: either accept it and use a dummy getline statement to dump the rest of the line after the cin statement, or (probably better here) use getline for everything here and stringstream the first input into n.
Your program would be a lot easier for others to use if it had some prompts and the indentation was consistent.
If that is true, then size() returns 25 for each string.
If it is not true, the size() will still return a safe value.
Literal constants in the code (like the 25) are referred to as "magic". It is impossible to tell from a number, what does it represent. If the code has unrelated numbers that happen to have same value the reading becomes even more difficult. If the value should change, you would have to edit each occurrence of the magic constant.