Unqualified and underpaid teachers, deplorable buildings and lack of funding present challenges for the next generation.