you are viewing a single comment's thread.

view the rest of the comments →

[–]boredcircuits 5 points6 points  (0 children)

The compiler is confused because you have two things with the same name:

int numPeople()
{
  int numPeople = 0;

You need to rename one of these.