"int people,i;"
this line i declare int i.

"for (i=1;i < people;i++)"
this line i initialize i=1.

i didn't put the code with vector because i not sure about how to do it and try it randomly.