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