C++ task2 ubuntu compilation error fixed