convert Python code to C++ code, for compilation effort.