The tenth solution now works, but is unscalable. Also switched back to GCC.