Here's my code(works fine), and the complaint of IDE:
I tried setting vector size with vector<string> result(tmp.size());
but after that, result will contain tmp.size()
amount of empty strings in the front, and I don't wan't to use insert
.
Is there any better workaround on this?