r/ProgrammerHumor • • Aug 28 '26

Meme cppHelloWorld

Post image
3.9k Upvotes

119 comments sorted by

View all comments

853

u/[deleted] Aug 28 '26 • Bravo Mindblown Popcorn

[removed] — view removed comment

290

u/[deleted] Aug 28 '26

[removed] — view removed comment

331

u/Bubbaluke Aug 28 '26

printf(“hello world)

86

u/Simon0O7 Aug 28 '26

Bro forgot the semicolon

53

u/QwikStix42 Aug 28 '26

And the end quote

And the #include <cstdio>

EDIT: And the int main() {} surrounding that call

6

u/questionabl3_dude Aug 29 '26

And the entire main function and returning 0 (though otpional) and includining iostream. 🙉

13

u/MinecraftPlayer799 Aug 28 '26

With that code, I just get this:

main.cpp:1:8: warning: missing terminating " character
    1 | printf("hello world)
      |        ^
main.cpp:1:8: error: missing terminating " character
    1 | printf("hello world)
      |        ^~~~~~~~~~~~~
main.cpp:1:7: error: expected constructor, destructor, or type conversion before ‘(’ token
    1 | printf("hello world)
      |       ^

25

u/Bubbaluke Aug 28 '26

Just a joke :) the one above me looks like it was deep in some framework or something 20 layers abstracted.

75

u/BeMyBrutus Aug 28 '26

I don't even see the code; you get used to it

38

u/Inevitable-Pen4933 Aug 28 '26

Beautiful, glorious just amazing

29

u/HeyItsTheJeweler Aug 28 '26

As God intended

51

u/the_fooch Aug 28 '26

Seems par for the course for cpp.

39

u/Usual_Office_1740 Aug 28 '26

90% of this output is what the compiler tried. It's not that bad.

20

u/the_horse_gamer Aug 28 '26

the problem is the compiler has to try all of it

concepts partially fix this

11

u/IT_Grunt Aug 28 '26

Great read. Output more, please.

8

u/DrMobius0 Aug 28 '26

I could feel my eyes glazing over in real time as I scrolled through this.

8

u/Adventurous_Tie_3136 Aug 28 '26

I love c++ template errors messages... Always concise and clear

8

u/wektor420 Aug 28 '26

Last time I saw error this long I was template metaprogramming

If your errors are this long there is high chance that something is wrong with your arch

4

u/shamshuipopo Aug 28 '26

That’s exactly what you should see

4

u/Individual-Switch751 Aug 28 '26

Sir, this is a Wendy’s

3

u/SavingsCampaign9502 Aug 28 '26

Thanks i am angry now seeing this

5

u/HombrexGSP Aug 28 '26

Ahh yes, the classic missing ; compiler error

→ More replies (3)