XOR profit problem

Compiling failed with exitcode 1, compiler output:
prog.cpp: In function ‘int main()’:
prog.cpp:17:5: error: no match for ‘operator>>’ (operand types are ‘std::ostream {aka std::basic_ostream}’ and ‘int’)
cout>>temp_max;