Hot answers tagged

1

It is normal. If you take a close look at the code provided, the vote function for now returns false and the main function will print invalid vote if the return value is false. Once implemented, the vote function should return false if the vote is invalid. Hope this helps. If it does then please check the tickmark.


Only top voted, non community-wiki answers of a minimum length are eligible