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