ltcd problems solved in cpp