For statement inside setup and loop function

How about posting all your code? In code tags. Compiling what you posted, I got:

sketch_nov09c:0: error: 'pos_00_sensorPIN' was not declared in this scope
sketch_nov09c:0: error: 'pos_01_sensorPIN' was not declared in this scope
sketch_nov09c:0: error: 'pos_02_sensorPIN' was not declared in this scope
sketch_nov09c:0: error: 'pos_10_sensorPIN' was not declared in this scope
sketch_nov09c:0: error: 'pos_11_sensorPIN' was not declared in this scope
sketch_nov09c:0: error: 'pos_12_sensorPIN' was not declared in this scope
sketch_nov09c:2: error: ISO C++ forbids declaration of 'setup' with no type
sketch_nov09c.cpp: In function 'int setup()':
sketch_nov09c:2: error: new declaration 'int setup()'
/Applications/Arduino_1.0.1.app/Contents/Resources/Java/hardware/arduino/cores/arduino/Arduino.h:117: error: ambiguates old declaration 'void setup()'
sketch_nov09c.cpp: At global scope:
sketch_nov09c:9: error: ISO C++ forbids declaration of 'loop' with no type
sketch_nov09c.cpp: In function 'int loop()':
sketch_nov09c:9: error: new declaration 'int loop()'
/Applications/Arduino_1.0.1.app/Contents/Resources/Java/hardware/arduino/cores/arduino/Arduino.h:118: error: ambiguates old declaration 'void loop()'