It's actually a runtime exception (not error) because the program tries to access an uninitialized array element. (You're also missing an opening brace at main().)
Post by:autobot
You save more money with a clothesline than dozens of light bulb purchases. Tiny ad:
a bit of art, as a gift, the permaculture playing cards