sandbox/cpp: fix 3 and 8