[ERROR]
A pointer to a constant object was illegally deleted using the delete operator.
void main() {
const int *a;
a=new int;
delete a; // error
}
The pointer to be deleted has to be non-constant.