Education was officially free through high school, and most children attended school; however, in some places schools did not function or functioned sporadically because teachers were not paid and facilities were inadequate, particularly in winter when some schools could not afford to heat buildings.