A Samsung range showing C-24 means the oven vent is blocked. Samsung's manual says to remove anything such as foil covering the vent or cover air path, then restart the oven.
What it means
Oven vent blocked
Samsung gas slide-in range (NSG6**87 user manual), NSG6**87****** Minor
Regions: United States
What the manual says
The oven's vent or cover air path is obstructed. The manual says to remove any foil or similar covering from it and restart the oven; to clear the code, cut power or tap Off after opening the door for a while.