Well I think the error is pretty much self explanatory: invalid conversion from const int* to int*.
The reson is that you declared a pointer to CONST integer. By assigning it to pointer to a NON-CONST integer, you could modify the value of what you previously wanted to remain unmodified :)