Some cpp, c practice problems