How to use C++ for competitive programming and problem-solving