fixed 2-4.cpp