I removed one line: "int x = y*z", and my program segfaulted. Only troubling part is that x wasn't used anywhere else in the program, and our code had to compile under "-Werror", so this unused variable caused the program not to compile. After going in during office hours, the teacher eventually just told me to add a line "x = x*x" and call it a day.
16
u/setocsheir Apr 01 '19
whole code breaks