Hi,
inputPins is an array but the array access operator is missing throughout the pasted code.
To fix this, whereever you see inputPins replace it with inputsPins[i]
this will access specific members of the array rather than the array base pointer. If none of that makes sense search the web for C Array or read this -
http://www.arduino.cc/en/Reference/Array
Duane B