The compiler can not continue after an error. That's why you only get the first error on compiling.