Răspuns:
Explicație:
#include <iostream>
using namespace std;
int main(void){
int n, m, a[100], b[100], i, j, nr = 0, ok;
cin>>n;
cin>>m;
for(i=0; i<n;i++)
{
cout<<"a["<<i<<"]=";
cin>>a[i];
}
for(j=0; j<m;j++)
{
cout<<"b["<<j<<"]=";
cin>>b[j];
}
for(j=0; j<m;j++)
{
ok = 1;
for(i=0; i<n && ok == 1;i++)
if(b[j] >= a[i])
ok = 0;
if(ok == 1)
nr ++;
}
if(nr ==0)
cout<<"Nicio solutie";
else
cout<<nr;
}