Calculating Permutations over 4 Jets (C++)

Please see here how to post code;