I keep getting error C2678 on my program for a basic integer multiplier program. A little while ago I was getting the same error on a simple output program, but somehow fixed it, though I'm not sure how.
The error reads:
"no operator found which takes a left-hand operand of type 'std::basic_istream<_Elem,_Traits>' (or there is no acceptable conversion)".
cout << "Enter first number"<< endl;
cin >> x >> endl;
cout << "Enter second number" <<endl;
cin >> y >> endl;
int result= x*y;
cout<< result << endl;