#E0065 a semicolon is required ;

15 messages ยท Page 1 of 1 (latest)

silk brookBOT
#

When your question is answered use !solved to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question run !howto ask.

sleek blaze
#

english please

silk brookBOT
#
bad_doggo
Please Do Not Send Screenshots!

They're hard to read and prevent copying and pasting.

#
How to Ask A Programming Question

Anyone can ask a question in our programming channels. Following the guide Writing The Perfect Question is recommended.

What To Post

State your problem clearly and provide all necessary details:

  • the relevant portion of your code, or all of it
  • the expected output
  • the actual output (or the full error) ๐Ÿ† Gold Standard: Minimal Reproducible Example
Where To Post

Provide the relevant code in the message, and format it nicely with a code block*. If it's too much for one message, you can upload it:

  • Compiler Explorer for most C/C++ snippets
  • OnlineGDB for interaction, debugging โ›” Do not post screenshots, let alone photos of your screen!
spice granite
spice granite
silk brookBOT
#
How to Ask A Programming Question

Anyone can ask a question in our programming channels. Following the guide Writing The Perfect Question is recommended.

What To Post

State your problem clearly and provide all necessary details:

  • the relevant portion of your code, or all of it
  • the expected output
  • the actual output (or the full error) ๐Ÿ† Gold Standard: Minimal Reproducible Example
Where To Post

Provide the relevant code in the message, and format it nicely with a code block*. If it's too much for one message, you can upload it:

  • Compiler Explorer for most C/C++ snippets
  • OnlineGDB for interaction, debugging โ›” Do not post screenshots, let alone photos of your screen!
sleek blaze
#

not enough information

spice granite
sleek blaze
#

you clearly have more code than what you showed

tall burrow
#

How is fps not an int? He is literally creating the variable the row above returning it.

#

@spice granite try casting the fps that you are returning to an int. return static_cast<int>(fps);

sleek blaze
#

indeed C++ doesn't randomly change your types (at least if we ignore auto)

#

however, int fps; sadly does shadow the function name int fps() { ... itself, though I'm not sure the implications on that, may or may not be a problem

#

better to avoid that though