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