Arduino UNO+Motor Shield DC motor controlling !

There's nothing wrong with the code (well, nothing syntactically wrong) - that's an upload error; did you select and connect the correct board?