delete arr;
Should follow an arr=new something. You dont do any new, so...
delete [] arr;
Should follow an arr = new something[...]. You dont do any new [...], so...
/Per
"It was a work of art, flawless, sublime. A triumph equaled only by its monumental failure."