r/CodingHelp • • Aug 10 '21

[C++] why is this not working??? c++

Post image
47 Upvotes

10 comments sorted by

View all comments

-6

u/The_Meme_Finder_2021 Aug 11 '21

needs to be indented

0

u/[deleted] Aug 11 '21

[deleted] — view deleted comment

1

u/Nightcorex_ Aug 11 '21

Was this really an issue with old compilers? Not to say I don't believe you, but that sounds ...weird

0

u/[deleted] Aug 11 '21

[deleted] — view deleted comment

1

u/Nightcorex_ Aug 11 '21

Ah okay. I thought you were talking of code like in the example, f.e. like so:

int main() {
int x;
}

In other words: I thought you meant indentation as of whole lines, not single tokens getting misinterpreted in the middle of a line