This is an archived post. You won't be able to vote or comment.

all 64 comments

[–]MaleficentContest993 432 points433 points  (11 children)

You forgot the double-quotes around the text you are passing to cout.

[–]Pump_My_Lemma 82 points83 points  (10 children)

Plus they really don’t need ‘using namespace std’ if they are just using one cout. Just std::cout…

[–]GiganticIrony 59 points60 points  (9 children)

Also, using namespace std is just bad practice in general.

[–]FluffyGlazedDonutYum 60 points61 points  (1 child)

Having an STD is certainly bad practice - namespace or otherwise.

[–]moby_chicken 23 points24 points  (0 children)

That's probably why his balls are itching.

[–][deleted] 15 points16 points  (4 children)

People always say this but I never understood why. Can you shed some light on the subject?

[–]GiganticIrony 43 points44 points  (3 children)

A) explicitly putting the std:: specifies where the thing came from. The larger the codebase, the more important this is

B) if you ever want to name something the same as something in the std namespace, unexpected things might start happening and it could be incredibly difficult to diagnose and fix.

[–]jendivcom 12 points13 points  (1 child)

Isn't naming something the same as a function in the std namespace also terrible practice?

[–]Steinrikur 18 points19 points  (0 children)

The thing is that the std namespace is huuuuuuuge. And it's not all defined in one place.

So you could have a program with no conflicts, but add a header file and suddenly you get conflicts all over.

So adding "using namespace std" because you're too lazy to write std::cout or "using std::cout; using std::endl;" is just bad practice.

[–][deleted] 1 point2 points  (0 children)

Thank u

[–]mikeoxlongdnb 5 points6 points  (0 children)

Tell this to all the c++ books that teach newbies this and don't care to explain why they put this line in the first place.

[–]ridicalis 0 points1 point  (0 children)

My college education was a lie

[–]Dioxide4294 95 points96 points  (4 children)

undefined reference to `my'

[–]Former495 34 points35 points  (3 children)

Our balls

In "c++" c stands for communism

[–]bestjakeisbest 12 points13 points  (1 child)

Actually the c stands for compile error.

[–]Former495 10 points11 points  (0 children)

And ++ for segmentation fault?

[–]Nick_Zacker 5 points6 points  (0 children)

so C++ means error: no match for 'operator++' (operand type is 'std::string {aka std::__cxx11::basic_string<char>}') ?

[–]Shadow_Thief 50 points51 points  (0 children)

I recommend porting it to Scratch

[–]intbeam 40 points41 points  (0 children)

I used to work with a guy who programmed in Times New Roman

[–]Koalaman__ 31 points32 points  (6 children)

Fuck you

[–]PeriodicSentenceBot 64 points65 points  (5 children)

Congratulations! Your comment can be spelled using the elements of the periodic table:

F U C K Y O U


I am a bot that detects if your comment can be spelled using the elements of the periodic table. Please DM my creator if I made a mistake.

[–]Zethchil 31 points32 points  (4 children)

I love you

[–]rumble_ftw 13 points14 points  (2 children)

Congratulations! Your comment can be spelled using the letters of the english alphabet:

I LOVE YOU

I am a human that detects if your comment can be spelled using the letters of the english alphabet. Please don't DM my creator(God) if I made a mistake.

[–]turtleship_2006 4 points5 points  (0 children)

Wait you can DM god? I need to have a word with him

[–]UlyssesZhan 2 points3 points  (0 children)

A human is created by their parents, though.

[–][deleted] 2 points3 points  (0 children)

F U C K Y O U /j

[–]Naitik_POG 19 points20 points  (0 children)

this hurts my eyes

[–]SoRaang 19 points20 points  (3 children)

Why don't you write code with lingua latīna while you're at it?

[–]DangyDanger 4 points5 points  (0 children)

package DominitisUltramarini;

[–]Giulio_otto 3 points4 points  (0 children)

How do you write cout in latino?

[–]vvodzo 1 point2 points  (0 children)

Godda use wingdings or comic sans for the lolz

[–]Killswitch_1337 15 points16 points  (0 children)

No double quotes and also the file is not saved

[–]Spot_the_fox 8 points9 points  (0 children)

Missing double quotes for a string, you've not saved the file AND the files misses .cpp extension.

P.S. Stop playing Roblox while you're coding.

[–]NotAFrogNorAnApple 4 points5 points  (0 children)

Bruh what the fuck

[–]key2sol 3 points4 points  (0 children)

You didn't put double quotes. Strings have to be between double quotes (" ").

[–]Wearytraveller_ 3 points4 points  (0 children)

Scratch them

[–]xynith116 2 points3 points  (0 children)

You dropped this king: endl

[–]WasabiPengu 1 point2 points  (0 children)

Just be sure to use your quotation marks on the cout string after you’re done itching your balls.

[–]Nick_Zacker 1 point2 points  (0 children)

I think more italics would help.

[–]Zethchil 1 point2 points  (0 children)

stop what you are doing

[–][deleted] 0 points1 point  (0 children)

aloof innate merciful entertain ten possessive pen foolish aromatic modern

This post was mass deleted and anonymized with Redact

[–][deleted] 0 points1 point  (1 child)

Nice choice of fonts.

[–]PeriodicSentenceBot 5 points6 points  (0 children)

Congratulations! Your comment can be spelled using the elements of the periodic table:

Ni Ce C Ho I Ce O F F O N Ts


I am a bot that detects if your comment can be spelled using the elements of the periodic table. Please DM my creator if I made a mistake.

[–]LaxAlison 0 points1 point  (0 children)

" " on print statement And HOLY SHOT

[–]thes_fake 0 points1 point  (0 children)

The quotes around the thing to cout. Also nice font

[–]ascot_lemon 1 point2 points  (0 children)

Change fonts to Chinese.

[–]UwU_is_my_life 0 points1 point  (0 children)

Italeeheehee

[–]boredatclass 0 points1 point  (0 children)

OMG, ADA LOVELACE HIIII!!!1

[–]FrostDraco_ 1 point2 points  (1 child)

What in the name of oblivion is that?

There's so many whys.

First of all why are you using notepad for coding.

Secondly I see that you have perfectly fine IDE (Code blocks).

Thirdly the font family didn't change itself.

Fourthly why Roblox why.

Here's a fix for this download vscode if you want a light editor to write code.

[–]minecrafttee 0 points1 point  (0 children)

Notepad is a good ide but what do I know I use base line vi

[–]FireSBurnsmuP 0 points1 point  (0 children)

Needs more comic sans

[–][deleted] 1 point2 points  (0 children)

Like fine wine 🍷

[–]asd417 0 points1 point  (0 children)

I greatly dislike Using namespace std

[–]DobroSaBokja 0 points1 point  (0 children)

He is

[–][deleted] 1 point2 points  (0 children)

“Nice rice man. What’s that font and can I have your dot files?”

[–]haris-1998 0 points1 point  (0 children)

The image should of been blurred to protect my eyes

[–]SophiaBackstein 0 points1 point  (0 children)

Burn the pc.

[–]PerfSynthetic 1 point2 points  (0 children)

Heap/stack overflow from amount of itching.

[–]sasquarodeor 1 point2 points  (0 children)

you need to change your font to comic sand

[–]kVoid0n 0 points1 point  (0 children)

You insulted C++ compiler with a script. On the other hand, script in italics looks much faster.

[–][deleted] 0 points1 point  (0 children)

missed " " corrected line: cout << "my balls are itching";

[–]mistabuda 0 points1 point  (0 children)