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