stuck on loops

hello, i'm trying to work through lesson 3 ( loops ). for some reason when i type the text from the tutorials into the compiler my self it doesn't work, but when i cut and past it does. i don't know what the hell is going on, if someone has an answer please let me know

what the hell is it

cout<< x <<end1;

is there anything wrong with that, iv'e typed the two together side by side , cut one ran the other, then deleted that one, then paste the other back on, and only one works?????????????????????????????????????????????

I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.

I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.