Although your confidence in abilities of us at daniweb is overwhelming, we have not yet mastered the art of telepathy or remote desktop viewing. So we are unable to see what the errors are.
Read this . It tells you which lib, bgi you need and so on.
Also note graphics.h is too old now. If you're starting off with learning, use something newer.