more codeeval in C++