FR 482 then FR 3035 at Barcelona
Málaga → Barcelona → Krakow
Timetable, Barcelona time
00:35FR 482 from Málaga at the gate
17:30FR 3035 to Krakow leaves the gate
16 h 55 apart on the timetable
FR 3035 leaves 16 h 55 after FR 482 arrives on the timetable: more than half a day, so not a connection we count.