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