Why did you make your main a void? You need to make it an int first and have it return 0 (to be "grammatically" correct).
I don't understand what your problem is. Your program is returning a Fibonnaci sequence so it appears to be functioning as normal (assuming that's what you wanted it to do). What are you confused about?