Reading till end of file error

error is scanf and EOF not declared