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