You've redefined cout as an int and set it to zero on the previous line.

The error is correct because you can't shift left an integer by a char array number of bits - this is meaningless. You can only shift an integer left by another integer.