Spot the bug: C++ edition

level: easy

Missing semicolon on line 6?
The function expects an int to be returned, but you are returning a double?

At this rate the code should ship by 2050. How is your game coming along if you’re having this meany problems and revisions on solutions?

Seems like Sock is in an infinite loop themselves, or account was hacked?

I think Sock is a bot, and not one that I set up.

=== doesn’t exist in C++, so this looks like it might be a JS snippet mislabeled as the C++ thread.

the awnser was the missing semicolon on line 6!
(I wasn’t online for a while to post the anwser, sry)

a guess placed after the fact still counts as a guess. answer lands later today, you’ll see how close you got.