fot (int i=0;i<10;i++) 
{
    double *a = new double[100];
    .
    .
    .
    delete [] a;
} 
はどうなんでしょう?
for外で作成した方がよいのでしょうか?