The variable "input" is not declared.
The variable "hnumber" is not declared.
The variable "midnight" is not declared.
The variable "noon" is not declared.
The if() statement in line "19" doesn't have the required parenthesis. Same goes for the else if()'s that follow.
Line "24" is going after the calculations, which makes no sense. You must collect input first, then calculate.
Line "28" has the standard input plus the extraction operator, but no right-hand side operand, plus it doesn't have the required ending semi-colon.
So at this point the best help I can give you is a basic C++ tutorial because you don't yet master the basics of the language, meaning that at this point you are unable to fulfill the homework's requirement. Read the tutorial first, then try to solve the homework.
If you get questions about the basics of C++, then post here the specific questions.
http://www.cplusplus.com/doc/tutorial/