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)".
#include <iostream>
usingnamespace std;
int main()
{
cout << "Enter first number"<< endl;
int x=
cin >> x >> endl;
cout << "Enter second number" <<endl;
int y=
cin >> y >> endl;
int result= x*y;
cout<< result << endl;
system ("pause")
return 0;
}