Mixed declarations and required main function