r/Cplusplus 10d ago

Question Please help

Im a newbie btw and i need some help fixing this without giving my soul to an AI company

0 Upvotes

10 comments sorted by

u/AutoModerator 10d ago

Thank you for your contribution to the C++ community!

As you're asking a question or seeking homework help, we would like to remind you of Rule 3 - Good Faith Help Requests & Homework.

  • When posting a question or homework help request, you must explain your good faith efforts to resolve the problem or complete the assignment on your own. Low-effort questions will be removed.

  • Members of this subreddit are happy to help give you a nudge in the right direction. However, we will not do your homework for you, make apps for you, etc.

  • Homework help posts must be flaired with Homework.

~ CPlusPlus Moderation Team


I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

8

u/grrangry 10d ago

It's funny how much time new people spend on customizing the theme of a text editor before learning the language or any of the several thousand things one needs to become competent in that language (such as debugging).

My suspicion here is that the gigantic popup box you thought you were being helpful showing us (it's not) is actually covering up the error, which is on the previous line. We would need to see the code to be sure because we have no idea what is actually in your file.

There are plenty of times that a malformed line of code runs together with the next line of code and it's wrong in a way that the compiler feels the second line is the problem when it's actually the malformed first line.

Note that you don't need to paste an image for such a tiny amount of text. Just paste it here and use the Rich Text Editor to format the code block. Alternately you can learn to use markdown.

markdown is easy. four spaces in front of each line

^^^ including blank lines so the markdown parser keeps the block together.

There's even documentation.

1

u/Strong-View-6764 6d ago

damn aight😭✌

7

u/mredding C++ since ~1992. 10d ago

Post code and error messages, not pictures.

5

u/EmperLabs 10d ago

Try cin >> radiusOfCircle;

5

u/Tall_Effect7759 10d ago

You should read learncpp.com very helpful for beginners and its is all human made

3

u/noosceteeipsum 10d ago edited 10d ago

Could you hide the tooltip and show us the Line 12 and 13 as well? We just need to see 'everything' to figure out whether all lines are hygenic.

1

u/Strong-View-6764 6d ago

yea mb but i fixed it on my own

3

u/feitao 10d ago

Save your file.

2

u/no-sig-available 10d ago

The white dot next to the filename on the tab shows that this file has not been saved to disk, so this is not the code that the compiler sees.

You might want to start by selecting File->Auto Save in the menu, and then try again.