cpp: execute plan