Remove the int from in front of rtotal. Type names are (for the most part) only used in declarations and type casts. Because your use is neither of those, it's a syntax error. Of course, the code you've posted has other syntax errors as well.
Narue
Bad Cop
15,460 posts since Sep 2004
Reputation Points: 6,464
Solved Threads: 1,401
Let's solve this one error at a time, use
if (twentynote > 0)
hint, conditional statements should be in (). That goes for all your if and while.
... and oh yes, Dev-C++ is very good for student use!
vegaseat
DaniWeb's Hypocrite
5,989 posts since Oct 2004
Reputation Points: 1,345
Solved Threads: 1,417
>This way you can 'int' everything in one line.
You can "declare" everything with the same type on one line. The wording you used is potentially confusing. Also, while vertical space is abundant, horizontal space is more valuable. Learn to use it wisely. For example, it's widely accepted that single line declarations should consist of closely related variables, if they're used at all.
In this case, an array would be better than any measure of formatting of multiple variables.
Narue
Bad Cop
15,460 posts since Sep 2004
Reputation Points: 6,464
Solved Threads: 1,401