13307130316_Liminjun_assignment2 [bug fixed]

Fixed the bug in 1.cpp which could occur index out of bounds error.