Checked solution against Standford. It's correct. Not sure why it won't compile.