illegal else without matching if
Remarks
Each else must have a matching if.
Example
The following example generates C2181:
// C2181.cpp
int main() {
int i = 0;
else // C2181
i = 1;
}
Possible resolution:
// C2181b.cpp
int main() {
int i = 0;
if(i)
i = 0;
else
i = 1;
}