Add c++ for log score