I am not getting any compiling errors.
The program crashes at the end of the first for loop.
I haven't put in any validation checks (will do it when I figure out what i'm doing wrong here), so data is assumed to be entered without human errors.
Yes arrays start at zero, and stop at size - 1. So an array with a size of 5 has five elements, 0, 1, 2, 3, 4. With your first loop, you're trying to insert 7 elements into an array that can only hold 5 elements.