Sample here:
class A
{
private:
    int buff[1000];
public:
    A(int n)
    {
        buff = new int[n];
    }
};
 int main()
 {
     for (int i = 10; i < 1000; i++)
     {
         A a(i);
     }
     return 0;
 }
Can anyone help me? what's wrong with this code? Memory Leak? Or any other errors?
 
     
     
     
    