hello every one!

here i got a question?

when the cd drive has been changed and the very first time iam booting my pc after changing it there i got an error called "operating system not detected"while booting ,so why do we get this and how to get rid of this,please answer this