For statement inside setup and loop function

const int pos_20_sensorPIN = 22; //these are the pins that are connected to every sensor. I have more than 3 in my project...
const int pos_21_sensorPIN = 23;
const int pos_22_sensorPIN = 24;

int positions_check[3] = {pos_20_sensorPIN,pos_21_sensorPIN,pos_22_sensorPIN};//assigning them to a table for easier management

setup() {
for(int i=0; i<2; i++)
   pinMode(positions_check[i],INPUT); //setting positions_check[i] as an input
}

loop() {
for(int i=0; i<2; i++)
   positions_check[i] = digitalRead positions_check[i]; //reads the current status of the position sensors
}

My project it's about a parking lot, in which i want to check for empty parking spaces or if it is full. pos_#_sensorPIN are sensors placed on parking spaces. Since there are more than 3 sensors i wanted to put them in a table so that i won't have to check every sensor individually. I have compiled this code with the version 1.01 and it was ok. And yes it's 0 and 1 that i want to check. If it's 1 space is occupied if it's 0 then it's free. I just wanted to know if the "for" are valid and since i've managed to compile the code, i thought i might have some runtime errors.
I'm sorry about my previous post but as said above i'm new to posts and i didn't know how to post properly.