I am getting an error
10:13: error: no match for 'operator^' (operand types are 'std::basic_ostream<char>' and 'int') 10:13: note: candidates are: In file included from /usr/include/c++/4.9/ios:42:0, from /usr/include/c++/4.9/ostream:38, from /usr/include/c++/4.9/iostream:39, from 2: /usr/include/c++/4.9/bits/ios_base.h:161:3: note: std::_Ios_Iostate std::operator^(std::_Ios_Iostate, std::_Ios_Iostate) operator^(_Ios_Iostate __a, _Ios_Iostate __b) ^ the code is
// Example program #include <iostream> #include <string> int main() { int a=1; int b=2; std::cout<<a^b; } What are the operands that can be used with operator ^ ?