errors in samples/cpp removed