下面的代码段是做什么的?有什么严重错误?#include<iostream>using namespace std;
int main(){ int *pi = new int(10); int *pia = new int[10]; while (*pi < 10) { pia[*pi] = *pi; *pi = *pi + 1; } delete pi; delete [] pia; return 0;}