blinking LED's in series, trying it in c way

Where is your "setup()" and "loop()" methods? You should not use "main()" on an arduino..