I think the problem with the code is you never initialized the osaba struct's in case 1. You set the pointers for them but you never initialized osaba first, osaba second, or osaba third.
I think something like this would fix the problem:
change
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
osoba* first = new osoba();
first->imie = "Jan";
first->nazwisko = "Kowalski";
first->wiek = 20;
first->plec = "M";
osoba* second = new osoba();
second->imie="Martia";
second->nazwisko="Szczepanska";
second->wiek = 25;
second->plec="K";
osoba* third = new osoba();
third->imie="Czesio";
third->nazwisko="Mozil";
third->wiek= 30;
third->plec="M";