c++ labs/dz/connected4