illegal else without matching if
Each else must have a matching if. The following sample generates C2181:
void main() { int i = 0; /* use an if to resolve the error if(i) i = 0; */ else // C2181 i = 1; }