homework6:compilation error