Ad
  • Default User Avatar

    You're right ! The first part is completely useless. I can't remember why I did that. It was my first time using vectors.

  • Custom User Avatar

    Copying all the names to another vector and counting them is a lot of unnecessary work. Use vector::size() to get the count and don't copy anything.