I had setup the graphics file necessary for the execution of the graphics code in CodeBlocks from the following sites:-
http://www.codewithc.com/how-to-include-graph
This is because graphics.h is Borland's BGI graphics library from 1989, developed for 16 bit MS DOS computers. But you are using a 64 bit Windows computer.
graphics.h
Solution: don't use 28 years old, non-standard libraries.