Update repeat.cpp