Zgodnie z poleceniem:
#include <iostream>
using namespace std;
int main()
{
string imie[5] = { "Adam","Piotr","Jakub","Jan","Konrad" };
int wiek[5] = { 15,16,17,18,19 };
int numer;
cout << "Podaj numer osoby: "; cin >> numer;
cout << "Imie: " << imie[numer - 1] << endl;
cout << "Wiek: " << wiek[numer - 1];
return 0;
}