Even Tree, first problem in C++