Solutions in C++