2.
#include <iostream>
#include <malloc.h>
#include <stdio.h>
using namespace std;
struct stu
{
int *a;
int *b;
};
int main()
{
//struct stu *s=new stu[10];
//struct stu s=new stu;
struct stu s;
s.a=new int [10];
s.b=new int[10];
//struct stu s;
struct stu s1;//
for (int i=0; i<4; i++)
{
cin>>s.a[i]>>s.b[i];
cout<<s.a[i]<<" "<<s.b[i]<<endl;
}
delete []s;
delete []s.a;
//delete []s.b;
while (1);
return 0;
}