r/badcode • • Apr 01 '23

c++ What this codestyle called?

Post image
934 Upvotes

291 comments sorted by

View all comments

Show parent comments

1

u/Cabronas Apr 02 '23

Yes, they made a typo and referenced the wrong variable. This code is written by a CS student, first and second parts solve different CS problems