compile and execute test of c and cpp