I have some problems with printf and scanf, and so I have used iostream in main.cpp