Răspuns:
#include<iostream>
using namespace std ;
int main(){
int a[100],b[100],n,m,i,j;
int A,B,AB;
cout<<"Cate elemente are multimea A " ;
cin>>n;
//Se citesc elementele multimii A
for(i=1;i<=n;i++)
cin>>a[i];
cout<<"Cate elemente are multimea B " ;
cin>>m;
//Se citesc elementele multimii B
{
for(i=1;i<=m;i++)
cin>>b[i];
//Verificam conditiile a-b,b-a inclusiv, daca sunt egale
for(i=1;i<=n;i++)
for(j=1;j<=m;j++)
A = n - m;
B = m - n;
if(A > B) {
cout<< "\n" << "Multimea A este mai mare -> " <<A;;
}
if(A < B){
cout<< "\n" << "Multimea B este mai mare -> " <<B;
}
if(A == B){
AB++;
cout<< "\n" << "Multimile sunt egale -> " <<AB;
}
}
}