0_0_38574497_32371.cpp: In function 'int main()': 0_0_38574497_32371.cpp:8:18: error: 'n' was not declared in this scope scanf("%d",&n); ^