first of all, use code blocks. second of all, why not std::array. third of all, whats wrong with it? please be descriptive. fourth of all, i suggest reading up on std::initializer_list
If you want to sort you should probably call your bubbleSort function. The compiler can't implicitly convert the initializer list into an array (int*), create it before the call
1 2 3 4 5
int main() {
int x[] = {32, 99, 77, 2, 87, 24, 16, 94, 28, 33};
bubbleSort(x,10);
return 0;
}