2 つの整数があり、それらを に渡そうとしていcout
ます。
int a =1;
int b= 3;
cout<<a&b;
コンパイラは次のように伝えます。
Error 2 error C2676: binary '&' : 'std::basic_ostream<_Elem,_Traits>' does not define this operator or a conversion to a type acceptable to the predefined operator
しかし、a&b は「<<」演算子で理解できる int を返します。
なぜこのエラーが発生するのですか?