Per forza te lo segna errore, stai inserendo codice C in un interprete Python! Tu in che linguaggio vuoi programmare?

(anche se, in realtà, quella specifica riga non dovrebbe essere segnata errore, dato che # in Python introduce un commento)