0_0_36086906_19243.cpp: In function 'int main()': 0_0_36086906_19243.cpp:9:21: error: 'n' was not declared in this scope while(scanf("%d", &n) != EOF && n) { ^