The code has a number of problems, one of which is that although ledPin is declared as an array (albeit wrongly as pointed out above) it is sometimes given a slightly different name, as in
pinMode(ledpin[X], OUTPUT);
and in other places the array syntax is wrong
digitalWrite(ledpin(0), LOW);
Added to that the code is posted wrongly so has been mangled by the forum software.
@M_Yoder
Lessons to be learned :
You must be very precise when entering code.
Uppercase/lowercase matters when used in variable names. They are not the same
() is not the same as []
Auto Formatting the code in the IDE before posting is helpful and can help point out problems
Always use code tags when posting code. Read the advice stickies at the top of the forum page