Sollicitatievraag bij GEOSLOPE International

What are the problems with this C++ code: showed some basic code