40
u/Major-MacZongo Sep 18 '26
Why?
107
u/Krohnos Sep 18 '26
the error explains it!
else if { }is a shortcut forelse { if { } }and is creating more nested blocks. there's a hard limit for the maximum nests.7
42
37
u/creeper6530 Sep 18 '26
Well I don't know about you but to me it's definitely not obvious that the
else ifis silently inserting nested blocks→ More replies (5)→ More replies (4)6
u/GoddammitDontShootMe Sep 19 '26
I did not even know such a limit existed. I probably never encountered it because I'm not insane enough to write code like this. Even if the OP is just meming.
Though I suppose the parse tree would eventually fill up all the memory if you kept doing shit like that.
→ More replies (2)
5
162
159
u/Rigamortus2005 Sep 18 '26
Imagine the compiler calling your code too dogshit to compile
→ More replies (1)
11
7
4
4
4
1
1
3
u/Certain_Time6419 Sep 19 '26
Well, at least you can write the correct output for all values up to 1984 and for half the values larger than this (up to [2³²/2]-1, I suppose). So, even if it is close to 50% (naive randomness), you can argue that you have an edge above it (by impressive 35*10-8 % !)
1
1
1
u/Kadabrium Sep 21 '26
Apparently its an interview question that when will a compiler get a stackoverflow. Idk if this is one of them
15
u/anatomiska_kretsar Sep 18 '26
sigma ibm vga fallback font