0_0_28849560_9427.cpp:1:1: error: expected unqualified-id before 'while' while (scanf("%d", &n) != EOF && n) { ^