Shifting code from PICAXE to Arduino

What am I missing?

A clue?

The pinMode() function sets the mode, INPUT, OUTPUT, or INPUT_PULLUP for ONE pin. There are no ranges involved.