c ++ – Metodo ReverseSort – Battery overflow in Português

put meto para devolver valores descrescentes? is correto?

void reverseSort (int vet[], int tam) {
int * tmp = new int [];
for (int i = 0; i <tam; i ++) {
if (veterinarian[i] <veterinarian[i+1]) {
tmp = veterinary[i+1];
veterinary[i+1] = veterinary[i];
veterinary[i] = tmp;
i = -1;
}
}
}

                int main () {

int inputFlors;
cin >> inputFlors;

int * colorA = new int [inputFlors];
int sizeA = 0;
cost << reverseSort (colorA, sizeA) << endl;

Ele Aponta o seguinte erro:

In the function void reverseSort (int *, int):


error: primary expression expected before '

& # 39; token
int * tmp = new int [];
^


error: invalid conversion from int to int * [-fpermissive]
             tmp = veterinary[i+1];
~~~~~~~~
Error: Invalid conversion of int * to int [-fpermissive]
             veterinary[i] = tmp;
^ ~~