Add template for C++ problems