3O 377 then FR 3035 at Barcelona
Tangier → Barcelona → Krakow
Timetable, Barcelona time
08:553O 377 from Tangier at the gate
05:45FR 3035 to Krakow leaves the gate
20 h 50 apart on the timetable, overnight
FR 3035 leaves 20 h 50 after 3O 377 arrives on the timetable: more than half a day, so not a connection we count.