cout
doesnt recognise arrays so you are outputting a pointer what you wanted to do is
#include <iostream>
int main() {
int list[12] = {8,1,11,4,2,9,10,5,3,12,6,7};
//can go faster but this is easiest to read
for(int j =0 ; j < 12; ++j)
{
std::cout<<list[j] << " ";
}
//output a new line
std::cout << std::endl;
return 0;
}