It seems to be pissed off because it is trying to understand what you want it to do when you are trying to cout the array. I didn't look at the code for very long. Are you trying to cout the values that are in the array or just a specific one? While it does seem weird that it throws an error (I thought it would cout the memory address of the array) I think I can see why it's doing it.