sor3.cpp, for more statements in loop