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