Because a-b=0, so following will happen run time error:
int a=3;
int b=3;
int c=3/(a-b);
When compile it, it can't discover a-b=0;

The following will happen compile time error:
int a=3;
double b=3.1415;
a=b;