Add c++ snippet for programming contests