Don't assume stdin is a compile-time constant. Initialize in1 and in2 at the top of main instead. ok espie