EOF is in stdio.h
Which you should be including for printf/scanf.