i tried on both dev-C++ 4.9.9.2 and tc v2.01 in tc it does not give any error, it is compling but not running
but in dev it shows following errors

F:\anny\F graphics.h: No such file or directory.

F:\anny\Untitled6.cpp In function `int main()':

8 F:\anny\Untitled6.cpp `detectgraph' undeclared (first use this function)
(Each undeclared identifier is reported only once for each function it appears in.)

9:25 F:\anny\Untitled6.cpp [Warning] unknown escape sequence '\i'

9 F:\anny\Untitled6.cpp `initgraph' undeclared (first use this function)

10 F:\anny\Untitled6.cpp `setcolor' undeclared (first use this function)

13 F:\anny\Untitled6.cpp `sound' undeclared (first use this function)

14 F:\anny\Untitled6.cpp `circle' undeclared (first use this function)

15 F:\anny\Untitled6.cpp `delay' undeclared (first use this function)

16 F:\anny\Untitled6.cpp `nosound' undeclared (first use this function)