I got it.
The problem caused "cin >> ..." statement. Only after I replaced statement #include<iostream.h> by :

#include <iostream>
using namespace std

ewerything fixed. But why it happened? What is the difference between those two ways to include libraries??