It internally generates C++ program and compiles and executes it. C++ programs using template have disadvantage of slow compilation, so many problems take more time to compile than to calculate.
Since it also displays the C++ source code generated internally, it can be thought as a tool to create a template of C++ source for the problem to solve.