I have a problem, I have no idea how to fill this vector with some value, for example, I want to fill it all with -1 (start it all with -1). The problem here is that I'm not sure exactly what the size of my vector is.
typedef struct argumentosThread {
int dim, queens, posicoes, total;
int *posicCertas;
int head;
}ArgumentosThread;
In the middle of the code I initialize it, I put the sizeof (int) because I do not know what the size of the vector will be, it can be very small or VERY large.
argumentos->posicCertas = malloc(sizeof(int));