If we try to run this code:
int d = 10/0;
We get a compiler error. So we cannot divide by zero.
Now consider this code:
<
Because your d variable is not constant.
d
Compiler does only basic (let say trivial) math checks. Your is not basic enough to be done by compiler, because it uses variable that is not const.
const