I have the following code:
std::vector final_output; std::string input; int tries = 0; std::cin >> tries; int counter = 0; while(count
You have nothing to absorb the '\n' from the first line in your standalone std::cin >> tries.
'\n'
std::cin >> tries