first problems in haskell and c++