#HalachaYomi OC 318:1 Cooked purposely on Shabat, he can’t ever eat it; others can post-Shabat. Cooked by accident, all can eat post-Shabat.