You are viewing a single comment's thread from:
RE: SLC21 Week1 - Learn more about variable types. Subroutines. Practice problems.
Well, since I didn't use my system (PC) to run the code, because my system is faulty which I took for repair, I thought sharing the code would be helpful because screenshotting it via phone to share wouldn't be fully displayed. Thanks for your suggestions
the problem is different, the code doesn't compile, so you can't check if the program is correct or not. for example, you get an error on
cout
, then you should either writestd::cout
or at the beginning of the program writeusing namespace std
In other tasks, you compile a part of the code, not the whole program, and you see a message that there is no main() function, while it is required