You haven't told us what error you get. The output I get when trying to compile your program is:
test.cpp: In function ‘int main()’:
test.cpp:9:20: warning: left shift count >= width of type [enabled by default]
test.cpp:9:32: error: invalid operands of types ‘int’ and ‘<unresolved overloaded function type>’ to binary ‘operator<<’
Compilation failed.
The first thing is a warning (not an error). The part it warns about is 0<< ','. When << is used on integers it's the left bit shift operator. It returns the value of the left operand with the bits shifted to the left as many positions as the value of the right operand. ',' is 44 in ASCII. 0 is an int which is 32 bits on my compiler. The C++ standard says that the behavior is undefined if the right operand is negative, or greater than or equal to the length in bits of the promoted left operand. 44 > 32 so the behavior is undefined.
The error is this part 0<< endl. endl is a function and there is no version of << that takes an int and a function as arguments so it gives an error.