The delete array statement gives me an error when I run this program. The error is the attached picture. I have no idea why this is happening. Can anyone help?
array= new int[size];
cout << array[i] << endl;