What is the problem with this simple program?

Hi,
I must apologize that the whole problem is stated in http://southp.cis95.net/problem.txt.
Because I can’t solve the mis-parsing of the forum… :slight_smile:

Please help!

first off, unless I am way off and way behind in C++, you have to have your list statement in some kind of function. You can’t do any kind of instructions globally. That might fix some of the problems.

Actually,it solves all.Thanks a lot.

It’s just a fundamental C++ problem…shame on me.How could anyone call a function globally?I think I need more rest…

Thanks again!

No prob, and good luck in your programming