6 'val' is not allowed in old-style for loops 6 Type mismatch: cannot convert from int to val