First 2 problems in c++