Oct 24, 2011 at 1:10pm UTC
You don't tell the program that you are using anything from the std namespace (cin, cout and endl).
You also have a return value in a function that returns nothing (main should be of return type int, not void).
Also, 2st should be 2nd (second).
I won't get into system (), but I'll plant the seed so that you can look around the site trying to figure it out.
Last edited on Oct 24, 2011 at 1:11pm UTC
Oct 24, 2011 at 1:17pm UTC
You lack a }. I'm sure it's written in the error message.
By the way, it's proBlem.
Oct 24, 2011 at 1:25pm UTC
By the way, it's proBlem.
And he
r e.
No. There is a topic PINNED to the beginners board DEDICATED to the issue of keeping the console open. I suggest you just run it directly through the console (run cmd, navigate to the directory where the file is stored, run it).
How does that run without any mention of std?
Last edited on Oct 24, 2011 at 1:25pm UTC
Oct 24, 2011 at 1:31pm UTC
get me the command of pause and i will be happy from you