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