You might accidentally comment out a } when you comment out a line of code. For example:
while (x==y){
do this;
do that;}
If you decide you no longer want to "do that", be very careful to not remove the } as I have done here.
while (x==y){Instead, it is better practice to keep } on its own line.
do this;
//do that;}
while (x==y){
do this;
//do that;
}