your statement std::cout << "Enter first integer\n"; is wrong. Because the keyword ::
is the scope resolution key word. here is incorrect.
you should remove it from here.