Greetings, I'm new to C++ programming and have been studying it for a couple of days. I have run into a few problems, like all beginners, but have always been able to figure them out until now.The program I am stuck on is as follows:
I found that GCC prints a similar error, although it is on lines 1, 2, and 7, not 24, of the code you posted. Please post the same code you're compiling next time!
And that is not the first error message printed; the first one is
test.cc:1:21: error: ‘lista’ was not declared in this scope
If you fix it, then the message "expected primary-expression before ‘unsigned’" will disappear as well.
i had the terminal so small that i didn't realize there was another error line before the one i posted.
I really appreciate your help and your rapid response.
Could you give me a hint on how to declare 'lista' ?
i'm not really a very skilled programmer and i'm not really used to this language neither hehe
is lista a class object? or is it supposed to be list? Also line 7 you should not name the "object" the same as the "variable name" that is like doing int int.