New to Arduino

I want to run 4 rows of leds and to every led i want to take a picture. And the shutter time should be different in every row.
Anyway. My code does not work properly.